Re: [NTG-context] Footnote Problem
Am 15.11.2011 um 06:57 schrieb Kip Warner: Hey folks, The second \footnote doesn't show in the generated PDF. The number is listed where it should at the end of the sentence, but the text of the footnote is not listed at the bottom of the page. Add \automigrateinserts to your document. 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] feature request
On 15-11-2011 06:43, Aditya Mahajan wrote: Here is a slightly cleanup version that handles multiline comments better https://github.com/adityam/context-comments/blob/master/t-comments.mkvi if find(s,stop) then insideComment = false return cleaned_line .. currentfilter(strip_to_stop(s)) else as find returns a position, you can do things like this: local stop = find(s,stop) if stop then ... return cleaned_line .. sub(s,stop+#stop,#s) (ok, you need to know the real unescaped length of stop) But this will only work if % has its usual catcode. I don't know how to get around that limitation. for multiline we can plug into the texthandler instead, but it's not worth the trouble and the line based one permits selective enable/disable 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] texnansi.enc
On 15-11-2011 04:32, Yue Wang wrote: Still not fixed! btw, Hans, how to enable hz in MKII for officina? \usetypescriptfile[type-buy] \definetypeface[officina][rm][serif][officina][default][encoding=texnansi] \definetypeface[officina][ss][sans] [officina][default][encoding=texnansi] \usetypescript[serif,sans,mono][handling,hanging][highquality] move that last line up .. in traditional tex these features are global and cannot be enabled for a font afterwards \setupbodyfont[officina,ss] \setupalign[hz,hanging] just don't work at all. On Thu, Nov 10, 2011 at 9:18 AM, Yue Wangyuleo...@gmail.com wrote: still not fixed On Wed, Nov 9, 2011 at 2:31 PM, Hans Hagenpra...@wxs.nl wrote: On 9-11-2011 18:02, Yue Wang wrote: Hi, Mojca: just updated context and mkii told me !pdfTeX error: pdftex (file texnansi.enc): cannot open encoding file for reading is this file removed? not on purpose .. it should be there - 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 - -- - 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] footnotes in footnotes broken
Hi all, it seems that the footnotes in footnotes feature in mkiv is broken. The short example from contextgarden doesn't work with the last beta: -- \starttext This\footnote{Or that\footnote{Or possibly even the other.}, if you prefer.} is a sentence with a footnote. \stoptext -- Best regards, Martin ___ 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 in footnotes broken
Am 15.11.2011 10:55, schrieb Martin Fechner: Hi all, it seems that the footnotes in footnotes feature in mkiv is broken. The short example from contextgarden doesn't work with the last beta: -- \starttext This\footnote{Or that\footnote{Or possibly even the other.}, if you prefer.} is a sentence with a footnote. \stoptext -- Best regards, Martin Found the solution in the post from Wolfgang with the line \automigrateinserts Greetings, Martin ___ 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] Small issue with dimensions
Datuma 14. studenoga 2011. 20:44 Romain Diss romain.d...@yahoo.fr je napisao/la: \starttext 1\unit{second} \stoptext gives 1 econd. But \unit{1 second} gives the correct result... Indeed, but IIRC Hans' original approach was 1\unit{second} style of writing[1]. I would like to know if this can be fixed. Vedran [1] http://www.ntg.nl/pipermail/ntg-context/2011/059762.html ___ 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] Imposition eats footnote numbers (on the latest beta)
Willi Egger cont...@boede.nl writes: Hi, Thanks for spotting this. I tested with my project where there are only few footnotes, indeed the reference-numbers are gone once arranging is set on. It looks like it's a in-margin material problem, not a footnote one. See the next example: %% start minimal example \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setupnotedefinition[footnote][location=serried] \showframe \starttext test\footnote{\input knuth} \inmargin{this is in the margin} \stoptext %% stop. All the in-margin material has been eaten during the imposition. Best wishes -- 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] Imposition eats footnote numbers (on the latest beta)
On 15-11-2011 11:33, Marco Pessotto wrote: Willi Eggercont...@boede.nl writes: Hi, Thanks for spotting this. I tested with my project where there are only few footnotes, indeed the reference-numbers are gone once arranging is set on. It looks like it's a in-margin material problem, not a footnote one. See the next example: %% start minimal example \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setupnotedefinition[footnote][location=serried] \showframe \starttext test\footnote{\input knuth} \inmargin{this is in the margin} \stoptext %% stop. All the in-margin material has been eaten during the imposition. depends on how you run ... --arrange will take care of it normally 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] Imposition eats footnote numbers (on the latest beta)
Hans Hagen pra...@wxs.nl writes: %% start minimal example \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setupnotedefinition[footnote][location=serried] \showframe \starttext test\footnote{\input knuth} \inmargin{this is in the margin} \stoptext %% stop. All the in-margin material has been eaten during the imposition. depends on how you run ... --arrange will take care of it normally Hans With current all is OK. With the latest beta even with the --arrange switch the margin material is lost. Best wishes -- 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] texnansi.enc
tried \usetypescript[serif,sans,mono][handling,hanging][highquality] \usetypescriptfile[type-buy] \definetypeface[officina][rm][serif][officina][default][encoding=texnansi] \definetypeface[officina][ss][sans] [officina][default][encoding=texnansi] \setupbodyfont[officina,ss] \setupalign[hz,hanging] \starttext \dorecurse{30}{\input zapf} \stoptext just don't work On Tue, Nov 15, 2011 at 3:58 AM, Hans Hagen pra...@wxs.nl wrote: On 15-11-2011 04:32, Yue Wang wrote: Still not fixed! btw, Hans, how to enable hz in MKII for officina? \usetypescriptfile[type-buy] \definetypeface[officina][rm][serif][officina][default][encoding=texnansi] \definetypeface[officina][ss][sans] [officina][default][encoding=texnansi] \usetypescript[serif,sans,mono][handling,hanging][highquality] move that last line up .. in traditional tex these features are global and cannot be enabled for a font afterwards \setupbodyfont[officina,ss] \setupalign[hz,hanging] just don't work at all. On Thu, Nov 10, 2011 at 9:18 AM, Yue Wangyuleo...@gmail.com wrote: still not fixed On Wed, Nov 9, 2011 at 2:31 PM, Hans Hagenpra...@wxs.nl wrote: On 9-11-2011 18:02, Yue Wang wrote: Hi, Mojca: just updated context and mkii told me !pdfTeX error: pdftex (file texnansi.enc): cannot open encoding file for reading is this file removed? not on purpose .. it should be there - 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 - -- - 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] space between number and units in \unit
Dear Context folks, Could I request a parameter in \setupunits to control the space between the number and the units that is placed by \unit{}. In phys-dim.mkiv it looks like there is an intention to do so (parameter space) but it's commented out. I actually would like about half the space that I currently get, but others may want none, or more. Thanks, Robin \starttext \unit{35 kilogram cubic meter} \setupunits[unit][space=big] \unit{35 kilogram cubic meter} \setupunits[unit][space=small] \unit{35 kilogram cubic meter} \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] images and linenumbering
Hi all, I posted this bug some time ago, but it still seems there. The combination between linenumbering and images isn't working. I use mkiv with the latest beta. Look at this short example: -- \setuplayout[width=120mm] \setuppagenumbering[alternative=doublesided] \setuplinenumbering[location=outer,method=page] \starttext \placefigure[left,4*hang,none]{} {\externalfigure[cow][width=0.2\textwidth]} \startlinenumbering \input tufte \stoplinenumbering \placefigure[right,2*hang,none]{} {\externalfigure[cow][width=0.2\textwidth]} \startlinenumbering[continue] \input tufte \stoplinenumbering \stoptext -- Is there any workaround to this? Best regards, Martin ___ 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] Letter module: new beta
Hi all, I have a new version of the letter module on my bitbucket site [1], you can download [2] and test it but it requires mkiv and is not completely downward compatible with the current version. Here is a short example to test it: \usemodule[cor-01] % will change %\setupletteroptions % [bodyfont=calluna] \setupletter [fromname={John Simmons}, fromaddress={Parkstreet 12\\8257 Green Bay}] \setupletter [toname={Steve Wilson}, toaddress={Nightstreet 4a\\9183 Cotton Village}] \setuplettertext [copy=cc: , enclosure=encl: ] \setupletter [copy=Copy, enclosure=Enclosure, postscript=Postscript] \startletter [opening={Dear Mr Wilson,}, subject={Brand new templates for Word}, closing={Best regards}, signature={John Simmons}] \dorecurse{4}{\input knuth\par} \stopletter [1] https://bitbucket.org/wolfs/correspondence/src [2] https://bitbucket.org/wolfs/correspondence/downloads 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] Quotations...
Hi, it looks like there is something wrong with \quote, \quotation and the respective setupcommands. \setupquote[style=slanted] results in no quotation marks and yes, slanted text. \setupquote[left=(,right=)] results in text between parentheses. \setupquote[style=slanted,left=(,right=)] results in slanted text, but no parentheses. \setupquotation[style=bold] results in having the texts in \quote{} becoming bold instead of the texts that are in \quotation{}. \setupdelimitedtext [quotation][1][style=bold] does not result in bold text. \setupdelimitedtext [quotation][1][style=bold,left{[},right={]}] does result in text between brackets in \quotation{}, but no bold text. Please refer to the attached example file. Kind regards Willi test-quotation.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] Textbackgrounds
On Mon, Nov 07, 2011 at 04:58:10PM +0100, Hans Hagen wrote: On 7-11-2011 14:59, Alan Braslau wrote: Something is now broken with textbackgrounds : fixed in next beta (low level we're now scaled points so a conversion is missing) textbackground has been rewritten. Perhaps I have missed something, but how can I highlight/grey-out running paragraphs? The following minimal example worked before... Alan \definetextbackground [ongray] [location=paragraph,background=color,backgroundcolor=middlegray] \starttext \input ward \startongray \input tufte \stopongray \input knuth \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] Imposition eats footnote numbers (on the latest beta)
On 15 Nov 2011, at 11:42, Marco Pessotto wrote: Hans Hagen pra...@wxs.nl writes: %% start minimal example \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setupnotedefinition[footnote][location=serried] \showframe \starttext test\footnote{\input knuth} \inmargin{this is in the margin} \stoptext %% stop. All the in-margin material has been eaten during the imposition. depends on how you run ... --arrange will take care of it normally Hans With current all is OK. With the latest beta even with the --arrange switch the margin material is lost. I played with the beta of 2011-11-14. If no setup is used i.e. if the default coming with ConTeXt is used, then the numbers are placed in the margin. Those numbers are lost when arranging is on, using context --arrange test.tex If \setupnotedefinition[footnote][location=page] %serried,text is used, then the footnote numbers are preserved while arranging is on. Willi ___ 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] Integral limits on wrong place
Dear list, in the latest minimals (downloaded today 15 nov 2011) I get the integral limits placed below and above the integral sign, per default. %%% Example %\setupmathematics[integral=nolimits] \starttext $\int_a^b f(x)\, dx$ \startformula \int_a^b f(x)\, dx. \stopformula \stoptext %%% End of example The result is http://tmp.oblandat.se/integraltest.pdf I'd expect the limits to be placed more to the right. Even if the line \setupmathematics[integral=nolimits] is uncommented (as suggested on the wiki) nothing is improved. Is this something that has changed recently? I can add a \nolimits at every integral but that is not a nice option. It would be nice to have the integrals back as they used to be. With best regards (and thanks in advance), Mikael ___ 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] Rotate text in TABLE-header
Dear list, is there an easy option to rotate all text (not the table itself) in the first row of a TABLE? something like this: \bTABLE \bTR[rotate=90] \bTD I am flipped \eTD \bTD Me too. \eTD \bTD Same here! \eTD \eTR \eTABLE That would be super useful, but I didn't find anything. ___ 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] Footnote Problem
On Tue, 2011-11-15 at 09:42 +0100, Wolfgang Schuster wrote: Am 15.11.2011 um 06:57 schrieb Kip Warner: Hey folks, The second \footnote doesn't show in the generated PDF. The number is listed where it should at the end of the sentence, but the text of the footnote is not listed at the bottom of the page. Add \automigrateinserts to your document. Wolfgang Thanks Wolfgang, but should that be in the environment file or can it go anywhere? -- 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] Rotate text in TABLE-header
On 15-11-2011 20:41, Christian wrote: \bTABLE \bTR[rotate=90] \bTD I am flipped \eTD \bTD Me too. \eTD \bTD Same here! \eTD \eTR \eTABLE \bTABLE \bTR \bTD \rotate[rotation=45]{I am flipped} \eTD \bTD \rotate[rotation=45]{Me too.} \eTD \bTD \rotate[rotation=45]{Same here!} \eTD \eTR \eTABLE - 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] texnansi.enc
see the attachment On Tue, Nov 15, 2011 at 6:59 AM, Yue Wang yuleo...@gmail.com wrote: tried \usetypescript[serif,sans,mono][handling,hanging][highquality] \usetypescriptfile[type-buy] \definetypeface[officina][rm][serif][officina][default][encoding=texnansi] \definetypeface[officina][ss][sans] [officina][default][encoding=texnansi] \setupbodyfont[officina,ss] \setupalign[hz,hanging] \starttext \dorecurse{30}{\input zapf} \stoptext just don't work On Tue, Nov 15, 2011 at 3:58 AM, Hans Hagen pra...@wxs.nl wrote: On 15-11-2011 04:32, Yue Wang wrote: Still not fixed! btw, Hans, how to enable hz in MKII for officina? \usetypescriptfile[type-buy] \definetypeface[officina][rm][serif][officina][default][encoding=texnansi] \definetypeface[officina][ss][sans] [officina][default][encoding=texnansi] \usetypescript[serif,sans,mono][handling,hanging][highquality] move that last line up .. in traditional tex these features are global and cannot be enabled for a font afterwards \setupbodyfont[officina,ss] \setupalign[hz,hanging] just don't work at all. On Thu, Nov 10, 2011 at 9:18 AM, Yue Wangyuleo...@gmail.com wrote: still not fixed On Wed, Nov 9, 2011 at 2:31 PM, Hans Hagenpra...@wxs.nl wrote: On 9-11-2011 18:02, Yue Wang wrote: Hi, Mojca: just updated context and mkii told me !pdfTeX error: pdftex (file texnansi.enc): cannot open encoding file for reading is this file removed? not on purpose .. it should be there - 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 - -- - 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 - Untitled.tex Description: TeX document Untitled.pdf Description: Adobe PDF document ___ 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] User macros and settings: environment or style module?
Hi all, Like any of the context users who write documents, I use some personal macros, definitions, setups... In most of the context manuals, it is recommended to declare all of these personal settings in an environment file. This file is then included by: \environment myStyle However, in certain case, these settings goes in a style module file, like what is done for MyWay articles where one includes the style file with: \usemodule[myStyle] So my question is: Is there any technical reason to choose between those two possibilities or is it only a matter of personal preference? All the best. -- Romain Diss romain.d...@yahoo.fr ___ 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] feature request
On Mon, 14 Nov 2011 11:38:42 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: OTOH, why not just use bla bla \message{Here is a note to myself.} bla bla Just curious: Is there anything that \message is missing for what u want? I tried both inline and multiline combos and they all work like a charm: == \starttext Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. \stoptext == As a feature, I suppose all that's needed -- for the paranoid, maybe you're writing a letter to your boss with hidden curses ;-) -- is the option to suppress the showing of the text on the console/log. Although it's in the source anyway ... For ¿ and ¡ probably some simple catcode trickery will \let you define them as you like. So I'm curious: How can we define ¿ = \message{ ¡ = } % this one is of course trivial, but for completeness... Since you brought this up, I've actually started using \message more (and no, not for cursing my boss!) Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 message.tex Description: TeX document ___ 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] feature request
Am 15.11.2011 um 23:03 schrieb Idris Samawi Hamid ادريس سماوي حامد: On Mon, 14 Nov 2011 11:38:42 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: OTOH, why not just use bla bla \message{Here is a note to myself.} bla bla Just curious: Is there anything that \message is missing for what u want? I tried both inline and multiline combos and they all work like a charm: When you use \gobbleoneargument you can omit the output in the log. == \starttext Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. Here is some text. \message{Given an action, the recompense is always in proportion to the degree of participation in Consciousness involved.} Here is some text. \stoptext == You see that there are now two spaces between your sentences, compare the following two sentences: \starttext text \message{hidden} text text\message{hidden} text \stoptext To avoid this I added \removeunwantedspaces to my \hide 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 ___
Re: [NTG-context] feature request
On Tue, 15 Nov 2011, Idris Samawi Hamid ادريس سماوي حامد wrote: On Mon, 14 Nov 2011 11:38:42 -0700, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: OTOH, why not just use bla bla \message{Here is a note to myself.} bla bla Just curious: Is there anything that \message is missing for what u want? I tried both inline and multiline combos and they all work like a charm: Untested, but I am pretty sure \message{\iffalse} will fail. Basically, everything inside \message (or the \hide macro by Wolfgang) needs to be processed by TeX, so strictly speaking it is not equivalent to a comment. See the TeX FAQ http://www.tex.ac.uk/cgi-bin/texfaq2html?label=conditional for more details. The most robust solution is to use buffers, but that will not work if the buffer is part of a macro argument. The luatex solution (which is again not perfect) that I posted removes everything inside the comment before it is seeen by TeX. 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] feature request
Dear Aditya, Wolfgang, On Tue, 15 Nov 2011 15:11:55 -0700, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: When you use \gobbleoneargument you can omit the output in the log. : To avoid this I added \removeunwantedspaces to my \hide command. On Tue, 15 Nov 2011 15:28:24 -0700, Aditya Mahajan adit...@umich.edu wrote: Untested, but I am pretty sure \message{\iffalse} will fail. Basically, everything inside \message (or the \hide macro by Wolfgang) needs to be processed by TeX, so strictly speaking it is not equivalent to a comment. See the TeX FAQ http://www.tex.ac.uk/cgi-bin/texfaq2html?label=conditional for more details. The most robust solution is to use buffers, but that will not work if the buffer is part of a macro argument. The luatex solution (which is again not perfect) that I posted removes everything inside the comment before it is seeen by TeX. Thank you both for your insightful answers. I appreciate it! Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] geen beeld (no image)
After updating my livetex distribution from 2008 to 2011 on my OSX machine, i lost the metapost images in my context document. I also tried the live.contextgarden.net but that does not provide any image either ... \starttext \startMPcode draw fullcircle scaled 3cm; \stopMPcode \stoptext Any hints ? Thanks! Floris ___ 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] Arabic
Dear all, I'm having a hard time to get context typeset arabic words with ligatures, or say, to some order1 according to page 7 of: http://luatex.org/talks/print-orientaltex-eurotex-2009.pdf. I'm using: ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.8.15 int: english/english I've put up this minimal example where the font used is amiri from: http://sourceforge.net/projects/amiri/files/ and more precisely amiri-regular.ttf therein. Any hint as to what I should do to get (at least the lam-alef ligature)? Thank you for your help, Olivier %% minimal \mainlanguage[arabic] \definefontfeature [arabicfeats] [analyze=yes,mode=node,language=dflt,script=arab, ccmp=yes,init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,tlig=yes,clig=yes, calt=yes,salt=yes,aalt=yes, trep=yes,ccmp=yes, mark=yes,mkmk=yes, kern=yes,curs=yes, aalt=yes,mset=yes] \definefont[ArabicFont][amiriregular*arabicfeats at 24pt] \def\ArabicGlobalDir {\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT} \define\setarabic {\ArabicGlobalDir% \ArabicFont} \starttext {\setarabic لا في } \stoptext \end ___ 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 ___