[NTG-context] Bug in currentdate
On 14 oct. 2011, at 23:26, Hans Hagen wrote: > Hi, > > A new beta has been uploaded. Nothing new apart from some experimental code > and a few bugfixes. I also uploaded > > http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf > > Files in that path will come and go. > > Hans Hi Hans, Thanks for the new beta. I wanted just to report that \currentdate has still a bug in French: in French it gives day+ octobre 2011 Minimal example follows. Best regards: OK \starttext English: \currentdate French: \mainlanguage[fr] \currentdate \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 ___
[NTG-context] Exporting verbatim text
Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{ System.out.println\SYN[javaParen]{(}\SYN[Constant]{"Hello World"}\SYN[javaParen]{)} ; \} ~~~ When generating pdf output, I simply set appropriate catcodes so that the line breaks and leading white spaces are significant. However, when exporting to xml, leading white space is ignored while line break is translated to . How can I export in such a way that leading white spaces are preserved (and ideally no is generated, but I can deal with that using CSS). 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] Difference in doifinset in MkII and MkIV
On Wed, 21 Sep 2011, Wolfgang Schuster wrote: Am 21.09.2011 um 05:20 schrieb Aditya Mahajan: The following works in MkIV but fails in MkIV: \unprotect \def\!!yesandon{yes,on} \doifinsetelse{yes}\!!yesandon \ExpandSecondAfter\doifinsetelse{yes}\!!yesandon It’s awkward but this how it works in MkII. \ExpandSecondAfter is MkII only, so I cannot use it for code that is to be used in both MkII and MkIV. So, I re-request my original proposal: in core-gen.mkii \def\p!doifinsetelse#1#2#3#4% {\donefalse \edef\!!stringa{#3}% \ifx\!!stringa\empty \else - \processcommalist[#4]\p!docheckiteminset + \processcommacommand[#4]\p!docheckiteminset \fi \ifdone\expandafter#1\else\expandafter#2\fi} 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] Fatal Error Return Code 70
Hey list, I am trying to compile a book typeset in ConTeXt. I am running the following version: $ context --version resolvers | resolving | loading configuration file 'selfautodir:/share/texmf/web2c/contextcnf.lua' resolvers | resolving | loading configuration file '/usr/share/texmf/web2c/contextcnf.lua' mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2011.10.10 13:38 The hardware I am running ConTeXt on is mips64el (little endian, I think). The error message with nothing that I can see all that unusual before it is: mtx-context| fatal error: return code: 70 ...and then it bails. -- 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 ___
[NTG-context] beta
Hi, A new beta has been uploaded. Nothing new apart from some experimental code and a few bugfixes. I also uploaded http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf Files in that path will come and go. 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] Creating a new page in the wiki
> 1) > After having created a new page for Reference/en/whatever > How to add it to the command reference > http://wiki.contextgarden.net/Category:Reference/en ? add [[Category:Reference/en|whatever]] to the page (at the bottom, for example) Patrick ___ 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] Creating a new page in the wiki
On 2011-10-14 luigi scarso wrote: > On Fri, Oct 14, 2011 at 6:57 PM, Marco wrote: > > > On 2011-10-14 luigi scarso wrote: > > > > > On Fri, Oct 14, 2011 at 4:13 PM, Marco wrote: > > > > > > > > > > > 2) > > > > How to delete pages? > > > > > > > > There is tab delete just near the head of the page (if you have the > > right > > > permission) > > > > Hmm. I don't see it. Maybe I don't have permissions for > > that. > > > you can try with your personal page > wiki.contextgarden.ne/User: Nope. I don't see a delete button. User Page, Discussion, Read, Edit, View History, Move, Watch Same in edit mode. > --- you should have the right permission here I agree. Especially when I created the page and no one else edited it in between. 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 ___
Re: [NTG-context] nice friends-book with ConText - quite ready
On 2011-10-14 Jan Heinen wrote: > And here are my results: > http://www.imagebanana.com/view/8vq30irn/ContextLayers.png > > There are only little things which could be improved: How?? > 1. where comes the frame around the foto from? How can I > switch it off? You introduced one pair on brackets too much. > 2. There is a thin white line between layer A and the > Infobox. How to rid of it? I don't see a white line, neither on the image you provided, nor when I compile it. > 3. How can I get padding into the Infobox? top, botttom, > right and left Maybe there's a cleaner solution, but I misuse the frame itself for that (see example). > And here is my code for everyone who likes the layout of my > friends-book ;-) The layout is a matter of taste, but the code is improvable. Here are some tips: - Don't write everything in one line! Use indentation. If your code is ugly to read, it lowers the change of getting a response. - Make the code compile. At least on my context (not really up-to-date) it throws an error. - There are some images and text files included in the ConTeXt distribution. Check …texmf-context/tex/context/sample Use them (e.g. “cow”). Regards Marco Patzer \definelayer [Kontaktdaten] [ x=20mm, y=30mm, width=65mm, height=30mm, state=start ] \setupbackgrounds [paper] [ %setups=ALayer, % The setup ALayer is never defined background=Kontaktdaten, state=start ] \starttext \strut \setlayerframed [Kontaktdaten] [ background=color, backgroundcolor=lightgreen, width=10mm, height=130mm, frame=off, hoffset=-20mm, voffset=145mm, align=right ]{A} \setlayerframed [Kontaktdaten] [ background=color, backgroundcolor=darkgreen, width=10mm, height=60mm, frame=off, hoffset=-20mm, voffset=85mm, align=right ]{B} \setlayerframed [Kontaktdaten] [ background=color, backgroundcolor=lightgreen, width=60mm, height=175mm, frame=off, leftframe=on, framecolor=green, rulethickness=.5cm, hoffset=-10mm, voffset=100mm, align=right ]{% \startlines Infobox: Peter New York 0171/782801 t...@test.de \stoplines} \setlayerframed [Kontaktdaten] [ width=30mm, height=40mm, %frame=\LayoutTest, frame=off, hoffset=-10mm, voffset=60mm, strut=no, %offset=overlay ]{% \externalfigure[cow][width=30mm,height=40mm]} \page \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] Creating a new page in the wiki
On Fri, 14 Oct 2011, Marco wrote: On 2011-10-14 luigi scarso wrote: On Fri, Oct 14, 2011 at 4:13 PM, Marco wrote: 2) How to delete pages? There is tab delete just near the head of the page (if you have the right permission) Hmm. I don't see it. Maybe I don't have permissions for that. But it's not that important, since it is not liked from anywhere, it doesn't harm. Only the wiki administrators have the permission to delete pages. If you want to delete or rename a page, leave a message on the talk page, and hopefully one of the admins will do that. 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] Creating a new page in the wiki
On Fri, Oct 14, 2011 at 6:57 PM, Marco wrote: > On 2011-10-14 luigi scarso wrote: > > > On Fri, Oct 14, 2011 at 4:13 PM, Marco wrote: > > > > > > > > 2) > > > How to delete pages? > > > > > > There is tab delete just near the head of the page (if you have the > right > > permission) > > Hmm. I don't see it. Maybe I don't have permissions for > that. > you can try with your personal page wiki.contextgarden.ne/User: --- you should have the right permission here -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] nice friends-book with ConText - quite ready
Hello it was a ConText-night, and as a newby I learned a lot about ConText :-) Here is what I wanted to get: http://www.imagebanana.com/view/f4o3un2c/Entwurffriends.png And here are my results: http://www.imagebanana.com/view/8vq30irn/ContextLayers.png There are only little things which could be improved: How?? 1. where comes the frame around the foto from? How can I switch it off? 2. There is a thin white line between layer A and the Infobox. How to rid of it? 3. How can I get padding into the Infobox? top, botttom, right and left And here is my code for everyone who likes the layout of my friends-book ;-) \definelayer[Kontaktdaten][x=20mm,y=30mm,width=65mm,height=30mm,state=start] \setupbackgrounds[paper][setups=ALayer,background=Kontaktdaten,state=start] \starttext \strut \setlayerframed[Kontaktdaten][background=color,backgroundcolor=lightgreen,width=10mm,height=130mm,frame=off,hoffset=-20mm,voffset=145mm,align=right]{A} \setlayerframed[Kontaktdaten][background=color,backgroundcolor=darkgreen,width=10mm,height=60mm,frame=off,hoffset=-20mm,voffset=85mm,align=right]{B} \setlayerframed[Kontaktdaten][background=color,backgroundcolor=lightgreen,width=60mm,height=175mm,frame=off,hoffset=-10mm,voffset=100mm,align=right]% {Infobox:\crlf Peter\crlf New York\crlf 0171/782801\crlf t...@test.de} \setlayerframed[Kontaktdaten][width=30mm,height=40mm,frame=\LayoutTest,hoffset=-10mm,voffset=60mm][strut=no,offset=overlay]% {\externalfigure[niceImage][width=30mm,height=40mm]} \page \stoptext Regards Jannis ___ 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] Creating a new page in the wiki
On 2011-10-14 luigi scarso wrote: > On Fri, Oct 14, 2011 at 4:13 PM, Marco wrote: > > > > > 2) > > How to delete pages? > > > > There is tab delete just near the head of the page (if you have the right > permission) Hmm. I don't see it. Maybe I don't have permissions for that. But it's not that important, since it is not liked from anywhere, it doesn't harm. The first question is solved. I forgot to add the [[Category:Reference/en|…]] entry. Regards Marco Patzer ___ 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] Creating a new page in the wiki
On Fri, Oct 14, 2011 at 4:13 PM, Marco wrote: > > 2) > How to delete pages? > > There is tab delete just near the head of the page (if you have the right permission) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Creating a new page in the wiki
On 2011-10-14 luigi scarso wrote: > > I stumbled upon the problem of how to add a command to the > > command reference in the wiki. More general: How to add a > > new page (not editing an existing one)? > > > > Am I missing the obvious? What is the secret trick? > > > > Marco > > > > > 1) log in with (YourUserName in this case) > 2) call (NewPage in this case) > http://wiki.contextgarden.net/User:YourUserName/NewPage > 3) click on > http://wiki.contextgarden.net/index.php?title=User:YourUsername/NewPage&action=edit That works, thanks. But I have two more questions. 1) After having created a new page for Reference/en/whatever How to add it to the command reference http://wiki.contextgarden.net/Category:Reference/en ? 2) How to delete pages? 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 ___
Re: [NTG-context] Behaviour of \tfx versus \tfa
On 14-10-2011 11:01, Hans van der Meer wrote: I found the following disparity in behaviour between \tfa, etc. and \tfx, \tfxx: \tfa, \tfb etc. do change mathsize too, but \tfx, \tfxx do not % These remedy it: \let\orgtfx\tfx \let\orgtfxx\tfxx \def\tfx{\orgtfx\dosetcurrentfontsize{x}} \def\tfxx{\orgtfxx\dosetcurrentfontsize{xx}} Is the difference intentional? Or is Hans willing to incorporate the change in a next beta? this is intentional as tx and txx are only meant for (nested) \high an \low implementations while \tfa are for heads and such 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] bug in latest beta
On 14-10-2011 12:26, Andreas Harder wrote: \startMPpage[offset=1ex] draw function (1,"x","sin(x)",0,2*pi,.001) scaled 20 ; \stopMPpage fixed in next beta - 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] \startmode and \ignorespaces
On 14-10-2011 10:38, Meer, H. van der wrote: I made an example of the effect of this on \doifmode and \startmode. The example shows that the appearance of extra space in \doifmode follows a regular pattern. The startmode case differs in that respect because \startmode[condition-true] has the extra space but \startmode[condition-false] has not. In my view that is an unwanted anomaly. A little redefinition remedies that as can be seen in the example. it's all a side effect of how parses: spaces after a \cs are gobbled so any macro that looks ahead has to struggle with this and compromise you can consider using \startsetups xxx \stopsetups \doifmode{whatever}{\setups{xxx} inside setups all spaces and line endings are ignores (so an explicit one has to be \space) 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] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`
On 14-10-2011 08:02, Paul Menzel wrote: Dear ConTeXt folks, trying to draw a grid and label it, I get an error when using the (alsa attached) example from the MetaFun manual [1]. Fixed in next beta (however, instead of mp formatting lua formatting is used, a prelude to the graph rewrite that Alan and I have in mind). 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] Creating a new page in the wiki
On Fri, Oct 14, 2011 at 2:29 PM, Marco wrote: > Hi, > > I stumbled upon the problem of how to add a command to the > command reference in the wiki. More general: How to add a > new page (not editing an existing one)? > > Am I missing the obvious? What is the secret trick? > > Marco > > > 1) log in with (YourUserName in this case) 2) call (NewPage in this case) http://wiki.contextgarden.net/User:YourUserName/NewPage 3) click on http://wiki.contextgarden.net/index.php?title=User:YourUsername/NewPage&action=edit -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Creating a new page in the wiki
Hi, I stumbled upon the problem of how to add a command to the command reference in the wiki. More general: How to add a new page (not editing an existing one)? Am I missing the obvious? What is the secret trick? 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 ___
Re: [NTG-context] Include section number in reference
Am 14.10.2011 um 13:18 schrieb Marco: > On 2011-10-13 Wolfgang Schuster wrote: > >> \setupreferencestructureprefix[default][prefixsegments=2:*] > > Thanks. > > Wikified. (Although without explanations, just an example) I can also provide the entry from my command reference (no yet in the PDF): \setupreferencestructureprefix[.1.][.2.][..,.3.,..] optional 1. IDENTIFIER (float, formula, figure, SECTION (e.g. section, subsection, …), …) 2. number, page, title, text or default 3. prefix = yes (default), no prefixseparatorset = IDENTIFIER prefixconversionset = IDENTIFIER prefixset = IDENTIFIER prefixsegments = SEGMENTS prefixconnector = TEXT 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] Include section number in reference
On 2011-10-13 Wolfgang Schuster wrote: > \setupreferencestructureprefix[default][prefixsegments=2:*] Thanks. Wikified. (Although without explanations, just an example) 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 ___
Re: [NTG-context] bug in latest beta
On 13.10.2011, at 21:46, Hans Hagen wrote: > On 13-10-2011 09:37, luigi scarso wrote: > >> Please type another input file name: > > A new beta ... better check mp code as I've split all mkii/mkiv mp related > code (i.e. metafun ii is frozen and metafun iv will be mainstream). I might > have messed when cleaning up the code. The compilation of \startMPpage[offset=1ex] draw function (1,"x","sin(x)",0,2*pi,.001) scaled 20 ; \stopMPpage ends with "! Improper `addto'." … Greeting 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 ___
Re: [NTG-context] \startmode and \ignorespaces
On 14 okt. 2011, at 11:26, Wolfgang Schuster wrote: > > Am 14.10.2011 um 10:38 schrieb Meer, H. van der: > >> I made an example of the effect of this on \doifmode and \startmode. The >> example shows that the appearance of extra space in \doifmode follows a >> regular pattern. The startmode case differs in that respect because >> \startmode[condition-true] has the extra space but >> \startmode[condition-false] has not. In my view that is an unwanted anomaly. >> A little redefinition remedies that as can be seen in the example. > > I wrote you already a few times that you can use the annotation module for > this. The module serves also as replacement for the fixme module where it is > necessary to take care that no extra spaces are added when the text is hidden. Wolfgang, Thanks for your reply, but I find it takes a sidetrack and does not answer the question. Please let me explain. It might well be that the annotation module does something of the sort, but that is not my point. The mode-mechanism is explicitely given as a means to do conditional typesetting. If I may cite from the wiki: "Very often, you want to generate multiple versions of the same document: one version for printing and one for viewing on the screen, one version for students and one version for the instructor, and so on. .. Or you could use modes - the ConTeXt way of doing conditional processing" Well, that is exactly what I want to do and I fail to see why another module (like annotation) should be necessary. Therefore, please do not keep pointing me to something that in my opinion is not needed in this case and is already fully provided for in ConTeXt. When I am pointing out something that I think is an anomaly in the behaviour of ConTeXt or probably not intentional, it is not meant as criticizing. To the contrary, my intention is always to make a constructive contribution. Your reply however is not an answer to the question I brought forward. It might be that there are reasons for not changing ConTeXt in the manner I proposed on this issue. I can live with that, because I have no role in the development. But I think it is legitimate to ask why that decision is made. I am certain you will understand 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] \startmode and \ignorespaces
Am 14.10.2011 um 10:38 schrieb Meer, H. van der: > I made an example of the effect of this on \doifmode and \startmode. The > example shows that the appearance of extra space in \doifmode follows a > regular pattern. The startmode case differs in that respect because > \startmode[condition-true] has the extra space but > \startmode[condition-false] has not. In my view that is an unwanted anomaly. > A little redefinition remedies that as can be seen in the example. I wrote you already a few times that you can use the annotation module for this. The module serves also as replacement for the fixme module where it is necessary to take care that no extra spaces are added when the text is hidden. \usemodule[annotation] \defineannotation[fulltext] [alternative=text] \defineannotation[shorttext][alternative=none] \defineannotation[modetext] [alternative=command,command=\ModeText] \define[2]\ModeText {\doifelse{\placeannotationtitle}{off}{\removeunwantedspaces}{#2}} \starttext abc \fulltext {pqr} xyz abc \shorttext{pqr} xyz abc \fulltext [alternative=none]{pqr} xyz abc \shorttext[alternative=text]{pqr} xyz \blank abc \startfulltext pqr \stopfulltext xyz abc \startshorttext pqr \stopshorttext xyz abc \startfulltext [alternative=none] pqr \stopfulltext xyz abc \startshorttext[alternative=text] pqr \stopshorttext xyz \blank abc \modetext {pqr} xyz abc \modetext {on}{pqr} xyz abc \modetext{off}{pqr} xyz \blank abc \startmodetext pqr \stopmodetext xyz abc \startmodetext{on} pqr \stopmodetext xyz abc \startmodetext{off} pqr \stopmodetext xyz \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] bug in latest beta
On Thu, Oct 13, 2011 at 9:46 PM, Hans Hagen wrote: > On 13-10-2011 09:37, luigi scarso wrote: > > Please type another input file name: >> > > A new beta ... better check mp code as I've split all mkii/mkiv mp related > code (i.e. metafun ii is frozen and metafun iv will be mainstream). I might > have messed when cleaning up the code. > > it's ok -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Behaviour of \tfx versus \tfa
I found the following disparity in behaviour between \tfa, etc. and \tfx, \tfxx: \tfa, \tfb etc. do change mathsize too, but \tfx, \tfxx do not % These remedy it: \let\orgtfx\tfx \let\orgtfxx\tfxx \def\tfx{\orgtfx\dosetcurrentfontsize{x}} \def\tfxx{\orgtfxx\dosetcurrentfontsize{xx}} Is the difference intentional? Or is Hans willing to incorporate the change in a next beta? 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] \startmode and \ignorespaces
I made an example of the effect of this on \doifmode and \startmode. The example shows that the appearance of extra space in \doifmode follows a regular pattern. The startmode case differs in that respect because \startmode[condition-true] has the extra space but \startmode[condition-false] has not. In my view that is an unwanted anomaly. A little redefinition remedies that as can be seen in the example. spaces.pdf Description: spaces.pdf On 13 okt. 2011, at 17:43, Hans van der Meer wrote: > A little while ago I asked whether \doifmode and friends should have an > \ignorespaces at the end. Hans Hagen answered "no" and after some reasoning > (probably along the same lines as his) I agree with him. Thus one uses in a > quite natural way: > some text\doifmode{xyz}{ conditional text} following text > doing nothing else than: some text conditional text following text. > With regard to this it is understandable and correct that extra space is > taken in the next construct: > some text \doifmode{xyz}{ conditional text} following text. > > But it looks different to me when using the \startmode .. \stopmode pair. > some text. > \startmode[xyz] > some conditional text. > \stopmode > further text. > > In order to avoid here the extra space one has to code an extra % > some text. > \startmode[xyz]% > some conditional text. > \stopmode > further text. > > or (not preferred imho): > some text.% > \startmode[xyz] > > I think this is error prone as it is al too easy to forget the %. The > situation here differs from the \doifmode-case. I tend to believe that the > fact that the \startmode[] .. \stopmode construct invites one to separate the > statements with newlines (whitespace thus). Therefore I would ask if this > plea for an \ignorespaces effect at the end of the \startmode[xyz] should be > honored. > > 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 > ___ ___ 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 ___