[NTG-context] warning: XeTeX broken typescripts (please wait with upgrading)
Hello, While waiting for the train in Köln (just back from one of the best ConTeXt meetings ever ;), I decided to post this warning/explanation to the mailing list (before Hans gets back and blocks my account ;) For those who rely on (complex) XeTeX typescripts, please don't upgrade ConTeXt as long as you have a working version (if not, you can download and extract an older zip from https://foundry.supelec.fr/frs/?group_id=14). Hans is currently working on a high-level user interface for typescripts in luatex, and the old behaviour has been slightly broken, mostly due to the fact that if one wants to support fonts that are not installed, the bracket notation has to be used, which doesn't fit well into the model (one would need to specify fonts in constructs such as [{{'[fontname]'}}]). Without rewriting some basic routins, the font definition would look really strange that way. Currently the format builds OK (it was completely broken for some time, but now you can at least work with it again), you can still select fonts with constructs like \font\a='TestFont/BI:mapping=tex-text' \a and you can also define synonyms like (I hope that I got it right this time) \definefontsynonym[MyFont][name:RealFontName][encoding=uc] % encoding will go (has gone?) away but typescripts don't really work the way that worked once. XeTeX typescripts have been relatively primitive so far: the syntax like \definefontsynonym [DidotItalic] ['Didot/I:mapping=tex-text:+dliga'] [encoding=uc] is not the best possible ansd will most probably not be supported any more. Instead, one would probably write something similar to \definefontsynonym [DidotItalic] [name:Didot] [features=dliga] % mapping=tex-text might be default but that's not the final word about it yet. Sadly Adam Lindsay (who created the whole machinery) doesn't have much time to work with ConTeXt, and I'm not really a TeXacker (if anyone else is willing to help, any help would be more than wellcome). I don't want to force too much the fix (it's better to have it implemented properly and to wait some more), although I hope that it won't take too much time to have it finished. I was silently hoping that Hans will finish the luatex OpenType support before the whole machinery could be backported to XeTeX, but sadly it was (unintentionally) broken before a good replacement could be provided. I would like to ask the ConTeXt-XeTeX users for understanding. I cross-posted that message, but in case that you would need to reply for some reason, please do so on the ConTeXt mailing list, not on the XeTeX one, since XeTeX itself has really nothing to do with the subject (apart from the slightly unfortunate syntax for selecting uninstalled OpenType font). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] background example
Hi, just if you are interested in a very old example on using backgrounds: http://dl.contextgarden.net/examples/page.pdf http://dl.contextgarden.net/examples/page.tex Please tell me if I'm using old syntax, so I can update the example. Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] capitals in heads
I hope (I am sure) the meeting was a success. And I hope that you are still willing to answer a simple question: How can I get capitals in a head? The following didn't work: \setuphead[subsection][style=cap] %aborts compilation. (But slanted works) I also unsuccessfully tried style=\cap (or \kap etc.), command= \cap etc. (But style=\sc works. I don't want small caps, though). I also tried concocting my own \def, again without success. Thanks for your help, Jörg ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] capitals in heads
\setuphead[subsection][style=cap] %aborts compilation. (But slanted works) I also unsuccessfully tried style=\cap (or \kap etc.), command= \cap etc. (But style=\sc works. I don't want small caps, though). Did you try \WORD{} ? see http://wiki.contextgarden.net/Basic_Text_Formatting AFAIK \cap and \kap are LaTeX... Greetlings, Hraban ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] capitals in heads
Thanks Hraban. Yes I did, it has no effect. Jörg On Mar 26, 2007, at 3:16 PM, Henning Hraban Ramm wrote: \setuphead[subsection][style=cap] %aborts compilation. (But slanted works) I also unsuccessfully tried style=\cap (or \kap etc.), command= \cap etc. (But style=\sc works. I don't want small caps, though). Did you try \WORD{} ? see http://wiki.contextgarden.net/Basic_Text_Formatting AFAIK \cap and \kap are LaTeX... Greetlings, Hraban ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] capitals in heads
On Mar 26, 2007, at 3:26 PM, Jörg Hagmann wrote: Thanks Hraban. Yes I did, it has no effect. Jörg \setuphead [section] [style=normal, deeptextcommand=\WORD] works for me. Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] capitals in heads
2007/3/26, Thomas A. Schmitz [EMAIL PROTECTED]: \setuphead [section] [style=normal, deeptextcommand=\WORD] works for me. I didn't know deeptextcommand myself, but it's explained at http://wiki.contextgarden.net/Titles#Formatting_Titles_with_.5Csetuphead Greetlings, Hraban ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] capitals in heads
Thanks, works here too. Jörg On Mar 26, 2007, at 4:16 PM, Henning Hraban Ramm wrote: \setuphead [section] [style=normal, deeptextcommand=\WORD] works for me. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] gray scale conversion of colored text
Hi, I currently have a problem with the conversion of some mp graphics into gray scale. The mp graphics themself look great, but *text is always converted to black*, regardless of its real color. Is there a way to fix this? Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] gray scale conversion of colored text
Peter Rolf wrote: Hi, I currently have a problem with the conversion of some mp graphics into gray scale. The mp graphics themself look great, but *text is always converted to black*, regardless of its real color. Is there a way to fix this? Sorry, I made a mistake. The text that is used inside MP has the correct gray value. Only the ConTeXt part always uses black as textcolor. So my problem is, that want to use colored text in a non colored document. Something like \setupcolors[conversion=always] \starttext \setbox\scratchbox\hbox{An example text.}% \bgroup\graycolor[cyan]\copy\scratchbox\egroup \startcolor[green]\copy\scratchbox\stopcolor \box\scratchbox \stoptext This always gives me black text, as color is not activated. How do I get the correct gray scale values for the text? Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] page numbering in words?
is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? Hi ???, I don't think there is something like this in ConTeXt. You can try to make somthing by yourself and start with the zahl2string [1] package for LaTeX and adapt it to ConTeXt. This should be not such a big problem, you need only to replace the \newcommand defintions with \def and replace the german texts with english ones or whatever language you like. [1] http://ctan.org/tex-archive/macros/latex/contrib/sauerj/ Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? I converted the macro to the plain TeX format. The only thing you need to do now is to change the german text you own. Wolfgang [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@@Numstring\expandafter{\number#1}} \def\@@Numstring#1% [EMAIL PROTECTED]@numstring{#1}}% [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@@Ordstring\expandafter{\number#1}} \def\@@Ordstring#1% [EMAIL PROTECTED]@ordstring{#1}}% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] {\ifnum\number#1[EMAIL PROTECTED] #3% \else\ifnum\number#110 % [EMAIL PROTECTED] \else% [EMAIL PROTECTED] \fi\fi} [EMAIL PROTECTED] \expandafter\ns@@numstring% \ifcase% \ifnum#110 1% \else\ifnum#1100 2% \else\ifnum#1[EMAIL PROTECTED] 3% \else\ifnum#1[EMAIL PROTECTED] 4% \else\ifnum#110 5% \else\ifnum#1100 6% \else\ifnum#11000 7% \else\ifnum#11 8% \else9% \fi\fi\fi\fi\fi\fi\fi\fi % \or#1% case 1: Add 8 leading zeros \or000#1% case 2: Add 7 leading zeros \or00#1% case 3: Add 6 leading zeros \or0#1%case 4: Add 5 leading zeros \or#1% case 5: Add 4 leading zeros \or000#1% case 6: Add 3 leading zeros \or00#1% case 7: Add 2 leading zeros \or0#1%case 8: Add 1 leading zero \or#1% case 9: Add no leading zeros \or% [EMAIL PROTECTED] \fi} \def\ns@@[EMAIL PROTECTED] {\ifnum#1#2#3\z@ [EMAIL PROTECTED] \ifnum#4#5#6[EMAIL PROTECTED] \fi% \ifnum#4#5#6[EMAIL PROTECTED] [EMAIL PROTECTED]@neunzehn% \ifnum#4#5#6[EMAIL PROTECTED] tau\-send% \ifnum#7[EMAIL PROTECTED] \fi% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@neunzehne% \space% Mil\-lion% \else% [EMAIL PROTECTED]@neunzehns% \space% Mil\-lio\-nen% \fi} [EMAIL PROTECTED] {\ifnum#1[EMAIL PROTECTED] \ifnum#4#1[EMAIL PROTECTED]@neunzehn#1\-\fi% hun\-dert% \ifnum#2#3[EMAIL PROTECTED] \fi% \ifnum#2#320 % \ifnum#5#2#3[EMAIL PROTECTED] \else% \ifnum#3[EMAIL PROTECTED]@neunzehn#3\-und\-\fi% [EMAIL PROTECTED] #60% \fi} [EMAIL PROTECTED] {\ifcase#1\empty\or ein\or zwei\or drei\or vier\or f\unf\or sechs\or% sie\-ben\or acht\or neun\or zehn\or elf\or zw\olf\or drei\-zehn\or% vier\-zehn\or f\unf\-zehn\or sech\-zehn\or sieb\-zehn\or% acht\-zehn\or neun\-zehn\fi} [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] {\ifcase#1\-ste% \or er\-ste% \or zwei\-te% \or drit\-te% \or vier\-te% \or f\unf\-te% \or sech\-ste% \or sieb\-te% \or ach\-te% \or neun\-te% \or zehn\-te% \or elf\-te% \or zw\olf\-te% \or drei\-zehn\-te% \or vier\-zehn\-te% \or f\unf\-zehn\-te% \or sech\-zehn\-te% \or sieb\-zehn\-te% \or acht\-zehn\-te% \or neun\-zehn\-te% \fi} [EMAIL PROTECTED] {\ifcase#1 \or \or zwan\-zig% \or drei\ss ig% \or vier\-zig% \or f\unf\-zig% \or sech\-zig% \or sieb\-zig% \or acht\-zig% \or neun\-zig% \fi} [EMAIL PROTECTED] \endinput \input zahl2string \long\def\zahlexamples#1 {0 $\Longrightarrow$ #1{0}\endgraf 7 $\Longrightarrow$ #1{7}\endgraf 13 $\Longrightarrow$ #1{13}\endgraf 23 $\Longrightarrow$ #1{23}\endgraf 42 $\Longrightarrow$ #1{42}\endgraf 99 $\Longrightarrow$ #1{99}\endgraf 127 $\Longrightarrow$ #1{127}\endgraf 999 $\Longrightarrow$ #1{999}\endgraf 1000 $\Longrightarrow$ #1{1000}\endgraf 1001 $\Longrightarrow$ #1{1001}\endgraf 2004 $\Longrightarrow$ #1{2004}\endgraf 2017 $\Longrightarrow$ #1{2017}\endgraf 2029 $\Longrightarrow$ #1{2029}\endgraf $\Longrightarrow$ #1{}\endgraf 1 $\Longrightarrow$ #1{1}\endgraf 101101 $\Longrightarrow$ #1{101101}\endgraf 99 $\Longrightarrow$ #1{99}\endgraf 100 $\Longrightarrow$ #1{100}\endgraf 1234567 $\Longrightarrow$ #1{1234567}\endgraf 123456789 $\Longrightarrow$ #1{123456789}\endgraf 101101101 $\Longrightarrow$ #1{101101101}\endgraf 9 $\Longrightarrow$ #1{9}} \zahlexamples{\numstr} \zahlexamples{\ordstr} \bye ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On 2007-03-26, at 19:16.0, Wolfgang Schuster wrote: On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? I don't think there is something like this in ConTeXt. You can try to make somthing by yourself and start with the zahl2string [1] package for LaTeX and adapt it to ConTeXt. This should be not such a big problem, you need only to replace the \newcommand defintions with \def and replace the german texts with english ones or whatever language you like. Thanks - it does look quite complicated! But this is a good start... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Long heading alignment
On Sun, 25 Mar 2007 21:36:12 +0200 Paul Schalck [EMAIL PROTECTED] wrote: Hello! First, I want to thank you all. It's my first post here, but I've read many of your emails before, and I've already found a lot of solutions for my problems in there. I'm using Context intensely since several months (before, I was Latex) and at the moment, I'm setting my first big document (400 pages, very boring) with it. My issue: I have a little problem with headings I can't solve by my own. It's rather simple: I would like to align headings that span across multiple lines on the left margin, like this: a) This is (not really) a very, very, very lng title and not that way: a) This is (not really) a very, very, very lng title The use of (\setuphead[section][command=\MySectionCommand] disables the standard alignment mechanism. I wonder if there is a simpler way to achieve this. Any ideas? Thank you very much! Scheeni Grieß (it's Alsatian German) Paul Hi Paul, the solution to you problem is very simple: \def\MySectionCommand#1#2% {\vbox {\hsize\textwidth #1 #2}} \setuphead [section] [command=\MySectionCommand] \starttext \section{\dorecurse{100}{foo }} \stoptext To learn more about this you can read the german book Einführung in TeX: http://www.ruhr-uni-bochum.de/www-rz/schwanbs/TeX/ Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] page numbering in words?
On 2007-03-26, at 19:40.0, Wolfgang Schuster wrote: On Mon, 26 Mar 2007 17:39:38 +0100 [EMAIL PROTECTED] wrote: is it possible to adjust options so as to get page numbering done in words? Eg one two . eighty-nine ... three hundred and sixty seven ? Or does this require some more work/code? I converted the macro to the plain TeX format. The only thing you need to do now is to change the german text you own. thanks - looks like it's do-able, perhaps! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] anaemic spacing around in-line typed text
The following look ugly because of anaemic spacing before and after typed text. \starttext The {\tt rand} function generates pseudo-random numbers. \stoptext How to fix it? Best, Vyatcheslav___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context