Re: [NTG-context] math symbol: blacktriangle
On Wed, Jul 18, 2012 at 12:29:52AM +0200, Hans Hagen wrote: > On 17-7-2012 22:36, Khaled Hosny wrote: > >On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote: > >>On 17-7-2012 19:39, Aditya Mahajan wrote: > >>>On Tue, 17 Jul 2012, Andreas Mang wrote: > >>> > >>>>Dear all, > >>>> > >>>>The \blacktriangle and \blacktriangledown symbol seem to be missing, > >>>>though \blacktriangleright and \...-left are defined. Is there a quick > >>>>way to add missing symbols by myself from the knowledge of Unicode / > >>>>XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? > >>> > >>>For opentype math fonts, have a look at char-def.lua. To add missing > >>>symbols, you need to add appropriate fields in the lua table. > >>> > >>>The hard part is verifying the symbol to unicode slot mapping (the list > >>>at tralics is not always consistent with the ams list that is used by > >>>unicode-math package). If you know the right mappings, add a patch to > >>>char-def.lua and send it to the list (or the dev-context list); > >>>otherwise, just send the mappings and I can add them to the lua table. > >> > >>keep in mind that not all those black triangles in ams math ended up > >>in unicode > > > >AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX > >support covers them all from STIX Unicode fonts). > > Also the black triangles left and right (in ams compatible font sizes)? > > (Last time I messed with it I had to get them from the navigational > symbol font). I don't know about the sizes, but every csname defined by amsfonts and amssymb is covered. Regards, Khaled ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
Hi, Thanks Hans. It works for me :) Relating the output (\blacktriangleright and \blacktriangle) to some figure I have created with latex + tikz I do not see any difference. Cheers, Andreas Am Jul 18, 2012 um 10:37 AM schrieb Hans Hagen: > Hi, > > I uploaded a new beta .. still not ok I guess: > > \setuplayout[header=0pt,footer=0pt,height=middle,width=middle] > \setupbodyfont[dejavu,10pt] > > \startbuffer > \starttabulate[|||pT|] > \HL > \NC \type{\blacktriangle } \NC \blacktriangle \NC > \meaning\blacktriangle \NC \NR > \NC \type{\blacktriangledown } \NC \blacktriangledown \NC > \meaning\blacktriangledown \NC \NR > \NC \type{\blacktriangleleft } \NC \blacktriangleleft \NC > \meaning\blacktriangleleft \NC \NR > \NC \type{\blacktriangleright} \NC \blacktriangleright \NC > \meaning\blacktriangleright \NC \NR > \HL > \NC \type{\triangle } \NC \triangle \NC > \meaning\triangle \NC \NR > \NC \type{\bigtriangleup} \NC \bigtriangleup \NC > \meaning\bigtriangleup \NC \NR > \NC \type{\triangledown } \NC \triangledown \NC > \meaning\triangledown \NC \NR > \NC \type{\bigtriangledown}\NC \bigtriangledown\NC > \meaning\bigtriangledown\NC \NR > \NC \type{\triangleleft } \NC \triangleleft \NC > \meaning\triangleleft \NC \NR > \NC \type{\triangleright} \NC \triangleright \NC > \meaning\triangleright \NC \NR > \HL > \stoptabulate > \stopbuffer > > \starttext > > \switchtobodyfont[modern-designsize] \subject{modern-designsize} > \getbuffer \blank > \switchtobodyfont[modern]\subject{modern} > \getbuffer \blank > \switchtobodyfont[xits] \subject{xits} > \getbuffer \blank > \switchtobodyfont[pagella] \subject{pagella} > \getbuffer \blank > > \stoptext > > I tend to taking xits as reference. > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
Hi, I uploaded a new beta .. still not ok I guess: \setuplayout[header=0pt,footer=0pt,height=middle,width=middle] \setupbodyfont[dejavu,10pt] \startbuffer \starttabulate[|||pT|] \HL \NC \type{\blacktriangle } \NC \blacktriangle \NC \meaning\blacktriangle \NC \NR \NC \type{\blacktriangledown } \NC \blacktriangledown \NC \meaning\blacktriangledown \NC \NR \NC \type{\blacktriangleleft } \NC \blacktriangleleft \NC \meaning\blacktriangleleft \NC \NR \NC \type{\blacktriangleright} \NC \blacktriangleright \NC \meaning\blacktriangleright \NC \NR \HL \NC \type{\triangle } \NC \triangle \NC \meaning\triangle \NC \NR \NC \type{\bigtriangleup} \NC \bigtriangleup \NC \meaning\bigtriangleup \NC \NR \NC \type{\triangledown } \NC \triangledown \NC \meaning\triangledown \NC \NR \NC \type{\bigtriangledown}\NC \bigtriangledown\NC \meaning\bigtriangledown\NC \NR \NC \type{\triangleleft } \NC \triangleleft \NC \meaning\triangleleft \NC \NR \NC \type{\triangleright} \NC \triangleright \NC \meaning\triangleright \NC \NR \HL \stoptabulate \stopbuffer \starttext \switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank \stoptext I tend to taking xits as reference. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
Hi Hans, > On 17-7-2012 20:41, Andreas Mang wrote: >> mathname="blacktriangle", >> >> to >> >> [0x25B4]={ >> adobename="blackuppointingsmalltriangle", >> category="so", >> description="BLACK UP-POINTING SMALL TRIANGLE", >> direction="on", >> linebreak="al", >> unicodeslot=0x25B4, >> }, > > why not 25B2 (the bigger one) >> >> [0x25BE]={ >> category="so", >> description="BLACK DOWN-POINTING SMALL TRIANGLE", >> direction="on", >> linebreak="al", >> unicodeslot=0x25BE, >> }, >> >> with mathname="blacktriangledown" under the assumption you'd like to be >> consistent with the naming convention of latex. > > or 25BC (the bigger one) To make it short: I think Hans is correct. From my perspective there is an error in char-def.lua for "blacktriangleleft" and secondly the internet page I have looked this up is not consistent with what is implemented in ConTeXt, both facts of which lead me into the wrong direction (see below (P.S.), if you are interested). Both, http://www.unicodemap.org/details/0x25B2/index.html and http://www.unicodemap.org/details/0x25BC/index.html look consistent to "\blacktriangleright" (which I am already using in my document): http://www.unicodemap.org/details/0x25B6/index.html Cheers, Andreas P.S.: When I started to look into this I thought it might be possilble to define some command in the preamble of my document that uses unicode. From searching the internet I found http://www-sop.inria.fr/marelle/tralics/doc-b.html which says "The \blacktriangle command is valid only in math mode. Its translation is ▴ (Unicode U+25B4, ▴)". However, there indeed is a problem (which I have not spotted in the first place). I had a look at char-def.lua which at first confirmed my impression on using small triangels: [0x25B8]={ category="so", description="BLACK RIGHT-POINTING SMALL TRIANGLE", direction="on", linebreak="al", mathclass="bin", mathname="blacktriangleleft", unicodeslot=0x25B8, }, However, this is not consistent with what you can find on the internetpage from above, since it "0x25B8" should be "blacktriangleright" "The \blacktriangleright command is valid only in math mode. Its translation is ▸ (Unicode U+25B8, ▸)." Secondly, the \triangleleft, which I have not used before, does not work (at least for me ConTeXt ver: 2012.07.10 09:52 MKIV fmt: 2012.7.15 int: english/english): simple example: \starttext $\blacktriangleleft$ % does not appear $\blacktriangleright$ % works \stoptext For the blacktriangleright we have: [0x25B6]={ adobename="blackrightpointingtriangle", category="so", cjkwd="a", description="BLACK RIGHT-POINTING TRIANGLE", direction="on", linebreak="ai", mathclass="bin", mathname="blacktriangleright", unicodeslot=0x25B6, }, which is _not_ consistent with "The \blacktriangleright command is valid only in math mode. Its translation is ▸ (Unicode U+25B8, ▸)." However, looking at http://www.unicodemap.org/details/0x25B6/index.html and given the fact that "blacktriangleright" works nicely, I'd assume that Hans is correct and it indeed is not the small ones but the big tirangles. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is startalign broken in mkiv?
Here's a backward-compatibility hack that works on your minimal example. Maybe it will save the dozens of files without changing all the &s: \let\oldstartalign=\startalign \let\oldstopalign=\stopalign \let\oldbs=\\ \def\startalign{\catcode`&=4\let\\=\cr\oldstartalign} \def\stopalign{\oldstopalign\catcode`&=12\let\\=\oldbs} \starttext This \& that & the other thing: \startformula \startalign v &= u + at \\ h &= ut + \frac12 gt^2 \\ \stopalign \stopformula That \& this & yet another thing. \stoptext Hope that helps. Michael On Jul 17, 2012, at 6:48 PM, Matthias Weber wrote: > It was never a problem in TeX to modify the control characters used according > to your own pleasure. For me, the problem is now to change the 200+ > occurrences of start/stopaligns distributed over dozens of files to the > politically correct syntax. > > Matthias > > On Jul 17, 2012, at 7:41 PM, Khaled Hosny wrote: > >> The use of & (which is a common symbol) as a control character is a long >> standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of. >> >> On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote: >>> Thanks - I wasn't aware that the human readable version had been deprecated >>> :( >>> >>> Matthias >>> >>> On Jul 17, 2012, at 7:17 PM, Hans Hagen wrote: >>> >>>> On 18-7-2012 00:22, Matthias Weber wrote: >>>>> \starttext >>>>> \startformula \startalign >>>>> v &= u + at \\ >>>>> h &= ut + \frac12 gt^2 \\ >>>>> \stopalign \stopformula >>>>> \stoptext >>>>> >>>>> >>>>> >> >>>>> >>>>> ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english >>>>> (...) >>>>> ! Missing $ inserted. >>>>> >>>>> system > tex > error on line 3 in file test.tex: Missing $ >>>>> inserted ... >>>>> >>>>> 1 \starttext >>>>> 2 \startformula \startalign >>>>> 3 >> v &= u + at \\ >>>>> 4 h &= ut + \frac12 gt^2 \\ >>>>> 5 \stopalign \stopformula >>>>> 6 \stoptext >>>>> >>>>> Thanks - >>>> >>>> the context way is: >>>> >>>> \startformula \startalign >>>> \NC v \NC = u + at \NR >>>> \NC h \NC = ut + \frac12 gt^2 \NR >>>> \stopalign \stopformula >>>> >>>> >>>> - >>>>Hans Hagen | PRAGMA ADE >>>>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>>> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com >>>> | www.pragma-pod.nl >>>> - This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is startalign broken in mkiv?
It was never a problem in TeX to modify the control characters used according to your own pleasure. For me, the problem is now to change the 200+ occurrences of start/stopaligns distributed over dozens of files to the politically correct syntax. Matthias On Jul 17, 2012, at 7:41 PM, Khaled Hosny wrote: > The use of & (which is a common symbol) as a control character is a long > standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of. > > On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote: >> Thanks - I wasn't aware that the human readable version had been deprecated >> :( >> >> Matthias >> >> On Jul 17, 2012, at 7:17 PM, Hans Hagen wrote: >> >>> On 18-7-2012 00:22, Matthias Weber wrote: >>>> \starttext >>>> \startformula \startalign >>>> v &= u + at \\ >>>> h &= ut + \frac12 gt^2 \\ >>>> \stopalign \stopformula >>>> \stoptext >>>> >>>> >>>> >> >>>> >>>> ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english >>>> (...) >>>> ! Missing $ inserted. >>>> >>>> system > tex > error on line 3 in file test.tex: Missing $ >>>> inserted ... >>>> >>>> 1 \starttext >>>> 2 \startformula \startalign >>>> 3 >> v &= u + at \\ >>>> 4 h &= ut + \frac12 gt^2 \\ >>>> 5 \stopalign \stopformula >>>> 6 \stoptext >>>> >>>> Thanks - >>> >>> the context way is: >>> >>> \startformula \startalign >>> \NC v \NC = u + at \NR >>> \NC h \NC = ut + \frac12 gt^2 \NR >>> \stopalign \stopformula >>> >>> >>> - >>> Hans Hagen | PRAGMA ADE >>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>> tel: 038 477 53 69 | voip: 087 875 68 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 : http://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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is startalign broken in mkiv?
The use of & (which is a common symbol) as a control character is a long standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of. On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote: > Thanks - I wasn't aware that the human readable version had been deprecated :( > > Matthias > > On Jul 17, 2012, at 7:17 PM, Hans Hagen wrote: > > > On 18-7-2012 00:22, Matthias Weber wrote: > >> \starttext > >> \startformula \startalign > >> v &= u + at \\ > >> h &= ut + \frac12 gt^2 \\ > >> \stopalign \stopformula > >> \stoptext > >> > >> > >> >> > >> > >> ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english > >> (...) > >> ! Missing $ inserted. > >> > >> system > tex > error on line 3 in file test.tex: Missing $ > >> inserted ... > >> > >> 1 \starttext > >> 2 \startformula \startalign > >> 3 >> v &= u + at \\ > >> 4 h &= ut + \frac12 gt^2 \\ > >> 5 \stopalign \stopformula > >> 6 \stoptext > >> > >> Thanks - > > > > the context way is: > > > > \startformula \startalign > > \NC v \NC = u + at \NR > > \NC h \NC = ut + \frac12 gt^2 \NR > > \stopalign \stopformula > > > > > > - > > Hans Hagen | PRAGMA ADE > > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > >tel: 038 477 53 69 | voip: 087 875 68 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On 17-7-2012 20:41, Andreas Mang wrote: Hi Aditya, Thanks for the advice. As I am a newby, I'd decided to respond to the list: I had a look at "char-def.lua" and I think the only thing that needs to be done is to add mathname="blacktriangle", to [0x25B4]={ adobename="blackuppointingsmalltriangle", category="so", description="BLACK UP-POINTING SMALL TRIANGLE", direction="on", linebreak="al", unicodeslot=0x25B4, }, why not 25B2 (the bigger one) The unicodeslot is consistent to what I've found in the famous WWW http://www.fileformat.info/info/unicode/char/25b4/index.htm Same goes for [0x25BE]={ category="so", description="BLACK DOWN-POINTING SMALL TRIANGLE", direction="on", linebreak="al", unicodeslot=0x25BE, }, with mathname="blacktriangledown" under the assumption you'd like to be consistent with the naming convention of latex. or 25BC (the bigger one) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On 17-7-2012 22:36, Khaled Hosny wrote: On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote: On 17-7-2012 19:39, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. keep in mind that not all those black triangles in ams math ended up in unicode AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX support covers them all from STIX Unicode fonts). Also the black triangles left and right (in ams compatible font sizes)? (Last time I messed with it I had to get them from the navigational symbol font). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote: > On 17-7-2012 19:39, Aditya Mahajan wrote: > >On Tue, 17 Jul 2012, Andreas Mang wrote: > > > >>Dear all, > >> > >>The \blacktriangle and \blacktriangledown symbol seem to be missing, > >>though \blacktriangleright and \...-left are defined. Is there a quick > >>way to add missing symbols by myself from the knowledge of Unicode / > >>XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? > > > >For opentype math fonts, have a look at char-def.lua. To add missing > >symbols, you need to add appropriate fields in the lua table. > > > >The hard part is verifying the symbol to unicode slot mapping (the list > >at tralics is not always consistent with the ams list that is used by > >unicode-math package). If you know the right mappings, add a patch to > >char-def.lua and send it to the list (or the dev-context list); > >otherwise, just send the mappings and I can add them to the lua table. > > keep in mind that not all those black triangles in ams math ended up > in unicode AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX support covers them all from STIX Unicode fonts). Regards, Khaled ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On 17-7-2012 19:39, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. keep in mind that not all those black triangles in ams math ended up in unicode (future lm/gyre fonts might have some of these symbols) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
Hi Aditya, Thanks for the advice. As I am a newby, I'd decided to respond to the list: I had a look at "char-def.lua" and I think the only thing that needs to be done is to add mathname="blacktriangle", to [0x25B4]={ adobename="blackuppointingsmalltriangle", category="so", description="BLACK UP-POINTING SMALL TRIANGLE", direction="on", linebreak="al", unicodeslot=0x25B4, }, The unicodeslot is consistent to what I've found in the famous WWW http://www.fileformat.info/info/unicode/char/25b4/index.htm Same goes for [0x25BE]={ category="so", description="BLACK DOWN-POINTING SMALL TRIANGLE", direction="on", linebreak="al", unicodeslot=0x25BE, }, with mathname="blacktriangledown" under the assumption you'd like to be consistent with the naming convention of latex. Right? Cheers, Andreas On Jul 17, 2012, at 7:39 PM, Aditya Mahajan wrote: > On Tue, 17 Jul 2012, Andreas Mang wrote: > >> Dear all, >> >> The \blacktriangle and \blacktriangledown symbol seem to be missing, >> though \blacktriangleright and \...-left are defined. Is there a quick >> way to add missing symbols by myself from the knowledge of Unicode / XML >> identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? > > For opentype math fonts, have a look at char-def.lua. To add missing > symbols, you need to add appropriate fields in the lua table. > > The hard part is verifying the symbol to unicode slot mapping (the list at > tralics is not always consistent with the ams list that is used by > unicode-math package). If you know the right mappings, add a patch to > char-def.lua and send it to the list (or the dev-context list); otherwise, > just send the mappings and I can add them to the lua table. > > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math symbol: blacktriangle
Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? Cheers, Andreas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math: diagonal dots
Dear all, It seems that the \ddots in "modern" is mapped to the wrong Symbol: % \setupbodyfont[modern,12pt] \starttext $\ddots$ \stoptext % System: ConTeXt ver: 2012.07.10 09:52 MKIV result: three dots from bottom left to top right (corresponds to \iddots (which btw. does not exist in context, as it seems)) expected result: three dots from top left to bottom right Seems just to be the case for "modern". Cheers, Andreas ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize behaviour
I do not understand the workings of the itemize. What I want is two nested itemlists. The outer one unpacked, the inner one packed. In the inner one the itemlist should be joinedup with the text before it. I do not get this working, see the examples. The inner list is separated from the "Intro to inner list". It looks like the joinedup in the second example has no effect, because deleting it makes no difference. Switching the joinedup over to the outer itemize in the third example pulls everything together and destroys the unpacked of the first list. How to achieve the following? -- - Intro to inner list o one inner list o two inner list - second outer item -- Hans van der Meer \starttext \setupitemgroup[itemize][1][unpacked][symbol=4] \setupitemgroup[itemize][2][unpacked][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \blank\thinrule\blank \setupitemgroup[itemize][1][unpacked][symbol=4] \setupitemgroup[itemize][2][packed,joinedup][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \blank\thinrule\blank \setupitemgroup[itemize][1][unpacked,joinedup][symbol=4] \setupitemgroup[itemize][2][packed][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \stoptext itemize.pdf Description: itemize.pdf ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] quotationmarks just before new line
Am 03.07.2012 um 15:03 schrieb d_jan: > Hello, > Thanks! That did the job as far as I can see. > I did set the Quotation Marks manually since I considered to change them to > Guillemets (» «) later. When you want to change the quotation marks it’s better to change them with \setuplanguage and set the right sign for the current level with \symbol[…quotation] and \symbol[…quote]. \setuplanguage [de] [ leftquotation=», rightquotation=«, leftquote=›, rightquote=‹] \mainlanguage[de] \starttext text \quotation{text} text \quote{text} text text \quotation{text \quote{text} text} text text \quotation{text \quotation{text} text} text \setupdelimitedtext[quotation:1][left={\symbol[leftquotation]},right={\symbol[rightquotation]}] \setupdelimitedtext[quotation:2][left={\symbol[leftquote]}, right={\symbol[rightquote]}] text \quotation{text \quotation{text} text} text \stoptext BTW: There is a change in the way how to set the values for a certain delimited text level in MkIV as shown above. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List without bullets
Am 30.06.2012 um 00:49 schrieb Gilbert Houtekamer: > Hi, > > I am would like to make \startitemize list with \head that > has no bullets, e.g. > > Topic > > My text for topic > > Another Topic > > Text for another topic. > > With \startitemize and \head I get bullets before "Topic" > and "Another Topic", how can get rid of these? When you the head and the itemize entries are on the same level you can’t change/remove it because head uses the normal item symbol but when you move the entries at a deeper level you can use the empty symbol “none” for the top level and use the “bullet” symbol for the sub level. \starttext \startitemize \starthead {Topic} \startitem My text for topic \stopitem \stophead \starthead {Another Topic} \startitem Text for another topic. \stopitem \stophead \stopitemize \startitemize[none][width=0pt] \starthead {Topic} \startitemize[bullet] \startitem My text for topic \stopitem \stopitemize \stophead \starthead {Another Topic} \startitemize[bullet] \startitem Text for another topic. \stopitem \stopitemize \stophead \stopitemize \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List without bullets
Wolfgang Schuster gmail.com> writes: > > > Am 30.06.2012 um 00:49 schrieb Gilbert Houtekamer: > > > Hi, > > > > I am would like to make \startitemize list with \head that > > has no bullets, e.g. > > > > Topic > > > > My text for topic > > > > Another Topic > > > > Text for another topic. > > > > With \startitemize and \head I get bullets before "Topic" > > and "Another Topic", how can get rid of these? > > When you the head and the itemize entries are on the same level you can’t change/remove it because > head uses the normal item symbol but when you move the entries at a deeper level you can use the empty > symbol “none” for the top level and use the “bullet” symbol for the sub level. > > \starttext > > \startitemize > \starthead {Topic} > \startitem My text for topic \stopitem > \stophead > \starthead {Another Topic} > \startitem Text for another topic. \stopitem > \stophead > \stopitemize > > \startitemize[none][width=0pt] > \starthead {Topic} >\startitemize[bullet] >\startitem My text for topic \stopitem >\stopitemize > \stophead > \starthead {Another Topic} >\startitemize[bullet] >\startitem Text for another topic. \stopitem >\stopitemize > \stophead > \stopitemize > > \stoptext > > Wolfgang > Wolfgang, thank you very much, this is what I wanted. I modified it a bit to give me bold headers, and no bullets at all, as below. \startitemize[none][width=0pt,headstyle=bold] \starthead {Topic} \startitemize[symbol=none] \startitem My text for topic \stopitem \stopitemize \stophead \starthead {Another Topic} \startitemize[symbol=none] \startitem Text for another topic. \stopitem \stopitemize \stophead \stopitemize Gilbert ___ > 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List without bullets
Am 30.06.2012 um 00:49 schrieb Gilbert Houtekamer: > Hi, > > I am would like to make \startitemize list with \head that > has no bullets, e.g. > > Topic > > My text for topic > > Another Topic > > Text for another topic. > > With \startitemize and \head I get bullets before "Topic" > and "Another Topic", how can get rid of these? When you the head and the itemize entries are on the same level you can’t change/remove it because head uses the normal item symbol but when you move the entries at a deeper level you can use the empty symbol “none” for the top level and use the “bullet” symbol for the sub level. \starttext \startitemize \starthead {Topic} \startitem My text for topic \stopitem \stophead \starthead {Another Topic} \startitem Text for another topic. \stopitem \stophead \stopitemize \startitemize[none][width=0pt] \starthead {Topic} \startitemize[bullet] \startitem My text for topic \stopitem \stopitemize \stophead \starthead {Another Topic} \startitemize[bullet] \startitem Text for another topic. \stopitem \stopitemize \stophead \stopitemize \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] List without bullets
Hi, You can customize the symbol appearing in your items, and set it to nothing… \definesymbol[NoSymbol][{}] \definesymbol[MySymbol][{$\heartsuit$}] \starttext \startitemize[Nosymbol] \item foo \item bar \item baz \stopitemize \startitemize[MySymbol,packed] \item foo \item bar \item baz \stopitemize \stoptext Best regards: OK On 30 juin 2012, at 00:49, Gilbert Houtekamer wrote: > Hi, > > I am would like to make \startitemize list with \head that > has no bullets, e.g. > > Topic > > My text for topic > > Another Topic > > Text for another topic. > > With \startitemize and \head I get bullets before "Topic" > and "Another Topic", how can get rid of these? > > Thanks! > > Gilbert Houtekamer > > > > > > > > > ___ > 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF8 in XML
On 25 jun. 2012, at 16:21, Wolfgang Schuster wrote: > > Am 25.06.2012 um 16:03 schrieb Meer, H. van der: > >> Can someone explain why the "element-of" is not printed when directly put >> into the source, but only if introduced through TeX-math? The input file is >> in UTF-8 and in the texteditor the character does appear. Example: > > The symbol does not appear in text mode because the normal font doesn’t > contain it, only the math font does. > > You can see the symbol in your text editor (or in many cases the OS) because > it takes it from another font which has it. ConTeXt shows only the symbols > which are in your font but you can set fallback font with the > \definefontfallback command. > That of the fontfallback sounds nice, allthough I fear it will be a lot of work, even for the currently popular fonts and for my favorite, lucidaot. I guess I will be not much of a helping hand here, because it seems to be tied to typescripts: one of the regions I have always feared. I could not find the definefontfallback mentioned in the wiki. Is there any hope (how faint it might be) that someone will sweep through the typescripts and fix this? Hans van der Meer ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF8 in XML
Am 25.06.2012 um 16:03 schrieb Meer, H. van der: > Can someone explain why the "element-of" is not printed when directly put > into the source, but only if introduced through TeX-math? The input file is > in UTF-8 and in the texteditor the character does appear. Example: The symbol does not appear in text mode because the normal font doesn’t contain it, only the math font does. You can see the symbol in your text editor (or in many cases the OS) because it takes it from another font which has it. ConTeXt shows only the symbols which are in your font but you can set fallback font with the \definefontfallback command. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Tabulate and \EQ
Hi, in MkIV there is no space in front of the \EQ symbol in the second row while in MkII there is a space. \starttext \starttabulate \NC A\EQ B \NC\NR \NC Left \EQ Right \NC\NR \stoptabulate \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Laundry symbols (now: altered picture)
... OK, much clearer now. Thanks for explanation. Best regards, Lukas On Tue, 05 Jun 2012 18:06:28 +0200, Wolfgang Schuster wrote: Am 05.06.2012 um 17:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Thank you, Wolfgang. Two more questions, hope there'll be no more about this stuff. On Tue, 05 Jun 2012 17:01:28 +0200, Wolfgang Schuster wrote: \usesymbols[mvs] \starttext \symbol[martinvogel 2][ShortForty] \stoptext or \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[ShortForty] \stoptext Wolfgang - How to scale the desired symbol, e.g. 5 times? I played with "scale" somehow, but no effect. It scales with the current font size. \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[ShortForty] {\tfd\symbol[ShortForty]} \stoptext - Where the symbol set name "martinvogel 2" comes from? Is it a name "built in" the font file? The symbols are defined in symb-imp-mvs.mkiv, with \usesymbols[…] you load the file. - - Is "2" part of the name or does it mean something, e.g. a factor? The symbols are just put in named groups and “martinvogel 2” is the name of one of these groups (there is also “martinvogel 1”, don’t know how created these names). When you define a symbol you can set the name as \definesymbol[]{} or out it in a category with \definesymbol[][]{} When you have many symbols which you want to put in a category you can say \startsymbolset [] \definesymbol[]{} \definesymbol[]{} \stopsymbolset and omit the first argument. To print a symbol from this symbolset you have to write \symbol[][] but when you add \setupsymbolset[] to your document ConTeXt will search in this symbol set even when you write only \symbol[] Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Laundry symbols (now: altered picture)
Am 05.06.2012 um 17:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > Thank you, Wolfgang. > > Two more questions, hope there'll be no more about this stuff. > > On Tue, 05 Jun 2012 17:01:28 +0200, Wolfgang Schuster > wrote: > >> \usesymbols[mvs] >> >> \starttext >> \symbol[martinvogel 2][ShortForty] >> \stoptext >> >> or >> >> \usesymbols[mvs] >> >> \setupsymbolset[martinvogel 2] >> >> \starttext >> \symbol[ShortForty] >> \stoptext >> >> Wolfgang > > - How to scale the desired symbol, e.g. 5 times? I played with "scale" > somehow, but no effect. It scales with the current font size. \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[ShortForty] {\tfd\symbol[ShortForty]} \stoptext > - Where the symbol set name "martinvogel 2" comes from? Is it a name "built > in" the font file? The symbols are defined in symb-imp-mvs.mkiv, with \usesymbols[…] you load the file. > - - Is "2" part of the name or does it mean something, e.g. a factor? The symbols are just put in named groups and “martinvogel 2” is the name of one of these groups (there is also “martinvogel 1”, don’t know how created these names). When you define a symbol you can set the name as \definesymbol[]{} or out it in a category with \definesymbol[][]{} When you have many symbols which you want to put in a category you can say \startsymbolset [] \definesymbol[]{} \definesymbol[]{} \stopsymbolset and omit the first argument. To print a symbol from this symbolset you have to write \symbol[][] but when you add \setupsymbolset[] to your document ConTeXt will search in this symbol set even when you write only \symbol[] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Laundry symbols (now: altered picture)
Thank you, Wolfgang. Two more questions, hope there'll be no more about this stuff. On Tue, 05 Jun 2012 17:01:28 +0200, Wolfgang Schuster wrote: \usesymbols[mvs] \starttext \symbol[martinvogel 2][ShortForty] \stoptext or \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[ShortForty] \stoptext Wolfgang - How to scale the desired symbol, e.g. 5 times? I played with "scale" somehow, but no effect. - Where the symbol set name "martinvogel 2" comes from? Is it a name "built in" the font file? - - Is "2" part of the name or does it mean something, e.g. a factor? Thanks again. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Laundry symbols (now: altered picture)
Am 05.06.2012 um 16:57 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > ... Thanks both for your answers. > > My code so far is: > > > \usesymbols[mvs] > > \starttext > \startcolumns[n=2,rule=on] >\showsymbolset[martinvogel 2] > \stopcolumns > > \page > \startcolumns[n=4,rule=on] >\dorecurse{1024}{\recurselevel > --\getglyph{marvosym}{\char\recurselevel\par}} > \stopcolumns > \stoptext > > > And how to access symbols by their names, e.g. how to use symbol named > "AtForty"? > > - The symbol list shows only symbolic names, not values (to be used with > Marco's \char ). > > \AtForty gives error, so is it to be used with \usesymbol or \symbol or > something like that? \usesymbols[mvs] \starttext \symbol[martinvogel 2][ShortForty] \stoptext or \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[ShortForty] \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Laundry symbols (now: altered picture)
... Thanks both for your answers. My code so far is: \usesymbols[mvs] \starttext \startcolumns[n=2,rule=on] \showsymbolset[martinvogel 2] \stopcolumns \page \startcolumns[n=4,rule=on] \dorecurse{1024}{\recurselevel --\getglyph{marvosym}{\char\recurselevel\par}} \stopcolumns \stoptext And how to access symbols by their names, e.g. how to use symbol named "AtForty"? - The symbol list shows only symbolic names, not values (to be used with Marco's \char ). \AtForty gives error, so is it to be used with \usesymbol or \symbol or something like that? Lukas On Tue, 05 Jun 2012 16:32:49 +0200, Wolfgang Schuster wrote: \getglyph{marvosym}{\char 247} To find out which symbols are at which slot, use \showfont [marvosym] It’s easier to create a list with all symbols and their names. \usesymbols[mvs] \starttext \showsymbolset[martinvogel 2] \stoptext -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 Laundry.mkiv Description: Binary data ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Laundry symbols (now: altered picture)
Am 05.06.2012 um 16:26 schrieb Marco: > On 2012-06-05 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > >> is there a way how to get laundry symbols into ConTeXt? > > The proper way would be to use ConTeXts symbol mechanism. I guess > the symbols can then be accessed my name. However, I didn't find the > laundry symbol names in any MkIV file in the distribution. It seems > that nobody maintained an up-to-date list. > > You can always access the characters directly: > > \getglyph{marvosym}{\char 247} > > To find out which symbols are at which slot, use > > \showfont [marvosym] It’s easier to create a list with all symbols and their names. \usesymbols[mvs] \starttext \showsymbolset[martinvogel 2] \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Laundry symbols (now: altered picture)
On 2012-06-05 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > is there a way how to get laundry symbols into ConTeXt? The proper way would be to use ConTeXts symbol mechanism. I guess the symbols can then be accessed my name. However, I didn't find the laundry symbol names in any MkIV file in the distribution. It seems that nobody maintained an up-to-date list. You can always access the characters directly: \getglyph{marvosym}{\char 247} To find out which symbols are at which slot, use \showfont [marvosym] Marco ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Laundry symbols (now: altered picture)
Hello ConTeXters, is there a way how to get laundry symbols into ConTeXt? - The image is copied from "The Comprehensive LATEX Symbol List", Scott Pakin. TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038<>___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Zapf Dingbats font
On 3-6-2012 09:04, Alfredo Catalina wrote: Ok, thanks Luigi. This is how I sorted it out, hope it may help someone. It looks like I should write a typescript and a symbol definition file, but I new to this and don't know how to do it yet. This is a workaround for the meantime: - Download the free True Type font "Zapf Dingbats BT" from http://www.ufonts.com/fonts/zapf-dingbats-bt.html - You should have got the file ufonts.com_zapf-dingbats-bt-2.ttf or an EXE file -an installer- - In windows 7 it may be installed by clicking "install" -context menu, right mouse click- - Generate Context font database: mtxrun --script fonts --reload - Check it's been read: mtxrun --script fonts --list --all --pattern=zapf* - You should have several lines like "zapfdingbatsbt zapfdingbatsitcbybtregular c:/windows/fonts/ufonts.com_zapf-dingbats-bt-2.ttf" - Finally this is how I get the characters I need: \definefont[zapfdingbats][ufonts.com_zapf-dingbats-bt-2.ttf at 10pt] \starttext Testing: {\zapfdingbats \char109} %shadowed white circle \stoptext in the distrubution from the contextgarden \definefont[zapfdingbats][ZapfDingbats] should work as well Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Zapf Dingbats font
Ok, thanks Luigi. This is how I sorted it out, hope it may help someone. It looks like I should write a typescript and a symbol definition file, but I new to this and don't know how to do it yet. This is a workaround for the meantime: - Download the free True Type font "Zapf Dingbats BT" from http://www.ufonts.com/fonts/zapf-dingbats-bt.html - You should have got the file ufonts.com_zapf-dingbats-bt-2.ttf or an EXE file -an installer- - In windows 7 it may be installed by clicking "install" -context menu, right mouse click- - Generate Context font database: mtxrun --script fonts --reload - Check it's been read: mtxrun --script fonts --list --all --pattern=zapf* - You should have several lines like "zapfdingbatsbt zapfdingbatsitcbybtregular c:/windows/fonts/ufonts.com_zapf-dingbats-bt-2.ttf" - Finally this is how I get the characters I need: \definefont[zapfdingbats][ufonts.com_zapf-dingbats-bt-2.ttf at 10pt] \starttext Testing: {\zapfdingbats \char109} %shadowed white circle \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] space between footnotes
Am 02.06.2012 um 16:17 schrieb Pablo Rodríguez: > On 02/06/12 15:42, Philipp Gesang wrote: >> Hi Pablo! >> >> · >> >>> I have two questions: >>> >>> Is inbetween the right option to add space only between notes? >> >> Afaict *\setupnotation* has no “inbetween” key, but “\setupnote” >> has. > > Many thanks for your reply and your explanation, Philipp. > > At strc-not.mkvi both "\setuptnotation" and "\setupnote" have an > "inbetween" option. When you print all footnotes entries in a single paragraph the inbetween parameter from \setupnote is used to add something (can be a horizontal space or a symbol etc.) between the individual notes. The inbetween parameter from \setupnotation is used when you have the setup \setupnotation[alternative=top]. >> In the latter case it is only meaningful for paragraph-style >> (serried) footnotes: >> >> >> \setupnote[footnote][ >> paragraph=yes, >> inbetween=\hskip 5em, >> ] >> \starttext >> \dorecurse{5}{foot\footnote{note}} >> \stoptext >> >> >> Unfortunately with ordinary settings it is ignored altogether. > > If this isn't a bug, I wonder whether this shouldn't be implemented. It > makes sense. Add \setupnotation[footnote][display=no] and the example will work. >> The alternative you are looking for might be to locally set a >> different parskip for the footnote inserts: > > It adds the space also before or after the first or last one (I guess > this is the way these options should work). It’s a bug because in the following example even the space between the notes is too big, it should be 5mm but actually it’s 10mm. \setupnotation[footnote][before={\blank[5mm]},after={\blank[5mm]}] \starttext \showframe \dorecurse{5}{foot\footnote{note} } \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Zapf Dingbats font
Can the Zapf Dingbats font be used in MKIV? I can't do it work I have downloaded the symb-uni-zapf.zip<http://dl.contextgarden.net/websitesarchive/atl/tex/symb-uni-zapf.zip> file from http://dl.contextgarden.net/websitesarchive/atl/tex/. Then I unpacked it and copied the .tfm, .enc and .map files in texmf-context/fonts as well as symb-uzd.tex in texmf-context/tex/context/third I then run mtxrun --script fonts --reload and context --generate I tried usetypescriptfile[symb-uzd.tex] \usesymbols[uzd] \symbol[Unicode Shadowed Shapes][LowerRightDrop-shadowedWhiteSquare] but it doesn't work. Any ideas? ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where is the documentation of the letter module
>>>>>> [...] I'm struggling to get the enclosures into an itemized list. This >>>>>> used to work with the old letter module but now fails: >>>> >>>> \startletter[enclosure={A\\B\\C}, ...] --> encl: AcrlfBcrlfC >>>> >>>> In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang >>>> proposed \startletter[enclosure={list:one,two,three}, ...] to get an >>>> itemized list. But this does not seem to be implemented yet. How would I >>>> get this right? >>> >>> It does work but you need MkIV: >>> >>> \usemodule[letter] >>> >>> \setupletterdescription >>> [enclosure] >>> [ >>> location=top, >>> leftmargin=1em, >>> symbol=bullet, >>> ] >>> >>> \setupletter >>> [enclosure={list:One,Two,Three}] >>> >>> \startletter >>> \input knuth >>> \stopletter >> >> Thanks, Wolfgang, got that working now. But I'd like to change the >> formatting of the list further from >> >> encl: >> * One >> * Two >> * Three >> >> to >> >> encl: One >> Two >> Three >> >> without symbols. So I tried: >> >> \setupletterdescription [enclosure] [symbol=bullet] >> >> This did not work so I tried: >> >> \definesymbol[nosymbol][{}] >> \setupletterdescription [enclosure] [symbol=nosymbol] > > ConTeXt has a empty symbol with the name “none”. Very helpful indeed! >> But that results in: >> >> encl: One >> Two >> Three >> >> I cannot remove the extra space with: >> >> \setupletterdescription [enclosure] [symbol=nosymbol,distance=0em] >> >> Note, that this works: >> >> \setupitemize[each][fit][distance=0em] >> \startitemize >> \item no extra space before bullet >> \stopitemize >> >> --> *no extra space before bullet >> >> However, it does not work with an enumeration once the symbol was removed: >> >> \setupitemize[each][fit][symbol={},distance=0em] > > \setupitemize[each][symbol=none,width=0pt,distance=0pt] Good! >> \startitemize >> \item item >> \stopitemize >> >> --> item > > I uploaded a new revision which doesn’t insert an extra space when you use > “symbol=none”. Thanks for this quick enhancement, works now! Just for completeness: How do I change the distance between bullet and item text in your original suggestion? Adding 'width=' here does not change anything: \setupletterdescription [enclosure] [ location=top, leftmargin=1em, width=5pt, symbol=bullet ] Florian ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where is the documentation of the letter module
Am 30.05.2012 um 11:58 schrieb Florian Wobbe: >>>>> [...] I'm struggling to get the enclosures into an itemized list. This >>>>> used to work with the old letter module but now fails: >>> >>> \startletter[enclosure={A\\B\\C}, ...] --> encl: AcrlfBcrlfC >>> >>> In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang >>> proposed \startletter[enclosure={list:one,two,three}, ...] to get an >>> itemized list. But this does not seem to be implemented yet. How would I >>> get this right? >> >> It does work but you need MkIV: >> >> \usemodule[letter] >> >> \setupletterdescription >> [enclosure] >> [ >>location=top, >>leftmargin=1em, >>symbol=bullet, >> ] >> >> \setupletter >> [enclosure={list:One,Two,Three}] >> >> \startletter >> \input knuth >> \stopletter > > Thanks, Wolfgang, got that working now. But I'd like to change the formatting > of the list further from > > encl: > * One > * Two > * Three > > to > > encl: One > Two > Three > > without symbols. So I tried: > > \setupletterdescription [enclosure] [symbol=bullet] > > This did not work so I tried: > > \definesymbol[nosymbol][{}] > \setupletterdescription [enclosure] [symbol=nosymbol] ConTeXt has a empty symbol with the name “none”. > But that results in: > > encl: One > Two > Three > > I cannot remove the extra space with: > > \setupletterdescription [enclosure] [symbol=nosymbol,distance=0em] > > Note, that this works: > > \setupitemize[each][fit][distance=0em] > \startitemize > \item no extra space before bullet > \stopitemize > > --> *no extra space before bullet > > However, it does not work with an enumeration once the symbol was removed: > > \setupitemize[each][fit][symbol={},distance=0em] \setupitemize[each][symbol=none,width=0pt,distance=0pt] > \startitemize > \item item > \stopitemize > > --> item I uploaded a new revision which doesn’t insert an extra space when you use “symbol=none”. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where is the documentation of the letter module
>>>> [...] I'm struggling to get the enclosures into an itemized list. This >>>> used to work with the old letter module but now fails: >> >> \startletter[enclosure={A\\B\\C}, ...] --> encl: AcrlfBcrlfC >> >> In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang >> proposed \startletter[enclosure={list:one,two,three}, ...] to get an >> itemized list. But this does not seem to be implemented yet. How would I get >> this right? > > It does work but you need MkIV: > > \usemodule[letter] > > \setupletterdescription > [enclosure] > [ > location=top, > leftmargin=1em, > symbol=bullet, > ] > > \setupletter > [enclosure={list:One,Two,Three}] > > \startletter > \input knuth > \stopletter Thanks, Wolfgang, got that working now. But I'd like to change the formatting of the list further from encl: * One * Two * Three to encl: One Two Three without symbols. So I tried: \setupletterdescription [enclosure] [symbol=bullet] This did not work so I tried: \definesymbol[nosymbol][{}] \setupletterdescription [enclosure] [symbol=nosymbol] But that results in: encl: One Two Three I cannot remove the extra space with: \setupletterdescription [enclosure] [symbol=nosymbol,distance=0em] Note, that this works: \setupitemize[each][fit][distance=0em] \startitemize \item no extra space before bullet \stopitemize --> *no extra space before bullet However, it does not work with an enumeration once the symbol was removed: \setupitemize[each][fit][symbol={},distance=0em] \startitemize \item item \stopitemize --> item Florian ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Where is the documentation of the letter module
Am 30.05.2012 um 01:30 schrieb Florian Wobbe: >>> is there anyone else who knows where the current correspondence docu >>> resides? I tried again to locate it but to no avail. >> >> There is some guidance about what's new in these messages: >> >> http://www.ntg.nl/pipermail/ntg-context/2012/064695.html >> >> http://www.ntg.nl/pipermail/ntg-context/2012/065039.html > > Michael, thanks a lot. These were in fact the missing links! With the help of > the comments in the thread above and looking into the sources I was able to > reproduce most of my old letter template. However, I'm struggling to get the > enclosures into an itemized list. This used to work with the old letter > module but now fails: > > \startletter[enclosure={A\\B\\C}, ...] --> encl: AcrlfBcrlfC > > In http://www.ntg.nl/pipermail/ntg-context/2012/064721.html Wolfgang proposed > \startletter[enclosure={list:one,two,three}, ...] to get an itemized list. > But this does not seem to be implemented yet. How would I get this right? It does work but you need MkIV: \usemodule[letter] \setupletterdescription [enclosure] [ location=top, leftmargin=1em, symbol=bullet, ] \setupletter [enclosure={list:One,Two,Three}] \startletter \input knuth \stopletter > Wolfgang, I believe I found a bug that introduces some extra space in the > backaddress: "fromname, , fromaddress". Here is the fix: > > […] Fixed. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to typeset recipe symbol for a doctor's prescription pad
Dear Joel, For the next time, PLEASE don't try to reply to digest. Please, also don't try to reply to unrelated messages by changing their subject (just because it is easier that placing email of the mailing list into a new template) since that confuses message archives completely. Please, always start a NEW message for a new topic and write or copy-paste ntg-context at ntg.nl into the appropriate field. Don't try to cheat by replying to unrelated messages. (And even if you absolutely must do that, then please, at least DELETE everything else that is not related.) In particular - in case that you are reading ConTeXt mailing list in digest mode, please don't reply to digest, leaving thirty other unrelated messages in the same post. When using digest mode it might also help to add yourself to CC in your own message or to ask people to add you to CC, so that you get the answer directly, can reply in a clean way and don't have to wait for digest to arrive to solve your problem. Mojca On Tue, May 29, 2012 at 5:24 AM, yuji sakai wrote: > Good day! ... > > From: "ntg-context-request@..." > To: "ntg-context@..." > Sent: May 29, 2012 3:27 AM > Subject: ntg-context Digest, Vol 95, Issue 102 > > Send ntg-context mailing list submissions to > ntg-context@... > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-request@... > > You can reach the person managing the list at > ntg-context-owner@... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to typeset recipe symbol for a doctor's prescription pad
On Tue, 29 May 2012, yuji sakai wrote: Been trying to typeset a prescription pad template for a doctor but am stumped at the recipe symbol. Searched the internet for help but I just couldn't find it. Hope someone who has tried using this symbol in MKIV can help me with this one. That is unicode 211E character, although in most fonts it does not look nice. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to typeset recipe symbol for a doctor's prescription pad
Good day! Been trying to typeset a prescription pad template for a doctor but am stumped at the recipe symbol. Searched the internet for help but I just couldn't find it. Hope someone who has tried using this symbol in MKIV can help me with this one. Thanks. Joel Mendoza -- *From:* "ntg-context-requ...@ntg.nl" *To:* "ntg-context@ntg.nl" *Sent:* May 29, 2012 3:27 AM *Subject:* ntg-context Digest, Vol 95, Issue 102 Send ntg-context mailing list submissions to ntg-context@ntg.nl To subscribe or unsubscribe via the World Wide Web, visit http://www.ntg.nl/mailman/listinfo/ntg-context or, via email, send a message with subject or body 'help' to ntg-context-requ...@ntg.nl You can reach the person managing the list at ntg-context-ow...@ntg.nl When replying, please edit your Subject line so it is more specific than "Re: Contents of ntg-context digest..." Today's Topics: 1. Re: thelabel problem (luigi scarso) 2. Re: Missing "missing character" warning (Hans Hagen) 3. Re: thelabel problem (luigi scarso) 4. Re: thelabel problem (Alfredo Catalina) 5. Re: Missing "missing character" warning (Hans Hagen) 6. Re: \footnote numbering starting with 3 (Marco Pessotto) 7. Re: Math fonts in TeXLive 2012 (Tim Steenvoorden) -- Message: 1 Date: Mon, 28 May 2012 21:06:01 +0200 From: luigi scarso To: mailing list for ConTeXt users Subject: Re: [NTG-context] thelabel problem Message-ID: Content-Type: text/plain; charset=UTF-8 On Mon, May 28, 2012 at 8:54 PM, Alfredo Catalina wrote: > Contents of the log file: > > (kk.tex > ConTeXt? ver: 2011.05.18 18:04 MKIV? fmt: 2012.5.28? int: english/english > system? > cont-new.mkiv loaded Ah --- are you running mkiv ? It's ok with mkii, ie mtxrun texexec kk.tex I need to check with mkiv, ie context kk.tex -- luigi -- Message: 2 Date: Mon, 28 May 2012 21:15:47 +0200 From: Hans Hagen To: mailing list for ConTeXt users Cc: Taco Hoekwater ,Mojca Miklavec Subject: Re: [NTG-context] Missing "missing character" warning Message-ID: <4fc3cee3.4070...@wxs.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 28-5-2012 20:51, Mojca Miklavec wrote: > On Mon, May 28, 2012 at 7:00 PM, Hans Hagen wrote: >> On 28-5-2012 18:26, Marco Pessotto wrote: >> >>> After a lot of mumbling by myself... Is there a reason not to have the >>> fonts.missing tracker enabled by default? Performance hit? >> >> indeed > > Still, given the large amount of data that gets printed during a > compilation (it is basically impossible to figure out if something > goes wrong without carefully looking at the log), I would also support > the idea to print missing characters by default. > > I'm also contemplating a different idea (after TL): wouldn't it be > nice if ConTeXt (luatex) would print warnings (missing image, missing > module, missing character, ...) in colour (if that's supported), to > make it clearly stand out from the rest? > > clang and CMake use that regularly for example. > > Mojca > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - -- Message: 3 Date: Mon, 28 May 2012 21:16:25 +0200 From: luigi scarso To: mailing list for ConTeXt users Subject: Re: [NTG-context] thelabel problem Message-ID: Content-Type: text/plain; charset=UTF-8 On Mon, May 28, 2012 at 9:06 PM, luigi scarso wrote: > Ah --- are you running mkiv ? > It's ok with mkii, ie > mtxrun texexec kk.tex > > I need to check with mkiv, ie > context kk.tex mkiv has draw externalfigure while mkii has externalfigure This is ok \starttext Testing \startuseMPgraphic{gh} picture pic; numeric u; u:=1; textX:=87.51u; textY:=96.31u; pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0)
Re: [NTG-context] Small integral signes with Palatino
AFAIK, no. The code that handles extensible delimiters changed, but IIUC we are not talking about extensible symbol here. Regards, Khaled On Fri, May 25, 2012 at 01:13:10AM +0200, Hans Hagen wrote: > Hi Khaled, > > just checking ... did the code related to display operator heights > change as part of the math cleanup? > > Hans > > > > > On 25-5-2012 00:40, Aditya Mahajan wrote: > >On Fri, 25 May 2012, Mojca Miklavec wrote: > > > >>On Fri, May 25, 2012 at 12:05 AM, Mojca Miklavec wrote: > >>>On Thu, May 24, 2012 at 3:59 PM, Aditya Mahajan wrote: > >>>> > >>>>Any idea when this was introduced (or if this bug was always present)? > >>> > >>>beta 2011.07.14 16:09 > >> > >>Oh, I'm sorry, nonsense. That was the last working one. The one > >>introducing the bug was > >>2011.07.19 10:35 > >> > >>https://github.com/mojca/context/commit/a3f9fa299ecc3c9d8c3989c6e219dd9a1bcefaa1 > >> > >> > >>In that version the functionality was completely broken (overlapping > >>limits), then it improved with time a bit, but never recovered > >>properly back. > > > >I tested with asana, hoping that opentype fonts will behave better, but > >asana is hopelessly broken in the other direction: too big integrals and > >sums. To fix asana, change > > > >DisplayOperatorMinHeight = more, > > > >to > > > >DisplayOperatorMinHeight = 0, > > > >(or just comment it) in asana-math.lfg. After that, you can at least use > >asana math as a work around. > > > >Euler and Stix fonts work OK, and surprisingly so is txfonts! I thought > >that px- and tx-fonts were handled identically. Why does the bug only > >appear with px-fonts? > > > >Comparing the two files, I noticed that skewchar is not set in px fonts. > >Line 22 of px-math.lfg should be: > > > >{ name = "texgyrepagella-bold.otf", vector = "tex-bf", skewchar=0x7F } , > > > >(but even after that change $\hat {\bi A}$ is set incorrectly). > > > >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 : http://foundry.supelec.fr/projects/contextrev/ > >wiki : http://contextgarden.net > >___ > > > > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Testing TeX Live 2012
!=((void *)0)' failed. Program received signal SIGABRT, Aborted. 0xb7fe2424 in __kernel_vsyscall () (gdb) bt #0 0xb7fe2424 in __kernel_vsyscall () #1 0xb7e7d781 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0xb7e80bb2 in *__GI_abort () at abort.c:92 #3 0xb7e768e8 in *__GI___assert_fail ( assertion=0x849895d "file_tree!=((void *)0)", file=0x84985f4 "../../../texk/web2c/luatexdir/image/writejbig2.w", line=818, function=0x84989d3 "write_jbig2") at assert.c:81 #4 0x080c6381 in write_jbig2 (pdf=0x89a9330, idict=0x8b933b0) at ../../../texk/web2c/luatexdir/image/writejbig2.w:818 #5 0x080c3bcf in write_img (pdf=0x89a9330, idict=0x8b933b0) at ../../../texk/web2c/luatexdir/image/writeimg.w:595 #6 0x080c3caa in pdf_write_image (pdf=0x89a9330, n=15) at ../../../texk/web2c/luatexdir/image/writeimg.w:622 #7 0x080d3478 in pdf_end_page (pdf=0x89a9330) at ../../../texk/web2c/luatexdir/pdf/pdfgen.w:1939 #8 0x080da42d in ship_out (pdf=0x89a9330, p=4282, shipping_mode=SHIPPING_PAGE) at ../../../texk/web2c/luatexdir/pdf/pdfshipout.w:295 #9 0x080edc8b in box_end (box_context=1073872897) at ../../../texk/web2c/luatexdir/tex/maincontrol.w:1398 #10 0x080fb97f in package (c=0) at ../../../texk/web2c/luatexdir/tex/packaging.w:1271 #11 0x080ed219 in handle_right_brace () ---Type to continue, or q to quit--- at ../../../texk/web2c/luatexdir/tex/maincontrol.w:1189 #12 0x080ec8a8 in main_control () at ../../../texk/web2c/luatexdir/tex/maincontrol.w:905 #13 0x080e9ad2 in main_body () at ../../../texk/web2c/luatexdir/tex/mainbody.w:469 #14 0x080c1a17 in main (ac=5, av=0xb384) at ../../../texk/web2c/luatexdir/luatex.c:460 (gdb) (gdb) bt full #0 0xb7fe2424 in __kernel_vsyscall () No symbol table info available. #1 0xb7e7d781 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 resultvar = pid = -1208393740 selftid = 17990 #2 0xb7e80bb2 in *__GI_abort () at abort.c:92 act = {__sigaction_handler = {sa_handler = 0x88, sa_sigaction = 0x88}, sa_mask = {__val = {305, 136, 3086578592, 3086573556, 3086578592, 118, 3221221136, 3085708477, 147998000, 3086573556, 3086573556, 119, 3221221336, 3085643608, 148803032, 148803032, 118, 147998000, 0, 4222451712, 148803032, 148803133, 148803032, 148803032, 148803150, 148803332, 148803032, 148803332, 0, 0, 0, 0}}, sa_flags = 0, sa_restorer = 0x2} sigs = {__val = {32, 0 }} #3 0xb7e768e8 in *__GI___assert_fail ( assertion=0x849895d "file_tree!=((void *)0)", file=0x84985f4 "../../../texk/web2c/luatexdir/image/writejbig2.w", line=818, function=0x84989d3 "write_jbig2") at assert.c:81 buf = 0x8de8f08 "luatex: ../../../texk/web2c/luatexdir/image/writejbig2.w:818: write_jbig2: Assertion `file_tree!=((void *)0)' failed.\n" #4 0x080c6381 in write_jbig2 (pdf=0x89a9330, idict=0x8b933b0) ---Type to continue, or q to quit--- at ../../../texk/web2c/luatexdir/image/writejbig2.w:818 fip = 0x0 tmp = {file = 0x8123802, filepath = 0xb7f964c0 "\207(\255\373\ae\371\267\ae\371\267\ae\371\267\ae\371\267\ae\371\267\ae\371\267\ae\371\267\be", , filesize = 137152399, pages = {first = 0xb08c, last = 0x8663646, tree = 0x0}, page0 = {first = 0xb6d46008, last = 0xb0a8, tree = 0x812358b}, filehdrflags = 3086574784, sequentialaccess = 1024, numofpages = 139035261, streamstart = -1073745740, pdfpage0objnum = 144347952, phase = INITIAL} pip = 0xb0b4 __PRETTY_FUNCTION__ = "write_jbig2" #5 0x080c3bcf in write_img (pdf=0x89a9330, idict=0x8b933b0) at ../../../texk/web2c/luatexdir/image/writeimg.w:595 __PRETTY_FUNCTION__ = "write_img" #6 0x080c3caa in pdf_write_image (pdf=0x89a9330, n=15) at ../../../texk/web2c/luatexdir/image/writeimg.w:622 No locals. #7 0x080d3478 in pdf_end_page (pdf=0x89a9330) at ../../../texk/web2c/luatexdir/pdf/pdfgen.w:1939 j = 0 annots = 0 ---Type to continue, or q to quit--- beads = 0 res_p = 0xa185b00 local_page_resources = {resources_tree = 0xce575, last_resources = 0} annot_list = 0x0 bead_list = 0x0 link_list = 0x0 ol = 0xa1fafe8 ol1 = 0x0 save_cur_page_size = {h = -47362866, v = -1073745640} save_shipping_mode = NOT_SHIPPING procset = 1 __PRETTY_FUNCTION__ = "pdf_end_page" #8 0x080da42d in ship_out (pdf=0x89a9330, p=4282, shipping_mode=SHIPPING_PAGE) at ../../../texk/web2c/luatexdir/pdf/pdfshipout.w:295 j = 0 k = 47362866 post_callback_id = 31 pre_callback_id = 30 refpoint = {pos = {h = 4736286, v = 47362866}, dir = 135247
[NTG-context] about \hangaround, defineenumeration
Dear all, I defined enumerations "Theorem", "Proof", and "Example" as in the sample code. It works fine, but I'd like to arrange it in better shape. 1. Theorem 1 and it's proof look good. 2. The proof of Theorem 2 i) when I use \startitemize it starts from the next line not immediately after "Proof". Q: How to start the sentence right after "Proof"? ii) after \stopitemize, it changes the line and put blacksquare at the end. So, there is a blank line always. Q: How to place blacksquare at the end of the last line of the sentence? iii) leading symbol of itemize, "b" is inside the figure. Q: How to correct this or is it possible to place the figure at the right side? 3. I'd like to put "Example" and it's number in a frame, but I couldn't. Is there a way of doing that? Should I make a new command to do that? Thank you for reading. Best regards, Dalyoung ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] greek items broken:
Am 09.05.2012 um 11:50 schrieb Meer, H. van der: > > On 9 mei 2012, at 11:15, Hans Hagen wrote: > >> On 9-5-2012 09:31, Meer, H. van der wrote: >>> >>> On 8 mei 2012, at 22:25, Wolfgang Schuster wrote: >>> >>> >>> Am 08.05.2012 um 19:32 schrieb Meer, H. van der: >>> >>> I do not get lowercase greek letters on the itemize as should happen with >>> symbol setup g. >>> A minimal example, showing the demise of lowercase greek against succes for >>> uppercase. >>> >>> It’s a font problem because MkII took the greek letters from the math font >>> but MkIV >>> takes them from the text font and Latin Modern doesn’t have lower case >>> greek letters. >>> >>> Thanks. I was not aware of that problem. >>> Indeed, the greek lowercase appears with \setupbodyfont[postscript]. >>> But not with the brandnew \setupbodyfont[lucidaot], which is quite a >>> nuisance. Can it be remedied with a more generic mkiv solution? >> >> - you can define a combined font that gets greek from a math font >> - you can define a conversion that takes greek from a math font >> >> (the second one could then be hooked into the 'g' option) > > > I see, although I have not the faintest notion how to accomplish that. \defineconversion [mathgreek] [\m{α},\m{β},\m{γ},\m{δ},\m{ε},\m{ζ}, \m{η},\m{θ},\m{ι},\m{κ},\m{λ},\m{μ}, \m{ν},\m{ξ},\m{ο},\m{π},\m{ρ},\m{σ}, \m{τ},\m{υ},\m{φ},\m{χ},\m{ψ},\m{ω}] %\setupbodyfont[lucidaot] \starttext \starttabulate \NC greek \EQ \dorecurse{24}{\convertnumber{greek}{\recurselevel} } \NC\NR \NC mathgreek \EQ \dorecurse{24}{\convertnumber{mathgreek}{\recurselevel} } \NC\NR \stoptabulate \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] greek items broken:
On 9 mei 2012, at 11:15, Hans Hagen wrote: On 9-5-2012 09:31, Meer, H. van der wrote: On 8 mei 2012, at 22:25, Wolfgang Schuster wrote: Am 08.05.2012 um 19:32 schrieb Meer, H. van der: I do not get lowercase greek letters on the itemize as should happen with symbol setup g. A minimal example, showing the demise of lowercase greek against succes for uppercase. It’s a font problem because MkII took the greek letters from the math font but MkIV takes them from the text font and Latin Modern doesn’t have lower case greek letters. Thanks. I was not aware of that problem. Indeed, the greek lowercase appears with \setupbodyfont[postscript]. But not with the brandnew \setupbodyfont[lucidaot], which is quite a nuisance. Can it be remedied with a more generic mkiv solution? - you can define a combined font that gets greek from a math font - you can define a conversion that takes greek from a math font (the second one could then be hooked into the 'g' option) I see, although I have not the faintest notion how to accomplish that. Hans van der Meer ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] greek items broken:
On 9-5-2012 09:31, Meer, H. van der wrote: On 8 mei 2012, at 22:25, Wolfgang Schuster wrote: Am 08.05.2012 um 19:32 schrieb Meer, H. van der: I do not get lowercase greek letters on the itemize as should happen with symbol setup g. A minimal example, showing the demise of lowercase greek against succes for uppercase. It’s a font problem because MkII took the greek letters from the math font but MkIV takes them from the text font and Latin Modern doesn’t have lower case greek letters. Thanks. I was not aware of that problem. Indeed, the greek lowercase appears with \setupbodyfont[postscript]. But not with the brandnew \setupbodyfont[lucidaot], which is quite a nuisance. Can it be remedied with a more generic mkiv solution? - you can define a combined font that gets greek from a math font - you can define a conversion that takes greek from a math font (the second one could then be hooked into the 'g' option) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] greek items broken:
On 8 mei 2012, at 22:25, Wolfgang Schuster wrote: Am 08.05.2012 um 19:32 schrieb Meer, H. van der: I do not get lowercase greek letters on the itemize as should happen with symbol setup g. A minimal example, showing the demise of lowercase greek against succes for uppercase. It’s a font problem because MkII took the greek letters from the math font but MkIV takes them from the text font and Latin Modern doesn’t have lower case greek letters. Thanks. I was not aware of that problem. Indeed, the greek lowercase appears with \setupbodyfont[postscript]. But not with the brandnew \setupbodyfont[lucidaot], which is quite a nuisance. Can it be remedied with a more generic mkiv solution? Hans van der Meer ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] greek items broken:
Am 08.05.2012 um 19:32 schrieb Meer, H. van der: > I do not get lowercase greek letters on the itemize as should happen with > symbol setup g. > A minimal example, showing the demise of lowercase greek against succes for > uppercase. It’s a font problem because MkII took the greek letters from the math font but MkIV takes them from the text font and Latin Modern doesn’t have lower case greek letters. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] greek items broken:
I do not get lowercase greek letters on the itemize as should happen with symbol setup g. A minimal example, showing the demise of lowercase greek against succes for uppercase. \starttext \startitemize[g] \startitem nr 1\stopitem \startitem nr 2\stopitem \startitem nr 3\stopitem \startitem nr 4\stopitem \stopitemize \startitemize[G] \startitem nr 1\stopitem \startitem nr 2\stopitem \startitem nr 3\stopitem \startitem nr 4\stopitem \stopitemize \stoptext Hans van der Meer itemsym.pdf Description: itemsym.pdf ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \inmargin on \item lines
Hi, It is not a bug. It is standard TeX: a space counts after "}" and is ignored immediately after a control sequence such as "\item". To override either, you have to be explicit, "\ignorespaces" as Hans suggested in your case and "\ " (backslash-space) in the other to put a space in. My preferred, idiosyncratic, pedantic way to ignore spaces in this case is a comment symbol and newlines: \starttext \startitemize \item This is just a normal completely innocent paragraph against which one will be able to judge the amount of indentation of the next paragraph. \item\inmargin{Duck}% This paragraph has a duck inmargin comment \stopitemize \stoptext But I like newlines in my code, probably because I started editing text on 24x80 crt that would show only the first 80 characters of a line. Michael On May 2, 2012, at 12:33 AM, Malte Stien wrote: > Hi everyone, > > I am experiencing a problem with \inmargin{some text} in \itemized lists. I > am using them a lot in my documents, and it is kind of annoying. It appears > that if one uses the \inmargin macro just prior to the \item macro, the > in-margin text is typeset against the previous line, not the line with the > \item. Minimal example. > > \starttext > \startitemize > \item This is just a normal completely innocent paragraph against which > one will be able to judge the amount of indentation of the next paragraph. > \inmargin{Duck}\item This paragraph has a duck inmargin comment > \stopitemize > \stoptext > > That seems fair enough and even makes sense on some level. If however, one > reverses the two macros, like so: > > \item\inmargin{Duck} This paragraph has a duck inmargin comment > > the leading space just after the closing brace is actually printed. I take > this to be a bug, or is this by design? The only way I can around this is to > not use a space, like so: > > \item\inmargin{Duck}This paragraph has a duck inmargin comment > > But I don't find that to be a satisfying solution. After all I am using > ConTeXt because I am a bit pedantic about text, even the source code in this > case. > > Regards, > Malte. > This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fancybreak or alternative
Am 2012-04-27 um 20:15 schrieb Wolfgang Schuster: \usemodule[fancybreak] % https://bitbucket.org/wolfs/fancybreak/ \setupfancybreak[indentnext=no] \def\Space{\fancybreak{\strut}} % i.e. just an empty line Why so complicated, use \fancybreak without any argument and you get a blank line (unless you have set a symbol). But I also get the same error. I don’t really need the fancybreak module, just an interspace without indent after it. \noindent doesn’t work. How to? A few internal command names have changed over the time and you need either a older version of the module I thought I tried an older version, but perhaps not hard enough... or you use this simple definition for the \Space command. \def\Space{\blank\noindentation} Thank you! Seems I was looking for \noindentation instead of \noindent I can use that in other places, too. Greetlings, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fancybreak or alternative
Am 27.04.2012 um 19:51 schrieb Henning Hraban Ramm: > Hi Wolfgang and others, > > I had in my book: > \usemodule[fancybreak] % https://bitbucket.org/wolfs/fancybreak/ > \setupfancybreak[indentnext=no] > \def\Space{\fancybreak{\strut}} % i.e. just an empty line Why so complicated, use \fancybreak without any argument and you get a blank line (unless you have set a symbol). \usemodule[fancybreak] \starttext line 1 \fancybreak line 2 \fancybreak[2*line] line 3 \stoptext > But at least with my current version of ConTeXt (i.e. from 2010-11-29) I get: > --- > ! Undefined control sequence. > > system > tex > error on line 9 in file prd_feenbuch.tex: Undefined > control sequence ... > > \dododowithnextbox ...\usefancybreakstyleandcolor > \c!style \c!color \aftergr... > \Space ->\fancybreak { >\strut } > l.9 \Space > --- > > I don’t really need the fancybreak module, just an interspace without indent > after it. \noindent doesn’t work. How to? A few internal command names have changed over the time and you need either a older version of the module or you use this simple definition for the \Space command. \def\Space{\blank\noindentation} \setupindenting[yes,medium] \starttext \input ward \blank \input ward \Space \input ward \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes
On Tue, 24 Apr 2012 14:21:36 +0200 Wolfgang Schuster wrote: > > Am 24.04.2012 um 10:56 schrieb Alan BRASLAU: > > > 1. way=bypage does not seem to work > > > > \setupnote[footnote][way=bypage,numberconversion=set 2] > > \starttext > > \input{tufte}\footnote{Note.} > > \page > > \input{dawkins}\footnote{Another note.} > > \stoptext > > Counter settings are applied with the \setupnotation command. So, this is a treasure hunt! I tried \setupnotation[footnote][way=bypage,numberconversion=set 2] and this works, (I just corrected the wiki) sort-of: If one manages to get a footnote reference at the bottom of a page, where there is no room to place the footnote, and there is at least one footnote reference on the following page, this results in two successive footnotes having the same reference number (or symbol)! This is a bug. What about \startfootnote \stopfootnote and \autoinsertnextspace ? Alan ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metapost/Metafun Q: using variables and "building blocks"?
On 23-4-2012 19:34, Mari Voipio wrote: Hello all, any graphic experts around who can bump me past a stupid hinder on my way to understanding MPgraphics? I'm trying to create a system of describing certain type of braiding patterns (fingerloop braiding), based on what has been used in the field before me - but they did it all manually either by pen or computer, and I just do not fancy doing 40+ patterns by hand in Inkscape, especially as my pattern recipe book keeps expanding and I'm planning on that, too. I think Metapost could be the solution, because I need simple shapes and sometimes complicated but well-regulated paths/arrows to go between them; I'm just being a clueless newbie, too much in the WYSIWYG vector graphics mode to really know what to do. Mostly with the examples in the Metafun manual I've managed to get as far as to my basic building block, two circles joined by a curve: \startMPpage path p, q, r ; p := fullcircle scaled 8mm ; q := p shifted (0cm,24mm) ; r := center p .. (12mm,12mm) .. center q ; pair pr, qr ; pr := p intersectionpoint r ; qr := q intersectionpoint r ; r := r cutbefore pr cutafter qr ; r := r cutends 0.2mm ; draw r withpen pencircle scaled 0.2mm withcolor black ; draw p withpen pencircle scaled 0.2mm withcolor black ; fill p withcolor white; draw q withpen pencircle scaled 0.2mm withcolor black ; fill q withcolor black; \stopMPpage However, I don't seem to be able to find the answers to the next questions: a) I need to be able to stack four of these on top of each other and then four mirrored ones next to them (all-in-all a 2 x 4 grid/block), and probably a 1-block space between the two columns. I realize I can do that with "shift", but should I make my single 'building block' a group, a buffer or overlay or something else? Keeping in mind that I will have to be able to draw a path/arrow on top, so I need to know where they are. (At some point I need to expand to more columns, but the number of rows is still 4 as we have humans have just four aligned fingers per hand - thumbs aren't counted - but one can add hands i.e. people to work wider braids.) b) The circles p and q can be filled with the same colour or two different colours, and each of the blocks in a pattern can have different fill colour (e.g. two totally black, two totally white, two half-and-half with either black or white on top). The pen/outline colour should stay as black, which means that I can't implement the symbol example in the Metafun manual (the smiley that is totally switched from black to red). I don't mind having different blocks for monocoloured and bicoloured versions, but it would be nice to be able to say something like \usesloop[lh,blue] for 'take a single-coloured left-hand loop in blue' instead of having to dig deeper into the MP code every time. I assume the answer is "use variables", but how? something: \startMPpage def MyShape = image ( path p, q, r ; p := fullcircle scaled 8mm ; q := p shifted (0cm,24mm) ; r := center p .. (12mm,12mm) .. center q ; pair pr, qr ; pr := p intersectionpoint r ; qr := q intersectionpoint r ; r := r cutbefore pr cutafter qr ; r := r cutends 0.2mm ; draw r withpen pencircle scaled 0.2mm withcolor black ; draw p withpen pencircle scaled 0.2mm withcolor black ; fill p withcolor white; draw q withpen pencircle scaled 0.2mm withcolor black ; fill q withcolor black; ) enddef ; for i=0 step 2cm until 8cm : for j=0 step 4cm until 12cm : draw MyShape shifted (i,j) ; endfor ; endfor ; \stopMPpage there are picture variables, so picture pp ; pp := image(...) ; can be used I used millimeters here because it just feels more natural to me, that's what textile crafts does (when not based on inches like quilting and scrapbooking...). The measurements won't be shown anywhere - these are graphs or pictograms, not real pictures - so I can still switch to using something else. Besides, if the "building block" approach works, there isn't that much to be changed, get the first block right and the rest can be calculated from there. mm are okay, alternative use no dimension, just numbers and scale afterwards: currentpicture := currentpicture xsized 10cm ; or so. PS. Today's craft related metaphor: I feel just like I was staring at a messed up skein of yarn: I know that I'm now holding one of the ends, I thus can start to untangle the knot - and the more I pry loose, the less there's left to sort out. However, in the beginning the process tends to be very slow and awkward... beware, metapost is addictive once you get better in it, (btw, a talk about this will fit nicely in the upcoming eurotex theme) Hans -
[NTG-context] Metapost/Metafun Q: using variables and "building blocks"?
Hello all, any graphic experts around who can bump me past a stupid hinder on my way to understanding MPgraphics? I'm trying to create a system of describing certain type of braiding patterns (fingerloop braiding), based on what has been used in the field before me - but they did it all manually either by pen or computer, and I just do not fancy doing 40+ patterns by hand in Inkscape, especially as my pattern recipe book keeps expanding and I'm planning on that, too. I think Metapost could be the solution, because I need simple shapes and sometimes complicated but well-regulated paths/arrows to go between them; I'm just being a clueless newbie, too much in the WYSIWYG vector graphics mode to really know what to do. Mostly with the examples in the Metafun manual I've managed to get as far as to my basic building block, two circles joined by a curve: \startMPpage path p, q, r ; p := fullcircle scaled 8mm ; q := p shifted (0cm,24mm) ; r := center p .. (12mm,12mm) .. center q ; pair pr, qr ; pr := p intersectionpoint r ; qr := q intersectionpoint r ; r := r cutbefore pr cutafter qr ; r := r cutends 0.2mm ; draw r withpen pencircle scaled 0.2mm withcolor black ; draw p withpen pencircle scaled 0.2mm withcolor black ; fill p withcolor white; draw q withpen pencircle scaled 0.2mm withcolor black ; fill q withcolor black; \stopMPpage However, I don't seem to be able to find the answers to the next questions: a) I need to be able to stack four of these on top of each other and then four mirrored ones next to them (all-in-all a 2 x 4 grid/block), and probably a 1-block space between the two columns. I realize I can do that with "shift", but should I make my single 'building block' a group, a buffer or overlay or something else? Keeping in mind that I will have to be able to draw a path/arrow on top, so I need to know where they are. (At some point I need to expand to more columns, but the number of rows is still 4 as we have humans have just four aligned fingers per hand - thumbs aren't counted - but one can add hands i.e. people to work wider braids.) b) The circles p and q can be filled with the same colour or two different colours, and each of the blocks in a pattern can have different fill colour (e.g. two totally black, two totally white, two half-and-half with either black or white on top). The pen/outline colour should stay as black, which means that I can't implement the symbol example in the Metafun manual (the smiley that is totally switched from black to red). I don't mind having different blocks for monocoloured and bicoloured versions, but it would be nice to be able to say something like \usesloop[lh,blue] for 'take a single-coloured left-hand loop in blue' instead of having to dig deeper into the MP code every time. I assume the answer is "use variables", but how? I used millimeters here because it just feels more natural to me, that's what textile crafts does (when not based on inches like quilting and scrapbooking...). The measurements won't be shown anywhere - these are graphs or pictograms, not real pictures - so I can still switch to using something else. Besides, if the "building block" approach works, there isn't that much to be changed, get the first block right and the rest can be calculated from there. Any ideas on how I can achieve the ease that surely exists somewhere there? I'll take plain Metapost or a combination of Metapost and Metafun + ConTeXt as I'll use ConTeXt anyway to achieve multi-format output with a minimum of fuss. Help thankfully received, as always, Mari PS. Today's craft related metaphor: I feel just like I was staring at a messed up skein of yarn: I know that I'm now holding one of the ends, I thus can start to untangle the knot - and the more I pry loose, the less there's left to sort out. However, in the beginning the process tends to be very slow and awkward... ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing navigation symbol
When I run this example I don’t get the symbol unless I enable the indicator: %\setupnote[footnote][indicator=yes] This was an unknown option for me, it wasn’t used in the document. My old ConTeXt ver: 2012.03.05 is updated now and without indicator=no it’s solved now. Thank you! ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing navigation symbol
Am 21.04.2012 um 11:07 schrieb Markus Finke: >>> or switch off this feature? >> >> Yes (but it’s disabled by default) > > > \setupstructure [state=start] > > \setupinteraction [ state=start, > option=bookmark, > openaction={firstpage,FitHeight}, > menu=on, >click=yes, >contrastcolor=interactioncolor ] > > \setupinteractionscreen [option=bookmark] > > > I’ve changed something but I can’t find the relevant option. Any idea? When you have a problem you should make a minimal example and tell which version of context you’re using. mtx-context | current version: 2012.04.17 22:37 When I run this example I don’t get the symbol unless I enable the indicator: %\setupnote[footnote][indicator=yes] \starttext \dorecurse{4}{\input knuth\doif{\recurselevel}{4}{\footnote{\input zapf\par}}\par} \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing navigation symbol
or switch off this feature? Yes (but it’s disabled by default) \setupstructure [state=start] \setupinteraction [ state=start, option=bookmark, openaction={firstpage,FitHeight}, menu=on, click=yes, contrastcolor=interactioncolor ] \setupinteractionscreen [option=bookmark] I’ve changed something but I can’t find the relevant option. Any idea? ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing navigation symbol
Am 21.04.2012 um 08:59 schrieb Markus Finke: > One footnote is placed on the next side because of lack of space. This > arrangement is displayed by a triangular symbol. > > Is it possible to replace this symbol by a more appropriate (self-defined) > character No (unless you change the symbols for “nextpage” and “previouspage”) > or switch off this feature? Yes (but it’s disabled by default) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Changing navigation symbol
One footnote is placed on the next side because of lack of space. This arrangement is displayed by a triangular symbol. Is it possible to replace this symbol by a more appropriate (self-defined) character or switch off this feature? TIA! <>___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \textcomma (was Re: Comma separating multiple footnotes)
Am 19.04.2012 um 22:31 schrieb Hans Hagen: > On 19-4-2012 21:06, Aditya Mahajan wrote: >> On Thu, 19 Apr 2012, Wolfgang Schuster wrote: >> >>> >>> Don’t use \textcomma in MkIV, it’s a math symbol and doesn’t scale >>> when you change the relative font size. >>> >>> \starttext >>> >>> a, b\textcomma\ c >>> >>> {\tfxx a, b\textcomma\ c} >>> >>> {\tfb a, b\textcomma\ c} >>> >>> \stoptext >>> >>> @Hans/Aditya: Is it a good idea to put “textcomma” in the mathspec >>> entry (char-def.lua): > > indeed, it's probably some leftover (there might be some more) > >> What is textcomma supposed to do? I see that it is defined and used in >> core-mis.mkiv and then redefined in char-def. >> >> My guess is that \textcomma and \textperiod were defined to be >> complementary to \mathcomma and \mathperiod, but this is not consistent >> with rest of the naming convention. (\text... begin text mode commands >> for symbols, and not math mode commands). >> >> Does anyone use \textcomma and \textperiod in math mode? I would suggest >> that we rename them to \puncuationcomma and \punctuationperiod, and add >> \textcomma and \textperiod as text mode commands (and remove the >> definition of \textcomma from core-mis) > > the \text* should be just . and , (no math) > > I have no clue about the math usage. Just tell me what to patch. Is there a reason the make them into math commands, I think it’s better the define them as “contextname=…” to let them behave as in MkII where \textcomma is defined as enco-def.mkii:\definecharacter textcomma , enco-def.mkii:\definecharacter textperiod. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \textcomma (was Re: Comma separating multiple footnotes)
On 19-4-2012 21:06, Aditya Mahajan wrote: On Thu, 19 Apr 2012, Wolfgang Schuster wrote: Don’t use \textcomma in MkIV, it’s a math symbol and doesn’t scale when you change the relative font size. \starttext a, b\textcomma\ c {\tfxx a, b\textcomma\ c} {\tfb a, b\textcomma\ c} \stoptext @Hans/Aditya: Is it a good idea to put “textcomma” in the mathspec entry (char-def.lua): indeed, it's probably some leftover (there might be some more) What is textcomma supposed to do? I see that it is defined and used in core-mis.mkiv and then redefined in char-def. My guess is that \textcomma and \textperiod were defined to be complementary to \mathcomma and \mathperiod, but this is not consistent with rest of the naming convention. (\text... begin text mode commands for symbols, and not math mode commands). Does anyone use \textcomma and \textperiod in math mode? I would suggest that we rename them to \puncuationcomma and \punctuationperiod, and add \textcomma and \textperiod as text mode commands (and remove the definition of \textcomma from core-mis) the \text* should be just . and , (no math) I have no clue about the math usage. Just tell me what to patch. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \textcomma (was Re: Comma separating multiple footnotes)
On Thu, 19 Apr 2012, Wolfgang Schuster wrote: Don’t use \textcomma in MkIV, it’s a math symbol and doesn’t scale when you change the relative font size. \starttext a, b\textcomma\ c {\tfxx a, b\textcomma\ c} {\tfb a, b\textcomma\ c} \stoptext @Hans/Aditya: Is it a good idea to put “textcomma” in the mathspec entry (char-def.lua): What is textcomma supposed to do? I see that it is defined and used in core-mis.mkiv and then redefined in char-def. My guess is that \textcomma and \textperiod were defined to be complementary to \mathcomma and \mathperiod, but this is not consistent with rest of the naming convention. (\text... begin text mode commands for symbols, and not math mode commands). Does anyone use \textcomma and \textperiod in math mode? I would suggest that we rename them to \puncuationcomma and \punctuationperiod, and add \textcomma and \textperiod as text mode commands (and remove the definition of \textcomma from core-mis) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comma separating multiple footnotes
On Thu, 2012-04-19 at 12:01 +0200, Wolfgang Schuster wrote: > > Don’t use \textcomma in MkIV, it’s a math symbol and doesn’t scale > when you change the relative font size. Would this be better then? \setupnote[footnote] [textseparator={,}] -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comma separating multiple footnotes
Am 19.04.2012 um 00:56 schrieb Kip Warner: > On Wed, 2012-04-18 at 09:10 +0200, Wolfgang Schuster wrote: >> You need \setupnote because the other setting for the number in the text re >> also set with \setupnote. > > So this should suffice then in the environment? > >% Implemented by Hans in bleeding edge ConTeXt... >\setupnote[footnote] >[textseparator={\textcomma}] Don’t use \textcomma in MkIV, it’s a math symbol and doesn’t scale when you change the relative font size. \starttext a, b\textcomma\ c {\tfxx a, b\textcomma\ c} {\tfb a, b\textcomma\ c} \stoptext @Hans/Aditya: Is it a good idea to put “textcomma” in the mathspec entry (char-def.lua): { adobename="comma", category="po", cjkwd="na", description="COMMA", direction="cs", linebreak="is", mathclass="punctuation", mathspec={ { class="punctuation", name="textcomma", }, { class="ord", name="mathcomma", }, }, unicodeslot=0x002C, }, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comma separating multiple footnotes
On 13-4-2012 15:58, Wolfgang Schuster wrote: I wrote a patch for the footnote code where you can set a symbol between the numbers with \setupnote[footnote][textseparator=…] but it’s decision to include it. ok, will be added - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comma separating multiple footnotes
On Fri, 2012-04-13 at 15:58 +0200, Wolfgang Schuster wrote: > I wrote a patch for the footnote code where you can set a symbol between the > numbers with \setupnote[footnote][textseparator=…] Hey Wolfgang. It looks great. I'm assuming I'd stick the following in my environment file: \setupnote[footnote][textseparator={,}] Also, should it have been \setupnote or \setupnotation? > but it’s decision to include it. I suppose I could use it for now with the expectation that it will neither do nor break anything, but that when it is included in the official distribution, it will work? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Comma separating multiple footnotes
Am 12.04.2012 um 23:34 schrieb Kip Warner: > On Tue, 2012-04-10 at 11:21 +0200, Wolfgang Schuster wrote: >> Am 10.04.2012 um 03:14 schrieb Kip Warner: >> >>> Hey list, >>> >>> Is there any means of setting up footnotes such that whenever they are >>> tangential, they are automatically separated by a comma delimiter? >> >> No there isnt but its not hard hard to add a separator because its already >> possible to change the distance between the numbers. > > Would that be done with \setupnotation or maybe \setupfootnotes? Either way, > I'm not sure how to do this. I wrote a patch for the footnote code where you can set a symbol between the numbers with \setupnote[footnote][textseparator=…] but it’s decision to include it. \unprotect \unexpanded\def\strc_notes_inject_symbol {\removeunwantedspaces \doifitalicelse\/\donothing % Charles IV \footnote{the fourth} \ifdim\lastkern=\notesignal %\kern\noteparameter\c!distance % yes or no note font? or main text \strc_notes_inject_separator \fi \nobreak \begingroup \currentconstructionsynchronize % this flushes the data to the list \strc_notes_register_note_page % this registers the symbol page number (late) \strc_notes_interaction_check_inline \strc_notes_set_style_color_inline\c!textstyle\c!textcolor \hbox \strc_notes_get_reference_attribute_symbol \bgroup \dostarttagged\t!descriptionsymbol\currentnote \dotagsetnotesymbol \noteparameter\c!textcommand{\ctxcommand{noteprefixednumber("\currentnote",\currentnotenumber)}}% % the next one can cycle so we need to make sure it has no advance width \doif{\noteparameter\c!indicator}\v!yes\strc_notes_inject_pointer \dostoptagged \egroup \endgroup \dostoptagged % check \globallet\lastnotesymbol\relax} \unexpanded\def\strc_notes_inject_dummy % temp hack {\removeunwantedspaces \doifitalicelse\/\donothing % Charles IV \footnote{the fourth} \ifdim\lastkern=\notesignal %\kern\noteparameter\c!distance % yes or no note font? or main text \strc_notes_inject_separator \fi \nobreak \hbox to .5em{}% \globallet\lastnotesymbol\relax} \def\strc_notes_inject_separator {\edef\p_textseparator{\noteparameter\c!textseparator}% \ifx \p_textseparator \empty \kern\noteparameter\c!distance \else \nobreak\hbox\bgroup \strc_notes_interaction_check_inline \strc_notes_set_style_color_inline\c!textstyle\c!textcolor \noteparameter\c!textcommand{\p_textseparator}% \kern\noteparameter\c!distance \egroup\nobreak \fi} \protect \setupnote [footnote] [ textseparator={,}, textstyle=italic, textcolor=red, distance=.5em, ] \starttext Text\footnote{One}\footnote{Two}\footnote{Three} \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \doteq math symbol is hidden in standalone minimals
Hello all, What is the problem when \doteq math symbol is hidden in standalone ConTeXt (minimals) - latest version? I suppose that is a problem in mathematical font. Can this be solved? In ConTeXt MKIV TL2011 everything runs normally. Here is my example: \starttext \startformula Hv \doteq 0,102 \cdot \frac{2 \cdot F \cdot \sin\frac{θ}{2}}{d^2} \doteq 0,1891 \cdot \frac{F}{d^2} \stopformula \stoptext Thanx Jaroslav Hajtmar ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Seeking the incompatibility of versions of ConTeXts
Hello all, I am seeking the incompatibility of ConTeXt minimals standalone and ConTeXt MKIV, which is part of TeXLive the 2011. While TeXLive 2011 ConTEXt MKIV translates example bottom easily then standalone MKIV gives an error. An example is taken from wiki.contextgarden. Just for the record: I am using with success this solution with few luascrips for a simple bibliography (sorting etc.), but only in ConTEXt MKIV TeXLive 2011. I want use it in mimimals standalone too. Thanx. Jaroslav Hajtmar Here is my example: \definereferenceformat[cite][left={[},right={]}] \defineitemgroup [bibliography] [levels=1] \setupitemgroup [bibliography][each][s,packed] \setupitemgroup [bibliography] [symbol=n, left={[}, right={]}, width=3em, stopper=, itemalign=flushleft] \appendtoks\let\bibitem\itemgroupitem\to\itemgroupcommands \def\Cite[#1]{\cite[bibl:#1]} \starttext \section{Links to the bibiopgraphy} Sample calls citations in the text. The numbers in square brackets are references to bibliography. Here is the first link \Cite[3] and here next cite \Cite[4], \Cite[1], \Cite[5]. \section{Bibliography} \startbibliography \bibitem[bibl:1] First publication \bibitem[bibl:2] Second publication \bibitem[bibl:3] Third publ. \bibitem[bibl:4] Fourth publ. \bibitem[bibl:5] Fifth publ. \stopbibliography \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem Nesting defineitemgroups
Am 24.03.2012 um 05:25 schrieb Malte Stien: > I have the following two definitions for bullet point lists... > > % Setup bullet point lists > \defineitemgroup[blist][before={\blank[1ex]}] > \setupitemgroup[blist][1][packed][symbol=1] > \setupitemgroup[blist][2][packed][symbol=2] > > ... and numbered lists > > % Setup numbered lists > \defineitemgroup[nlist][before={\blank[1ex]}] > \setupitemgroup[nlist][1][packed][symbol=n, headstyle=bold] > \setupitemgroup[nlist][2][packed][symbol=a, headstyle=bold] > > They generally seem to work well, but when I try to nest one within the > other, like so > > \startnlist > \item Foo > \startblist > \item Some bullet item 1, > \item Some bullet item 2, > \item Some bullet item 3. > \item Assign an appropriate criticality. > \stopblist > \item Baz > \startnlist > > ...I get unexpected behaviour as follows: > > 1. Foo > a. Some bullet item 1, > b. Some bullet item 2, > c. Some bullet item 3. > 2. Baz > > I was expecting this instead > > 1. Foo > + Some bullet item 1, > + Some bullet item 2, > + Some bullet item 3. > 2. Baz > > ...(where "+" denotes the round bullet point). Is this a defect or am I doing > something wrong? ConTeXt uses the type of the item group in the first level also for the inner levels and handles the inner \startblist as if it was \startnlist. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem Nesting defineitemgroups
Hi again, I just noticed that the last line of my code was \startnlist when it should have been \stopnlist It was correct in my code, but too much fiddling and trying things made it wrong when I copied it across to the email. Even with the correct line in there, my problem still exists. Regards, Malte. On 24/03/2012, at 15:25, Malte Stien wrote: > I have the following two definitions for bullet point lists... > > % Setup bullet point lists > \defineitemgroup[blist][before={\blank[1ex]}] > \setupitemgroup[blist][1][packed][symbol=1] > \setupitemgroup[blist][2][packed][symbol=2] > > ... and numbered lists > > % Setup numbered lists > \defineitemgroup[nlist][before={\blank[1ex]}] > \setupitemgroup[nlist][1][packed][symbol=n, headstyle=bold] > \setupitemgroup[nlist][2][packed][symbol=a, headstyle=bold] > > They generally seem to work well, but when I try to nest one within the > other, like so > > \startnlist > \item Foo > \startblist > \item Some bullet item 1, > \item Some bullet item 2, > \item Some bullet item 3. > \item Assign an appropriate criticality. > \stopblist > \item Baz > \startnlist > > ...I get unexpected behaviour as follows: > > 1. Foo > a. Some bullet item 1, > b. Some bullet item 2, > c. Some bullet item 3. > 2. Baz > > I was expecting this instead > > 1. Foo > + Some bullet item 1, > + Some bullet item 2, > + Some bullet item 3. > 2. Baz > > ...(where "+" denotes the round bullet point). Is this a defect or am I doing > something wrong? > > Regards, > Malte. > ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem Nesting defineitemgroups
I have the following two definitions for bullet point lists... % Setup bullet point lists \defineitemgroup[blist][before={\blank[1ex]}] \setupitemgroup[blist][1][packed][symbol=1] \setupitemgroup[blist][2][packed][symbol=2] ... and numbered lists % Setup numbered lists \defineitemgroup[nlist][before={\blank[1ex]}] \setupitemgroup[nlist][1][packed][symbol=n, headstyle=bold] \setupitemgroup[nlist][2][packed][symbol=a, headstyle=bold] They generally seem to work well, but when I try to nest one within the other, like so \startnlist \item Foo \startblist \item Some bullet item 1, \item Some bullet item 2, \item Some bullet item 3. \item Assign an appropriate criticality. \stopblist \item Baz \startnlist ...I get unexpected behaviour as follows: 1. Foo a. Some bullet item 1, b. Some bullet item 2, c. Some bullet item 3. 2. Baz I was expecting this instead 1. Foo + Some bullet item 1, + Some bullet item 2, + Some bullet item 3. 2. Baz ...(where "+" denotes the round bullet point). Is this a defect or am I doing something wrong? Regards, Malte. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Itemized List Definitions
On Fri, 23 Mar 2012, Malte Stien wrote: Hi, Thank you for all your help so far. I do have another question, though. I would like to define different styles for different types of itemized lists. I have defined: % Setup itemised lists \setupitemize[1][packed][symbol=1] \setupitemize[2][packed][symbol=2] for one type and I would like to setup another type where the symbols and the indentation are different. Is there a mechanism for that? Something along the line of \setupitemizedlist[typeA][...] \setupitemizedlist[typeB][...] similar to \definedelimitedtext for example? Of course. \defineitemgroups[...] \setupitemgroups[...][...] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Itemized List Definitions
Hi, Thank you for all your help so far. I do have another question, though. I would like to define different styles for different types of itemized lists. I have defined: % Setup itemised lists \setupitemize[1][packed][symbol=1] \setupitemize[2][packed][symbol=2] for one type and I would like to setup another type where the symbols and the indentation are different. Is there a mechanism for that? Something along the line of \setupitemizedlist[typeA][...] \setupitemizedlist[typeB][...] similar to \definedelimitedtext for example? Regards, Malte. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom itemize Symbols
Am 21.03.2012 um 13:11 schrieb Wolfgang Schuster: > > Am 21.03.2012 um 10:19 schrieb Malte Stien: > >> Hi all, >> >> Is there a way to define your own itemize symbols? I would like a solid >> square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but >> solid/filled whereas 8 is hollow. >> >> I tried to declare my own bullet point, as in: >> >> \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet >> >> and then tried to use it in the \startitemize command, but it appears that >> command does not take commands as its first argument: >> >> \startitemize[\squarebullet, packed] >> \item foo >> \item baz >> ... >> \stopitemize >> >> So here goes that idea. Other idea was to use \sym{\squarebullet}. That >> actually works, however, the problem is that it needs to be specified for >> the individual bullet point. I need something that can be specified in >> \setupitemize, such that my writers get that symbol automatically without >> having any control over it. >> >> Any ideas? > > \definesymbol[blacksquare][\textmath\blacksquare] And for MkIV one can replace this with \setupsymbolset[text] because the “text” symbol set defines a “blacksquare” symbol. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom itemize Symbols
Am 21.03.2012 um 10:19 schrieb Malte Stien: > Hi all, > > Is there a way to define your own itemize symbols? I would like a solid > square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but > solid/filled whereas 8 is hollow. > > I tried to declare my own bullet point, as in: > > \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet > > and then tried to use it in the \startitemize command, but it appears that > command does not take commands as its first argument: > > \startitemize[\squarebullet, packed] > \item foo > \item baz > ... > \stopitemize > > So here goes that idea. Other idea was to use \sym{\squarebullet}. That > actually works, however, the problem is that it needs to be specified for the > individual bullet point. I need something that can be specified in > \setupitemize, such that my writers get that symbol automatically without > having any control over it. > > Any ideas? \definesymbol[blacksquare][\textmath\blacksquare] \setupitemize[1][blacksquare] \starttext \startitemize \item One \item Two \item Three \stopitemize \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom itemize Symbols
On 03/21/2012 10:19 AM, Malte Stien wrote: Hi all, Is there a way to define your own itemize symbols? I would like a solid square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled whereas 8 is hollow. I tried to declare my own bullet point, as in: \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet and then tried to use it in the \startitemize command, but it appears that command does not take commands as its first argument: \startitemize[\squarebullet, packed] \item foo \item baz ... \stopitemize So here goes that idea. Other idea was to use \sym{\squarebullet}. That actually works, however, the problem is that it needs to be specified for the individual bullet point. I need something that can be specified in \setupitemize, such that my writers get that symbol automatically without having any control over it. Any ideas? have you tried \definesymbol [1] [\squarebullet] ? Or, if you want it only for a few items \sym{\squarebullet} 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Custom itemize Symbols
Hi all, Is there a way to define your own itemize symbols? I would like a solid square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled whereas 8 is hollow. I tried to declare my own bullet point, as in: \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet and then tried to use it in the \startitemize command, but it appears that command does not take commands as its first argument: \startitemize[\squarebullet, packed] \item foo \item baz ... \stopitemize So here goes that idea. Other idea was to use \sym{\squarebullet}. That actually works, however, the problem is that it needs to be specified for the individual bullet point. I need something that can be specified in \setupitemize, such that my writers get that symbol automatically without having any control over it. Any ideas? Regards, Malte ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Translate tooltip on button in pdf
Am 18.03.2012 um 19:08 schrieb Jan Heinen: > Hello > > how to change the tooltipps from english "First page" to german "Erste > Seite"? > > \setupinteraction[state=start] > \starttext > \button {\scale[height=2em] {\symbol[navigation 1][nextpage]}} [NextPage] > \page > \button {\scale[height=2em] {\symbol[navigation 1][previouspage]}} > [PreviousPage] > \page > \stoptext I think the texts are generated from your PDF viewer because Reader.app on the Mac shows for me “Zur nächsten Seite” on the first page and “Zur vorherigen Seite” on the second page but with Adobe Reader I don’t get any tooltips. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Translate tooltip on button in pdf
Hello how to change the tooltipps from english "First page" to german "Erste Seite"? \setupinteraction[state=start] \starttext \button {\scale[height=2em] {\symbol[navigation 1][nextpage]}} [NextPage] \page \button {\scale[height=2em] {\symbol[navigation 1][previouspage]}} [PreviousPage] \page \stoptext Regards Jannis -- Better organization and integration of all ConTeXT-information: http://wiki.contextgarden.net/Category:ConTeXt All information arround ConTeXt http://wiki.contextgarden.net/Category:Commands Commands !!! new: "One-Click" from every command in the wiki to the rich resources of the ConTeXt-mailinglist ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Symbolsets
Hello Wolfgang, Indeed that is what works, but I tried to do \setupsymbolset[astronomic,martinvogel 2] and that is wrong. Anyway thank you! Willi On 12 Mar 2012, at 20:39, Wolfgang Schuster wrote: > > Am 12.03.2012 um 20:29 schrieb Willi Egger: > >> Hi Wolfgang, >> >> thanks for this! I had still to experiment a bit, unitl detecting, that it >> is not possible to setup more than one symbolset at once…. > > > Do you have a example because this works for me: > > \usesymbols[mvs] > > \setupsymbolset[martinvogel 1] > \setupsymbolset[martinvogel 2] > > \starttext > \symbol[Female] > \symbol[MVZero] > \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Symbolsets
Am 12.03.2012 um 20:29 schrieb Willi Egger: > Hi Wolfgang, > > thanks for this! I had still to experiment a bit, unitl detecting, that it is > not possible to setup more than one symbolset at once…. Do you have a example because this works for me: \usesymbols[mvs] \setupsymbolset[martinvogel 1] \setupsymbolset[martinvogel 2] \starttext \symbol[Female] \symbol[MVZero] \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Symbolsets
Am 12.03.2012 um 17:13 schrieb Willi Egger: > Hi all, > > Also with the todays beta I am unable to get Martin Vogel symbols. > > If \showsymbols[martinvogel 2] is used a long list of symbols is typeset, but > not what is defined as this symbolset. > > Calling > \setupsymbolset[atronomic] > \symbol[zodiac] > > does result in the text zodiac in the document. 1. You have to load the marvosym symbols with “\usesymbols[mvs]”. 2. There is no symbol with the name “zodiac”, only a symbolset with this name which contains the symbols ”Aries”, “Taurus” etc. 3. Example: \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[Female] \symbol[martinvogel 2][Female] \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Symbolsets
Hi all, Also with the todays beta I am unable to get Martin Vogel symbols. If \showsymbols[martinvogel 2] is used a long list of symbols is typeset, but not what is defined as this symbolset. Calling \setupsymbolset[atronomic] \symbol[zodiac] does result in the text zodiac in the document. Hints would be appreciated, kr Willi test-symbols.tex Description: Binary data ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ruby module
On 03/09/2012 04:30 PM, ntg-context-requ...@ntg.nl wrote: >>>> >>> Is it possible to place the ruby text in a margin? >>> >> >>> >> No. >>> >> >>>> >>> This would allow me to keep line spacing decently tight and also >>>> >>> prevent >>>> >>> the reader from only reading the annotation. >>> >> >>> >> This can be added but then you need a symbol (or something else) to see >>> >> to which word the annotation refers. >> > >> > I'm just thinking of annotating one or two words per line, which in an >> > appropriately small font size could just be stacked at the end of the >> > line in order of occurrence. >> > Problems would only arise if one line contained 3 or more words to be >> > annotated, and the next line also contained one... >> > >> > Would this be possible to implement? Would this just be a \defineinright? > \define[2]\Note > {#1\inright[stack=yes,style=\txx]{#2}} > > \starttext > > text \Note{TEXT}{MARGIN} text \Note{TEXT}{MARGIN} text > > \stoptext > > Wolfgang Thank you, always. At the moment, the baseline of the first line of the margin note aligns with the baseline of the main text line. Even in the general case, I think it would look better to have the top aligned. In the margin ruby, this presents a slight problem as a second ruby will now look as though it belongs to the next line. Is there a way to align the top of the lines, or is there a hack that just shifts a margin note by a few pts? (There is a "low" flag, but no high flag, I think...) Thank you. Severin ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ruby module
Am 04.03.2012 um 14:26 schrieb S Barmeier: >>> Is it possible to place the ruby text in a margin? >> >> No. >> >>> This would allow me to keep line spacing decently tight and also prevent >>> the reader from only reading the annotation. >> >> This can be added but then you need a symbol (or something else) to see >> to which word the annotation refers. > > I'm just thinking of annotating one or two words per line, which in an > appropriately small font size could just be stacked at the end of the > line in order of occurrence. > Problems would only arise if one line contained 3 or more words to be > annotated, and the next line also contained one... > > Would this be possible to implement? Would this just be a \defineinright? \define[2]\Note {#1\inright[stack=yes,style=\txx]{#2}} \starttext text \Note{TEXT}{MARGIN} text \Note{TEXT}{MARGIN} text \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Simple bibliography
Hello ConTeXist. Unfortunately, I give up. The standard way to use the bibliography fail (output still is not sorted in the order they came citing). I can not even after many hours of testing and experimenting get win. Therefore I decide that I am looking now other ways. Does anyone have experience with simplebibliography in contextgarden (http://wiki.contextgarden.net/Simple_Bibliography)? Solve someone something like that? Has anybody a simple minimal example? From information from wikipedia I do not make functional example (especially the first case). Second case is very simple and understandable, but now I looking for a way to automate the sorting (that the order is not what I require). Or exist something similar? Can you please advise me a way to get the better of a very simple bibliography without using standart bibliography system of ConTeXt? Sorry to inundating these bibliographic questions, but I need to somehow resolve my problem in the near future and looking for every possibility, where to get something that would help me. Thanx Jaroslav Here is my minimal example from ConTeXtgarden (second option). It shows (without automation) as the need. \definereferenceformat[Cite][left={[},right={]}] \defineitemgroup [bibliography] [levels=1] \setupitemgroup [bibliography] [symbol=n, left={[}, right={]}, width=1.5em, stopper=, itemalign=flushleft, inbetween={\blank[2pt]} ] \appendtoks\let\bibitem\itemgroupitem\to\itemgroupcommands \starttext This is \Cite[4] and \Cite[2] \Cite[3] \section{Bibliography} \startbibliography \bibitem[4] (4) Hashimoto S., Sato F., Fabrication and mechanical properties of sintered leucite body, Journal of the Ceramics Society of Japan 113(7), 2005, 488-490 \bibitem[2] (2) IPS Classic, Scientific Documentation, Ivocar Vivadent, July 2003 \bibitem[1] (1) Thermal expansion, chapter 2, The Materials Information Society \bibitem[3] (3) Taylor D., Henderson C.M.B., The thermal expansion of the leucite group of minerals, The American mineralogist, September-october 1968, 1476-1489 \stopbibliography \stoptext ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Itemize Prefixes
On Mon, 5 Mar 2012, Kip Warner wrote: On Mon, 2012-03-05 at 22:44 -0500, Aditya Mahajan wrote: Thats how itemgroup are configured. You cannot mix assignments (key=value) with options. I don't follow. What is the difference between this, \setupitemgroup [article] [ left={Article }, stopper=, symbol=R, before=\blank, after=\blank, distance=0.5em, ] \setupitemgroup [article] [broad,fit] , and this? \setupitemgroup [article] [ left={Article }, stopper=, symbol=R, before=\blank, after=\blank, distance=0.5em, broad, fit ] ConTeXt checks if the argument of \setupitemgroup has an assignment (key=value), then it calls a version of \setparameters; otherwise it calls a version of \processcommalist. So, if you use assignments and options in the same command, the options get ignored. All ConTeXt commands behave like this. You can use \setupitemgroup [article] [command=\blank] That worked. Thanks. Why do you expect \setuphead to change the way itemgroups behave? Because I can't make any sense of the thousands of pages of ConTeXt documentation scattered everywhere with little apparent rhyme or reason to its usage and with everything other than whatever it is that I seem to need present in them. If you define a command using \define<...>, then you configure it using \setup<>. Other than a few exceptions, that's how it is. Use \setupitemgroup [article] [color=...] I tried that and it did nothing. \definecolor[colour_text][r=0.754,g=0.516,b=0.324] \setupitemgroup [article] [color=colour_text] Minimal example? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Itemize Prefixes
On Mon, 2012-03-05 at 22:44 -0500, Aditya Mahajan wrote: > Thats how itemgroup are configured. You cannot mix assignments (key=value) > with options. I don't follow. What is the difference between this, \setupitemgroup [article] [ left={Article }, stopper=, symbol=R, before=\blank, after=\blank, distance=0.5em, ] \setupitemgroup [article] [broad,fit] , and this? \setupitemgroup [article] [ left={Article }, stopper=, symbol=R, before=\blank, after=\blank, distance=0.5em, broad, fit ] > You can use > > \setupitemgroup > [article] > [command=\blank] That worked. Thanks. > Why do you expect \setuphead to change the way itemgroups behave? Because I can't make any sense of the thousands of pages of ConTeXt documentation scattered everywhere with little apparent rhyme or reason to its usage and with everything other than whatever it is that I seem to need present in them. > Use > > > \setupitemgroup > [article] > [color=...] I tried that and it did nothing. \definecolor[colour_text][r=0.754,g=0.516,b=0.324] \setupitemgroup [article] [color=colour_text] -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Itemize Prefixes
On Mon, 5 Mar 2012, Kip Warner wrote: On Mon, 2012-03-05 at 22:10 -0500, Aditya Mahajan wrote: Thanks Aditya. A couple questions for you. \defineitemgroup[article] \setupitemgroup [article] [ left={Article }, stopper=, symbol=R, before=\blank, after=\blank, distance=0.5em, ] \setupitemgroup [article] [broad,fit] Why is another \setupitemgroup being used here when broad,fit could have been merged with its previous one that both affected the article itemgroup? Thats how itemgroup are configured. You cannot mix assignments (key=value) with options. \starttext \startarticle \item First article \item Second article \stoparticle Again How do I add an extra line after the header? You can use \setupitemgroup [article] [command=\blank] (in this case you can remove the second configuration (the one with broad, fit) or explicitly set width=0). I tried adding another \blank to the after parameter of \setupitemgroup, but it didn't seem to use it. \startarticle \item First article \item Second article \stoparticle \stoptext Aditya Lastly, how do I change the text colour of the item header? I tried the following to no avail, \setuphead [article] [color=colour_head] Why do you expect \setuphead to change the way itemgroups behave? Use \setupitemgroup [article] [color=...] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Itemize Prefixes
On Mon, 2012-03-05 at 22:10 -0500, Aditya Mahajan wrote: Thanks Aditya. A couple questions for you. > \defineitemgroup[article] > > \setupitemgroup >[article] >[ > left={Article }, > stopper=, > symbol=R, > before=\blank, > after=\blank, > distance=0.5em, >] > > \setupitemgroup >[article] >[broad,fit] Why is another \setupitemgroup being used here when broad,fit could have been merged with its previous one that both affected the article itemgroup? > > \starttext > > \startarticle >\item First article >\item Second article > \stoparticle > > Again How do I add an extra line after the header? I tried adding another \blank to the after parameter of \setupitemgroup, but it didn't seem to use it. > \startarticle >\item First article >\item Second article > \stoparticle > \stoptext > > Aditya Lastly, how do I change the text colour of the item header? I tried the following to no avail, \setuphead [article] [color=colour_head] -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Itemize Prefixes
On Mon, 5 Mar 2012, Kip Warner wrote: On Sun, 2012-03-04 at 23:26 -0500, Aditya Mahajan wrote: On Sun, 4 Mar 2012, Kip Warner wrote: Hey list, I'd like an itemized list using the following format... Article I ... Article II ... Article III ... ...and so on. I've tried defining the behaviour with... \defineenumeration[article] [location=top, text=Article, between=\blank, before=\blank, after=\blank] \setupenumerations[article][R] ...but the problem is that after a list of items provided with matching \startarticle \stoparticle pairs, the last count persists to the next list of items which should start at 'I' again. I am assuming I am not doing this correctly and would appreciate any suggestions. Use itemgroup rather than enumerations. Thanks Aditya, but could you give me an example of how to do this? As usual, I am not able to take much away from the ConTeXt wiki. Sorry. \defineitemgroup[article] \setupitemgroup [article] [ left={Article }, stopper=, symbol=R, before=\blank, after=\blank, distance=0.5em, ] \setupitemgroup [article] [broad,fit] \starttext \startarticle \item First article \item Second article \stoparticle Again \startarticle \item First article \item Second article \stoparticle \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ruby module
>> Is it possible to place the ruby text in a margin? > > No. > >> This would allow me to keep line spacing decently tight and also prevent >> the reader from only reading the annotation. > > This can be added but then you need a symbol (or something else) to see > to which word the annotation refers. I'm just thinking of annotating one or two words per line, which in an appropriately small font size could just be stacked at the end of the line in order of occurrence. Problems would only arise if one line contained 3 or more words to be annotated, and the next line also contained one... Would this be possible to implement? Would this just be a \defineinright? Severin ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ruby module
Am 04.03.2012 um 10:11 schrieb S Barmeier: > Is it possible to place the ruby text in a margin? No. > This would allow me to keep line spacing decently tight and also prevent > the reader from only reading the annotation. This can be added but then you need a symbol (or something else) to see to which word the annotation refers. > How can one change the font size of the annotation and is there a way to > keep it fixed, not being scaled according to the font size of the word > it annotates? You can change the style of the base text with the “basestyle” key and of the annotation with the “textstyle” key. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] overfull hbox on items
On 2-3-2012 17:35, Meer, H. van der wrote: This setting gives an overfull hbox of exactly 3 points: \setupitemgroup[itemize][each] [joinedup,packed] [symbol=n,distance=3pt, align=right,itemalign=flushright, stopper={.\,} ] In the logfile: Overfull \hbox (3.0pt too wide) detected at line 7 Changing to distance=4pt makes the hbox 4pt too wide. Changing to distance=0pt (or delete parameter) makes the hbox fit. Why is this? Apart from cluttering the logfile, I guess this hbox overflow signals something that can be bettered. not always, if it looks ok to you you can just ignore it (or add \dontcomplain) i.e. depending on alignment excessive content will lap left or right anyway (an example: say that you number 1..9 and there is one itemize with 10 items ... you might not want to change all widths for this one case (and 10 is often rather ok, while 44 isn't) the same can happen with margin texts, where in practice the width only matters when you use backgrounds or have things side by side or ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] overfull hbox on items
This setting gives an overfull hbox of exactly 3 points: \setupitemgroup[itemize][each] [joinedup,packed] [symbol=n,distance=3pt, align=right,itemalign=flushright, stopper={.\,} ] In the logfile: Overfull \hbox (3.0pt too wide) detected at line 7 Changing to distance=4pt makes the hbox 4pt too wide. Changing to distance=0pt (or delete parameter) makes the hbox fit. Why is this? Apart from cluttering the logfile, I guess this hbox overflow signals something that can be bettered. Hans van der Meer ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___