Re: [NTG-context] \indenting[next] and math => no vertical space before the formula
On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > On Mon, 28 Apr 2008, Mikael Persson wrote: > > > Hello again, > > > > * snip * > >> > >> I could reproduce the result and have also a fix but I don't know what > >> the correct > >> reults should be and other people like Aditya should decide if it makes > sense > >> to change the current behaviour. > >> > >> \def\startdisplaymath > >> {\ifgridsnapping > >> \beforedisplayspace > >> \snapmathtogrid\vbox > > * snip * > >> Wolfgang > > > > This fix seems not to solve the problem entirely. With this fix > > applied, If one now put a formula inside an enumeration one gets > > "double" space before the formula. This is a test file that shows the > > problem: > > This is basically because in enumerations indenting is set to never. > > You can see the same affect with > > \setupindenting[no] > \testtext > > One possible fix is to add > > indenting=(reset|next|first) %default is never > > to the \setupenumeration command. For example > > > > \defineenumeration[example] > >[text=Example, > >location=serried, > >width=fit, > indenting=reset, %%<<< Add This > > >distance=0.5em, > > way=bysection, > >] > > Another is to change \startdisplaymath to > > > \def\startdisplaymath >{\ifgridsnapping > \beforedisplayspace > \snapmathtogrid\vbox > > \bgroup > \informulatrue > %\forgetall % breaks side floats > \else > \bgroup > \parskip\formulaparskip % ! ! > \informulatrue > %\forgetall % otherwise backgrounds fail > \ifdim\lastskip<\zeropoint\else > \par > \ifvmode \ifdim\parskip>\zeropoint\relax > \whitespace \vskip-\parskip % kind of forces and cancels again > \fi \fi > \fi > \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently > only option/default > \beforedisplayspace > \par > \ifvmode \ifdim\parskip>\zeropoint\relax \else > >\ifindentfirstparagraph > \verticalstrut > \vskip-\struttotal > \vskip-\baselineskip > \fi\fi > \fi > \fi > $$\setdisplaydimensions > \setpredisplaysize\lastlinewidth > \startinnermath} > > But this is getting ugly. > > Aditya > Thank you Aditya, but I don't get that to work. Both with ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: english/english (with the fix earlier in this thread) and ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: english/english (which is the one from new ubuntu, without the fix) this fails with the following error msg: %% Start error msg ! Illegal unit of measure (pt inserted). \chardef \@@in:reset ...rue \parindent \zerocount \chardef \indentingtoggle \zerocount \next1 #1,->\docomplexsetupindentingB {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ...ndenting ]\docomplexsetupindentingB \checkeverypar \ifindentfi... \firstofoneargument #1->#1 ... l.29 \testexpr % Too much space before the formula if the fix is applied, ? %% Stop error msg The file that gives that error is: %% Begin file \setupindenting[yes,small] \indenting[next] \def\testtext{This is just some text so we see better what happens.} \def\testexpr{% \par \testtext \startformula f(x)= \sin(x) \stopformula \testtext \par } \defineenumeration[example] [text=Example, location=serried, width=fit, indenting=reset, distance=0.5em, way=bysection, ] \starttext \testexpr % OK if fix is applied, otherwise to little space before the formula \startexample \testexpr % Too much space before the formula if the fix is applied, otherwise OK. \stopexample \stoptext %% End file Best regards, Micke P ___ 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] \indenting[next] and math => no vertical space before the formula
> Thank you Aditya, but I don't get that to work. Both with > > ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: > english/english (with the fix earlier in this thread) > and > ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: > english/english (which is the one from new ubuntu, without the fix) Update your ConTeXt istallation, both systems use old versions. 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] \indenting[next] and math => no vertical space before the formula
On Wed, Apr 30, 2008 at 9:33 AM, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: > > Thank you Aditya, but I don't get that to work. Both with > > > > ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: > > english/english (with the fix earlier in this thread) > > and > > ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: > > english/english (which is the one from new ubuntu, without the fix) > > Update your ConTeXt istallation, both systems use old versions. > > Wolfgang I wish I could. I cant even run the new version from ubuntu, since there is some problem with the fourier fonts, explained in an earlier mail in this thread (and also in an earlier post: http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html ) And new minimals seem not to include the fourier fonts. If I set indenting=next (or first) in the enumeration, the file compiles... Sorry for "complaining" about old versions of ConTeXt. I am finishing my PhD thesis, and have not found any nice combinations of text and math fonts in the new minimals. (I am not too fond of the lm fonts). If you have a tip about such fonts, please tell me :) Micke P ___ 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] two small questions about the mkiv roadmap
Hi all, esp. Hans and Taco, just two simple questions about some minor imperfections in mkiv/ luatex. I'm not impatient, just wondering if these are things that you're working on right now or if they will have to wait: 1. processing xml files with a DTD. This is something we discussed a couple of weeks ago: when I process a valid xml file which begins with a DTD, the output I get in mkiv is "invalid xml file"; the same file processes fine when I remove the DTD. Back then (on 08-03-17), Taco wrote: "It is a bug in luatex, but not an easy one to fix." So I'm wondering if there's any progress on this one, or if it has to wait. 2. error reports in luatex. This is something that comes up time and again on the mailing list and which I experienced myself yesterday. I had inadvertently deleted my luatex-cache and tried to run mkiv on a file. The report I got was "attempt to call field 'error' (a nil value)". Now I'm aware that TeX error reporting could be cryptic at times, but at least it was a kind of cryptic to which we had gotten used. With luatex, I'm constantly baffled - in a 100 years, I wouldn't have guessed that this error message meant "I can't find the cache and the format." So I was wondering if this is something that you're working on: making error messages more informative/comprehensible for users. Again, I'm not impatient, just curious. All best Thomas ___ 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 features not always working
Hi Wolfgang, it seems that some fonts need script=latn in \definefontfeature. (i copied and pasted from font-ini.tex) So your file works here: -- % engine=luatex \definefontfeature [default] [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes] \definefontfeature [smallcaps] [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes,smcp=yes] \definefontfeature [oldstyle] [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes] \definefont[pan][file:texgyrepagella-regular*default] \definefont[pas][file:texgyrepagella-regular*smallcaps] \definefont[pao][file:texgyrepagella-regular*oldstyle] \definefont[can][file:CAMBRIA*default] \definefont[cas][file:CAMBRIA*smallcaps] \definefont[cao][file:CAMBRIA*oldstyle] \definefont[con][file:CORBEL*default] \definefont[cos][file:CORBEL*smallcaps] \definefont[coo][file:CORBEL*oldstyle] \starttext \pan ANB anc 123 VA Ta \pas ANB anc 123 VA Ta \pao ANB anc 123 VA Ta \can ANB anc 123 VA Ta \cas ANB anc 123 VA Ta \cao ANB anc 123 VA Ta \con ANB anc 123 VA Ta \cos ANB anc 123 VA Ta \coo ANB anc 123 VA Ta \blank \starttabulate \NC ConTeXt \EQ \contextversion\NC\NR \NC LuaTeX Revision \EQ \number\luatexversion \NC\NR \NC LuaTeX Revision \EQ \number\luatexrevision \NC\NR \stoptabulate \stoptext -- Greetings Lutz 2008/4/30 Wolfgang Schuster <[EMAIL PROTECTED]>: > On Tue, Apr 29, 2008 at 3:25 PM, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > > > > > > Wolfgang Schuster wrote: > > > Hi, > > > > > > the features from OpenType fonts are not accesable for all fonts, I > tried to use > > > my old test case for Microsofts Cambria fonts and none of the features > did work, > > > also kerning is disabled. > > > > > > I put the files with the result from last year and the latest stable > online. > > > http://schuster.wolfgang.googlepages.com/files > > > > IIRC, \Var depends on a very particular way of writing typescripts, > > and is currently considered deprecated by Hans, and that there is a > > new way to do things like this using \setfontfeature or something > > similar. Hans will know for sure (but he at bachotex right now) > > I wrote a simpler example and compiled it with my old and my current ConTeXt. > > http://schuster.wolfgang.googlepages.com/files -> Fontfeature > > Greetings > 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 > > ___ > ___ 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 features not always working
Hi Lutz, On Wed, Apr 30, 2008 at 10:00 AM, Lutz Haseloff <[EMAIL PROTECTED]> wrote: > Hi Wolfgang, > > it seems that some fonts need script=latn in \definefontfeature. > (i copied and pasted from font-ini.tex) [list with new definitons] I will test it latter today on my own system, I wonder if latin was set in a older version from ConTeXt because it worked and if it could be included in the default definitions from font-ini. Greetings 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] two small questions about the mkiv roadmap
Hi Thomas, On Wed, Apr 30, 2008 at 9:54 AM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > Hi all, esp. Hans and Taco, > > just two simple questions about some minor imperfections in mkiv/ > luatex. I'm not impatient, just wondering if these are things that > you're working on right now or if they will have to wait: > > 1. processing xml files with a DTD. This is something we discussed a > couple of weeks ago: when I process a valid xml file which begins with > a DTD, the output I get in mkiv is "invalid xml file"; the same file > processes fine when I remove the DTD. Back then (on 08-03-17), Taco > wrote: "It is a bug in luatex, but not an easy one to fix." So I'm > wondering if there's any progress on this one, or if it has to wait. What Taco meant was the problem with the XML declaration in the first line which was printed verbatim in your document instead of being ignored and Hans fixed it with Lua code. The DTD is a problem with the ConTeXts XML parser and has nothing to do with LuaTeX (hope this is right). > 2. error reports in luatex. This is something that comes up time and > again on the mailing list and which I experienced myself yesterday. I > had inadvertently deleted my luatex-cache and tried to run mkiv on a > file. The report I got was "attempt to call field 'error' (a nil > value)". Now I'm aware that TeX error reporting could be cryptic at > times, but at least it was a kind of cryptic to which we had gotten > used. With luatex, I'm constantly baffled - in a 100 years, I wouldn't > have guessed that this error message meant "I can't find the cache and > the format." So I was wondering if this is something that you're > working on: making error messages more informative/comprehensible for > users. Hadn't there plans to give more detailed error messages for ConTeXt as html page. 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 ___
[NTG-context] Missing greeks characters in texgyreheros
See also Missing character in texgyreheros \startluacode function greek_sub(line) line = line:gsub('ά','\\buildtextaccent\\textacute\\greekalpha{}') line = line:gsub('έ','\\buildtextaccent\\textacute\\greekepsilon{}') line = line:gsub('ή','\\buildtextaccent\\textacute\\greeketa{}') line = line:gsub('ί','\\buildtextaccent\\textacute\\greekiota{}') line = line:gsub('ό','\\buildtextaccent\\textacute\\greekomicron{}') line = line:gsub('ύ','\\buildtextaccent\\textacute\\greekupsilon{}') line = line:gsub('ώ','\\buildtextaccent\\textacute\\greekomega{}') line = line:gsub('Ό',"'\\greekOmicron{}") line = line:gsub("Ά","'\\greekAlpha{}") line = line:gsub("Έ","'\\greekEpsilon{}") line = line:gsub("Ή","'\\greekEta{}") line = line:gsub("Ί","'\\greekIota{}") line = line:gsub("ϊ","\\buildtextaccent\\textdiaeresis\\greekiota{}") line = line:gsub("Ύ","'\\greekUpsilon{}") line = line:gsub("Ώ","'\\greekOmega{}") return line end \stopluacode \def\startfiltered{\ctxlua {callback.register('process_input_buffer', greek_sub)}} Of course, incomplete. 2008/4/29 Taco Hoekwater <[EMAIL PROTECTED]>: > This should also work (but untested) > >\catcode`\ώ=\active \def ώ{\buildtextaccent\textacute\greekomega} I will give it a try I'm not searching for the perfect way, just a way to print a greek pdf Suggestions welcome. -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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] \indenting[next] and math => no vertical space before the formula
On Wed, Apr 30, 2008 at 9:45 AM, Mikael Persson <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 30, 2008 at 9:33 AM, Wolfgang Schuster > <[EMAIL PROTECTED]> wrote: > > > Thank you Aditya, but I don't get that to work. Both with > > > > > > ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: > > > english/english (with the fix earlier in this thread) > > > and > > > ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: > > > english/english (which is the one from new ubuntu, without the fix) > > > > Update your ConTeXt istallation, both systems use old versions. > > > > Wolfgang > > I wish I could. I cant even run the new version from ubuntu, since > there is some problem with the fourier fonts, explained in an earlier > mail in this thread (and also in an earlier post: > http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html) No solution for this problem. > And new minimals seem not to include the fourier fonts. > > If I set indenting=next (or first) in the enumeration, the file compiles... > > Sorry for "complaining" about old versions of ConTeXt. I am finishing > my PhD thesis, and have not found any nice combinations of text and > math fonts in the new minimals. (I am not too fond of the lm fonts). > If you have a tip about such fonts, please tell me :) You don't have update your complete installation, cont-tmf.zip is enough for a new version but you also need the latest version of the latin modern fonts. 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] Missing greeks characters in texgyreheros
On Wed, Apr 30, 2008 at 12:06 PM, luigi scarso <[EMAIL PROTECTED]> wrote: > On Wed, Apr 30, 2008 at 11:51 AM, Thomas A. Schmitz > <[EMAIL PROTECTED]> wrote: > > > > On Apr 30, 2008, at 11:37 AM, luigi scarso wrote: > > > > > I'm not searching for the perfect way, just a way to print a greek pdf > > > Suggestions welcome. > > > > Well, the easiest solution is: use a font that does have a full set of > > Greek characters. The TeXGyre fonts have some Greek characters, but > > they are not really finished and are not usable right now. > I need > an opentype like helvetica , plus some times and courier; > ie > \usetypescript[postscript] > is ok. You could use Microsofts new Vista fonts (Cambria, Corbel, Consolas ...) > >You're > > trying to fake characters which are not in the font; this is > > unsatisfying from an esthetical point of view and hackish as for the > > produced pdf (not cut-and-paste, no search etc.). > yes I know, but actually i need only print, and it's low/mid quality. > Very raw, I agree. > > >If it's > > important for you: for several months now, I have been using a version > > of my Greek module which works perfectly with mkiv; so far, I haven't > > seen the necesity to upload it, but I could do it any time (after some > > clean-up). > yes, of course. 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] Missing greeks characters in texgyreheros
On Wed, Apr 30, 2008 at 11:51 AM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > > On Apr 30, 2008, at 11:37 AM, luigi scarso wrote: > > > I'm not searching for the perfect way, just a way to print a greek pdf > > Suggestions welcome. > > Well, the easiest solution is: use a font that does have a full set of > Greek characters. The TeXGyre fonts have some Greek characters, but > they are not really finished and are not usable right now. I need an opentype like helvetica , plus some times and courier; ie \usetypescript[postscript] is ok. >You're > trying to fake characters which are not in the font; this is > unsatisfying from an esthetical point of view and hackish as for the > produced pdf (not cut-and-paste, no search etc.). yes I know, but actually i need only print, and it's low/mid quality. Very raw, I agree. >If it's > important for you: for several months now, I have been using a version > of my Greek module which works perfectly with mkiv; so far, I haven't > seen the necesity to upload it, but I could do it any time (after some > clean-up). yes, of course. -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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] Missing greeks characters in texgyreheros
On Apr 30, 2008, at 12:06 PM, luigi scarso wrote: > I need > an opentype like helvetica , plus some times and courier; > ie > \usetypescript[postscript] > is ok. I'm not sure I understand. Why opentype (truetype works as well in mkiv)? And what do you mean with "\usetypescript[postscript] is ok"? Here's a list of fonts with full Greek support (with some links) that are sure to work in mkiv: Gentium (this one looks good when you mix it with a sans as "Latin" bodyfont) all the GFS fonts http://www.greekfontsociety.gr/pages/en_typefaces1.html Minion (comes with Adobe Reader) Old Standard http://www.thessalonica.org.ru/en/fonts.html Recent versions of Times New Roman Asteria http://www.ellopos.net/elpenor/greek-texts/greek-fonts.asp If all you need is characters with the acute accent ("monotoniko"), you could also look at Adobe Myriad (comes with Adobe Reader) and numerous other fonts. HTH Thomas ___ 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] Missing greeks characters in texgyreheros
On Apr 30, 2008, at 11:37 AM, luigi scarso wrote: > I'm not searching for the perfect way, just a way to print a greek pdf > Suggestions welcome. Well, the easiest solution is: use a font that does have a full set of Greek characters. The TeXGyre fonts have some Greek characters, but they are not really finished and are not usable right now. You're trying to fake characters which are not in the font; this is unsatisfying from an esthetical point of view and hackish as for the produced pdf (not cut-and-paste, no search etc.). For better results, try a font such as Gentium, Minion, or even Times New Roman. If it's important for you: for several months now, I have been using a version of my Greek module which works perfectly with mkiv; so far, I haven't seen the necesity to upload it, but I could do it any time (after some clean-up). Best Thomas ___ 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] Missing greeks characters in texgyreheros
On Apr 30, 2008, at 11:51 AM, Thomas A. Schmitz wrote: > The TeXGyre fonts have some Greek characters, but > they are not really finished and are not usable right now. Just to clarify an ambiguous sentence: "they" refers to the Greek characters, not to the TeXGyre fonts in general. Thomas ___ 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] Missing greeks characters in texgyreheros
> > ie > > \usetypescript[postscript] > > is ok. > > You could use Microsofts new Vista fonts (Cambria, Corbel, Consolas ...) Can we share a link , or licences problems may arise ? -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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] Missing greeks characters in texgyreheros
On Wed, Apr 30, 2008 at 12:32 PM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > > On Apr 30, 2008, at 12:06 PM, luigi scarso wrote: > > > I need > > an opentype like helvetica , plus some times and courier; > > ie > > \usetypescript[postscript] > > is ok. > > I'm not sure I understand. Why opentype (truetype works as well in > mkiv)? And what do you mean with "\usetypescript[postscript] is ok"? sorry 1) in my luatex env. \usetypescript[postscript] is linked with tex gyre font collections 2) opentype because they are so easy to install ! Just download in opentype dir, rehash, and it's all ok. > Here's a list of fonts with full Greek support (with some links) that > are sure to work in mkiv: > > Gentium (this one looks good when you mix it with a sans as "Latin" > bodyfont) > all the GFS fonts http://www.greekfontsociety.gr/pages/en_typefaces1.html > Minion (comes with Adobe Reader) > Old Standard http://www.thessalonica.org.ru/en/fonts.html > Recent versions of Times New Roman > Asteria http://www.ellopos.net/elpenor/greek-texts/greek-fonts.asp > > If all you need is characters with the acute accent ("monotoniko"), > you could also look at Adobe Myriad (comes with Adobe Reader) and > numerous other fonts. thank you very much!! (and waiting for you module...) = luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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] Greek module still in use?
Is the greek module still in use? I have been trying to use it wiht xetex but texexec says "can't find module ancient greek". I have have some quotations in Ancient Greek. the font I am using is palatino. ___ 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] Trouble with Index
So far I have not succeded to make an index in a book I am typesetting. I write something like: \starttext \defineregister[index][indices] \index[Tantrum]Tantrums can be normal for \index[tantrum][tantrum+toddlers]toddlers. Young children have them for many reasons like being tired, feeling out of control, over-stimulated, or wanting something they can't have. General hints: Toddlers and preschoolers cannot regulate themselves because they don't yet know their own limits. \completeindex \stoptext And the message I get is: "index not found/processed". In the pdf appears a page with Index but no entries. ___ 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] Missing greeks characters in texgyreheros
On Wed, Apr 30, 2008 at 12:25 PM, luigi scarso <[EMAIL PROTECTED]> wrote: > > > ie > > > \usetypescript[postscript] > > > is ok. > > > > You could use Microsofts new Vista fonts (Cambria, Corbel, Consolas ...) > Can we share a link , or licences problems may arise ? Google for "PowerPoint Viewer 2007". 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] who eats my spaces
Am 2008-04-29 um 09:05 schrieb Wolfgang Schuster: >> "that in titles the space after a dot ... gets eaten". (Ok, it's a >> full stop, maybe not a dot?) >> I consider this a very strange bug, can't avoid punctuation in >> titles. > Enclosing the period in braces {.} did work and is a temprorary > solution > but the problem need to be solved. Another temporary solution (that I used) was "\ " or "\," after each dot. >>> \setuphead[chapter][incrementnumber=no] >> I had that already. And I don't see how that would influence >> typesetting of punctuation or spaces? > I inserted it to get a space for \\ in the table of content, I > wasn't related > to the space after punctuation but to the header content. Just > related to > the minimum example. Ah, ok, sorry. I didn't really test my minimal. Even if the book is at the printshop now, I'd like to solve the problem for the next time - I need that "author/title/subtitle" and "author in ToC" stuff all the time. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Greek module still in use?
On Apr 30, 2008, at 12:47 PM, [EMAIL PROTECTED] wrote: > Is the greek module still in use? > I have been trying to use it wiht xetex but texexec says "can't find > module ancient greek". I have have some quotations in Ancient Greek. > the font I am using is palatino. I haven't finished adapting the module with XeTeX, but the error you report has nothing to do with XeTeX; it simply shows that you haven't installed the module in the right way. But more information is needed to help you. Thomas ___ 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] Missing greeks characters in texgyreheros
On Apr 30, 2008, at 12:47 PM, luigi scarso wrote: >> > sorry > 1) in my luatex env. > \usetypescript[postscript] > is linked with tex gyre font collections > 2) opentype because they are so easy to install ! > Just download in opentype dir, > rehash, > and it's all ok. > OK, but installing truetype is exactly the same. >> > thank you very much!! > (and waiting for you module...) I have just uploaded a new version to the garden. It's not really finished, so documentation is missing and there are still a few leftovers in the code, but I hope everything is in working order. I'd appreciate feedback. This should work with mkii, mkiv and XeTeX, so just run a testfile with one of the included fonts: \enableregime[utf] \usemodule[ancientgreek][font=GFSElpis,scale=1] \starttext Some Greek text: \localgreek{Μῆνιν ἄειδε, θεά, Πηληϊάδεω Ἀχιλῆος} \stoptext Here, it gives correct output with all engines: texexec test.tex texexec --xtx test.tex texexec --lua test.tex Best Thomas ___ 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] Table of contents customization
Am 2008-04-29 um 13:27 schrieb Wolfgang Schuster: > \setuplist > [chapter,section,...] > [numbercommand=\DotAfterNumber] > > \def\DotAfterNumber#1{\doiftext{#1}{#1.}} Just wikified that: http://wiki.contextgarden.net/Table_of_Contents Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Missing greeks characters in texgyreheros
On Wed, Apr 30, 2008 at 2:29 PM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > > On Apr 30, 2008, at 12:47 PM, luigi scarso wrote: > >> > > sorry > > 1) in my luatex env. > > \usetypescript[postscript] > > is linked with tex gyre font collections > > 2) opentype because they are so easy to install ! > > Just download in opentype dir, > > rehash, > > and it's all ok. > > > OK, but installing truetype is exactly the same. A TrueType could be also a OpenType font :-) http://www.typografie.info/typowiki/index.php?title=OpenType#Unterschied_TrueType-OpenType Sorry, german only. 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] Itemize numbering
Am 2008-04-29 um 17:49 schrieb Aditya Mahajan: >> I just tried the following on Context Live: >> >> \starttext >> \startitemize[n] >> \item one >> \item two >>\startitemize >> \item a >> \item b >>\stopitemize >> \item three >> \stopitemize >> \stoptext >> >> and the first itemize starts at 0. Remove the inner itemize and >> it starts >> at 1. >> >> Is this a feature or a bug? How do I get around it? > > I can confirm that here. This is indeed a bug. I reported some weeks ago that numbering starts always at 0 with --once I guess Hans & Co went after the dictum of Dijkstra[0], as quoted recently by Knuth[1], that counting should start at 0 ;-) [0] http://en.wikipedia.org/wiki/Edsger_W._Dijkstra [1] http://www.informit.com/articles/article.aspx?p=1193856 Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Trouble with Index
On Apr 30, 2008, at 1:08 PM, Wolfgang Schuster wrote: > >> \index[Tantrum]Tantrums can be normal for > > \index{Tantrum} Indeed. Question to the developers: given that our rule of thumb is "material within {} will be typeset; material within [] is for setups etc.," wouldn't it make sense to have the command as index[]? (Maybe with an alternative \index{} which will typeset the word AND put it in the index?) Thomas ___ 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] Missing greeks characters in texgyreheros
Am 2008-04-30 um 12:52 schrieb Wolfgang Schuster: >>> You could use Microsofts new Vista fonts (Cambria, Corbel, >>> Consolas ...) >> Can we share a link , or licences problems may arise ? > Google for "PowerPoint Viewer 2007". Quoting Microsoft's download page: """ Font Components You may use the fonts that accompany the PowerPoint Viewer only to display and print content from a device running a Microsoft Windows operating system. Additionally, you may do the following: Embed fonts in content as permitted by the embedding restrictions in the fonts When printing content, temporarily download the fonts to a printer or other output device You may not copy, install or use the fonts on other devices. """ Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] who eats my spaces
On Wed, Apr 30, 2008 at 2:12 PM, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote: > Am 2008-04-29 um 09:05 schrieb Wolfgang Schuster: > >> "that in titles the space after a dot ... gets eaten". (Ok, it's a > >> full stop, maybe not a dot?) > >> I consider this a very strange bug, can't avoid punctuation in > >> titles. > > Enclosing the period in braces {.} did work and is a temprorary > > solution > > but the problem need to be solved. > > Another temporary solution (that I used) was "\ " or "\," after each > dot. > > >>> \setuphead[chapter][incrementnumber=no] > >> I had that already. And I don't see how that would influence > >> typesetting of punctuation or spaces? > > I inserted it to get a space for \\ in the table of content, I > > wasn't related > > to the space after punctuation but to the header content. Just > > related to > > the minimum example. > > Ah, ok, sorry. I didn't really test my minimal. > > Even if the book is at the printshop now, I'd like to solve the > problem for the next time - I need that "author/title/subtitle" and > "author in ToC" stuff all the time. Hi Hraban, can you send me a example with the setups, I will try to find a solution in the next days. 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] Trouble with Index
On Wed, Apr 30, 2008 at 1:00 PM, <[EMAIL PROTECTED]> wrote: > > So far I have not succeded to make an index in a book I am typesetting. > I write something like: > \starttext > \defineregister[index][indices] Prdefined, can be omitted. > \index[Tantrum]Tantrums can be normal for \index{Tantrum} > \index[tantrum][tantrum+toddlers]toddlers. Young children have them for \index{tantrum+toodlers} > many reasons like being tired, feeling out of control, over-stimulated, > or wanting something they can't have. > General hints: Toddlers and preschoolers cannot regulate themselves > because they don't yet know their own limits. > \completeindex > \stoptext 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 ___
[NTG-context] Referencing Itemized Items?
Is there some way to set up a reference tag so that I can refer to a particular item in a list, e.g., something vaguely like: You must do the following steps: \startitemize[n] \item Buy the ingredients \item Cook the food \item [??] Put out the fire \stopitemize Note that Step \in[?] is optional for experienced chefs. It looks like there are mechanisms to support this in the tex code, but I don't know how to use them. ___ 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] Referencing Itemized Items?
On Wed, Apr 30, 2008 at 4:15 PM, <[EMAIL PROTECTED]> wrote: > Is there some way to set up a reference tag so that I can refer to a > particular item in a list, e.g., something vaguely like: \starttext > You must do the following steps: > \startitemize[n] > \item Buy the ingredients > \item Cook the food > \item [??] Put out the fire \item [fire] Put out the fire > \stopitemize > Note that Step \in[?] is optional for experienced chefs. Note that Step \in[fire] is optional for experienced chefs. \stoptext > It looks like there are mechanisms to support this in the tex code, > but I don't know how to use them. ;-) 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] who eats my spaces
Am 2008-04-30 um 14:54 schrieb Wolfgang Schuster: > can you send me a example with the setups, I will try to find > a solution in the next days. The setups are here: http://wiki.contextgarden.net/Proceedings_style I can send you the whole project off-list if you like. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] who eats my spaces
On Wed, Apr 30, 2008 at 4:44 PM, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote: > Am 2008-04-30 um 14:54 schrieb Wolfgang Schuster: > > can you send me a example with the setups, I will try to find > > a solution in the next days. > > The setups are here: > http://wiki.contextgarden.net/Proceedings_style > > I can send you the whole project off-list if you like. I will try it with your example from the wiki for the moment. 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 ___
[NTG-context] headers and pagenumbering
Hello again, just trying to understand some remaining issues with my latest project. --- startcode --- \starttext % Setups \setuppagenumbering[ alternative=doublesided, location={header,right}, strut=yes, state=stop] % chapter title in the header, % but not on first page of chapter % pagina also in the header, always \setupheader[text][state=stop] \setupheadertexts[text][chapter][pagenumber] \setuphead[chapter][header=high] % Content % some firstmatter stuff left out \setuppagenumbering[state=start] % table of contents % without header, without pagina % but page numbering starts here { \setuppagenumbering[location=] \title{Inhalt} \placecontent \page } %\page % too late! \setupheader[text][state=start] \chapter{10 \times\ Tufte} \dorecurse{10}{\input tufte} \stoptext --- stopcode --- (1) % or 0? ;-) I struggled how to leave out the pagina on the ToC page, no setups seemed to work. I just reckognized that I need the \page inside of the braced area. (2) How can I leave out the chapter header on the first page of a chapter, but keep the page number? (Probably simple?) (3) One can "hide" the page number with "location=", but the header on the first page of a chapter with "header=high". Is there any logic behind that? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] two small questions about the mkiv roadmap
Wolfgang Schuster wrote: > The DTD is a problem with the ConTeXts XML parser and has > nothing to do with LuaTeX (hope this is right). i need a test file then (can look into it next week; i'm at bachotek now) >> 2. error reports in luatex. This is something that comes up time and >> again on the mailing list and which I experienced myself yesterday. I >> had inadvertently deleted my luatex-cache and tried to run mkiv on a >> file. The report I got was "attempt to call field 'error' (a nil >> value)". Now I'm aware that TeX error reporting could be cryptic at >> times, but at least it was a kind of cryptic to which we had gotten >> used. With luatex, I'm constantly baffled - in a 100 years, I wouldn't >> have guessed that this error message meant "I can't find the cache and >> the format." So I was wondering if this is something that you're >> working on: making error messages more informative/comprehensible for >> users. > Hadn't there plans to give more detailed error messages for ConTeXt > as html page. indeed, but i need someone to write me a xul application that will reuse the already opened window Hans - 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] minimal example for Cyrillic
\usetypescript[modern-base][t2a] \setupbodyfont[modern] Should work in MkII if you have cm-super font package installed, but doesn't work for me, so I personally use my own typescript with custom fonts. Maybe someone can help me figure out why ConTeXt doesn't try to generate .tfm's for cm-super? Is there some command to increase verbosity? Gour wrote: Hello! I was able to persuade one user to prepare ConTeXt package for NixOS distro, but, unfortunately, being from Russia he quickly discovered that he minimal example from wiki (http://wiki.contextgarden.net/Russian) does not work, i.e. \enableregime[utf] \useencoding[cyr] \definetypeface [russian] [rm] [serif] [computer-modern] [default] [encoding=t2a] \setupbodyfont[russian] \starttext Мама и Папа % Some Russian characters \stoptext does transliterate Russian characters. I do not have any experience working with Cyrillic, so if anyone can provide minimal working example it would be very nice? I persistently claimed that "it must work!" :-) Sincerely, Gour ___ 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 ___ -- Best Regards, Oleg Kolosov ___ 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] \indenting[next] and math => no vertical space before the formula
On Wed, 30 Apr 2008, Mikael Persson wrote: > On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan <[EMAIL PROTECTED]> wrote: >> On Mon, 28 Apr 2008, Mikael Persson wrote: >> >> > Hello again, >> > >> > * snip * >> >> >> >> I could reproduce the result and have also a fix but I don't know what >> >> the correct >> >> reults should be and other people like Aditya should decide if it makes >> >> sense >> >> to change the current behaviour. >> >> >> >> \def\startdisplaymath >> >> {\ifgridsnapping >> >> \beforedisplayspace >> >> \snapmathtogrid\vbox >> > * snip * >> >> Wolfgang >> > >> > This fix seems not to solve the problem entirely. With this fix >> > applied, If one now put a formula inside an enumeration one gets >> > "double" space before the formula. This is a test file that shows the >> > problem: >> >> This is basically because in enumerations indenting is set to never. >> >> You can see the same affect with >> >> \setupindenting[no] >> \testtext >> >> One possible fix is to add >> >> indenting=(reset|next|first) %default is never >> >> to the \setupenumeration command. For example >> >> >> > \defineenumeration[example] >> >[text=Example, >> >location=serried, >> >width=fit, >> indenting=reset, %%<<< Add This >> >>>distance=0.5em, >> > way=bysection, >> >] >> >> Another is to change \startdisplaymath to >> >> >> \def\startdisplaymath >>{\ifgridsnapping >> \beforedisplayspace >> \snapmathtogrid\vbox >> >> \bgroup >> \informulatrue >> %\forgetall % breaks side floats >> \else >> \bgroup >> \parskip\formulaparskip % ! ! >> \informulatrue >> %\forgetall % otherwise backgrounds fail >> \ifdim\lastskip<\zeropoint\else >> \par >> \ifvmode \ifdim\parskip>\zeropoint\relax >> \whitespace \vskip-\parskip % kind of forces and cancels again >> \fi \fi >> \fi >> \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently >> only option/default >> \beforedisplayspace >> \par >> \ifvmode \ifdim\parskip>\zeropoint\relax \else >> >>\ifindentfirstparagraph >> \verticalstrut >> \vskip-\struttotal >> \vskip-\baselineskip >> \fi\fi >> \fi >> \fi >> $$\setdisplaydimensions >> \setpredisplaysize\lastlinewidth >> \startinnermath} >> >> But this is getting ugly. >> >> Aditya >> > > Thank you Aditya, but I don't get that to work. Both with > > ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: > english/english (with the fix earlier in this thread) > and > ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: > english/english (which is the one from new ubuntu, without the fix) > > this fails with the following error msg: > > %% Start error msg > ! Illegal unit of measure (pt inserted). > > \chardef > \@@in:reset ...rue \parindent \zerocount \chardef > \indentingtoggle \zerocount > \next1 #1,->\docomplexsetupindentingB {#1} > \doprocesscommaitem > \doprocesscommalist ...item \gobbleoneargument #1, > ]\relax \global \advance \... > ...ndenting ]\docomplexsetupindentingB > \checkeverypar \ifindentfi... > > \firstofoneargument #1->#1 > An old bug (more than two month old :) Also add this \unprotect \defineindentingmethod [\v!reset] {\indentfirstparagraphtrue \parindent\zeropoint%AM was \zerocount \chardef\indentingtoggle\zerocount} \protect 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] Itemize numbering
On Wed, 30 Apr 2008, Henning Hraban Ramm wrote: > Am 2008-04-29 um 17:49 schrieb Aditya Mahajan: >>> I just tried the following on Context Live: >>> >>> \starttext >>> \startitemize[n] >>> \item one >>> \item two >>>\startitemize >>> \item a >>> \item b >>>\stopitemize >>> \item three >>> \stopitemize >>> \stoptext >>> >>> and the first itemize starts at 0. Remove the inner itemize and >>> it starts >>> at 1. >>> >>> Is this a feature or a bug? How do I get around it? >> >> I can confirm that here. This is indeed a bug. > > I reported some weeks ago that numbering starts always at 0 with --once > > I guess Hans & Co went after the dictum of Dijkstra[0], as quoted > recently by Knuth[1], that counting should start at 0 ;-) > > [0] http://en.wikipedia.org/wiki/Edsger_W._Dijkstra > [1] http://www.informit.com/articles/article.aspx?p=1193856 The reason for all these bugs of starting with zero is my reqest for a reverse key to itemize and then I could not foresee all the use cases. 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] Referencing Itemized Items?
On Wed, 30 Apr 2008, [EMAIL PROTECTED] wrote: > Is there some way to set up a reference tag so that I can refer to a > particular item in a list, e.g., something vaguely like: > > You must do the following steps: > \startitemize[n] > \item Buy the ingredients > \item Cook the food > \item [??] Put out the fire > \stopitemize > Note that Step \in[?] is optional for experienced chefs. Wolfgang has already answered your question. A suggestion: I usually prefer Note that \in Step[fire] is optional for experienced chefs. This way, if you enable interaction, "Step 3" will become a link, rather than just "3". 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] Missing greeks characters in texgyreheros
On Wed, Apr 30, 2008 at 2:29 PM, Thomas A. Schmitz <[EMAIL PROTECTED]> wrote: > > On Apr 30, 2008, at 12:47 PM, luigi scarso wrote: > >> > > sorry > > 1) in my luatex env. > > \usetypescript[postscript] > > is linked with tex gyre font collections > > 2) opentype because they are so easy to install ! > > Just download in opentype dir, > > rehash, > > and it's all ok. > > > OK, but installing truetype is exactly the same. Ah yes, at my printing company 1) pfb/pfa : "good" fonts (& not "easy" to install in luatex ) 2) otf : "good" fonts (& "easy" to install ) 3) ttf : "bad" fonts (& "easy " to install ) Of course it's not exactly true (but maybe on average): a mental habitat, I must admit it, based on experience. Also, an helvetica like typeface is a must. > I have just uploaded a new version to the garden. good. Greek is really difficult for me -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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] \indenting[next] and math => no vertical space before the formula
On Wed, Apr 30, 2008 at 7:02 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > > On Wed, 30 Apr 2008, Mikael Persson wrote: > > > On Tue, Apr 29, 2008 at 6:49 AM, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > >> On Mon, 28 Apr 2008, Mikael Persson wrote: > >> > >> > Hello again, > >> > > >> > * snip * > >> >> > >> >> I could reproduce the result and have also a fix but I don't know what > >> >> the correct > >> >> reults should be and other people like Aditya should decide if it > makes sense > >> >> to change the current behaviour. > >> >> > >> >> \def\startdisplaymath > >> >> {\ifgridsnapping > >> >> \beforedisplayspace > >> >> \snapmathtogrid\vbox > >> > * snip * > >> >> Wolfgang > >> > > >> > This fix seems not to solve the problem entirely. With this fix > >> > applied, If one now put a formula inside an enumeration one gets > >> > "double" space before the formula. This is a test file that shows the > >> > problem: > >> > >> This is basically because in enumerations indenting is set to never. > >> > >> You can see the same affect with > >> > >> \setupindenting[no] > >> \testtext > >> > >> One possible fix is to add > >> > >> indenting=(reset|next|first) %default is never > >> > >> to the \setupenumeration command. For example > >> > >> > >> > \defineenumeration[example] > >> >[text=Example, > >> >location=serried, > >> >width=fit, > >> indenting=reset, %%<<< Add This > >> > >>>distance=0.5em, > >> > way=bysection, > >> >] > >> > >> Another is to change \startdisplaymath to > >> > >> > >> \def\startdisplaymath > >>{\ifgridsnapping > >> \beforedisplayspace > >> \snapmathtogrid\vbox > >> > >> \bgroup > >> \informulatrue > >> %\forgetall % breaks side floats > >> \else > >> \bgroup > >> \parskip\formulaparskip % ! ! > >> \informulatrue > >> %\forgetall % otherwise backgrounds fail > >> \ifdim\lastskip<\zeropoint\else > >> \par > >> \ifvmode \ifdim\parskip>\zeropoint\relax > >> \whitespace \vskip-\parskip % kind of forces and cancels again > >> \fi \fi > >> \fi > >> \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, > currently only option/default > >> \beforedisplayspace > >> \par > >> \ifvmode \ifdim\parskip>\zeropoint\relax \else > >> > >>\ifindentfirstparagraph > >> \verticalstrut > >> \vskip-\struttotal > >> \vskip-\baselineskip > >> \fi\fi > >> \fi > >> \fi > >> $$\setdisplaydimensions > >> \setpredisplaysize\lastlinewidth > >> \startinnermath} > >> > >> But this is getting ugly. > >> > >> Aditya > >> > > > > Thank you Aditya, but I don't get that to work. Both with > > > > ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2008.4.24 int: > > english/english (with the fix earlier in this thread) > > and > > ConTeXt ver: 2007.09.28 16:52 MKII fmt: 2008.4.24 int: > > english/english (which is the one from new ubuntu, without the fix) > > > > this fails with the following error msg: > > > > %% Start error msg > > ! Illegal unit of measure (pt inserted). > > > > \chardef > > \@@in:reset ...rue \parindent \zerocount \chardef > > \indentingtoggle > \zerocount > > \next1 #1,->\docomplexsetupindentingB {#1} > > \doprocesscommaitem > > \doprocesscommalist ...item \gobbleoneargument #1, > > ]\relax \global \advance > \... > > ...ndenting ]\docomplexsetupindentingB > > \checkeverypar > \ifindentfi... > > > > \firstofoneargument #1->#1 > > > > An old bug (more than two month old :) > > Also add this > > \unprotect > \defineindentingmethod [\v!reset] {\indentfirstparagraphtrue > \parindent\zeropoint%AM was \zerocount > \chardef\indentingtoggle\zerocount} > \protect > Aditya Thank you Aditya (and also thank you Wolfgang!) Your help is really appreciated! Micke P ___ 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] Missing greeks characters in texgyreheros
Am 2008-04-30 um 19:22 schrieb luigi scarso: > Ah yes, at my printing company > 1) pfb/pfa : "good" fonts (& not "easy" to install in luatex ) > 2) otf : "good" fonts (& "easy" to install ) > 3) ttf : "bad" fonts (& "easy " to install ) > > Of course it's not exactly true (but maybe on average): > a mental habitat, I must admit it, based on experience. > Also, an helvetica like typeface is a must. In the old times some PS Level2 RIPs couldn't handle Truetype fonts. And most bad fonts are Truetype. But in fact the format tells nothing about quality or printability. OpenType fonts can contain Truetype-based outlines as well as PostScript-based (quadratic vs. cubic curves). Usually .otf files contain PostScript-based outlines, while .ttf can mean "old" Truetype as well as TrueType-based OpenType. I.e. the TrueType format can encode its slots in Unicode (obligatory for OpenType) or in any other encoding. >> I have just uploaded a new version to the garden. > good. Greek is really difficult for me Yes, it's Greek to everyone ;-) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] two small questions about the mkiv roadmap
> indeed, but i need someone to write me a xul application that will reuse > the already opened window firefox ? Not IE ? -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___ 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] Trouble with Index
> Indeed. Question to the developers: given that our rule of thumb is > "material within {} will be typeset; material within [] is for setups > etc.," wouldn't it make sense to have the command as index[]? (Maybe > with an alternative \index{} which will typeset the word AND put it in > the index?) Ok, but what am I doing wrong? Should I typeset \index[] or \index{}? Or am I missing some trick? Or is this problem waiting for solution. I have put both ways in my file and the page with Index is still empty. Armando Martins Citando "Thomas A. Schmitz" <[EMAIL PROTECTED]>: > > On Apr 30, 2008, at 1:08 PM, Wolfgang Schuster wrote: >> >>> \index[Tantrum]Tantrums can be normal for >> >> \index{Tantrum} > > Indeed. Question to the developers: given that our rule of thumb is > "material within {} will be typeset; material within [] is for setups > etc.," wouldn't it make sense to have the command as index[]? (Maybe > with an alternative \index{} which will typeset the word AND put it in > the index?) > > Thomas > ___ > 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] Greek module still in use?
> I haven't finished adapting the module with XeTeX, but the error you > report has nothing to do with XeTeX; it simply shows that you haven't > installed the module in the right way. But more information is needed > to help you. I have unzipped the folder to my texmf tree so it looks like this: [EMAIL PROTECTED]:~> cd /usr/share/texmf [EMAIL PROTECTED]:/usr/share/texmf> ls bibtex context dvipsls-R mft text-greek-2008.04.30 bin doc fmtutil makeindex scripts texconfig web2c chktex dvipdfm fontsmetafont teTeXtexmf xdvi [EMAIL PROTECTED]:/usr/share/texmf> Then I ran texhash. I am using Linux OpenSuse 10.3 KDE. armando martins Citando "Thomas A. Schmitz" <[EMAIL PROTECTED]>: > > On Apr 30, 2008, at 12:47 PM, [EMAIL PROTECTED] wrote: > >> Is the greek module still in use? >> I have been trying to use it wiht xetex but texexec says "can't find >> module ancient greek". I have have some quotations in Ancient Greek. >> the font I am using is palatino. > > I haven't finished adapting the module with XeTeX, but the error you > report has nothing to do with XeTeX; it simply shows that you haven't > installed the module in the right way. But more information is needed > to help you. > > Thomas > ___ > 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] Referencing Itemized Items?
Wow. How embarrassing - I am usually the one who chides my users about never actually trying simple experiments to see if something works. ___ 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 ___