Re: [NTG-context] How to use MPgraphic with options?

2009-04-09 Thread Mikael Persson
I think this is one way: \startuseMPgraphic{ARule} draw origin -- (\MPvar{mylength},0) ; \stopuseMPgraphic \def\ARule#1{% \setupMPvariables[ARule][mylength=#1] \useMPgraphic{ARule} } \starttext Foo \ARule{5mm} bar \ARule{10mm} \stoptext Best regards, Mikael On Thu, Apr 9, 2009 at 8:07 AM,

Re: [NTG-context] hyphenation in latest

2009-04-09 Thread Thomas A. Schmitz
On Apr 9, 2009, at 12:00 AM, Hans Hagen wrote: maybe somethign with the greek patterns then? \starttext \definedfont[cambria] \language[agr] % try different ones \the\normallanguage \input tufte \stoptext I have looked at the Greek patterns, and there's nothing wrong with them; I also

Re: [NTG-context] hyphenation in latest

2009-04-09 Thread Vyatcheslav Yatskovsky
I can. Please, explain what have to be tested in Russian and Ukrainian, and what result are expected? Vyatcheslav maybe somethign with the greek patterns then? \starttext \definedfont[cambria] \language[agr] % try different ones \the\normallanguage \input tufte \stoptext

Re: [NTG-context] hyphenation in latest

2009-04-09 Thread Thomas A. Schmitz
On Apr 9, 2009, at 8:35 AM, Vyatcheslav Yatskovsky wrote: I can. Please, explain what have to be tested in Russian and Ukrainian, and what result are expected? Vyatcheslav Great. Just run a simple test file like this \usetypescriptfile[type-gentium] % or any other typescript that has

[NTG-context] Weird interline spacing

2009-04-09 Thread Khaled Hosny
In the attached file, loading the font with \setupbodyfont gives narrower interline spacing than with font (you have to comment out the \setupbodyfont line to see this), I'm not sure if this is normal, but the first case gives different interline spaces from line to line. I tested it with two

Re: [NTG-context] setup/startnarrower question

2009-04-09 Thread Wolfgang Schuster
Am 08.04.2009 um 16:52 schrieb frantisek holop: hi there, what would be the equivalent of the following \startnarrower[2*left,0*right] \stopnarrower using \setupnarrower ? not possible my problem is that \setupnarrower takes dimensions, while \startnarrower takes... i am not sure what

Re: [NTG-context] new beta

2009-04-09 Thread Ulrike Fischer
Am Wed, 08 Apr 2009 21:43:01 +0200 schrieb Hans Hagen: It works partly: After I called luatools --generate mtxrun now finds also fonts in my various texmf-trees (and not only the one in the system folder), but mtxrun works only if I move first font-syn.lua in the folder of mtxrun. But this

Re: [NTG-context] How to use MPgraphic with options?

2009-04-09 Thread Wei-Wei Guo
Thanks! Best wishes, Wei-Wei Mikael Persson 写道: I think this is one way: \startuseMPgraphic{ARule} draw origin -- (\MPvar{mylength},0) ; \stopuseMPgraphic \def\ARule#1{% \setupMPvariables[ARule][mylength=#1] \useMPgraphic{ARule} } \starttext Foo \ARule{5mm} bar \ARule{10mm} \stoptext Best

Re: [NTG-context] hyphenation in latest

2009-04-09 Thread Hans Hagen
Thomas A. Schmitz wrote: On Apr 9, 2009, at 12:00 AM, Hans Hagen wrote: maybe somethign with the greek patterns then? \starttext \definedfont[cambria] \language[agr] % try different ones \the\normallanguage \input tufte \stoptext I have looked at the Greek patterns, and there's nothing

Re: [NTG-context] Weird interline spacing

2009-04-09 Thread Hans Hagen
Khaled Hosny wrote: In the attached file, loading the font with \setupbodyfont gives narrower interline spacing than with font (you have to comment out the \setupbodyfont line to see this), I'm not sure if this is normal, but the first case gives different interline spaces from line to line. I

Re: [NTG-context] hyphenation in latest

2009-04-09 Thread Thomas A. Schmitz
On Apr 9, 2009, at 12:18 PM, Thomas A. Schmitz wrote: On Apr 9, 2009, at 12:11 PM, Hans Hagen wrote: weird, as the catcodes look ok Hmm, I'll do some more tests later; I'll be offline until Sunday night. But it doesn't work in mkii either, so the bug probably is with the pattern

Re: [NTG-context] new beta

2009-04-09 Thread Hans Hagen
Ulrike Fischer wrote: Am Wed, 08 Apr 2009 21:43:01 +0200 schrieb Hans Hagen: It works partly: After I called luatools --generate mtxrun now finds also fonts in my various texmf-trees (and not only the one in the system folder), but mtxrun works only if I move first font-syn.lua in the folder

Re: [NTG-context] Weird interline spacing

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 13:00 schrieb Khaled Hosny: On Thu, Apr 09, 2009 at 12:14:28PM +0200, Hans Hagen wrote: Khaled Hosny wrote: In the attached file, loading the font with \setupbodyfont gives narrower interline spacing than with font (you have to comment out the \setupbodyfont line to see

[NTG-context] core-gen.tex

2009-04-09 Thread Wolfgang Schuster
Hi Hans, there is a type in core-gen.tex \setvalu...@av@\v!middle}{\secondofthreearguments} ^^ medium Wolfgang ___ If your question is of interest to others as well, please

Re: [NTG-context] hyphenation in latest

2009-04-09 Thread Thomas A. Schmitz
On Apr 9, 2009, at 12:11 PM, Hans Hagen wrote: weird, as the catcodes look ok Hmm, I'll do some more tests later; I'll be offline until Sunday night. But it doesn't work in mkii either, so the bug probably is with the pattern file. Thomas

[NTG-context] colored backgrounds in displayed math

2009-04-09 Thread Sanjoy Mahajan
In displayed math I was trying to highlight a piece of a formula using a gray background. After a few spacing failures with \framed, I discovered \mframed in the core-rul.tex source file. The comments there say: %D As usual, one can specify in what way the text should be %D framed. One should

Re: [NTG-context] core-gen.tex

2009-04-09 Thread Hans Hagen
Wolfgang Schuster wrote: Hi Hans, there is a type in core-gen.tex \setvalu...@av@\v!middle}{\secondofthreearguments} ^^ medium ok ... more efficient too ... \letvalu...@av@\v!big }\thirdofthreearguments

Re: [NTG-context] hyphenation in latest

2009-04-09 Thread Hans Hagen
Thomas A. Schmitz wrote: On Apr 9, 2009, at 12:18 PM, Thomas A. Schmitz wrote: On Apr 9, 2009, at 12:11 PM, Hans Hagen wrote: weird, as the catcodes look ok Hmm, I'll do some more tests later; I'll be offline until Sunday night. But it doesn't work in mkii either, so the bug probably

Re: [NTG-context] new beta

2009-04-09 Thread Ulrike Fischer
Am Thu, 09 Apr 2009 11:36:58 +0200 schrieb Hans Hagen: It works partly: After I called luatools --generate mtxrun now finds also fonts in my various texmf-trees (and not only the one in the system folder), but mtxrun works only if I move first font-syn.lua in the folder of mtxrun. But this

Re: [NTG-context] hyphenation

2009-04-09 Thread Vyatcheslav Yatskovsky
Hello Thomas and everybody, I've checked hyph patterns for Russian and languages provided by you. I discovered that nothing has changed for last month -- the result is exactly the same for luatex 0.35 and 0.37, as well as respective ConTeXt builds. Two demo images are attached. Vyatcheslav

Re: [NTG-context] new beta

2009-04-09 Thread Vyatcheslav Yatskovsky
Hello Ulrike, If you use Windows, try the GUI installer. It sets all needed env vars globally, and always works like a charm :) http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe (But beware, it may interfere with MikTeX registry settings). Vyatcheslav

[NTG-context] t-vim failed under windows

2009-04-09 Thread Andy Wong
Hello, I have tried the example using the vim mode to typeset some c codes. When I run the sample file, context stop with errors. the sample file and log file as list below. I use the windowsXP with the minimal context from ConTeXt garden and \write18 is enabled. From the log file, it seems the

[NTG-context] pdfsplit

2009-04-09 Thread Wolfgang Schuster
Hi Hans, the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename. Wolfgang

Re: [NTG-context] new beta

2009-04-09 Thread Hans Hagen
Ulrike Fischer wrote: Am Thu, 09 Apr 2009 11:36:58 +0200 schrieb Hans Hagen: It works partly: After I called luatools --generate mtxrun now finds also fonts in my various texmf-trees (and not only the one in the system folder), but mtxrun works only if I move first font-syn.lua in the folder

[NTG-context] Paragraphs in Layers

2009-04-09 Thread Design Department
Why does the following produce a single line when the layer content produces four lines in normal flow? How are paragraphs and new lines produced in layers? I've tried \par, \endgraf, \crlf and \\ without success. \definelayer[TicketSummary] [x=\backspace, y=\topspace width=4in,

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 21:40 schrieb Design Department: Why does the following produce a single line when the layer content produces four lines in normal flow? How are paragraphs and new lines produced in layers? Use \setlayerframed. Wolfgang

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Design Department
Just tried the following snippet on the live.contextgarden.net with no joy: The layer content appears on a single line, whether I use \par, \\, \endgraf, \crlf or no line ending at all. \definelayer[TicketSummary] [x=\backspace, y=\topspace width=4in, height=4in, repeat=no]

Re: [NTG-context] \rightarrow missing?

2009-04-09 Thread Alan BRASLAU
Indeed, it seems to be broken in mkiv \rightarrow \to \leftarrow ... However, \leftrightarrow works. So, currently, it is hard to typeset limits under mkiv! Alan On Tuesday 31 March 2009 09:14:16 Hans Hagen wrote: Aditya Mahajan wrote: On Mon, 30 Mar 2009, Jesse Alama wrote: It seems

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 22:14 schrieb Design Department: Just tried the following snippet on the live.contextgarden.net with no joy: The layer content appears on a single line, whether I use \par, \\, \endgraf, \crlf or no line ending at all. To help you I will explain why your setup did not

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Willi Egger
I do not know what you precisely want to achieve. You need to give dimensions to the framed part of the \setlayerframed. Position the layer with the layer definition. Preset the layer to lefttop and move it with the x and y keys. \definelayer[TicketSummary] [x=\backspace, y=2\topspace,

Re: [NTG-context] colored backgrounds in displayed math

2009-04-09 Thread Wolfgang Schuster
Hi Sanjoy, welcome back In displayed math I was trying to highlight a piece of a formula using a gray background. After a few spacing failures with \framed, I discovered \mframed in the core-rul.tex source file. The comments there say: Use backgroundoffset, not frameoffset. Wolfgang

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Design Department
Thks. I was incorrectly assuming that the dimension properties, especially width, should be set in \definelayer. I'm not clear on the purpose of a separate \definelayer command, unless it's to allow the abstraction of layer offsets from topspace and backspace value, the way I have in this example.

Re: [NTG-context] t-vim failed under windows

2009-04-09 Thread Aditya Mahajan
On Thu, 9 Apr 2009, Andy Wong wrote: Hello, I have tried the example using the vim mode to typeset some c codes. When I run the sample file, context stop with errors. the sample file and log file as list below. I use the windowsXP with the minimal context from ConTeXt garden and \write18 is

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 22:54 schrieb Design Department: Thks. I was incorrectly assuming that the dimension properties, especially width, should be set in \definelayer. I'm not clear on the purpose of a separate \definelayer command, unless it's to allow the abstraction of layer offsets from

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread luigi scarso
I have modify this sample \newdimen\currentlayerheight \newdimen\currentlayerwidth \newbox\Content \definelayer[TicketSummary] [x=\backspace, y=\topspace, width=4in, height=4in, repeat=no] \setlayer[TicketSummary][hoffset=.5\backspace, voffset=2.5in]{% \unprotect%

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 09.04.2009 um 23:44 schrieb luigi scarso: \unprotect% \currentlayerheight=\dimexpr\csname @@llTicketSummaryheight\endcsname \relax% \currentlayerwidth=\dimexpr\csname @@llTicketSummarywidth\endcsname \relax% \protect% why unprotect/protect and why so many '%'?

Re: [NTG-context] \rightarrow missing?

2009-04-09 Thread Aditya Mahajan
On Thu, 9 Apr 2009, Alan BRASLAU wrote: Indeed, it seems to be broken in mkiv \rightarrow \to \leftarrow Hans, this has to do with the arrow function in math-vfu. Do you know why this is failing? Aditya ___ If

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread luigi scarso
On Fri, Apr 10, 2009 at 12:04 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 09.04.2009 um 23:44 schrieb luigi scarso: \unprotect% \currentlayerheight=\dimexpr\csname @@llTicketSummaryheight\endcsname\relax% \currentlayerwidth=\dimexpr\csname

Re: [NTG-context] Paragraphs in Layers

2009-04-09 Thread Wolfgang Schuster
Am 10.04.2009 um 00:53 schrieb luigi scarso: and why so many '%'? prevent spurios spaces after \relax? \newdimen checks for the existence of a control sequence the point is that on minimals-beta there is an error, on minimals no , but xpdf says Error: ExtGState 'Tr0' is unknown Error:

Re: [NTG-context] t-vim failed under windows

2009-04-09 Thread Andy Wong
The same problem. It seems the \shellescapedquote generated to the wrong position. So vim complains the -c parameters is wrong. Andy. On Thu, Apr 9, 2009 at 4:22 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 9 Apr 2009, Andy Wong wrote: Hello, I have tried the example using the vim

[NTG-context] language mix

2009-04-09 Thread Vyatcheslav Yatskovsky
Hello, What about adding hyph-uk to the distribution? ;) Next, how to mix two languages in a document? For example, I typeset in Russian, by occasionally use English words (or even sentences). How to make them both being hyphenated? \language[ru,en] seems to be not supported. Bets,

Re: [NTG-context] \rightarrow missing?

2009-04-09 Thread Jesse Alama
I switched from MkIV to MkII today because of this gap in MkIV's math: I need to submit a dissertation that has \rightarrow's in it. Let's hope that this issue is resolved soon. Jesse Alan BRASLAU alan.bras...@cea.fr writes: Indeed, it seems to be broken in mkiv \rightarrow \to \leftarrow

Re: [NTG-context] xetex and attachment: troubles

2009-04-09 Thread Jesse Alama
Any progress on this? As of 2009-04-09, attachments with xetex still behave as Andrea described on 2008-03-31. (I'm using the xetex in the minimals.) Jesse Andrea Valle va...@di.unito.it writes: Thanks Mojca, Hans, ok, I've understood. :) -a- On 3 Apr 2008, at 12:17, Hans Hagen

Re: [NTG-context] t-vim failed under windows

2009-04-09 Thread Aditya Mahajan
On Thu, 9 Apr 2009, Andy Wong wrote: The same problem. It seems the \shellescapedquote generated to the wrong position. So vim complains the -c parameters is wrong. Does mtxrun --verbose --noquotes bin:vim -u NONE work correctly on windows? What about if you run texexec --lua instead of

Re: [NTG-context] language mix

2009-04-09 Thread Wolfgang Schuster
Am 10.04.2009 um 02:29 schrieb Vyatcheslav Yatskovsky: Hello, What about adding hyph-uk to the distribution? ;) It'S there but the pattern name is hyph-gb, see lang-ger.tex Next, how to mix two languages in a document? For example, I typeset in Russian, by occasionally use English words