Re: [NTG-context] Laundry symbols (now: altered picture)
... OK, much clearer now. Thanks for explanation. Best regards, Lukas On Tue, 05 Jun 2012 18:06:28 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.06.2012 um 17:13 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: Thank you, Wolfgang. Two more questions, hope there'll be no more about this stuff. On Tue, 05 Jun 2012 17:01:28 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: \usesymbols[mvs] \starttext \symbol[martinvogel 2][ShortForty] \stoptext or \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[ShortForty] \stoptext Wolfgang - How to scale the desired symbol, e.g. 5 times? I played with scale somehow, but no effect. It scales with the current font size. \usesymbols[mvs] \setupsymbolset[martinvogel 2] \starttext \symbol[ShortForty] {\tfd\symbol[ShortForty]} \stoptext - Where the symbol set name martinvogel 2 comes from? Is it a name built in the font file? The symbols are defined in symb-imp-mvs.mkiv, with \usesymbols[…] you load the file. - - Is 2 part of the name or does it mean something, e.g. a factor? The symbols are just put in named groups and “martinvogel 2” is the name of one of these groups (there is also “martinvogel 1”, don’t know how created these names). When you define a symbol you can set the name as \definesymbol[name]{symbol} or out it in a category with \definesymbol[category][name]{symbol} When you have many symbols which you want to put in a category you can say \startsymbolset [category] \definesymbol[name 1]{symbol 1} \definesymbol[name 2]{symbol 2} \stopsymbolset and omit the first argument. To print a symbol from this symbolset you have to write \symbol[category][name] but when you add \setupsymbolset[category] to your document ConTeXt will search in this symbol set even when you write only \symbol[name] Wolfgang -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ntg-style error
On 06/05/2012 06:55 PM, Mojca Miklavec wrote: Dear Hans, is there any chance to fix this in maps module any time soon? (Preferrably now, so that I can patch TeX Live as well.) That's my job. Later today, ok? Best wishes, Taco ___ 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] gnuplot with ConTeXt standalone
Hi, I just tried out the ConTeXt standalone and found out it did not work with my gnuplot files. I have been using texlive 2011, which works fine. With the context command from standalone, the following error occurs, - Error begins - ! Undefined control sequence. system tex error on line 4 in file /Users/jin/pkgs/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv: Undefined control sequence ... 1 %D \module 2 %D [ file=cont-yes, 3 %Dversion=2012.06.01, 4 %D title=\CONTEXT\ Miscellaneous Macros, 5 %D subtitle=Startup Stub, 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 %D copyright={PRAGMA ADE \ \CONTEXT\ Development Team}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12 %C details. 13 14 % At some point I will reconsider the \starttext .. \stoptext \startGNUPLOTpage -\begingroup \obeyMPlines \dostartGNUPLOTpage l.4 \startGNUPLOTpage - Error ends - I am not really sure which line is the error. Please excuse me if I pasted too much. The version of context from the standalone is ConTeXt ver: 2012.06.05 09:16 MKIV fmt: 2012.6.5 int: english/english As I have mentioned, the same file works fine with context in texlive 2011, which has version ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2012.4.5 int: english/english It looks like only two weeks difference. I thought I should pass along this issue to experts on the list. Thanks, Xiao-Yong ___ 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] multi-page floats
On Tue, Jun 5, 2012 at 8:25 PM, Henning Hraban Ramm hra...@fiee.net wrote: Am 2012-06-05 um 18:17 schrieb luigi scarso: ! File ended while scanning use of \buff_gobble. Uhm I've tested but maybe I've made a wrong cut and paste. Re-check now. Ah, it 's a side effect of the previous code What did you change? Who knows... I'm always try to use the latest beta, and sometime I make some confusion. I also overlooked that there is no image, i.e. layer is not visible. True: The next one I've a problem with the pagenumber on header, but I can use \setupbackgrounds[page][background={foreground,bg}] %% \setuppagenumbering[alternative=doublesided] \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)] \setupbackgrounds[page][background={bg}] %\setupbackgrounds[page][background={foreground,bg}] \def\DoublePicAt#1{ \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]} \strut \page } \starttext \startpostponing[5] \DoublePicAt{hacker} \stoppostponing \startpostponing[6] \DoublePicAt{hacker-back} \stoppostponing \dorecurse{30}{ \section{Knuth \recurselevel} \input knuth } \stoptext -- 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] Bistream Charter without any tfm files default font for MAPS style
On 06/05/2012 08:19 PM, Mojca Miklavec wrote: Hello, Dick just asked me about a problem he experiences with some documents that he ships with MacTeX. One of them is Hans' article using MAPS style. It fails to work with both LuaTeX and pdfTeX. The first one because of that footnote definition and the second one because of Charter being the default font, something like: That version of the maps style is ancient, and current Maps does not user charter at all. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Changing math font - sansserif - sans serif
On 6-6-2012 00:56, Mathieu Dupont wrote: Hi mailing list, Could someone help me figuring out what is the simplest way to have all my math font without serif, in the small example below, without losing anything, such as my \tau parameter ? Thank you very much for any hint ! \enableregime[il1] \setupbodyfont[sansserif,11pt] \starttext \startformula \startalign \NC Q_{x_T}(H_0)\equiv Q(H_0)\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\;P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR \NC\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\prod_{\tau=0}^{\tau^*-1}P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR \NC\NC=\Epsilon_{P_{x_{T_0}}}\left[\prod_{\tau=0}^{\tau^*-1} h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\right]\NR\stopalign \stopformula \stoptext There is no sans math font (unless you have installed hvmath). It is still under discussion if there will ever be a (complete) sans math font as part of the tex gyre project. In principle it's not that hard to fake one. You can for instance take one of the *-math.lfg files and choose other font files and hope for the best. Math and sans simply don't go well. Of course the sans math alphabets work with most fonts so one can always go that route with a regular math font. (I will probably cook up some simple variant some day suitable for elementary math but that's easier as it uses less symbols.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gnuplot with ConTeXt standalone
On Tue, Jun 5, 2012 at 5:00 PM, Xiao-Yong Jin wrote: Hi, I just tried out the ConTeXt standalone and found out it did not work with my gnuplot files. I have been using texlive 2011, which works fine. With the context command from standalone, the following error occurs, - Error begins - ! Undefined control sequence. system tex error on line 4 in file /Users/jin/pkgs/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv: Undefined control sequence ... 1 %D \module 2 %D [ file=cont-yes, 3 %D version=2012.06.01, 4 %D title=\CONTEXT\ Miscellaneous Macros, 5 %D subtitle=Startup Stub, 6 %D author=Hans Hagen, 7 %D date=\currentdate, 8 %D copyright={PRAGMA ADE \ \CONTEXT\ Development Team}] 9 %C 10 %C This module is part of the \CONTEXT\ macro||package and is 11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12 %C details. 13 14 % At some point I will reconsider the \starttext .. \stoptext \startGNUPLOTpage -\begingroup \obeyMPlines \dostartGNUPLOTpage l.4 \startGNUPLOTpage - Error ends - I am not really sure which line is the error. Please excuse me if I pasted too much. The version of context from the standalone is ConTeXt ver: 2012.06.05 09:16 MKIV fmt: 2012.6.5 int: english/english As I have mentioned, the same file works fine with context in texlive 2011, which has version ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2012.4.5 int: english/english It looks like only two weeks difference. If you do your calculations modulo 356 days, yes ;) I need to wait for a huge macports update to finish (needs recompilation of many big packages, including octave etc.) before I will be able to use gnuplot again, but there is a fair chance that either there is no gnuplot module installed in your standalone ConTeXt installation (an extra --modules=gnuplot switch needed if I'm not mistaken) or that something broke with yesterday's massive changes (that 356 days joke wasn't meant seriously). Please check if you have /Users/jin/pkgs/ConTeXt/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex (kpsewhich t-gnuplot.tex) on your system. I'll take a look as soon as I have a working gnuplot binary back. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gnuplot with ConTeXt standalone
On 5-6-2012 17:00, Xiao-Yong Jin wrote: \startGNUPLOTpage -\begingroup \obeyMPlines there is no \obeyMPlines any longer so you probably mix up an new context and an old gnuplot module 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] conditional format of headings
On 5-6-2012 10:34, Jan Pohanka wrote: Hello, is it possible to have some conditional format? I mean I'd like to have different vertical spacing for \section and \subsection when they follows immediately each other and when there is some text between them. No, at least not now. There are some possibilities with weighted skips so that some win over others but I'm not sure if that solves your case. 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] gnuplot with ConTeXt standalone
On Wed, Jun 6, 2012 at 9:49 AM, Hans Hagen wrote: On 5-6-2012 17:00, Xiao-Yong Jin wrote: \startGNUPLOTpage -\begingroup \obeyMPlines there is no \obeyMPlines any longer so you probably mix up an new context and an old gnuplot module Oh, in some other part of the module I have %\obeyMPlines % - no longer a problem and it seems that I forgot to remove that for full page plots. Thank you both for reporting the problem and spotting the solution right away. I will test later and update the module. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gnuplot with ConTeXt standalone
On Wed, Jun 6, 2012 at 9:47 AM, Mojca Miklavec wrote: Please check if you have /Users/jin/pkgs/ConTeXt/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex (kpsewhich t-gnuplot.tex) on your system. Please ignore my previous remarks and please try to remove \obeyMPlines from t-gnuplot.tex instead to see if that solves the problem. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Broken chem module?
On 2-6-2012 22:39, Kip Warner wrote: \starttext \placeformula[reaction:Sabatier Reaction] \startformula \inlinechemical{CO_2,+,4H_2,-,CH_4,+,2H_2O,+,heat} \stopformula \stoptext fixed in next upload. If you're in a hurry you can change this in chem-str.mkiv: \unexpanded\def\chemicalsymbol[#1]% {\csname\??chemicalsymbol\ifcsname\??chemicalsymbol#1\endcsname#1\else\s!unknown\fi\endcsname} 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] ntg-style error
Hi all, On 06/06/2012 09:21 AM, Taco Hoekwater wrote: On 06/05/2012 06:55 PM, Mojca Miklavec wrote: Dear Hans, is there any chance to fix this in maps module any time soon? (Preferrably now, so that I can patch TeX Live as well.) That's my job. Later today, ok? Attached are new versions of the Maps module. There are both mkiv and mkii versions, but the mkii version is unsupported and does not support realfonts mode. It would be nice if some of you would run tests, as I have no time for extensive testing right now. Best wishes, Taco %\module [ % file=s-map-10.mkii, % version=2012.06.06, % title=\CONTEXT\ Style File, % subtitle=\MAPS\ journal style, % author={Hans Hagen, Taco Hoekwater and Siep Kroonenberg}, % date=\currentdate, % copyright={NTG / MAPS}% %] % NOTE: this (MkII) version is not guaranteed to give exactly the % same output as the MkIV one, and exists mostly for compatibility % with old-fashioned authors. All final typesetting for the MAPS % is done with MkIV. If you are reading this: please consider % switching! % This module implements the MAPS style for use with the Context % macro package. The original MAPS layout was designed and % implemented in LaTeX by Taco Hoekwater and Siep Kroonenberg. \newif\ifMapsInColumns \doifmode{asym}{\enablemode[onecolumn]} % implies onecolumn \doifnotmode{onecolumn}{\MapsInColumnstrue} %% %%% fonts % first, font sizes \definebodyfontenvironment [7pt][% LaTeX: scriptsize interlinespace=8pt, big=8pt, small=6pt% ] \definebodyfontenvironment [8pt][% LaTeX: footnotesize interlinespace=9pt, big=9pt, small=7pt, x=6pt% ] \definebodyfontenvironment [9pt][% LaTeX: small interlinespace=10pt, big=10pt, small=8pt,% x=7pt,% script=6pt% ] \definebodyfontenvironment [10pt][% LaTeX: normalsize interlinespace=11pt, big=11pt, a=11pt, small=9pt,% x=8pt,% script=7pt% ] \definebodyfontenvironment [11pt][% LaTeX: large interlinespace=11pt, big=11pt, small=10pt,% x=9pt,% script=8pt% ] \definebodyfontenvironment [14pt][% interlinespace=14pt, big=18pt, small=11pt, x=10pt% ] \definebodyfontenvironment [18pt][% interlinespace=18pt, big=24pt, small=14pt, x=10pt% ] \definebodyfontenvironment [24pt][% interlinespace=24pt, big=24pt, small=18pt, x=11pt% ] %%% font families (no realfonts, no protruding) \starttypescript [maps][ec] \definetypeface [maps] [rm] [serif] [modern] [default] [encoding=ec,rscale=0.95] \definetypeface [maps] [mm] [math] [modern] [computer-modern] \definetypeface [maps] [tt] [mono] [modern] [default] [encoding=ec,rscale=0.90] \definetypeface [maps] [ss] [sans] [modern] [default] [encoding=ec,rscale=0.95] \stoptypescript \writestatus{maps\space warning}{This, the MkII style, is OUTDATED and UNSUPPORTED!} \writestatus{maps\space warning}{Please consider using ConTeXt MkIV instead.} \startmode[realfonts] \writestatus{maps\space error}{The MkII version of the module does not support 'realfonts'!} \wait \stopmode \setupbodyfont[maps,10pt,rm] \setupinterlinespace[line=11pt] %% %%% additional general typographic details \setupindenting [yes,next,11pt] % indenting after enumerations etc. \definepapersize [maps] [width=21cm,height=26.5cm] \setuppapersize [maps][maps] % parameters: % margin - latex marginparwith \setuplayout[% topspace=40pt, height=688pt, header=33pt, margin=106pt, leftmargindistance=11pt, rightmargindistance=11pt% ] \setupblank[5.5pt] \setuppagenumbering [location=] \definetyping [widetyping] \setupheader [style=\ss] \setupfooter [style=\ss] \def\AuHead{% %\ifnum\pageno=\MapsPage \hbox{}\else \MapsRunningAuthor%\fi } \def\TiHead{% \ifnum\pageno=\MapsPage \relax \MapsRunningAuthor %\hbox{} \else \MapsRunningTitle\fi} %% %%% sectioning \setupheads[sectionnumber=no, align=right] \def\hfonti{\ssbfa} \def\hfontii{\ssbf} \def\hfontiii{\rm\it} \def\runin#1#2{#2.} \doifmodeelse{nosubsub}{% \setuphead [section][% style=\hfontii, before={\blank[line]}, after={}% ] \setuphead [subsection][% style=\hfontiii, command=\runin, alternative=text, distance=6pt, before={\blank[halfline]}% ]}{% \setuphead [section][% style=\hfonti, before={\blank[line]}, after={\blank[halfline]}% ] \setuphead [subsection][% style=\hfontii, before={\blank[halfline]}, after={}% ] \setuphead [subsubsection][% style=\hfontiii, command=\runin, distance=6pt, alternative=text, before={\blank[halfline]}% ]} \doifmodeelse{nosubsub}{% \setuphead [subject][% style=\hfontii, before={\blank[halfline]}, after={}% ] \setuphead [subsubject][% style=\hfontiii, command=\runin, alternative=text, before={\blank[halfline]}% ]}{% \setuphead [subject][%
[NTG-context] postponing conflicts with footnotes
Me again... If a footnote doesn’t fit on the same page as its anchor, it gets placed on the next page - even if that’s a postponed one. I’d like to keep my postponed pages free of interfering text. \starttext \startpostponing[3] This page incidentally left blank. \page \stoppostponing \dorecurse{10}{ Weit hinten, hinter den Wortbergen, fern der Länder Vokalien \footnote{\input tufte} und Konsonantien\footnote{\input zapf} leben die Blindtexte. Abgeschieden wohnen Sie in Buchstabhausen an der Küste des Semantik, eines großen Sprachozeans. Ein kleines Bächlein namens Duden\footnote{\input knuth} fließt durch ihren Ort\footnote{Ort} und versorgt sie mit den nötigen Regelialien. Es ist ein paradiesmatisches Land, in dem einem gebratene Satzteile in den Mund fliegen. Nicht einmal von der allmächtigen Interpunktion werden die Blindtexte \footnote{Blindtext} beherrscht – ein geradezu unorthographisches Leben. Eines Tages aber beschloß eine kleine Zeile Blindtext, ihr Name war Lorem\footnote{\input dawkins} Ipsum, hinaus zu gehen in die weite Grammatik. Der große Oxmox\footnote{ox pollox} riet ihr davon ab, da es dort wimmele von bösen Kommata, wilden Fragezeichen und hinterhältigen Semikoli, doch das Blindtextchen ließ sich nicht beirren. Es packte seine sieben Versalien, schob sich sein Initial in den Gürtel und machte sich auf den Weg. Als es die ersten Hügel des Kursivgebirges erklommen hatte, warf es einen letzten Blick zurück auf die Skyline\footnote{Esmane} seiner Heimatstadt Buchstabhausen, die Headline von Alphabetdorf und die Subline\footnote{sublime} seiner eigenen Straße, der Zeilengasse. Wehmütig lief ihm eine rhetorische Frage über die Wange, dann setzte es seinen Weg fort. } \stoptext Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] gnuplot with ConTeXt standalone
On Jun 6, 2012, at 5:02 PM, Mojca Miklavec wrote: Please ignore my previous remarks and please try to remove \obeyMPlines from t-gnuplot.tex instead to see if that solves the problem. That is exactly the culprit. Thank you all. I understand how to read the error output, now. And reminded myself that this is the year 2012. Xiaoyong ___ 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] ntg-style error
On 2012-06-06 Taco Hoekwater t...@elvenkind.com wrote: It would be nice if some of you would run tests, as I have no time for extensive testing right now. The MkIV version has a spurious left bracket in \setuplayout. \setuplayout[ [topspace=40pt, height=688pt, … 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] multi-page floats
On Wed, Jun 6, 2012 at 9:37 AM, luigi scarso luigi.sca...@gmail.com wrote: On Tue, Jun 5, 2012 at 8:25 PM, Henning Hraban Ramm hra...@fiee.net wrote: Am 2012-06-05 um 18:17 schrieb luigi scarso: ! File ended while scanning use of \buff_gobble. Uhm I've tested but maybe I've made a wrong cut and paste. Re-check now. Ah, it 's a side effect of the previous code What did you change? Who knows... I'm always try to use the latest beta, and sometime I make some confusion. I also overlooked that there is no image, i.e. layer is not visible. And maybe this is what you want \setuppagenumbering[alternative=doublesided] \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)] \setupbackgrounds[page][background={bg}] \def\DoublePicAt#1{ \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]} \strut \page\stoppostponing } \newcount\AtPageCnt \def\PostPoneA#1#2{% \startpostponing[#2]% \DoublePicAt{#1}} \def\PostPone#1#2{% \AtPageCnt=#2 \PostPoneA{#1}{\the\AtPageCnt}\stoppostponing \advance\AtPageCnt by 1% \PostPoneA{#1-back}{\the\AtPageCnt}\stoppostponing } \starttext \PostPone{hacker}{5} \dorecurse{30}{ \section{Knuth \recurselevel} \input knuth } \stoppostponing \stoptext -- 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] multi-page floats
On Wed, Jun 6, 2012 at 11:39 AM, luigi scarso luigi.sca...@gmail.com wrote: On Wed, Jun 6, 2012 at 9:37 AM, luigi scarso luigi.sca...@gmail.com wrote: On Tue, Jun 5, 2012 at 8:25 PM, Henning Hraban Ramm hra...@fiee.net wrote: Am 2012-06-05 um 18:17 schrieb luigi scarso: ! File ended while scanning use of \buff_gobble. Uhm I've tested but maybe I've made a wrong cut and paste. Re-check now. Ah, it 's a side effect of the previous code What did you change? Who knows... I'm always try to use the latest beta, and sometime I make some confusion. I also overlooked that there is no image, i.e. layer is not visible. And maybe this is what you want errata/corrige \def\DoublePicAt#1{ \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]} \strut \page\stoppostponing } \def\DoublePicAt#1{ \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]} \strut \page } \newcount\AtPageCnt \def\PostPoneA#1#2{% \startpostponing[#2]% \DoublePicAt{#1}} \def\PostPone#1#2{% \AtPageCnt=#2 \PostPoneA{#1}{\the\AtPageCnt}\stoppostponing \advance\AtPageCnt by 1% \PostPoneA{#1-back}{\the\AtPageCnt}\stoppostponing } \starttext \PostPone{hacker}{5} \dorecurse{30}{ \section{Knuth \recurselevel} \input knuth } \stoppostponing \stoptext -- luigi -- 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] ntg-style error
Beste Taco, Ik heb het met mijn Exam Papers Revisited artikel gedraaid en dat gaf geen foutmelding. De gebruikte fonts zal ik wel niet hebben, want het werd hoofdzakelijk lmodern. met vriendelijke groet Hans van der Meer On 6 jun. 2012, at 11:13, Taco Hoekwater wrote: Hi all, On 06/06/2012 09:21 AM, Taco Hoekwater wrote: On 06/05/2012 06:55 PM, Mojca Miklavec wrote: Dear Hans, is there any chance to fix this in maps module any time soon? (Preferrably now, so that I can patch TeX Live as well.) That's my job. Later today, ok? Attached are new versions of the Maps module. There are both mkiv and mkii versions, but the mkii version is unsupported and does not support realfonts mode. It would be nice if some of you would run tests, as I have no time for extensive testing right now. Best wishes, Taco s-map-10.mkiis-map-10.mkiv___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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] conditional format of headings
Ok, thank you. I will solve this manually by creating some additional headings. regards Jan Dne Wed, 06 Jun 2012 09:52:40 +0200 Hans Hagen pra...@wxs.nl napsal(a): On 5-6-2012 10:34, Jan Pohanka wrote: Hello, is it possible to have some conditional format? I mean I'd like to have different vertical spacing for \section and \subsection when they follows immediately each other and when there is some text between them. No, at least not now. There are some possibilities with weighted skips so that some win over others but I'm not sure if that solves your case. 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] conditional format of headings
Am 05.06.2012 um 10:34 schrieb Jan Pohanka: Hello, is it possible to have some conditional format? I mean I'd like to have different vertical spacing for \section and \subsection when they follows immediately each other and when there is some text between them. % SectionBlank \def\DefineSectionBlank {\dotripleempty\doDefineSectionBlank} \def\doDefineSectionBlank[#1][#2][#3]#4% {\edef\CurrentSection{#1}% \setvalue{#1:#2:\ifthirdargument\the\dimexpr#3\relax\fi}{#4}} \def\SectionBlank#1#2% {\edef\CurrentSection{#1}% \executeifdefined{#1:#2:\LastSectionBlankSignal}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2: \let\LastSectionBlankSignal\zeropoint \EveryPar{\let\LastSectionBlankSignal\zeropoint} \def\SectionBlankSignal {\setevalue{LastSectionBlankSignal}{\the\dimexpr\csname\CurrentSection Signal\endcsname\relax}} % Heading \newsignal\PartSignal \DefineSectionBlank [Part] [before] {\blank[force,48pt]} \DefineSectionBlank [Part] [after] {\blank[15pt]\SectionBlankSignal} \setuphead [Part] [before=\SectionBlank{Part}{before}, after=\SectionBlank{Part}{after}] \newsignal\ChapterSignal \DefineSectionBlank [Chapter] [before] [\PartSignal] {\blank[\the\dimexpr 12pt*200/100-6pt\relax]} \DefineSectionBlank [Chapter] [before] {\blank[\the\dimexpr 12pt*200/100\relax]} \DefineSectionBlank [Chapter] [after]{\blank[\the\dimexpr 12pt*150/100\relax]\SectionBlankSignal} \setuphead [chapter] [before=\SectionBlank{Chapter}{before}, after=\SectionBlank{Chapter}{after}] \newsignal\SectionSignal \DefineSectionBlank [Section] [before] [\PartSignal]{\blank[\the\dimexpr 12pt*175/100\relax]} %\DefineSectionBlank [Section] [before] [\ChapterSignal] {\blank[\the\dimexpr 12pt*175/100-3pt\relax]} \DefineSectionBlank [Section] [before] [\ChapterSignal] {\blank[\the\dimexpr 12pt*175/100+2cm\relax]} \DefineSectionBlank [Section] [before] {\blank[\the\dimexpr 12pt*175/100\relax]} \DefineSectionBlank [Section] [after] {\blank[\the\dimexpr 12pt*133/100\relax]\SectionBlankSignal} \setuphead [section] [before=\SectionBlank{Section}{before}, after=\SectionBlank{Section}{after}] \starttext \chapter{Chapter 1} \section{Section 1.1} \chapter{Chapter 2} text \section{Section 2.1} \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] beta
On 6/5/12 9:30 AM, Hans Hagen wrote: Hi, I uploaded a beta that has a (first) update/cleanup of the context runner script. The most important changes are - no longer an option file (jobname.opt) - no longer stub files (for xml and cld) - handling of (most of the) ctx files happens elsewhere (job control) In principle all this should go unnoticed, although one might notice the difference in the call to luatex. Hans Hans, the latest beta finds, but doesn't use my environment files any more. Example: I have an environment called lucian-style.tex which is found: mtxrun --locate lucian-style.tex /Users/tas/texmf/tex/generic/lucian-style.tex But when I compile my xml with context --environment=lucian-style.tex lucian.xml it isn't read and used. Everything works as expected with the beta of 05.30.2012. All best Thomas -- Prof. Dr. Thomas A. Schmitz Abteilung für Griechische und Lateinische Philologie Universität Bonn Am Hof 1e 53113 Bonn http://www.philologie.uni-bonn.de/personal/schmitz ___ 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] even odd page condition
Hello, is it possible to find if you’re on an odd or an even page in context? I want to do something like this: \def\makemytext#1{ %if page is even \rightaligned{#1} %else \leftaligned{#1} } Thanks for the answer. Pavel Dohnal ___ 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] even odd page condition
Am 06.06.2012 um 17:13 schrieb Pavel Dohnal: Hello, is it possible to find if you’re on an odd or an even page in context? I want to do something like this: \def\makemytext#1{ %if page is even \rightaligned{#1} %else \leftaligned{#1} } \defineframed[noframed][frame=off,width=broad,align=outer] \setuppagenumbering[alternative=doublesided] \starttext \noframed{Left or right?} \page \noframed{Left or right?} \stoptext or \define[1]\AlignOuter {\doifoddpageelse\rightaligned\leftaligned{#1}} \starttext \AlignOuter{Left or right?} \page \AlignOuter{Left or right?} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] line break after “/” (no hyphen)
I dimly recall discussion of linebreaking after “/”, but have not been able to retrieve it from the archives. Can any one point to an explanation of how to make “/” a character that will admit a following linebreak (without hyphenation) in MKII? The aim is to break “….Montreal/Ottawa”, say, into “ …..Montreal/ Ottawa…...” Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] even odd page condition
On Wed, 6 Jun 2012, Wolfgang Schuster wrote: \define[1]\AlignOuter {\doifoddpageelse\rightaligned\leftaligned{#1}} you can simplify this to: \define\AlignOuter {\doifoddpageelse\rightaligned\leftaligned} 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] line break after “/” (no hyphen)
On Wed, 6 Jun 2012, Alan Bowen wrote: I dimly recall discussion of linebreaking after “/”, but have not been able to retrieve it from the archives. Can any one point to an explanation of how to make “/” a character that will admit a following linebreak (without hyphenation) in MKII? The aim is to break “….Montreal/Ottawa”, say, into “ …..Montreal/ Ottawa…...” (Untested) Montreal|/|Ottawa 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] line break after “/” (no hyphen)
Many thanks, Aditya. So far so good—it really improves the appearance of my bibliography. All best, Alan On Wed, Jun 6, 2012 at 11:41 AM, Aditya Mahajan adit...@umich.edu wrote: On Wed, 6 Jun 2012, Alan Bowen wrote: I dimly recall discussion of linebreaking after “/”, but have not been able to retrieve it from the archives. Can any one point to an explanation of how to make “/” a character that will admit a following linebreak (without hyphenation) in MKII? The aim is to break “….Montreal/Ottawa”, say, into “ …..Montreal/ Ottawa…...” (Untested) Montreal|/|Ottawa 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 ___ ___ 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] line break after “/” (no hyphen)
On Wed, 6 Jun 2012, Alan Bowen wrote: I dimly recall discussion of linebreaking after “/”, but have not been able to retrieve it from the archives. Also \setbreakpoints[compound] should do the trick without typing the pipe symbols. Cheers -- 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] line break after “/” (no hyphen)
On Wed, 6 Jun 2012, Marco Pessotto wrote: On Wed, 6 Jun 2012, Alan Bowen wrote: I dimly recall discussion of linebreaking after “/”, but have not been able to retrieve it from the archives. Also \setbreakpoints[compound] should do the trick without typing the pipe symbols. Alan was asking for MkII. \setbreakpoints is only for MkIV. 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] \externalfigure and factor=max
Hi, according to the wiki the \externalfigure key “factor” has the options: max: aspect ratio is kept, the image is scaled to the bigger (oversized) variant fit: aspect ratio is kept, the image is scaled to the smaller (fitted) variant In the following example I expect the third image to have a width of 4cm and a height of 4cm. However, both values are 3cm. The aspect ratio is kept, but “max” and “fit” behave the same. \startbuffer [img] \useMPlibrary [dum] \startTEXpage \externalfigure [dummy] [width=5cm,height=5cm] \stopTEXpage \stopbuffer \ctxcommand{runbuffer(img, img, true)} \starttext \externalfigure [\jobname-img] [width=3cm, height=4cm] \blank \externalfigure [\jobname-img] [factor=fit, width=3cm, height=4cm] \blank \externalfigure [\jobname-img] [factor=max, width=3cm, height=4cm] \stoptext Is this a bug or am I misunderstanding the wiki? Anyhow, is there a clean solution to keep the aspect ratio and scale the image to whichever value is larger? 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] even odd page condition
On 6-6-2012 17:40, Aditya Mahajan wrote: On Wed, 6 Jun 2012, Wolfgang Schuster wrote: \define[1]\AlignOuter {\doifoddpageelse\rightaligned\leftaligned{#1}} you can simplify this to: \define\AlignOuter {\doifoddpageelse\rightaligned\leftaligned} there's also the pair: \signalrightpage \doifrightpageelse where the signal generates a node 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] Changing math font - sansserif - sans serif
Ok, I can do with serif then. Thank you Hans ! Mathieu Le 2012-06-06 à 03:45, Hans Hagen a écrit : On 6-6-2012 00:56, Mathieu Dupont wrote: Hi mailing list, Could someone help me figuring out what is the simplest way to have all my math font without serif, in the small example below, without losing anything, such as my \tau parameter ? Thank you very much for any hint ! \enableregime[il1] \setupbodyfont[sansserif,11pt] \starttext \startformula \startalign\NC Q_{x_T}(H_0)\equiv Q(H_0)\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\;P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR \NC\NC=\sum_{H_1,\dots,H_{\tau^*-1}}\left(\prod_{\tau=0}^{\tau^*-1} h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\prod_{\tau=0}^{\tau^*-1}P_{x_{T_0}}(H_{\tau+1}|H_\tau)\right)\NR \NC\NC=\Epsilon_{P_{x_{T_0}}}\left[\prod_{\tau=0}^{\tau^*-1} h_{x_Tx_{T_0}}(H_\tau|H_{\tau+1})\right]\NR\stopalign \stopformula \stoptext There is no sans math font (unless you have installed hvmath). It is still under discussion if there will ever be a (complete) sans math font as part of the tex gyre project. In principle it's not that hard to fake one. You can for instance take one of the *-math.lfg files and choose other font files and hope for the best. Math and sans simply don't go well. Of course the sans math alphabets work with most fonts so one can always go that route with a regular math font. (I will probably cook up some simple variant some day suitable for elementary math but that's easier as it uses less symbols.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Chapter layout with \structureuservariable and a makeup
Hi, I fail to use \structureuservariable to print a value on the page preceding a chapter. Example: \setuphead [chapter] [before=\setups{chap}, command=\myChap] \startsetups chap \startmakeup setups\crlf structureuservariable foo: \structureuservariable{foo} \stopmakeup \stopsetups \define[2]\myChap{% \startmakeup command\crlf structureuservariable foo: \structureuservariable{foo} \stopmakeup} \starttext \startchapter [title=First][foo=one] \input knuth \stopchapter \startchapter [title=Second][foo=two] \input knuth \stopchapter \stoptext Problems \structureuservariable does not work with the “before” key. In the first chapter the value is empty and in the second chapter it has the value from the first one. That means, it is designed to be used with the “command” key. When used with the “command” key, the values are correct. However, the following chapter text always appears on the same page, even when a makeup or a manual page break is used. Additionally you have to mess around with the two arguments of \myChap, which easily leads to inconsistent spacing (that's why I used the “before” key in the first place). \setuphead doesn't seem to support a “setups=…” key, unfortunately. What would be the solution for this? 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] Broken chem module?
On Wed, 2012-06-06 at 10:22 +0200, Hans Hagen wrote: fixed in next upload. If you're in a hurry you can change this in chem-str.mkiv: \unexpanded\def\chemicalsymbol[#1]% {\csname\??chemicalsymbol\ifcsname\??chemicalsymbol#1\endcsname#1\else\s!unknown\fi\endcsname} Hans Thanks Hans, but it did not seem to change anything. This is what line 93-94 of chem-str.mkiv looks like after I edited it: \unexpanded\def\chemicalsymbol[#1]% {\csname\??chemicalsymbol\ifcsname\??chemicalsymbol#1\endcsname#1\else \s!unknown\fi\endcsname} The deb I am using is for ConTeXt 2012.06.05 17:36. -- 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] Broken chem module?
On 6-6-2012 23:42, Kip Warner wrote: On Wed, 2012-06-06 at 10:22 +0200, Hans Hagen wrote: fixed in next upload. If you're in a hurry you can change this in chem-str.mkiv: \unexpanded\def\chemicalsymbol[#1]% {\csname\??chemicalsymbol\ifcsname\??chemicalsymbol#1\endcsname#1\else\s!unknown\fi\endcsname} Hans Thanks Hans, but it did not seem to change anything. This is what line 93-94 of chem-str.mkiv looks like after I edited it: \unexpanded\def\chemicalsymbol[#1]% {\csname\??chemicalsymbol\ifcsname\??chemicalsymbol#1\endcsname#1\else \s!unknown\fi\endcsname} The deb I am using is for ConTeXt 2012.06.05 17:36. i uploaded a beta so the garden version should work ok - 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] Broken chem module?
On Wed, 2012-06-06 at 23:49 +0200, Hans Hagen wrote: i uploaded a beta so the garden version should work ok Maybe I could just download your copy of the chem-str.mkiv to replace my own. Do you have a direct link to the revision you just uploaded so that I can give it a test? -- 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] back-up.lua; mtx-epub.lua
Hello all, I do not know, how many people are using the epub export, but here are two more changes in order to achieve a valid epub file with information from the context source: On Jun 5, 2012, at 9:09 PM, Andy Thomas wrote: Hi all, in my attempts to validate epub export from my context source, I made the following changes to back-up.lua and mtx-epub.lua 1) the actual context language is put in the epub 2) changed the OPS directory to OEBPS. The 2.0.1 Standard does not actually say that is has to have that name, but I only found examples using that one, including the sample documents in the 2.0.1 white paper. 3) changed opf:scheme to UUID, since that is used and not a ISBN number 4) added the encoding info in the opf file 5) changed the single in double-quotes in the opf file manifest. I do not know if it is necessary, but this seams to be more consistent 6) the title is taken from \setupinteraction 7) the author is taken from \setupinteraction Andy The diff against the actual standalone is diff back-exp_old.lua back-exp_2.lua 2364a2365,2378 local identity = interactions.general.getidentity() local title local author for i=1,#fields do local key = fields[i] local value = identity[key] if value and value ~= then if key==title then title = value elseif key==author then author = value end end end 2370a2385,2387 language = languagenames[tex.count.mainlanguagenumber], title = title, author = author, and the epub make script diff mtx-epub_old.lua mtx-epub_2.lua 46c46 ?xml version=1.0 encoding=UTF-8 ? --- ?xml version=1.0 encoding=UTF-8? 50c50 rootfile full-path=OPS/%s media-type=application/oebps-package+xml/ --- rootfile full-path=OEBPS/%s media-type=application/oebps-package+xml/ 56c56 ?xml version=1.0? --- ?xml version=1.0 encoding=UTF-8? 61,64c61,64 dc:titleMy Title/dc:title dc:languageen/dc:language dc:identifier id=%s urn:uuid:%s/dc:identifier dc:creator opf:file-as=Self, My opf:role=autMySelf/dc:creator --- dc:title%s/dc:title dc:language%s/dc:language dc:identifier id=%s opf:scheme=UUIDurn:uuid:%s/dc:identifier dc:creator%s/dc:creator 79c79 local item = [[item id='%s' href='%s' media-type='%s'/]] --- local item = [[item id=%s href=%s media-type=%s/]] 196a197,199 local language = specification.language or en local creator= specification.author or My Self local title = specification.title or My Title 211c214 lfs.mkdir(file.join(epubpath,OPS)) --- lfs.mkdir(file.join(epubpath,OEBPS)) 220c223 local target = file.join(epubpath,OPS,filename) --- local target = file.join(epubpath,OEBPS,filename) 256,257c259,260 package = format(package,identifier,identifier,os.uuid(),os.date(!%Y-%m-%dT%H:%M:%SZ),concat(used,\n),idmaker(root)) toc = format(toc,identifier,title,root) --- package = format(package,identifier,title,language,identifier,os.uuid(),creator,os.date(!%Y-%m-%dT%H:%M:%SZ),concat(used,\n),idmaker(root)) toc = format(toc,identifier,title,root) 261,262c264,265 io.savedata(file.join(epubpath,OPS,epubroot),package) io.savedata(file.join(epubpath,OPS,epubtoc),toc) --- io.savedata(file.join(epubpath,OEBPS,epubroot),package) io.savedata(file.join(epubpath,OEBPS,epubtoc),toc) 275c278 os.execute(format(zipper.compressed,epubfile,OPS)) --- os.execute(format(zipper.compressed,epubfile,OEBPS)) ___ 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] gnuplot with ConTeXt standalone
On Wed, Jun 6, 2012 at 11:30 AM, Xiao-Yong Jin wrote: On Jun 6, 2012, at 5:02 PM, Mojca Miklavec wrote: Please ignore my previous remarks and please try to remove \obeyMPlines from t-gnuplot.tex instead to see if that solves the problem. That is exactly the culprit. Thank you all. I understand how to read the error output, now. I didn't read careful enough. I thought that \startGNUPLOTpage was undefined. Anyway, I updated the module in distribution in TL (the latter will be updated in a few hours). Thanks again to both, Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Broken chem module?
On Wed, Jun 6, 2012 at 11:54 PM, Kip Warner wrote: On Wed, 2012-06-06 at 23:49 +0200, Hans Hagen wrote: i uploaded a beta so the garden version should work ok Maybe I could just download your copy of the chem-str.mkiv to replace my own. Do you have a direct link to the revision you just uploaded so that I can give it a test? The whole zip is on http://www.pragma-ade.com/context/beta/cont-tmf.zip The extracted version is on http://minimals.contextgarden.net/current/context/beta/ also available via rsync rsync://contextgarden.net/minimals/current/context/beta/ and there is also a git repository http://gitorious.org/context git://gitorious.org/context/context.git Pick any. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] frame and numbering of code snippets using vim-module
Hi context folks, using the vim module for including MATLAB-code, I noticed some annoying behavior: The frame, that I produced with your help using `\definetextbackground`, is not wide enough for the text inside, or rather the line wraps are done too late (see the attached examples!). Additionally the frame has a bottom line at the end of the page although the code snippet did not end yet. It looks as if a new box begins. Besides there should not be a new line number after a line break. Any ideas what to do? Thanks, Xenia % random text, random text, blablabla, random text, blablabla, this tests if there is a line wrap⦠random text, blablabla, random text, blablabla, random text, blablabla, random text, blablabla random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code random code % Printing: fprintf('its random text random text random text random text ',variable); fprintf('random text random text random text random text random text',variable); fprintf('more random text random text random text random text random text ',variable); fprintf('random text random text random text random text random text random text random text ', variable); (framedcode.tex ConTeXt ver: 2012.04.19 23:18 MKIV fmt: 2012.4.22 int: english/english system cont-new.mkiv loaded (/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system framedcode.top loaded system options start used options used options % runtime options files (command line driven) used options \unprotect used options % feedback and basic job control used options % handy for special styles used options \startluacode used options document = document or { } used options document.arguments={ used options } used options document.files={ used options framedcode.tex, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=framedcode.tex] used options \setupsystem[\c!n=2,\c!m=2] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used options % done used options \protect \endinput system options stop used options (framedcode.top) fontslatin modern fonts are not preloaded languageslanguage en is active resolversmodules loaded: 'vim' (/home/context/tex/texmf-modules/tex/context/third/vim/t-vim.tex loading Vim syntax highlighting (ver: 2012.04.18) resolversmodules loaded: 'filter' (/home/context/tex/texmf-modules/tex/context/third/filter/t-filter.mkiv loading Filter (ver: 2012.04.18) resolversmodules loaded: 'module-catcodes' (/home/context/tex/texmf-modules/tex/context/third/filter/t-module-catcodes.tex loading Module Catcodes (ver: 2011.12.17) )) resolversmodules loaded: 'syntax-highlight' (/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-highlight.mkiv loading Code syntax highlighting (ver: 2012.04.18) resolversmodules loaded: 'syntax-groups' (/home/context/tex/texmf-modules/tex/context/third/vim/t-syntax-groups.tex loading Syntax highlighting groups (ver: 2012.01.03) resolversmodules already loaded: 'module-catcodes' ) resolversmodules already loaded: 'filter' )){/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown: library 'loc' {/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsvirtual math unable to resolve name mapsfromchar fontsfallback modern rm 12pt is loaded (code.m.vimout Overfull \hbox (24.35204pt too wide) in paragraph at
Re: [NTG-context] frame and numbering of code snippets using vim-module
On Thu, 7 Jun 2012, Xenia wrote: Hi context folks, using the vim module for including MATLAB-code, I noticed some annoying behavior: The frame, that I produced with your help using `\definetextbackground`, is not wide enough for the text inside, or rather the line wraps are done too late (see the attached examples!). For the time being, use this version of t-syntax-highlighting.mkiv (add it to your project directory) https://github.com/adityam/filter/blob/75d95dc587f5246d336bd2dc3efe840b0fcb3f3c/t-syntax-highlight.mkiv I'll check later why the new version is failing. Additionally the frame has a bottom line at the end of the page although the code snippet did not end yet. It looks as if a new box begins. That is the default behaviour of backgrounds. You can use the examples given in this thread http://archive.contextgarden.net/message/20110803.150829.6127cbc9.en.html Besides there should not be a new line number after a line break. I am not sure how to prevent line number from appearing on split lines. 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 ___