Re: [NTG-context] Insertion of a Document I.D.
\jobname yields the filename (in my last year's TeX Live ConTeXt). On May 15, 2012, at 11:08 PM, wrote: > > I want to generate a document i.d. from the .tex source filename and the > current date and put it into the footer. > > This might be possible already, but I could find it by searching the wiki for > filename and document it, or rather too much since filename is mainly used > for command line parameters, etc. > > I know the \currentdate will give the current system date part that I can > use, but > is there any \filename type command for the master filename, so that a > document i.d. could be generated automatically. > > e.g. \filename\currentdate > > Regards > ___ > 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 > ___ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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] Insertion of a Document I.D.
I want to generate a document i.d. from the .tex source filename and the current date and put it into the footer. This might be possible already, but I could find it by searching the wiki for filename and document it, or rather too much since filename is mainly used for command line parameters, etc. I know the \currentdate will give the current system date part that I can use, but is there any \filename type command for the master filename, so that a document i.d. could be generated automatically. e.g. \filename\currentdate Regards ___ 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] Testing TeX Live 2012
Dear ConTeXt users, TeX Live 2012 is going to be released soon. After the first successful year of ConTeXt in TeX Live, it would be great to get enough testers before the release (to make sure that it works flawlessly) and to get rid of as many bugs as possible. See http://tug.org/texlive/pretest.html for links and instructions. You could try wget http://ctan.ijs.si/mirror/tlpretest/install-tl-unx.tar.gz tar xvzf install-tl-unx.tar.gz cd install-tl- ./install-tl -gui -repository http://ctan.ijs.si/mirror/tlpretest and install a ConTeXt scheme for example. (Alternatively you can first fetch all the packages to local disk.) Then just add the binary path to your PATH and feel free to play. Mac users can also try MacTeX 2012 from tlpretest (with some extra care), but you first need to update to get the latest ConTeXt. Mojca (The version of ConTeXt is the same as latest beta, so any bugs fixed in beta can just as well proliferate to TeX Live.) ___ 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] fixing mpiv on installation path with spaces
Hello, last year Taco added many patches to make sure that ConTeXt works even when installed to "C:\Documents and Settings\ ..." and other weird paths with spaces. However metapost in mkiv still fails. I figured out that the following patch (which *won't* handle paths with quotation marks properly) in mlib-run.lua fixes the problem: local preamble = [[ boolean mplib ; mplib := true ; let dump = endinput ; -input %s ; +input "%s" ; ]] but I'm not sure if there are any other side effects or if there are other places that also need a patch. I didn't test with filenames with spaces or with filenames with weird characters that need escaping. Maybe it would be helpful to pass file.addsuffix(name,"mp") through additional filter (instead of simply adding quotation marks) that would also check if any other character needs escaping and add quotation marks if needed. Minimal example: - install ConTeXt into path with spaces - test with context on \starttext \startMPcode draw fullcircle scaled 3cm; \stopMPcode \stoptext I would be grateful if somebody could take a look, so that a fix could make it into TL 2012. Thanks, 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] "Typescripts for Dummies"
Thank you Wolfgang!! I've used LaTeX off and on since the 1980's but never did anything with Plain TeX so that's why I did not recognize the \s! . Bill Meahan K8QN "I want to live other lives. I've never quite believed that one chance is all I get. Writing is my way of making other chances." -- Anne Tyler On 05/15/2012 14:16, Wolfgang Schuster wrote: Am 15.05.2012 um 19:28 schrieb Bill Meahan: The \s!… string are a method to save memory in TeX but you don’t have to use it, just use “serif” instead of “\s!serif”. With \typescriptone etc. you can access the value in the arguments for \starttypescripts, e.g. in the following example \starttypescript [serif] [venturis] \typescriptone expands to “serif” and \typescripttwo expands to “venturis”. I also don't seem to be able to find a command reference for \starttypescript which explains what the various option fields mean or what "predefined" values exist for each. The first argument of \starttypescript can be - serif - sans - mono - handwriting - calligraphy and the first argument of \definefontsynonym can be – Serif - SerifItalic - SerifBold - SerifSlanted - SerifBoldItalic - SerifBoldSlanted - SerifCaps - Sans - SansItalic – … - Mono - MonoItalic - … - Handwriting - Calligraphy 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 ___ ___ 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] "Typescripts for Dummies"
Am 15.05.2012 um 19:28 schrieb Bill Meahan: > Is there a document anywhere that would be the equivalent of "Typescripts for > Dummies?" (as if such a book really existed) > > I am trying to write some typescripts for the Venturis ADF and Beneris ADF > families (and a few others) using Wolfgang's typescripts for Fontin et. al. > as a guide. I can't seem to figure out what, "\s!" or "\typescripttwo" of > "\typescriptthree" do and the examples I have looked at on the wiki either > don't contain them or don't explain them . The \s!… string are a method to save memory in TeX but you don’t have to use it, just use “serif” instead of “\s!serif”. With \typescriptone etc. you can access the value in the arguments for \starttypescripts, e.g. in the following example \starttypescript [serif] [venturis] \typescriptone expands to “serif” and \typescripttwo expands to “venturis”. > I also don't seem to be able to find a command reference for \starttypescript > which explains what the various option fields mean or what "predefined" > values exist for each. The first argument of \starttypescript can be - serif - sans - mono - handwriting - calligraphy and the first argument of \definefontsynonym can be – Serif - SerifItalic - SerifBold - SerifSlanted - SerifBoldItalic - SerifBoldSlanted - SerifCaps - Sans - SansItalic – … - Mono - MonoItalic - … - Handwriting - Calligraphy 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] "Typescripts for Dummies"
Bill Meahan writes: > Is there a document anywhere that would be the equivalent of > "Typescripts for Dummies?" (as if such a book really existed) I guess real documentation is a fantastic booklet: http://www.h2o-books.com/node/11 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 ___
[NTG-context] "Typescripts for Dummies"
Is there a document anywhere that would be the equivalent of "Typescripts for Dummies?" (as if such a book really existed) I am trying to write some typescripts for the Venturis ADF and Beneris ADF families (and a few others) using Wolfgang's typescripts for Fontin et. al. as a guide. I can't seem to figure out what, "\s!" or "\typescripttwo" of "\typescriptthree" do and the examples I have looked at on the wiki either don't contain them or don't explain them . I also don't seem to be able to find a command reference for \starttypescript which explains what the various option fields mean or what "predefined" values exist for each. Sorry for the newbie questions but I don't know where else to ask. Using MkIV -- Bill Meahan K8QN "I want to live other lives. I've never quite believed that one chance is all I get. Writing is my way of making other chances." -- Anne Tyler ___ 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] ConTeXt colours in TikZ
On 2012-05-15 Hans Hagen wrote: > In pgfutil-context.def there is a macro > > […] > > which tests for gray (g) before rgb (rg) but I think should reverse that > order > > […] > > feel free to test this and submit it as patch to the tikz maintainers. Thanks for the code. I tested the code with the graphs I created so far and it seems to work fine. However, my graphics don't fiddle with “fancy” stuff (transparency, etc.). I submitted the patch and a bug report. The future will show the side effects. > For mkiv the whole checker/converter can be replaced by a few lines of > code but I won't bother you with that. I have no clue about the internals of the colour models of ConTeXt and TikZ. You don't want me to mess with that :) Regards Marco Patzer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [mkvi] comment handling bug
On 14-5-2012 15:59, Philipp Gesang wrote: + leadingcomment 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] atpage || number comparing
On 15-5-2012 14:28, Peter Schorsch wrote: Hi, it tried to do a \atpage command that results a) some page => nothing b) different page => pagenumber with some text (e.g. "auf Seite XY") \def\atPage[#1]% {\doifnot{\at[#1]}{\currentpage}% {\at[#1]}% } My problem with this is, that the \doifnot always results as not equal; it is like the types mismatch as if I exchange \at[#1] with a pure number the comparing works. If so, how can the types be corrected? Additionally - if possible - I would like to add case that the referred page is on the other page but in duplex mode adjacent to the actual page. Is that possible to do this? I unluckily dont know how to make working simple calculation in tex code. To be complete I found in the file strc-ref.mkiv some notes about a planed \atpage command: %D A still very rudimentary|/|experimental forward|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping %D %D In future versions there will be more sophisticated % 0 = no page reference % 1 = same page % 2 = preceding page % 3 = following page % 4 = backward, same page (todo) % 5 = forward, same page (todo) But that level of the ambient tex is still out of my scope. that comment can be deleted as \atpage is defined earlier on anyhow, you can use \startbuffer \starttabulate[|l|l|l|l|] \NC one \NC \atpage[one] \NC \somewhere{(see before)}{(see later)}[one] \NC \NR \NC two \NC \atpage[two] \NC \somewhere{(see before)}{(see later)}[two] \NC \NR \NC three \NC \atpage[three] \NC \somewhere{(see before)}{(see later)}[three] \NC \NR \stoptabulate \stopbuffer \starttext \section[one] {One} \getbuffer \page \section[two] {Two} \getbuffer \page \section[three]{Three} \getbuffer \page \stoptext the next variant (same functionality) is somewhat better \unprotect \unexpanded\def\somewhere#1#2#3[#4]% #dummy gobbles space around #2 {\doifreferencefoundelse{#4}% {\strc_references_by_reference_page_state{#4}{\goto{#1}[#4]}{}{\goto{#2}[#4]}} {[#4]}} \protect - 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] mutual color definition
On 14-5-2012 19:19, Peter Rolf wrote: Hi, while playing around with colors, I accidentally used two mutual color definitions. Stupid thing to do, but shit happens. :-D This example ends in an infinite loop. %-- \definecolor[foo][red] \definecolor[bar][foo] \starttext \definecolor[foo][bar] \color[foo] foo \color[bar] bar \stoptext %-- That's hard to catch but anyway you can't complain that you don't get what you asked for -) 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] ConTeXt colours in TikZ
On 15-5-2012 12:16, Marco wrote: Hi everybody, I don't get context colours working in tikz. There were several issues on the mailing list in the past and the solution always seems to be some kind of hack. But none of the hacks work (with a current context). Example: \usemodule [tikz] \definecolor [darkblue] [b=.2] \starttext \starttikzpicture % works \fill [blue] (0,0) circle(1); % fails % \fill [darkblue] (0,0) circle(1); \stoptikzpicture \stoptext I get the following error: Runaway argument? 0 0 0.2 rg 0 0 0.2 RG\pgf@stop {darkblue}\else \edef \pgf@marshal {\noexpand \ETC. ! File ended while scanning use of \pgfutil@context@parse@gray. system> tex> error on line 0 in file : File ended while scanning use of \pgfutil@conte xt@parse@gray ... \par In pgfutil-context.def there is a macro \def\pgfutil@registercolor#1{% \edef\pgf@temp{\PDFcolor{#1}}% \edef\pgf@marshal{\noexpand\pgfutil@in@{g}{\pgf@temp}}% \pgf@marshal \ifpgfutil@in@ \expandafter\pgfutil@context@parse@gray\pgf@temp\pgf@stop{#1}% \else \edef\pgf@marshal{\noexpand\pgfutil@in@{rg}{\pgf@temp}}% \pgf@marshal \ifpgfutil@in@ \expandafter\pgfutil@context@parse@rgb\pgf@temp\pgf@stop{#1}% \else \edef\pgf@marshal{\noexpand\pgfutil@in@{k}{\pgf@temp}}% \pgf@marshal \ifpgfutil@in@ \expandafter\pgfutil@context@parse@cmyk\pgf@temp\pgf@stop{#1}% \else \PackageError{pgf}{Color #1 has an unsupported color model.}{}% \pgfutil@definecolor{#1}{gray}{0}% \fi \fi \fi } which tests for gray (g) before rgb (rg) but I think should reverse that order \def\pgfutil@registercolor#1{% \edef\pgf@temp{\PDFcolor{#1}}% \edef\pgf@marshal{\noexpand\pgfutil@in@{rg}{\pgf@temp}}% \pgf@marshal \ifpgfutil@in@ \expandafter\pgfutil@context@parse@rgb\pgf@temp\pgf@stop{#1}% \else \edef\pgf@marshal{\noexpand\pgfutil@in@{g}{\pgf@temp}}% \pgf@marshal \ifpgfutil@in@ \expandafter\pgfutil@context@parse@gray\pgf@temp\pgf@stop{#1}% \else \edef\pgf@marshal{\noexpand\pgfutil@in@{k}{\pgf@temp}}% \pgf@marshal \ifpgfutil@in@ \expandafter\pgfutil@context@parse@cmyk\pgf@temp\pgf@stop{#1}% \else \PackageError{pgf}{Color #1 has an unsupported color model.}{}% \pgfutil@definecolor{#1}{gray}{0}% \fi \fi \fi } feel free to test this and submit it as patch to the tikz maintainers. For mkiv the whole checker/converter can be replaced by a few lines of code but I won't bother you with that. 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] atpage || number comparing
Hi, I'm a neophyte using last year's TeXLive context. An expert can probably improve my answer. Does this work for you?: \def\atPage[#1]% {\doifnot{\doifreferencefoundelse{#1}{\currentreferencepage}{?}}{\currentpage}% {\at[#1]}% } I adapted it from code in strc-ref.mkiv. The \doifreferencefoundelse seems to set up \currentreferencepage properly. I don't understand it any deeper than that. As for testing for adjacent pages, TeX has count registers (through \newcount) and ConTeXt has counters (see wiki). In TeX one can do arithmetic on registers with \advance, \multiply, \divide and test results with \ifnum, \ifodd. One can do some arithmetic with ConTeXT counters, but I haven't figured it all out yet; and of course, one can use Lua. Michael On May 15, 2012, at 8:28 AM, Peter Schorsch wrote: > Hi, > > it tried to do a \atpage command that results > a) some page => nothing > b) different page => pagenumber with some text (e.g. "auf Seite XY") > > \def\atPage[#1]% > {\doifnot{\at[#1]}{\currentpage}% > {\at[#1]}% > } > > My problem with this is, that the \doifnot always results as not equal; > it is like the types mismatch as if I exchange \at[#1] with a pure > number the comparing works. If so, how can the types be corrected? > > Additionally - if possible - I would like to add case that the referred > page is on the other page but in duplex mode adjacent to the actual > page. Is that possible to do this? I unluckily dont know how to make > working simple calculation in tex code. > > To be complete I found in the file strc-ref.mkiv some notes about a > planed \atpage command: > > %D A still very rudimentary|/|experimental forward|/|backward > %D reference mechanism is provided by the macro \type{\atpage}: > %D > %D \starttyping > %D ... \somewhere{backward text}{forward text}[someref] ... > %D ... \atpage[someref] ... > %D \stoptyping > %D > %D In future versions there will be more sophisticated > > % 0 = no page reference > % 1 = same page > % 2 = preceding page > % 3 = following page > % 4 = backward, same page (todo) > % 5 = forward, same page (todo) > > But that level of the ambient tex is still out of my scope. > > Thanks > P. > ___ > 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 > ___ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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 calling system
On Tue, May 15, 2012 at 1:46 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > ... I also tried: > > > \write18{echo 'AAA'} > > \starttext > A > \stoptext > > > Which gives: > > " > ... > backend > xmp > using file > 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' > "AAA" > pages > flushing realpage 1, userpage 1 > ... > " > > So it can be seen that ' changes to " even in this case. Weird. same here, with windows 7 home premium -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] atpage || number comparing
Hi, it tried to do a \atpage command that results a) some page => nothing b) different page => pagenumber with some text (e.g. "auf Seite XY") \def\atPage[#1]% {\doifnot{\at[#1]}{\currentpage}% {\at[#1]}% } My problem with this is, that the \doifnot always results as not equal; it is like the types mismatch as if I exchange \at[#1] with a pure number the comparing works. If so, how can the types be corrected? Additionally - if possible - I would like to add case that the referred page is on the other page but in duplex mode adjacent to the actual page. Is that possible to do this? I unluckily dont know how to make working simple calculation in tex code. To be complete I found in the file strc-ref.mkiv some notes about a planed \atpage command: %D A still very rudimentary|/|experimental forward|/|backward %D reference mechanism is provided by the macro \type{\atpage}: %D %D \starttyping %D ... \somewhere{backward text}{forward text}[someref] ... %D ... \atpage[someref] ... %D \stoptyping %D %D In future versions there will be more sophisticated % 0 = no page reference % 1 = same page % 2 = preceding page % 3 = following page % 4 = backward, same page (todo) % 5 = forward, same page (todo) But that level of the ambient tex is still out of my scope. Thanks P. ___ 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 calling system
... I also tried: \write18{echo 'AAA'} \starttext A \stoptext Which gives: " ... backend > xmp > using file 'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' "AAA" pages > flushing realpage 1, userpage 1 ... " So it can be seen that ' changes to " even in this case. Weird. Best regards, Lukas -- 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] Split \startalign content on more pages
On Mon, May 14, 2012 at 12:02 PM, elgo...@libero.it wrote: > Yes it works. > The only problem is that now I have the formulas aligned at the center of the > page. > Which command can I use to align the formulas on the left? \setupformulas[alternative=default,margin=-6em] (with try-and-error ) -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ConTeXt colours in TikZ
Hi everybody, I don't get context colours working in tikz. There were several issues on the mailing list in the past and the solution always seems to be some kind of hack. But none of the hacks work (with a current context). Example: \usemodule [tikz] \definecolor [darkblue] [b=.2] \starttext \starttikzpicture % works \fill [blue] (0,0) circle(1); % fails % \fill [darkblue] (0,0) circle(1); \stoptikzpicture \stoptext I get the following error: Runaway argument? 0 0 0.2 rg 0 0 0.2 RG\pgf@stop {darkblue}\else \edef \pgf@marshal {\noexpand \ETC. ! File ended while scanning use of \pgfutil@context@parse@gray. system > tex > error on line 0 in file : File ended while scanning use of \pgfutil@conte xt@parse@gray ... \par 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] Problem calling system
On 15-5-2012 10:34, Procházka Lukáš Ing. - Pontex s. r. o. wrote: languages > language en is active lua -e "print "EXECUTE"" lua -e "print 'EXEC'" you can try texlua instead of lua to see what happens system | total runtime: 0.609 " Interesting that the string to be passed to 'os.exec' keeps ' whilst that to 'os.execute' doesn't. Why this happens? I dont' know. 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 calling system
probably some os.execute parsing ... Do you mean Lua itself does the parsing and substitution? I guessed [lua]tex core... When I try to call on the command line: " C:\Lukas\ConTeXt\TestDDv>lua Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio os.execute([[lua -e "print 'WWW'"]]) WWW os.execute([[echo lua -e "print 'WWW'"]]) lua -e "print 'WWW'" =os.exec nil =os.spawn nil " - There is no '/" substitution in standalone Lua (?!). does os.exec or os.spawn work ok? Well, the 'os.exec' works, in condition that it is called with "cmd /c": \ctxlua{os.execute([[echo lua -e "print 'EXECUTE'"]])} \ctxlua{os.exec([[cmd.exe /c echo lua -e "print 'EXEC'"]])} \ctxlua{os.spawn([[cmd.exe /c echo lua -e "print 'SPAWN'"]])} \starttext A \stoptext Gives: " ... languages > language en is active lua -e "print "EXECUTE"" lua -e "print 'EXEC'" system | total runtime: 0.609 " Interesting that the string to be passed to 'os.exec' keeps ' whilst that to 'os.execute' doesn't. Why this happens? Anyhow, thanks for the idea with 'os.exec'. Best regards, Lukas -- 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] Problem calling system
On 15-5-2012 09:05, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, I slightly modified the example - my code now is: \ctxlua{os.execute([[echo lua -e "print 'WWW'"]])} \starttext A \stoptext So now I'm able to diagnose what exactly is passed to the command line. I'm getting: " languages > language en is active lua -e "print "WWW"" {c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} " So it can be seen that [surprisingly] character ' was substituted for " - and IMHO this causes the problem. Could anyone explain why this substitution is performed and how to avoid it? probably some os.execute parsing ... does os.exec or os.spawn 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] Problem calling system
Hello, I slightly modified the example - my code now is: \ctxlua{os.execute([[echo lua -e "print 'WWW'"]])} \starttext A \stoptext So now I'm able to diagnose what exactly is passed to the command line. I'm getting: " ... languages > language en is active lua -e "print "WWW"" {c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} ... " So it can be seen that [surprisingly] character ' was substituted for " - and IMHO this causes the problem. Could anyone explain why this substitution is performed and how to avoid it? Best regards, Lukas -- 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 t1.mkiv Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___