[NTG-context] Mptopdf batch
All, I am wondering why this only compiles one file. How can I compile section3figs-mpgraph.# of #=1-7 in one command? figures $ ls figlibSection1.xml section3figs-mpgraph.log figlibSection2.xml section3figs-mpgraph.mp figlibSection3.xml section3figs-mpgraph.mpo junk5.tex section3figs-mpgraph.mpt mpgraph.mp section3figs-mpgraph.mpx mptrace.tmp section3figs.log section1figs.texsection3figs.pdf section2figs.texsection3figs.tex section3figs-mpgraph-1.pdf section3figs.tmp section3figs-mpgraph.1 section3figs.tui section3figs-mpgraph.2 section3figs.tuo section3figs-mpgraph.3 tmpgraph-mpgraph.mp section3figs-mpgraph.4 tmpgraph.bck section3figs-mpgraph.5 tmpgraph.log section3figs-mpgraph.6 tmpgraph.tmp section3figs-mpgraph.7 tmpgraph.tui figures $ mptopdf section3figs-mpgraph.* This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) [MP to PDF] (./section3figs-mpgraph.1{/Users/darnold/Library/texmf/ fonts/map/pd ftex/updmap/pdftex.map}) [1]type1/blu esky/cm/cmsy10.pfb>bluesky/cm/c mr12.pfb>{/usr/local/teTeX/share/texmf.tetex/fonts/enc/dvips/lm/lm- ec.enc}/local/teTeX/share/texmf.tetex/fonts/type1/public/lm/lmr12.pfb>local/teTe X/share/texmf.tetex/fonts/type1/bluesky/cm/cmmi12.pfb> Output written on section3figs-mpgraph.pdf (1 page, 24994 bytes). Transcript written on section3figs-mpgraph.log. MPtoPDF 1.3 : section3figs-mpgraph.1 is converted to section3figs- mpgraph-1.pdf figures $ I also tried: figures $ mptopdf section3figs-mpgraph.[1-7]This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) [MP to PDF] (./section3figs-mpgraph.1{/Users/darnold/Library/texmf/ fonts/map/pd ftex/updmap/pdftex.map}) [1]type1/blu esky/cm/cmsy10.pfb>bluesky/cm/c mr12.pfb>{/usr/local/teTeX/share/texmf.tetex/fonts/enc/dvips/lm/lm- ec.enc}/local/teTeX/share/texmf.tetex/fonts/type1/public/lm/lmr12.pfb>local/teTe X/share/texmf.tetex/fonts/type1/bluesky/cm/cmmi12.pfb> Output written on section3figs-mpgraph.pdf (1 page, 24992 bytes). Transcript written on section3figs-mpgraph.log. MPtoPDF 1.3 : section3figs-mpgraph.1 is converted to section3figs- mpgraph-1.pdf figures $ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Standalone graphics
All, If you have: \starttext \startMPpage metapost code \stopMPpage \startMPpage metapost code \stopMPpage \startMPpage metapost code \stopMPpage \startMPpage metapost code \stopMPpage \stoptext Is there a way to change all four output files directly to pdf without invoking a separate run of mptopdf? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] th nd and rd
John R. Culleton wrote: > It is common to express certain numerals with the suffixes > st, nd, rd, th, > with the suffix in a smaller type and raised about .5em > eg: > 1st 2nd 3rd 4th 5th. > > It is of course possible to cobble these expressions up in macros. > But it would be handy if they were built in to Context. As usually, Hans already included (almost) that in the core :) See the very end of lang-ger.tex and the definition of \enordinaldaynumber. I don't know why there is \ordinalstr instead of \highordinalstr used (in contrast to the Dutch one), but you can (re)define it like: \def\enordinalnumber#1% {#1\ifnum\lasttwodigits{#1}=11 \highordinalstr{th}% \else\ifcase\lastdigit{#1}% \highordinalstr{th}% \or % 1 \highordinalstr{st}% \or % 2 \highordinalstr{nd}% \or % 3 \highordinalstr{rd}% \else \highordinalstr{th}% \fi\fi} And use it as: \enordinalnumber{1} \enordinalnumber{2} \enordinalnumber{3} \enordinalnumber{4} \enordinalnumber{5} \enordinalnumber{100} ... Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2 m-bib questions
On Fri, 30 Dec 2005, Taco Hoekwater wrote: > does your fixed version allow latex-style citations like this: > >\cite{article-crossref} > > That format has to be supported because it is often used within .BIB > files. Hi Taco, I use your latest beta. The first thing I tested, was just \cite{key}, and since I got an error: Runaway argument? bla \placepublications \stoptext ! File ended while scanning use of \docite. \par <*> &cont-en test.tex I thought, that this format was no more supported. But if you need to support also \cite{key} and \cite[options]{key}, then the space problem would be solved anyway: just drop the \cite[] and \cite[][] syntax, I don't see any need for this (just backward compatibility perhaps?). The space problem occurs whenever you do \def\Command{\dodoubleempty\doCommand} \def\doCommand[#1][#2]{} but not with \def\Command{\dosingleempty\doCommand} \def\doCommand[#1]#2{} Cheers and thanks for your great module! Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2 m-bib questions
Hi Peter, I thought they did, but was I wrong, thanks for testing and your patch. I was in a real real hurry when I posted my reply, and still I have no time right now, but I can do a fast question: does your fixed version allow latex-style citations like this: \cite{article-crossref} That format has to be supported because it is often used within .BIB files. Cheers and Thanks again, Taco Peter Münster wrote: On Fri, 30 Dec 2005, Taco Hoekwater wrote: I think there are other commands with that behaviour, but I don't remember which ones... \at and \in, Are you sure? I don't see it: \starttext \section{first} \section[sec2]{second} bla \at[sec2] bla \in[sec2] bla bla \at{xxx}[sec2] bla \in{xxx}[sec2] bla bla \at{xxx}{yyy}[sec2] bla \in{xxx}{yyy}[sec2] bla \stoptext Greetings, Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2 m-bib questions
On Fri, 30 Dec 2005, Taco Hoekwater wrote: > > I think there are other commands with that behaviour, but I don't remember > > which ones... > > \at and \in, Are you sure? I don't see it: \starttext \section{first} \section[sec2]{second} bla \at[sec2] bla \in[sec2] bla bla \at{xxx}[sec2] bla \in{xxx}[sec2] bla bla \at{xxx}{yyy}[sec2] bla \in{xxx}{yyy}[sec2] bla \stoptext Greetings, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] pushed text in description
Thursday, December 29, 2005 Taco Hoekwater wrote: > You latex example does what I *thought* \txt did. > My guess is Hans misunderstood Giuseppe a bit, and Giuseppe never > really tested the code, because what happens now is a bit nonsensical. It's true, I never got around to testing the code, since in rewriting the text I didn't need it anymore :) -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] widgets in layers (property)
Hi all, I want to use widgets (tooltip, buttons,..) in some stacked pdf layers. My problem is, that the widgets are somehow not bound to the state of their layer. They are still active, even if the surrounding layer is deactivated. I add a mimimal example (it's best to open the 'Layers' tab in acrobat). The first layer with tooltip ist not active, the second one is active, but has no tooltip. Just move the mouse over the text and you can see the tooltip from the deactivated layer one. I have also tried it with a fieldstack, but 'annotations cannot be inside an XForm'. Any hints are welcome. Peter % interface=en output=pdftex % Time-stamp: % \setupcolors[state=start] \setupinteraction[state=start] \starttext \def\Stackbox#1{\nointerlineskip\vbox\bgroup\wd#1=\zeropoint\ht#1=\zeropoint\dp#1=\zeropoint \dontleavehmode\noindent\box#1\egroup} \defineproperty[layer1][layer][title={one}, state=stop] \defineproperty[layer2][layer][title={two}, state=start] \newbox\Layerbox \startproperty[layer1] \setbox\Layerbox\vbox{\framed[width=160mm,height=120mm,framecolor=red] {\tooltip{First Layer with tooltip}{widget of layer one is active}}} \Stackbox\Layerbox \stopproperty \startproperty[layer2] \setbox\Layerbox\vbox{\framed[width=160mm,height=120mm,framecolor=green,frameoffset=1pt] {Second Layer without tooltip}} \Stackbox\Layerbox \stopproperty \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: "" %%% End: ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2 m-bib questions
Peter Münster wrote: On Mon, 9 Aug 2004, Taco Hoekwater wrote: On Sun, 8 Aug 2004 19:25:27 +0200 (CEST), Peter wrote: * The lost space after \cite[...], is it a bug or a feature? It is unintentional, and I will try to fix that behaviour in the future. I think there are other commands with that behaviour, but I don't remember which ones... \at and \in, ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bold sc again
On Fri, 30 Dec 2005, Mojca Miklavec wrote: > It surely is better to use modules unless Hans ads the definitions to > the core, but in my opinion there must be a way to surround the > definitions with \starttypescript.Don't ask me how. Hello Mojca, it works, if the file is saved as "type-loc.tex", but then it's loaded for every user and I prefer to control, when it's loaded. It works then with "\starttypescript [mono] [computer-modern] [size]", "\starttypescript [cmttbf] [computer-modern] [size]" was just one of my hopeless tries ;) > > But there are at least two other problems with the file (so there must be a > > cleaner way): > > - I would like to use LM wherever possible, but now even for normal \sc > > the CM fonts are used. > > I get lmr for normal caps in your example. > > You can use the (lmcsc10 instead of cmcsc10) directly or create a > synonym from cmr to lmr (already defined somewhere), but since it > works OK here, I cannot test the wrong behaviour. When I use "lmcsc10" instead of cmcsc10, I get: ERROR: I can't find file `lmcsc10'. --- TeX said --- <*> ...=ljfzzz; mag:=1; nonstopmode; input lmcsc10 That's the reason, why I thought that cm was used instead of lm... But anyway, it's not so important, since the fonts look the same. > The most weird thing is that you mix two different encodings within > the same file. Yes, you're right! Just some explanation: Some time ago, I tried out utf with my editor and wrote some modules (t-construction-plan.tex and t-french.tex). But afterwards for some reasons I switched back to il9. The header of the new modules got copied and pasted from the older utf-modules, but since I work with il9 today, the rest is il9. I didn't change the header, because in any way I will switch all my stuff to utf in some weeks, today I'm just in a transitional phase... ;) > Mojca (no need to answer my stupid remarks) Why are they stupid? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2 m-bib questions
On Mon, 9 Aug 2004, Taco Hoekwater wrote: > On Sun, 8 Aug 2004 19:25:27 +0200 (CEST), Peter wrote: > > > * The lost space after \cite[...], is it a bug or a feature? > > It is unintentional, and I will try to fix that behaviour in the future. Hello Taco, it seems that the bug is still there. After quite some time of investigation, here comes my workaround: \usemodule[bib] \let\citeO\cite% original cite command \unprotect \def\cite{\bgroup \def\inspectnextcharacter{% removed treatment of blanks \ifx\nexttoken\charactertoken [EMAIL PROTECTED] \else [EMAIL PROTECTED] \fi}% \dodoubleempty\doMyCite} \def\doMyCite[#1][#2]{% [EMAIL PROTECTED]@SecondArgument{n}\fi \egroup [EMAIL PROTECTED] \protect \starttext bla \cite[options][key1] bla \cite[key2] bla \placepublications \stoptext I think there are other commands with that behaviour, but I don't remember which ones... Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context