Re: [NTG-context] \setupcaptions hangs
Am 19.09.2011 um 03:42 schrieb Aditya Mahajan: Hi, \setupcaptions[width=\textwidth] hangs with an infinite loop. The following let you compile your document but captions are missing, it’s something for Hans to fix. str-flt.mkiv %D Individial settings: -\presetstructurecountersetup\setupcaption\sharedstructurecounterparameter \appendtoks - \let\currenfloat\currentcaption + \let\currenfloat\currentfloatcaption \dostructurecountersetup\currentfloat\floatcaptionparameter \docheckstructurecountersetup\currentfloat \to \everysetupfloatcaption 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] problem with letter module
Hello Wolfgang, with the latest beta I get a problem with your letter module. If this error message is not enough, I can investigate further later today. This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) \write18 enabled. ConTeXt ver: 2011.09.18 22:35 MKIV fmt: 2011.9.19 int: english/ english ... resolversmodules loaded: 'letter' (/Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/ letter/base/t-letter.tex loading Context User Module / Framework for Letters resolversmodules loaded: 'correspondence' (/Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/ letter/base/t-correspondence.mkiv loading Context User Module / Correspondence ) ! Undefined control sequence. system tex error on line 272 in file invoicesetup.tex: Undefined control sequence ... \dodododosetupcorrespondencelayer ...sname \@EAEA \csname dosetupcorresponde... \next5 #1,-\dodododosetupcorrespondencelayer {#1} \do_process_comma_item \do_process_comma_list ...m \gobbleoneargument #1, ]\relax \global \advance \... \next4 #1,-\dododosetupcorrespondencelayer {#1} \do_process_comma_item \do_process_comma_list ...m \gobbleoneargument #1, ]\relax \global \advance \... \dododefinecorrespondencelayer ...in =\zeropoint ] \dodosetupcorrespondencela... ... l.272 \dodefineletterlayer[\v!header] ? (My file invoicesetup.tex has only about 150 lines, so...) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \startstaticMPfigure
From the Wiki I learn about \startstaticMPfigure that it creates a separate pdf file containing the graphic. But when I exercise the example given I do not see those staticMPfigure's in sepaarte pdf's. What am I missing? I thought to use this for generating a series of separate pdf's, to be further processed as png/tiff files. \startstaticMPfigure{center} draw fullcircle scaled 2cm ; dotlabel.bot (textext((0,0)),origin); \stopstaticMPfigure \startstaticMPfigure{radius} draw fullcircle scaled 2cm ; drawarrow (0,0)--(1cm,0); label.bot(textext($r$),(5mm,0)) ; \stopstaticMPfigure \starttext Circle centered \usestaticMPfigure[center][width=1cm] at origin with radius \usestaticMPfigure[radius][width=1cm] $r=1\,\text{cm}$. \stoptext By the way, is transparency still working as in the wiki example below, or has transparency vanished? \startreusableMPgraphic{a} fill unitsquare scaled 1cm withcolor yellow; fill unitsquare shifted (0.5,0.5) scaled 1cm withcolor transparent (1,0.5,red); \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} Thanks in advance 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 ___
[NTG-context] IPA symbols in MKIV
Hello, I'm having a trouble getting IPA symbols to show up with MKIV. I've read through the old threads about using IPA, and it seems there is no module like tipa for ConTeXt for easy input. I've tried also using SIL Gentium as the main font and entering the IPA symbols directly as UTF-8, but only a part of them will render (even though they all exist in the actual font in the right plane and are viewable in other programs). Almost none of the diacritics render. \definetypeface [MyFace][rm][serif][gentium][default][encoding=uc] \setupbodyfont[MyFace, 11pt] \starttext n̥ d̥ ̊ɭ˔ ʎ̥˔ \stoptext only n, d and ̊ will render in the PDF. In other apps using Gentium all the glyphs are visible. Is there a way to output IPA symbols correctly (when they are entered as UTF-8), or would it be possible to introduce a macro/module with an environment like \startipa \stopipa and commands for entering the symbols inside the environment? Entering some of the symbols correctly (such as velarized or pharyngealized diacritics which should appear on top of the letter) is hard when done directly with Unicode, so at least TeX-like shorthands for all the symbols and diacritics would really be appreciated. Best regards, Otso Helenius ___ 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] \startstaticMPfigure
Am 19.09.2011 11:17, schrieb Meer, H. van der: From the Wiki I learn about \startstaticMPfigure that it creates a separate pdf file containing the graphic. But when I exercise the example given I do not see those staticMPfigure's in sepaarte pdf's. What am I missing? I thought to use this for generating a series of separate pdf's, to be further processed as png/tiff files. \startstaticMPfigure{center} draw fullcircle scaled 2cm ; dotlabel.bot (textext((0,0)),origin); \stopstaticMPfigure \startstaticMPfigure{radius} draw fullcircle scaled 2cm ; drawarrow (0,0)--(1cm,0); label.bot(textext($r$),(5mm,0)) ; \stopstaticMPfigure \starttext Circle centered \usestaticMPfigure[center][width=1cm] at origin with radius \usestaticMPfigure[radius][width=1cm] $r=1\,\text{cm}$. \stoptext Use mkii and you will get the files. Probably no need for this kind of runtime optimization in mkiv. By the way, is transparency still working as in the wiki example below, or has transparency vanished? The transparency example works here (slightly outdated version from 05.09.2011). BTW: there are four new transparency modes (hue,saturation,color,luminosity). Best wishes, Peter \startreusableMPgraphic{a} fill unitsquare scaled 1cm withcolor yellow; fill unitsquare shifted (0.5,0.5) scaled 1cm withcolor transparent (1,0.5,red); \stopreusableMPgraphic \placefigure[force,none]{}{\reuseMPgraphic{a}} Thanks in advance 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 ___
Re: [NTG-context] \setupcaptions hangs
On 19-9-2011 03:42, Aditya Mahajan wrote: Hi, \setupcaptions[width=\textwidth] hangs with an infinite loop. fixed (we noticed it here too) 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] \setupcaptions hangs
On 19-9-2011 09:10, Wolfgang Schuster wrote: - \let\currenfloat\currentcaption + \let\currenfloat\currentfloatcaption + \let\currentfloat\currentfloatcaption - 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] problem with letter module
On 19-9-2011 10:41, Henning Hraban Ramm wrote: Hello Wolfgang, with the latest beta I get a problem with your letter module. If this error message is not enough, I can investigate further later today. This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) \write18 enabled. ConTeXt ver: 2011.09.18 22:35 MKIV fmt: 2011.9.19 int: english/english resolvers modules loaded: 'letter' (/Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/letter/base/t-letter.tex loading Context User Module / Framework for Letters resolvers modules loaded: 'correspondence' (/Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/letter/base/t-correspondence.mkiv loading Context User Module / Correspondence ) ! Undefined control sequence. system tex error on line 272 in file invoicesetup.tex: Undefined control sequence ... \dodododosetupcorrespondencelayer ...sname \@EAEA interesting .. I removed that one (could not find any usage) - 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] Tikz and \color
Hello all, I'm using Tikz to draw some fancy text boxes, but I've bumped into an annoying problem. If you run the example below then the body text will be rendered in red. If you remove the REMOVE ME text, then it will be rendered in black. I would expect the black version to be the correct version but I need to add text to my node. Am I using \color correctly? Does anyone know how I might go about debugging this? Is there a way to determine whether it's Context or Tikz that's misbehaving? \usemodule[tikz] \setuppapersize[A4][A4] \setupcolors[state=start] \setuphead[section] [ after={\color[red]{\hrule width 125mm \vskip 2em}}, ] \starttext \section{Some Title} \starttikzpicture \node{ REMOVE ME }; \stoptikzpicture Flank sint culpa, dolore dolore ham hock chicken t-bone irure pastrami. Eiusmod corned beef sint enim. Corned beef nulla qui aute, meatloaf ground round cillum ex. Ut swine pork belly, tongue pig sed tail frankfurter biltong ut bresaola anim. Jowl consequat tenderloin, meatloaf fatback eu sint duis mollit chuck biltong. Nostrud cupidatat nulla meatball, brisket irure dolor. Aliqua chuck ut in, nisi ea t-bone shankle bresaola. \stoptext Thanks in advance, Felix ___ 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] Tikz and \color
On 19-9-2011 13:10, Felix Ingram wrote: Hello all, I'm using Tikz to draw some fancy text boxes, but I've bumped into an annoying problem. If you run the example below then the body text will be rendered in red. If you remove the REMOVE ME text, then it will be rendered in black. I would expect the black version to be the correct version but I need to add text to my node. Am I using \color correctly? Does anyone know how I might go about debugging this? Is there a way to determine whether it's Context or Tikz that's misbehaving? Tikz implements it own color handling and that interferes with the handling built in context. The following works. \usemodule[tikz] \setuphead[section][after={\blackrule[color=red,width=125mm,height=1pt,depth=1pt]\vskip 2em}] \starttext \section{Some Title} \dontleavehmode\forcecolorhack \starttikzpicture \node{x}; \stoptikzpicture Flank sint culpa, dolore dolore ham hock chicken t-bone irure pastrami. Eiusmod corned beef sint enim. Corned beef nulla qui aute, meatloaf ground round cillum ex. Ut swine pork belly, tongue pig sed tail frankfurter biltong ut bresaola anim. Jowl consequat tenderloin, meatloaf fatback eu sint duis mollit chuck biltong. Nostrud cupidatat nulla meatball, brisket irure dolor. Aliqua chuck ut in, nisi ea t-bone shankle bresaola. \stoptext We can consider adding some dummy to the tikz wrapper (\char0 will do) so that the context color mechanism gets reset before tikz doe some literal juggling. Anyway, when text precedes the picture it will go okay. 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] IPA symbols in MKIV
On 19-9-2011 11:56, Otso Helenius wrote: Hello, I'm having a trouble getting IPA symbols to show up with MKIV. I've read through the old threads about using IPA, and it seems there is no module like tipa for ConTeXt for easy input. I've tried also using SIL Gentium as the main font and entering the IPA symbols directly as UTF-8, but only a part of them will render (even though they all exist in the actual font in the right plane and are viewable in other programs). Almost none of the diacritics render. \definetypeface [MyFace][rm][serif][gentium][default][encoding=uc] \setupbodyfont[MyFace, 11pt] \starttext n̥ d̥ ̊ɭ˔ ʎ̥˔ \stoptext only n, d and ̊ will render in the PDF. In other apps using Gentium all the glyphs are visible. When you look at thelog you'll see that gentium is not used at all. \starttext \definedfont[file:GenAI102*gentium] n̥ d̥ ̊ɭ˔ ʎ̥˔ \stoptext So, you need to define a proper typescript (the one that you use now is a mkii one i.e. type-1 fonts) Is there a way to output IPA symbols correctly (when they are entered as UTF-8), or would it be possible to introduce a macro/module with an environment like \startipa \stopipa and commands for entering the symbols inside the environment? Entering some of the symbols correctly (such as velarized or pharyngealized diacritics which should appear on top of the letter) is hard when done directly with Unicode, so at least TeX-like shorthands for all the symbols and diacritics would really be appreciated. It's no problem to define something if we need what; on the other hand, we don't want overkill (i.e. too much old fashioned mess) 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] problem with letter module
Am 2011-09-19 um 12:35 schrieb Hans Hagen: system tex error on line 272 in file invoicesetup.tex: Undefined control sequence ... \dodododosetupcorrespondencelayer ...sname \@EAEA interesting .. I removed that one (could not find any usage) And now? Will you reinstate it? Must Wolfgang change his code? Should I investigate further? I'm using only official commands of the letter module: \setupletter \setupletterstyle \defineletterelement \copyletterelement \lettervalue Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz and \color
Excellent. Thanks Hans - that works brilliantly. However, it's now made me realise that I'm using movesidefloat incorrectly! (need to float something higher than the start of the paragraph). Back to the details manual! Thanks again, Felix On 19 September 2011 12:41, Hans Hagen pra...@wxs.nl wrote: On 19-9-2011 13:10, Felix Ingram wrote: Hello all, I'm using Tikz to draw some fancy text boxes, but I've bumped into an annoying problem. If you run the example below then the body text will be rendered in red. If you remove the REMOVE ME text, then it will be rendered in black. I would expect the black version to be the correct version but I need to add text to my node. Am I using \color correctly? Does anyone know how I might go about debugging this? Is there a way to determine whether it's Context or Tikz that's misbehaving? Tikz implements it own color handling and that interferes with the handling built in context. The following works. \usemodule[tikz] \setuphead[section][after={\blackrule[color=red,width=125mm,height=1pt,depth=1pt]\vskip 2em}] \starttext \section{Some Title} \dontleavehmode\forcecolorhack \starttikzpicture \node{x}; \stoptikzpicture Flank sint culpa, dolore dolore ham hock chicken t-bone irure pastrami. Eiusmod corned beef sint enim. Corned beef nulla qui aute, meatloaf ground round cillum ex. Ut swine pork belly, tongue pig sed tail frankfurter biltong ut bresaola anim. Jowl consequat tenderloin, meatloaf fatback eu sint duis mollit chuck biltong. Nostrud cupidatat nulla meatball, brisket irure dolor. Aliqua chuck ut in, nisi ea t-bone shankle bresaola. \stoptext We can consider adding some dummy to the tikz wrapper (\char0 will do) so that the context color mechanism gets reset before tikz doe some literal juggling. Anyway, when text precedes the picture it will go okay. 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] MetaPost visibly drawing at 0pt
I used to put an invisible frame around figures in MetaPost by setting a pen scaled at 0pt. That left no trace, but defined the area. However I (now) see a thin line drawn by code: pickup pencircle scaled 0pt; draw origin--(w,h); Did I always mis this or has something changed? For example a roundoff away from zero in MetaPost? By the way I am typesetting through ConTeXT with \startMPpage … \stopMPpage. 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 ___
[NTG-context] sizing MPpage
How can one set the size of a \startMPpage..\stopMPpage generated picture. For example forcing its dimensions to 5X4cm. Or better still, derived from variables in the code. 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] MetaPost visibly drawing at 0pt
Am 19.09.2011 14:31, schrieb Meer, H. van der: I used to put an invisible frame around figures in MetaPost by setting a pen scaled at 0pt. That left no trace, but defined the area. However I (now) see a thin line drawn by code: pickup pencircle scaled 0pt; draw origin--(w,h); Did I always mis this or has something changed? For example a roundoff away from zero in MetaPost? By the way I am typesetting through ConTeXT with \startMPpage … \stopMPpage. Donno (as I never used this method). Better use 'setbounds currentpicture to' .. .. 'unitsquare xyscaled(w,h);' .. 'OverlayBox;' .. whatever is squared; at the end of your graphic. This simply sets the bounding box of you graphic and has no unwanted side effects. 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 ___
Re: [NTG-context] sizing MPpage
On Mon, 19 Sep 2011, Meer, H. van der wrote: How can one set the size of a \startMPpage..\stopMPpage generated picture. For example forcing its dimensions to 5X4cm. Or better still, derived from variables in the code. Add something like setbounds currentpicture to (fullsquare xyscaled (5cm,4cm)) ; at the end of the MP code. 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] Multipages registers
I want to use the following macro taken from the ConTeXt garden : \define[1]\SlideTitle{\framed[height=1.5\lineheight,frame=off, bottomframe=on, topframe=on, width=broad]{\leftaligned{\tfb \chapter {#1}}\pagenumber}} Ouch. There is no need to resort to such macros. A nicer definition will be something like (untested) \definehead[SlideTitle][section-1] \setuphead[SlideTitle][style=\tfb, command=\SlideTitleCommand] \defineframed[SlideTitleFrame][height=,align=right] \def\SlideTitleCommand#1#2{\SlideTitleFrame{#1 \pagenumber}} Where is such a macro given in the garden. A quick search did not show it. 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] \setupcaptions hangs
On Mon, 19 Sep 2011, Hans Hagen wrote: On 19-9-2011 09:10, Wolfgang Schuster wrote: - \let\currenfloat\currentcaption + \let\currenfloat\currentfloatcaption + \let\currentfloat\currentfloatcaption Thanks. 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] sizing MPpage
Thanks, This does the trick for me. Hans van der Meer On 19 sep. 2011, at 15:49, Aditya Mahajan wrote: On Mon, 19 Sep 2011, Meer, H. van der wrote: How can one set the size of a \startMPpage..\stopMPpage generated picture. For example forcing its dimensions to 5X4cm. Or better still, derived from variables in the code. Add something like setbounds currentpicture to (fullsquare xyscaled (5cm,4cm)) ; at the end of the MP code. 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] Disabling specific ligatures
On Sun, 18 Sep 2011, Wolfgang Schuster wrote: Am 18.09.2011 um 03:13 schrieb Aditya Mahajan: On Sun, 18 Sep 2011, Khaled Hosny wrote: On Sat, Sep 17, 2011 at 08:02:43PM -0400, Aditya Mahajan wrote: In MkII, one can disable ligatures by inserting {} at the appropriate place. For example `self{}ish` disables the ligature between f and i. What is the equivalent way to disable ligatures in MkIV? Inserting a empty box? self\null ish seems to work. \null works but it disable hyphenation. The Unicode way would be inserting U+200C (ZWNJ) Thank you. This works perfectly. Actually it does not. The word cannot hypenate wher \zwnj is inserted. When you don’t mind the extra space you can use “|*|”. This works well. But why is the * discretionary defined to insert the extra 0.05em space? (I can overwrite it in my document, but I just curious about the reason for the original definition). 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] metafun shared code
Hi all, I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. Another one: I'd like to have two similar (but different) unique graphics, and I'd like them to share some code. How to do these two things? Best -- Marcin Borkowski http://mbork.pl ___ 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 shared code
On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. \startMPinclusions drawoptions(...) ; \stopMPinclusions Another one: I'd like to have two similar (but different) unique graphics, and I'd like them to share some code. \startuseMPgraphic{common} ... \stopuseMPgraphic \startuseMPgraphic{one} \includeMPgraphic{common} \stopuseMPgraphic \startuseMPgraphic{two} \includeMPgraphic{common} \stopuseMPgraphic 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] metafun shared code
I am using code between \startMPinclusions .. \stopMPinclusions while later additions can be accumulated with \startMPinclusions[+] .. \stopMPinclusions Hans van der Meer On 19 sep. 2011, at 17:01, Marcin Borkowski wrote: Hi all, I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. Another one: I'd like to have two similar (but different) unique graphics, and I'd like them to share some code. How to do these two things? Best -- Marcin Borkowski http://mbork.pl ___ 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 shared code
Am 19.09.2011 17:01, schrieb Marcin Borkowski: Hi all, I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. Another one: I'd like to have two similar (but different) unique graphics, and I'd like them to share some code. How to do these two things? \startMPinitializations global defs here \stopMPinitializations Can be used multiple times (no reset of previous data). Best ___ 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 shared code
Dnia 2011-09-19, pon o godzinie 11:19 -0400, Aditya Mahajan pisze: On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. \startMPinclusions drawoptions(...) ; \stopMPinclusions Thanks! Another one: I'd like to have two similar (but different) unique graphics, and I'd like them to share some code. \startuseMPgraphic{common} ... \stopuseMPgraphic \startuseMPgraphic{one} \includeMPgraphic{common} \stopuseMPgraphic \startuseMPgraphic{two} \includeMPgraphic{common} \stopuseMPgraphic And what about *unique* graphics? Aditya Best, -- Marcin Borkowski http://mbork.pl ___ 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 letter module
Am 19.09.2011 um 14:13 schrieb Henning Hraban Ramm: Am 2011-09-19 um 12:35 schrieb Hans Hagen: system tex error on line 272 in file invoicesetup.tex: Undefined control sequence ... \dodododosetupcorrespondencelayer ...sname \@EAEA interesting .. I removed that one (could not find any usage) And now? Will you reinstate it? Must Wolfgang change his code? Should I investigate further? I uploaded a new version. 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 with letter module
Am 2011-09-19 um 22:02 schrieb Wolfgang Schuster: And now? Will you reinstate it? Must Wolfgang change his code? Should I investigate further? I uploaded a new version. Dankeschön! My invoices compile again, so I won't starve next month. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] metafun shared code
On Mon, 19 Sep 2011, Marcin Borkowski wrote: Dnia 2011-09-19, pon o godzinie 11:19 -0400, Aditya Mahajan pisze: On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. \startMPinclusions drawoptions(...) ; \stopMPinclusions Thanks! Another one: I'd like to have two similar (but different) unique graphics, and I'd like them to share some code. \startuseMPgraphic{common} ... \stopuseMPgraphic \startuseMPgraphic{one} \includeMPgraphic{common} \stopuseMPgraphic \startuseMPgraphic{two} \includeMPgraphic{common} \stopuseMPgraphic And what about *unique* graphics? \includeMPgraphics should also work inside unique graphics. In any case, in MkIV, MP processing is extremely fast, so uniqueMPgraphics is not really needed. 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] Console Verbosity Optimized Output Generation
On Sat, 2011-09-17 at 09:47 +0200, Hans Hagen wrote: just runt with context ... void.log But then I won't even see errors. If I try just... $ context 1 /dev/null I still see no errors when there are some. -- 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] Console Verbosity Optimized Output Generation
On Fri, 2011-09-16 at 19:01 +0200, Hans Hagen wrote: there's also also --directives=logs.blocked,system.nostatistics Tried that and didn't seem to make any difference. -- 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] Console Verbosity Optimized Output Generation
On Fri, 2011-09-16 at 14:23 +0200, Wolfgang Schuster wrote: Separate you document in components and process only the component your working on, this is faster then the whole book (product). I've done that already. The whole book is one product, but each chapter is its own component. When one component changes, ConTeXt seems to rebuild the whole book. -- 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] metafun shared code
Dnia 2011-09-19, o godz. 17:43:29 Aditya Mahajan adit...@umich.edu napisał(a): On Mon, 19 Sep 2011, Marcin Borkowski wrote: Dnia 2011-09-19, pon o godzinie 11:19 -0400, Aditya Mahajan pisze: On Mon, 19 Sep 2011, Marcin Borkowski wrote: I'd like to have some MP code shared between unique graphics (in MkIV). One example: I'd like to have drawoptions something for all graphics. \startMPinclusions drawoptions(...) ; \stopMPinclusions Thanks! Another one: I'd like to have two similar (but different) unique graphics, and I'd like them to share some code. \startuseMPgraphic{common} ... \stopuseMPgraphic \startuseMPgraphic{one} \includeMPgraphic{common} \stopuseMPgraphic \startuseMPgraphic{two} \includeMPgraphic{common} \stopuseMPgraphic And what about *unique* graphics? \includeMPgraphics should also work inside unique graphics. In any case, in MkIV, MP processing is extremely fast, so uniqueMPgraphics is not really needed. I see, I'll check it tomorrow (it's 1:36am here now;)). One question, though: isn't unique graphic better than useMPgraphic in terms of the resulting pdf file size? Aditya Best, -- Marcin Borkowski ___ 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] Footnote numbering delimeter
Hey folks, How do I ensure that when a sentence has more than one footnote at the same place, that those numbers above the sentence are separated with a comma? -- 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] crop PDF pages
Hi, powerful context users: I'm wondering why there is no crop setting for \externalfigure or \insertpages. I have a lot of scanned books in PDF format, most of them are double sided. I want to read them on kindle but the huge margins take too much space and as a result the texts are too small. I want to use commands like \insertpages to crop all the pages with different bounding box settings for odd/even pages. there's a scale option for \copypages but it's somewhat naive to use in such practical cases... Yue Wang ___ 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 ___