Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Aditya Mahajan

On Wed, 22 Jul 2009, Michail Vidiassov wrote:


Dear Hans and All,

On Tue, 21 Jul 2009, Hans Hagen wrote:


Superscript works well, but not the subscript:

\starttext
x³ x₃
\stoptext

Unicode sub/superscripts aren't real sub/superscripts, and there use is
discouraged. Most fonts will align those subscript glyphs to the base
line not bellow it, and apparently LM fonts don't have them.


In MKIV one could theoretically fix the (virtual) font with subscript
three containing "\sub{3}" *** or "lowered superscript 3" :)


it's also font dependent and we would en dup with fallback mess etc etc

if the font has the glyph, you can use the unicode char, bu tit is unlikely 
that there will be a mapping mechanism


What about an analog of "ucs" LaTeX package,
when Unicode math subscripts (and other symbols) in TeX file are replaced
by "\sub{3}" etc., regardless of the font used for typesetting?


Most of the support is already there (except superscripts and subscripts). 
MKII implemented this support using active characters (similar to what ucs 
does). MKIV does this using virtual fonts.



It will give WYSIWYG-like appearance of the input file on the screen
in the editor using Unicode font and will not bring the mess deep into 
ConTeXt?


Is such thing doable?
(Not making a set of mappings for presonal use, but proper package
for public consumption?)


For most glyphs the support is already there. Making sure that multiple glyphs
are combined correctly is tricier. We can have an input like $ŵ¹$ and it is not
always easy to determine if it should be translated to ${\hat w}^1$ or $\hat
{w^1}$.

Microsoft implmented something like this in newer versions of Word. See the
developer's blog for more detials.
http://blogs.msdn.com/murrays/archive/2009/05/07/entering-math-via-the-linear-format.aspx

Aditya

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Space between description entries?

2009-07-21 Thread Corsair
Hi all,

Anyone knows how to adjust white space between description entries?  I
thought it was `inbetween', but it does not work.

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgpvb841seHvO.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Michail Vidiassov

Dear Hans and All,

On Tue, 21 Jul 2009, Hans Hagen wrote:


Superscript works well, but not the subscript:

\starttext
x³ x₃
\stoptext

Unicode sub/superscripts aren't real sub/superscripts, and there use is
discouraged. Most fonts will align those subscript glyphs to the base
line not bellow it, and apparently LM fonts don't have them.


In MKIV one could theoretically fix the (virtual) font with subscript
three containing "\sub{3}" *** or "lowered superscript 3" :)


it's also font dependent and we would en dup with fallback mess etc etc

if the font has the glyph, you can use the unicode char, bu tit is 
unlikely that there will be a mapping mechanism


What about an analog of "ucs" LaTeX package,
when Unicode math subscripts (and other symbols) in TeX file are replaced
by "\sub{3}" etc., regardless of the font used for typesetting?

It will give WYSIWYG-like appearance of the input file on the screen
in the editor using Unicode font and will not bring the mess deep into 
ConTeXt?


Is such thing doable?
(Not making a set of mappings for presonal use, but proper package
for public consumption?)

   Sincerely, Michail___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] no line breaks between figures

2009-07-21 Thread Aditya Mahajan

CCed to ConTeXt mailing list.

On Tue, 21 Jul 2009, Mojca Miklavec wrote to pgf.user list:


Hello,

I noticed that a large number of
   \begin{tikzpicture} \draw (0,0) -- (5,1); \end{tikzpicture}
breaks at line end while
   \starttikzpicture \draw (0,0) -- (5,1); \stoptikzpicture
just generates an infinitely long line.

Is there any simple way to fix the behaviour in ConTeXt?


Don't know.


I also don't like the behaviour in
   \placefigure{title}{\starttikzpicture ... \stoptikzpicture}
that has to be surrounded with
   \hbox{\starttikzpicture ... \stoptikzpicture}
else the figure gets placed at the beginning of line instead of being centered.


This is what is happening. The pgf code basically boils down to this.

\starttext
\newbox\pgfpic

\setbox\pgfpic\hbox to 10pt\bgroup abc \egroup

\placefigure
  {testing box placement}
  {\leavevmode\raise-2pt\box\pgfpic}

\stoptext

Now since \placefigure internally places its contents in a \vbox, this 
boils down to a differnce beween


\hbox to \textwidth {\hss \vbox{\hbox{abc}} \hss}

\hbox to \textwidth {\hss \vbox{\leavevmode\raise-2pt \hbox{abc}} \hss}

So, the solution is to either patch \placefigure so that

\def\setlocalfloatdimensions#1%
 {...
  \global\setbox\floatbox\hbox% was \vbox
 }

or redefine \pgf...@typesetpicturebox to

\def\pgf...@typesetpicturebox#1{%
  
  \hbox{\leavevmode\raise-\...@x\box#1}%\hbox added
}


The redefinition at ConTeXt will break some existing documents (i.e., the 
authors will have to manually add a \vbox where there was none earlier). 
The redefinition at tikz end will make all pgf code run slightly slower 
(an extra hbox for each typeset pgfpicture)


If neither of these is acceptable, then we can have a simple wrapper 
around \start-stop tikzpicture:


\def\startTIKZcode{\hbox\bgroup\starttikzpicture}
\def\stopTIKZcode {\stoptikzpicture\egroup}

which will only affect ConTeXt code.

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread Mojca Miklavec
On Tue, Jul 21, 2009 at 23:22, Hans Hagen wrote:
> Mojca Miklavec wrote:
>>
>> TikZ does the following:
>>
>> \def\pgfu...@font@tiny{\tfxx}            % How to do this correctly?
>
> \small or \txx

That was just copy-pasted from TikZ source (I have not been asking
that; my diagnosis/question/suggestion was about
\let\pgfu...@font@normalfont=\rm and \let\pgfu...@selectfont=\rm that
should probably be changed to \tf) but since you have answered ...

I think that it was desired to use something even smaller. In LaTeX there is:

\tiny   5
\scriptsize 7
\footnotesize   8
\small  9
\normalsize 10

so one can choose 4 smaller sizes. In ConTeXt there is apparently (I
never had to use so tiny sizes, so I never checked the details):

  \definebodyfontenvironment
[10pt]
[\s!text=10pt,\s!script=7pt,\s!scriptscript=5pt,
 \c!x=8pt,\c!xx=6pt,\c!big=12pt,\c!small=8pt]

I suspect that the author wanted to have something even smaller than
\tfxx (or better: 4 smaller sizes instead of just the current two),
most probably that would be scriptscript, just that it needs a special
treatment. (\switchtobodyfont[scriptscript] works to get 5pt in 10pt
regime, but I'm not sure about the most efficient way.)

>> \def\pgfu...@font@scriptsize{\tfxx}
>> \def\pgfu...@font@footnotesize{\tfx}
>> \def\pgfu...@font@small{\tfx}
>> \def\pgfu...@font@normalsize{\tf}

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some problems with current

2009-07-21 Thread Hans Hagen

Peter Münster wrote:

On Mon, 20 Jul 2009, Hans Hagen wrote:


\unprotect
\def\...@bla{sec title}
\def\mysection{{\setcatcodetable\prtcatcodes\section{\...@bla}}}
\protect
\starttext
\mySection
bla bla
\stoptext

fixed, that is for the moment you need to set

catcodes=auto

or

catcodes=prtcatcodes


Hello Hans,

Where do I have to set "catcodes=auto"?


\setuphead[section][...]


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread Hans Hagen

Mojca Miklavec wrote:

On Tue, Jul 21, 2009 at 14:25, R. Bastian wrote:

Hello,

i try to use tikz:

\usemodule[tikz]
\usebodyfont   [sansserif, 10pt]
...
\starttikzpicture[]
\draw (0cm, 0cm) -- (5cm, 5cm) node {vous êtes ici};
\stoptikzpicture

the text in the figure is not 'sansserif' but cmr-like.

How can I get the same 'sansserif' than in the body ?


TikZ does the following:

\def\pgfu...@font@tiny{\tfxx}% How to do this correctly?


\small or \txx


\def\pgfu...@font@scriptsize{\tfxx}
\def\pgfu...@font@footnotesize{\tfx}
\def\pgfu...@font@small{\tfx}
\def\pgfu...@font@normalsize{\tf}
\def\pgfu...@font@large{\tfa}
\def\pgfu...@font@Large{\tfb}
\def\pgfu...@font@huge{\tfc}
\def\pgfu...@font@Huge{\tfc}
\def\pgfu...@font@itshape{\it}
\def\pgfu...@font@bfseries{\bf}
\let\pgfu...@font@normalfont=\rm
\let\pgfu...@selectfont=\rm

So it basically forces "\rm" switch at the beginning of every label.
You get even more weird results with the following (text is LM, but
math is iwona):

\usemodule[tikz]
\enableregime[utf-8]
\usetypescript[iwona][ec]
\setupbodyfont[iwona]
\starttext
\tikz \draw (0cm, 0cm) -- (5cm, 5cm) node {this is cm, but $math\in\Im νοnα$};
\stoptext

So the question is: what command should TikZ use to switch to "normal"
font? I have tried replacing \rm with \tf and then iwona started
working properly. What do others think? Should we request replacing
\rm by \tf in TikZ?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to add directory to input path?

2009-07-21 Thread Hans Hagen

Mojca Miklavec wrote:

On Tue, Jul 21, 2009 at 15:31, Wolfgang Schuster wrote:

Am 21.07.2009 um 14:28 schrieb Mojca Miklavec:


Thanks. So basically there's no way to convince \input to work
"properly" (that is: respecting some additional input path) in mkii?
(In mkiv it seems to work, but it could be that that's just because it
interacts with its own "kpathsea".)

The question is should \input kn MkIV behave like it did in MkII
or should it take subdirectories into account.


I see no serious reason speaking against that.


there is:

\input tree://whaterver/**/somefile.tex


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Hans Hagen

Mojca Miklavec wrote:

On Tue, Jul 21, 2009 at 12:27, Khaled Hosny wrote:

On Tue, Jul 21, 2009 at 11:54:02AM +0200, Peter Münster wrote:

Hello,

Is support for unicode range 0x2080-0x2089 planned?

Superscript works well, but not the subscript:

\starttext
x³ x₃
\stoptext

Unicode sub/superscripts aren't real sub/superscripts, and there use is
discouraged. Most fonts will align those subscript glyphs to the base
line not bellow it, and apparently LM fonts don't have them.


In MKIV one could theoretically fix the (virtual) font with subscript
three containing "\sub{3}" *** or "lowered superscript 3" :)

*** The problem is that you would probably loose "monospace" by doing
that, but maybe you are not using monospace at all.


it's also font dependent and we would en dup with fallback mess etc etc

if the font has the glyph, you can use the unicode char, bu tit is 
unlikely that there will be a mapping mechanism



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Hans Hagen

Matthijs Kooijman wrote:

Hi Peter & Khaled,


I think there is a way to use ConTeXt commands inside verbatim
environments, but I don't recall it.

I think this is the "option=commands" option for setuptyping & friends. AFAIK
this means you need to use /TEX /ETEX around your commands or something, but
I'm not completely sure. It seems this only works in MkII, it wasn't
implemented in MkIV a month ago at least.


indeed, if it is introduced again it will be done differently ...

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Line overflows

2009-07-21 Thread Tom
A few lines overflow a couple of characters into the right margin. How does
one solve this problem?
 
Tom Benjey
Tuxedo Press
 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread Mojca Miklavec
On Tue, Jul 21, 2009 at 14:25, R. Bastian wrote:
> Hello,
>
> i try to use tikz:
>
> \usemodule[tikz]
> \usebodyfont       [sansserif, 10pt]
> ...
> \starttikzpicture[]
> \draw (0cm, 0cm) -- (5cm, 5cm) node {vous êtes ici};
> \stoptikzpicture
>
> the text in the figure is not 'sansserif' but cmr-like.
>
> How can I get the same 'sansserif' than in the body ?

TikZ does the following:

\def\pgfu...@font@tiny{\tfxx}% How to do this correctly?
\def\pgfu...@font@scriptsize{\tfxx}
\def\pgfu...@font@footnotesize{\tfx}
\def\pgfu...@font@small{\tfx}
\def\pgfu...@font@normalsize{\tf}
\def\pgfu...@font@large{\tfa}
\def\pgfu...@font@Large{\tfb}
\def\pgfu...@font@huge{\tfc}
\def\pgfu...@font@Huge{\tfc}
\def\pgfu...@font@itshape{\it}
\def\pgfu...@font@bfseries{\bf}
\let\pgfu...@font@normalfont=\rm
\let\pgfu...@selectfont=\rm

So it basically forces "\rm" switch at the beginning of every label.
You get even more weird results with the following (text is LM, but
math is iwona):

\usemodule[tikz]
\enableregime[utf-8]
\usetypescript[iwona][ec]
\setupbodyfont[iwona]
\starttext
\tikz \draw (0cm, 0cm) -- (5cm, 5cm) node {this is cm, but $math\in\Im νοnα$};
\stoptext

So the question is: what command should TikZ use to switch to "normal"
font? I have tried replacing \rm with \tf and then iwona started
working properly. What do others think? Should we request replacing
\rm by \tf in TikZ?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [off topic] wha'ts the best bibtex entity for lecture notes

2009-07-21 Thread Xan

Not of all, Taco.
Xan.


Xan wrote:
/ 

/>/ in /usr/share/texmf/tex/context/bib/bibl-ams.tex
/
I'll fix the module tomorrow, thanks for the patch.

Best wishes,
Taco


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread Wolfgang Schuster


Am 21.07.2009 um 20:34 schrieb R. Bastian:


Wolfgang, no need for an example: \sometxt{ça ne va pas} works
(font & utf-8).


With MkIV you don't even need \sometxt.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread R. Bastian
On Tue, 21 Jul 2009 19:24:59 +0200
Mojca Miklavec  scribit:

> On Tue, Jul 21, 2009 at 18:44, R. Bastian wrote:
> >
> > In the between, I tried "metafun":
> > I agree, it is powerfull, but ...
> >
> > ... there are 2.5 problems:
> > - the font in the graphics is also cmr-like
> > - utf-8 is not understand: "ça ne va pas"
> > - TeX syntax is not understand : "\c ca ne va pas" !
> >
> > Is there a way ?
> 
> Use \sometxt{ça ne va pas} instead of btex ça ne va pas etex.

Wolfgang, no need for an example: \sometxt{ça ne va pas} works
(font & utf-8).

Merci beaucoup.

RB
> 
> Mojca
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___


-- 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [off topic] wha'ts the best bibtex entity for lecture notes

2009-07-21 Thread Taco Hoekwater

Xan wrote:


in /usr/share/texmf/tex/context/bib/bibl-ams.tex


I'll fix the module tomorrow, thanks for the patch.

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread Mojca Miklavec
On Tue, Jul 21, 2009 at 18:44, R. Bastian wrote:
>
> In the between, I tried "metafun":
> I agree, it is powerfull, but ...
>
> ... there are 2.5 problems:
> - the font in the graphics is also cmr-like
> - utf-8 is not understand: "ça ne va pas"
> - TeX syntax is not understand : "\c ca ne va pas" !
>
> Is there a way ?

Use \sometxt{ça ne va pas} instead of btex ça ne va pas etex.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread Wolfgang Schuster


Am 21.07.2009 um 18:44 schrieb R. Bastian:


On Tue, 21 Jul 2009 14:31:53 +0200
Mojca Miklavec  scribit:


I would post that to pgf mailing list. I don't think it's a ConTeXt
issue.

Mojca


In the between, I tried "metafun":
I agree, it is powerfull, but ...

... there are 2.5 problems:
- the font in the graphics is also cmr-like
- utf-8 is not understand: "ça ne va pas"
- TeX syntax is not understand : "\c ca ne va pas" !

Is there a way ?


Example, please!

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] tikz

2009-07-21 Thread R. Bastian
On Tue, 21 Jul 2009 14:31:53 +0200
Mojca Miklavec  scribit:

> I would post that to pgf mailing list. I don't think it's a ConTeXt
> issue.
> 
> Mojca
> 
In the between, I tried "metafun": 
I agree, it is powerfull, but ...

... there are 2.5 problems:
- the font in the graphics is also cmr-like
- utf-8 is not understand: "ça ne va pas"
- TeX syntax is not understand : "\c ca ne va pas" !

Is there a way ?

RB


> 
> On Tue, Jul 21, 2009 at 14:25, R. Bastian wrote:
> > Hello,
> >
> > i try to use tikz:
> >
> >
> > \usemodule[tikz]
> > \usebodyfont       [sansserif, 10pt]
> > ...
> > \starttikzpicture[]
> > \draw (0cm, 0cm) -- (5cm, 5cm) node {vous êtes ici};
> > \stoptikzpicture
> >
> > the text in the figure is not 'sansserif' but cmr-like.
> >
> > How can I get the same 'sansserif' than in the body ?
> >
> > Thanks for your help.
> > --
> > René Bastian
> >
> >
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> > archive  : https://foundry.supelec.fr/projects/contextrev/
> > wiki     : http://contextgarden.net
> > ___
> >
> 


-- 


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Aditya Mahajan

On Tue, 21 Jul 2009, Peter Münster wrote:


On Tue, 21 Jul 2009, Khaled Hosny wrote:


Unicode sub/superscripts aren't real sub/superscripts, and there use is
discouraged. Most fonts will align those subscript glyphs to the base
line not bellow it, and apparently LM fonts don't have them.


Hello,

In char-def.lua there is:

[0x2074]={
 category="no",
 cjkwd="a",
 description="SUPERSCRIPT FOUR",
 direction="en",
 linebreak="ai",
 specials={ "super", 0x0034 },
 unicodeslot=0x2074,
},
[...]
[0x2084]={
 category="no",
 cjkwd="a",
 description="SUBSCRIPT FOUR",
 direction="en",
 linebreak="ai",
 specials={ "sub", 0x0034 },
 unicodeslot=0x2084,
},

So I supposed, that the "specials" are for faking or simulating the unicode
character, for example ² -> \superscript{2} or similar.
Perhaps, my assumption is just wrong...


I am not sure whethere specials work at all. I am assuming that 
SUPERSCIRPT ONE, TWO, and THREE work because the LM font contain them at 
the right spot. These are less than hex FF. The others, for example, 
SUPERSCIRPT ZERO and SUPERSCRIPT FOUR do not work because they are not 
(AFAIU) mapped to any place in LM fonts. I don't even know if LM fonts 
have these or not. The same is true for SUBSCRIPT.


If you use a opentype font like cambria, superscripts and subscripts work. 
I guess that is because they have these symbols. If you swich to \tt with 
cambria, only sup 1,2,3 work.


So, the easiest solution will be to use a (maybe) virtual font that has 
these glyphs. Otherwise, using the active character trick is the easiest 
option.


Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to add directory to input path?

2009-07-21 Thread Mojca Miklavec
On Tue, Jul 21, 2009 at 15:31, Wolfgang Schuster wrote:
>
> Am 21.07.2009 um 14:28 schrieb Mojca Miklavec:
>
>> Thanks. So basically there's no way to convince \input to work
>> "properly" (that is: respecting some additional input path) in mkii?
>> (In mkiv it seems to work, but it could be that that's just because it
>> interacts with its own "kpathsea".)
>
> The question is should \input kn MkIV behave like it did in MkII
> or should it take subdirectories into account.

I see no serious reason speaking against that.

>> But then I have another question. I actually wanted to use that inside
>> a module (gnuplot) that uses something like
>>
>>   \processmyfile[#1][#2]{
>>       
>>       \readlocfile{#2}{}{}
>>       
>>   }
>>
>> I wish I remembered why I decided for \readlocfile (I guess it was for
>> error handling that is still waiting to be implemented). How should I
>> change the module in this particular case? (What should I use instead
>> of \readlocfile, so that the file will be found?)
>
> What behaviour do you want?
>
> I would expect when I load a file it should found in the current directory
> or the TeX tree but not in subdirectories, when you want to take
> subdirectory
> searching I would use something like
>
> \setupgnuplot[directory={,myplots/}]

Hmmm ... that's not a bad idea either.

> \def\inputgnuplotfile#1%
>  {\!!donefalse
>   \def\doinputgnuplotfile##1%
>     {\doiffileelse{##1#1}
>        {\readlocalfile{##1#1}{}{}\!!donetrue\quitcommalist}
>        {\!!donefalse}}
>   \processcommacommand[\gnuplotparameter{directory}]\doinputgnuplotfile
>   \!!ifdone\message{gnuplot}{...}\else\message{gnuplot}{file #1 not
> found}\fi}

Thank you very much. I'll build this into the module. I can actually still use
\processcommacommand[,\gnuplotparameter{directory},\allinputpaths]
with your code :) :) :)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texexec ignores file order

2009-07-21 Thread Ben Barrowes
> On Tuesday 21 July 2009 03:55:48 luigi scarso wrote:
> On Mon, Jul 20, 2009 at 7:36 PM, Ben Barrowes  wrote:
> > This bug has just resurfaced. It was working, for a while, but is now
> > back.
> >
> > I a, on a fully updated mandriva 2009 system using texlive.
> >
> > Thanks,
> > bb
> >
> > Just for curiosity:
>
> can you try with these filenames :
> yujo_insurance000.pdf
> yujo_insurance001.pdf
> yujo_insurance002.pdf
> yujo_insurance003.pdf
>
>
> yujo_insurance012.pdf
> and so on ?
>

It seems texexec is rearranging things for us. If I have three files:

pabscan001.pdf
pabscan002.pdf
pabscan010.pdf

Both of these statements produce the same output:
texexec --pdfarrange --result=pabscana.pdf pabscan001.pdf pabscan010.pdf 
pabscan002.pdf
texexec --pdfarrange --result=pabscana.pdf pabscan001.pdf pabscan002.pdf 
pabscan010.pdf 

Namely, the order is interpreted as:
TeXExec | arranging file pabscan001.pdf
TeXExec | arranging file pabscan002.pdf
TeXExec | arranging file pabscan010.pdf



Here is the full output of
texexec --pdfarrange --result=pabscana.pdf pabscan001.pdf pabscan010.pdf 
pabscan002.pdf

TeXExec | arranging file pabscan001.pdf
TeXExec | arranging file pabscan002.pdf
TeXExec | arranging file pabscan010.pdf
TeXExec | processing document 'texexec'
TeXExec | no ctx file found
TeXExec | outputfile pabscana
TeXExec | tex processing method: context
TeXExec | writing option file texexec.top
TeXExec | using randomseed 489
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.5 (Web2C 7.5.6)
 %&-line parsing enabled.
 (/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./texexec.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2008.12.9  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf-texlive/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf-texlive/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(/usr/share/texmf-texlive/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf-texlive/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/share/texmf-texlive/tex/context/user/cont-sys.rme
(/usr/share/texmf-texlive/tex/context/base/type-exa.tex)
(/usr/share/texmf-texlive/tex/context/base/type-syn.tex)
(/usr/share/texmf-texlive/tex/context/base/type-enc.tex)
(/usr/share/texmf-texlive/tex/context/base/type-siz.tex)
(/usr/share/texmf-texlive/tex/context/base/type-map.tex)
(/usr/share/texmf-texlive/tex/context/base/type-spe.tex)
(/usr/share/texmf-texlive/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials: tex,postscript,rokicki loaded
system  : texexec.top loaded
(./texexec.top
specials: loading definition file tpd
(/usr/share/texmf-texlive/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/share/texmf-texlive/tex/context/base/spec-fdf.tex
(/usr/share/texmf-texlive/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
(/usr/share/texmf-texlive/tex/context/base/sort-def.tex)
(/usr/share/texmf-texlive/tex/context/base/sort-lan.tex)
(/usr/share/texmf-texlive/tex/context/base/pdfr-def.tex)
systems : begin file texexec at line 13
{/usr/share/texmf-texlive/fonts/map/pdftex/context/original-empty.map}{/usr/sha
re/texmf-texlive/fonts/map/pdftex/context/texnansi-public-lm.map}{/usr/share/te
xmf-texlive/fonts/map/pdftex/context/original-base.map}{/usr/share/texmf-texliv
e/fonts/map/pdftex/context/ec-public-lm.map}{/usr/share/texmf-texlive/fonts/map
/pdftex/context/ec-base.map}{/usr/share/texmf-texlive/fonts/map/dvips/lm/lm-ec.
map}{/usr/share/texmf-texlive/fonts/map/pdftex/context/8r-base.map}{/usr/share/
texmf-texlive/fonts/map/pdftex/context/t5-base.map}{/usr/share/texmf-texlive/fo
nts/map/pdftex/context/original-ams-base.map}{/usr/share/texmf-texlive/fonts/ma
p/pdftex/context/original-ams-euler.map}{/usr/share/texmf-texlive/fonts/map/pdf
tex/context/original-public-lm.map}
figures : dimensions of pabscan001.pdf are determined externally
[1.1 <./pabscan001.pdf>]
figures : dimensions of pabscan002.pdf are determined externally
[2.2 <./pabscan002.pdf>]
figures : dimensions of pabscan010.pdf are determined externally
[3.3 <./pabscan01

Re: [NTG-context] How to add directory to input path?

2009-07-21 Thread Wolfgang Schuster


Am 21.07.2009 um 14:28 schrieb Mojca Miklavec:


Thanks. So basically there's no way to convince \input to work
"properly" (that is: respecting some additional input path) in mkii?
(In mkiv it seems to work, but it could be that that's just because it
interacts with its own "kpathsea".)


The question is should \input kn MkIV behave like it did in MkII
or should it take subdirectories into account.


But then I have another question. I actually wanted to use that inside
a module (gnuplot) that uses something like

   \processmyfile[#1][#2]{
   
   \readlocfile{#2}{}{}
   
   }

I wish I remembered why I decided for \readlocfile (I guess it was for
error handling that is still waiting to be implemented). How should I
change the module in this particular case? (What should I use instead
of \readlocfile, so that the file will be found?)


What behaviour do you want?

I would expect when I load a file it should found in the current  
directory
or the TeX tree but not in subdirectories, when you want to take  
subdirectory

searching I would use something like

\setupgnuplot[directory={,myplots/}]

\def\inputgnuplotfile#1%
  {\!!donefalse
   \def\doinputgnuplotfile##1%
 {\doiffileelse{##1#1}
{\readlocalfile{##1#1}{}{}\!!donetrue\quitcommalist}
{\!!donefalse}}
   \processcommacommand[\gnuplotparameter{directory}] 
\doinputgnuplotfile
   \!!ifdone\message{gnuplot}{...}\else\message{gnuplot}{file #1 not  
found}\fi}


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texexec ignores file order

2009-07-21 Thread luigi scarso
hm, not here
>From texlive 2008
#> texexec  --pdfarrange  --result=test.pdf test001.pdf test012.pdf
test002.pdf
/opt/TeXLive2008/texlive/2008/bin/i386-linux/texmfstart:1755: warning:
Insecure world writable dir /opt/luatex/minimals-beta in PATH, mode 040777
/opt/TeXLive2008/texlive/2008/texmf-dist/scripts/context/ruby/base/system.rb:16:
warning: Insecure world writable dir /opt/luatex/minimals-beta in PATH, mode
040777
TeXExec | arranging file test001.pdf
TeXExec | arranging file test012.pdf
TeXExec | arranging file test002.pdf

If I add --sort

# texexec  --pdfarrange --sort --result=test.pdf test001.pdf test012.pdf
test002.pdf
/opt/TeXLive2008/texlive/2008/bin/i386-linux/texmfstart:1755: warning:
Insecure world writable dir /opt/luatex/minimals-beta in PATH, mode 040777
/opt/TeXLive2008/texlive/2008/texmf-dist/scripts/context/ruby/base/system.rb:16:
warning: Insecure world writable dir /opt/luatex/minimals-beta in PATH, mode
040777
TeXExec | arranging file test001.pdf
TeXExec | arranging file test002.pdf
TeXExec | arranging file test012.pdf
TeXExec | processing document 'texexec

# texexec --check
/opt/TeXLive2008/texlive/2008/bin/i386-linux/texmfstart:1755: warning:
Insecure world writable dir /opt/luatex/minimals-beta in PATH, mode 040777
/opt/TeXLive2008/texlive/2008/texmf-dist/scripts/context/ruby/base/system.rb:16:
warning: Insecure world writable dir /opt/luatex/minimals-beta in PATH, mode
040777
TeXExec | current distribution: web2c
TeXExec | context source date: 2008.05.21 15:21
:
:
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.5 - 2004/2008 - PRAGMA ADE

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to add directory to input path?

2009-07-21 Thread Mojca Miklavec
On Tue, Jul 21, 2009 at 13:22, Wolfgang Schuster wrote:
>
> Am 21.07.2009 um 10:37 schrieb Mojca Miklavec:
>
>> Hello,
>>
>> I bet that I have already asked that, but I don't find or remember the
>> answer. I would like to add some folders to TeX search path. Let's say
>> that I have:
>>   main.tex
>>   sub/include1.tex
>>
>> and would like to use "\input include1.tex" inside main.tex without
>> having to specify full path, in the same way as
>> \setupexternalfigures[directory=...] can be used. I have tried
>> \usedirectory, \usepath, \usesubpath, but neither works. Well ...
>> actually \usepath works in mkiv, but not in mkii. If I use \usepath
>> then \allinputpaths gets the folder I have specified, but it doesn't
>> seem to work.
>
> \usepath[sub]
>
> \component include1

Thanks. So basically there's no way to convince \input to work
"properly" (that is: respecting some additional input path) in mkii?
(In mkiv it seems to work, but it could be that that's just because it
interacts with its own "kpathsea".)

But then I have another question. I actually wanted to use that inside
a module (gnuplot) that uses something like

\processmyfile[#1][#2]{

\readlocfile{#2}{}{}

}

I wish I remembered why I decided for \readlocfile (I guess it was for
error handling that is still waiting to be implemented). How should I
change the module in this particular case? (What should I use instead
of \readlocfile, so that the file will be found?)

Thank you,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] tikz

2009-07-21 Thread R. Bastian
Hello,

i try to use tikz:


\usemodule[tikz]
\usebodyfont   [sansserif, 10pt]
...
\starttikzpicture[]
\draw (0cm, 0cm) -- (5cm, 5cm) node {vous êtes ici};
\stoptikzpicture

the text in the figure is not 'sansserif' but cmr-like.

How can I get the same 'sansserif' than in the body ?

Thanks for your help.
-- 
René Bastian


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font of this article

2009-07-21 Thread Xan

En/na Xan ha escrit:

Hi,

Does anyone know what is the font from this article: 
http://www.tug.org/pracjourn/2006-4/fenn/ ??

I like it very much.

Xan.


\setupbodyfont [palatino,11pt]??
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [off topic] wha'ts the best bibtex entity for lecture notes

2009-07-21 Thread Xan

En/na Xan ha escrit:

Hi,

I just don't know what's the best class for lecture notes: 
@conference, @inproceeding, @misc, e.



Thanks in advance,
Xan.


Change:

\setuppublicationlayout[unpublished]{%
  \insertauthors{}{}{}%
  \inserttitle{\bgroup \it }{\egroup \insertseries{ (}{)}{}}{}%
  \insertbibtype{ (}{)}{}%
  \insertpubyear{ (unpublished,}{)}{ (unpublished)}%
  \insertpages{\unskip, }{ }{}%
  \insertNote{\unskip. }{.}{\unskip.}%
}


to

\setuppublicationlayout[unpublished]{%
  \insertauthors{}{}{}%
  \inserttitle{, \bgroup \it }{\egroup \insertseries{ (}{)}{}}{}%
  \insertbibtype{ (}{)}{}%
  \insertpubyear{ (unpublished, }{)}{ (unpublished)}%
  \insertpages{\unskip, }{ }{}%
  \insertNote{\unskip. }{.}{\unskip.}%
}

in /usr/share/texmf/tex/context/bib/bibl-ams.tex

Not of all,
Xan.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [off topic] wha'ts the best bibtex entity for lecture notes

2009-07-21 Thread Xan



On Mon, 20 Jul 2009, Xan wrote:

>/ I just don't know what's the best class for lecture notes: @conference, 
/>/ @inproceeding, @misc, e.

/
I use @unpublished for lecture notes..

Aditya
  




Thanks Aditya. Just a thing, perhaps Taco should know it.
With:

@unpublished{millerIII,
title = "Combinatorial Group Theory",
author = "Charles F. {{Miller III}}",
year = "2004"
}

it's **not** space between Author and Title with ams bib style.
Instead, if we put @misc, all it's ok.

So it seems a (little) bug. Taco, can you confirm that?

Xan

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Peter Münster
On Tue, 21 Jul 2009, Peter Münster wrote:

> I need it for something like this:
> 
> \usemodule[vim]
> \definevimtyping[C][syntax=c]
> \starttext
> \startC
> for(expr₁; expr₂; expr₃)
>   instruction
> \stopC
> \stoptext

Finally I've found a simple solution:

\usemodule[vim]
\definevimtyping[C][syntax=c]
\defineactivecharacter ₁ {\low{\tx1}}
\defineactivecharacter ₂ {\low{\tx2}}
\defineactivecharacter ₃ {\low{\tx3}}
\starttext
\startC
for(expr₁; expr₂; expr₃)
instruction
\stopC
\stoptext

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to add directory to input path?

2009-07-21 Thread Wolfgang Schuster


Am 21.07.2009 um 10:37 schrieb Mojca Miklavec:


Hello,

I bet that I have already asked that, but I don't find or remember the
answer. I would like to add some folders to TeX search path. Let's say
that I have:
   main.tex
   sub/include1.tex

and would like to use "\input include1.tex" inside main.tex without
having to specify full path, in the same way as
\setupexternalfigures[directory=...] can be used. I have tried
\usedirectory, \usepath, \usesubpath, but neither works. Well ...
actually \usepath works in mkiv, but not in mkii. If I use \usepath
then \allinputpaths gets the folder I have specified, but it doesn't
seem to work.


\usepath[sub]

\component include1

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Peter Münster
On Tue, 21 Jul 2009, Khaled Hosny wrote:

> Unicode sub/superscripts aren't real sub/superscripts, and there use is
> discouraged. Most fonts will align those subscript glyphs to the base
> line not bellow it, and apparently LM fonts don't have them.

Hello,

In char-def.lua there is:

 [0x2074]={
  category="no",
  cjkwd="a",
  description="SUPERSCRIPT FOUR",
  direction="en",
  linebreak="ai",
  specials={ "super", 0x0034 },
  unicodeslot=0x2074,
 },
[...]
 [0x2084]={
  category="no",
  cjkwd="a",
  description="SUBSCRIPT FOUR",
  direction="en",
  linebreak="ai",
  specials={ "sub", 0x0034 },
  unicodeslot=0x2084,
 },

So I supposed, that the "specials" are for faking or simulating the unicode
character, for example ² -> \superscript{2} or similar.
Perhaps, my assumption is just wrong...


> I think there is a way to use ConTeXt commands inside verbatim
> environments, but I don't recall it.

Yes, BTEX...ETEX, but not with the t-vim module.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Mojca Miklavec
On Tue, Jul 21, 2009 at 12:27, Khaled Hosny wrote:
> On Tue, Jul 21, 2009 at 11:54:02AM +0200, Peter Münster wrote:
>> Hello,
>>
>> Is support for unicode range 0x2080-0x2089 planned?
>>
>> Superscript works well, but not the subscript:
>>
>> \starttext
>> x³ x₃
>> \stoptext
>
> Unicode sub/superscripts aren't real sub/superscripts, and there use is
> discouraged. Most fonts will align those subscript glyphs to the base
> line not bellow it, and apparently LM fonts don't have them.

In MKIV one could theoretically fix the (virtual) font with subscript
three containing "\sub{3}" *** or "lowered superscript 3" :)

*** The problem is that you would probably loose "monospace" by doing
that, but maybe you are not using monospace at all.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Matthijs Kooijman
Hi Peter & Khaled,

> I think there is a way to use ConTeXt commands inside verbatim
> environments, but I don't recall it.
I think this is the "option=commands" option for setuptyping & friends. AFAIK
this means you need to use /TEX /ETEX around your commands or something, but
I'm not completely sure. It seems this only works in MkII, it wasn't
implemented in MkIV a month ago at least.

Gr.

Matthijs


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] manually hyphenate url

2009-07-21 Thread Steffen Wolfrum

Hi Hans,


very often I have to fight (manually break) with URLs like these:

\hyphenatedurl{http://www.innenministerium.bayern.de/imperia/md/content/stmi/bauen/themen/vergabe_vertragswesen/gesetze/aussetzung_tariftreueerklaerung_rs_080422.pdf 
}


\hyphenatedurl{http://www.faz.net/s/Rub0E9EEF84AC1E4A389A8DC6C23161FE44/Doc 
~E65CFA185AE41441FB3EB9E71083A9056~ATpl~Ecommon~Scontent.html}



But doing it by   \hyphenatedurl{...}\break\hyphenatedurl{...}   is  
pure horror.



Is there some improvement you can provide?

Steffen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Khaled Hosny
On Tue, Jul 21, 2009 at 11:54:02AM +0200, Peter Münster wrote:
> Hello,
> 
> Is support for unicode range 0x2080-0x2089 planned?
> 
> Superscript works well, but not the subscript:
> 
> \starttext
> x³ x₃
> \stoptext

Unicode sub/superscripts aren't real sub/superscripts, and there use is
discouraged. Most fonts will align those subscript glyphs to the base
line not bellow it, and apparently LM fonts don't have them.

I think there is a way to use ConTeXt commands inside verbatim
environments, but I don't recall it.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] support for "SUBSCRIPT THREE" etc. ?

2009-07-21 Thread Peter Münster
Hello,

Is support for unicode range 0x2080-0x2089 planned?

Superscript works well, but not the subscript:

\starttext
x³ x₃
\stoptext


I need it for something like this:

\usemodule[vim]
\definevimtyping[C][syntax=c]
\starttext
\startC
for(expr₁; expr₂; expr₃)
instruction
\stopC
\stoptext


Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to add directory to input path?

2009-07-21 Thread Mojca Miklavec
Hello,

I bet that I have already asked that, but I don't find or remember the
answer. I would like to add some folders to TeX search path. Let's say
that I have:
main.tex
sub/include1.tex

and would like to use "\input include1.tex" inside main.tex without
having to specify full path, in the same way as
\setupexternalfigures[directory=...] can be used. I have tried
\usedirectory, \usepath, \usesubpath, but neither works. Well ...
actually \usepath works in mkiv, but not in mkii. If I use \usepath
then \allinputpaths gets the folder I have specified, but it doesn't
seem to work.

Thanks,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texexec ignores file order

2009-07-21 Thread luigi scarso
On Mon, Jul 20, 2009 at 7:36 PM, Ben Barrowes  wrote:

>
> This bug has just resurfaced. It was working, for a while, but is now back.
>
> I a, on a fully updated mandriva 2009 system using texlive.
>
> Thanks,
> bb
>
> Just for curiosity:
can you try with these filenames :
yujo_insurance000.pdf
yujo_insurance001.pdf
yujo_insurance002.pdf
yujo_insurance003.pdf
:
:
yujo_insurance012.pdf
and so on ?




>
>
> - Original Message 
> > From: Ben Barrowes 
> > To: ntg-context@ntg.nl
> > Sent: Monday, December 8, 2008 4:41:10 PM
> > Subject: texexec ignores file order
> >
> > exexec --pdfarrange --result=yujo_insurance.pdf yujo_insurance1.pdf
> > yujo_insurance2.pdf yujo_insurance3.pdf yujo_insurance4.pdf
> yujo_insurance5.pdf
> > yujo_insurance6.pdf yujo_insurance7.pdf yujo_insurance8.pdf
> yujo_insurance9.pdf
> > yujo_insurance10.pdf yujo_insurance11.pdf yujo_insurance12.pdf
> >
> >
> > After upgrading recently, I found that texexec no longer preserves the
> order of
> > files passed to it. When I concatenate files with texexec, I often have
> more
> > than 10 files I want to pass to texexec names filename1.pdf,
> filename2.pdf, ...
> > filename12.pdf, etc. In the past, the following has worked to concatenate
> these
> > in the correct order:
> >
> > texexec --pdfarrange --result=filename.pdf `ls -a -v filename*.pdf`
> >
> > Now, even if I pass filename10.pdf after filename2.pdf on the command
> line,
> > texexec ingores this and puts filename10.pdf before filename2.pdf in the
> > resulting concatenated file.
> >
> > Is there a fix for this, or is there a better way to concatenate pdf
> files?
> >
> > bb
>
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>



-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font of this article

2009-07-21 Thread R. Bastian
On Tue, 21 Jul 2009 00:15:33 +0200
Xan  scribit:

palatino ?

> 2006

-- 

rb


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] some problems with current

2009-07-21 Thread Peter Münster
On Mon, 20 Jul 2009, Hans Hagen wrote:

> > \unprotect
> > \def\...@bla{sec title}
> > \def\mysection{{\setcatcodetable\prtcatcodes\section{\...@bla}}}
> > \protect
> > \starttext
> > \mySection
> > bla bla
> > \stoptext
> 
> fixed, that is for the moment you need to set
> 
> catcodes=auto
> 
> or
> 
> catcodes=prtcatcodes

Hello Hans,

Where do I have to set "catcodes=auto"?


Thank you for all the fixes, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___