Re: [NTG-context] \jobname and \doifelse

2022-11-06 Thread Pablo Rodriguez via ntg-context
On 11/6/22 11:21, Hans Hagen via ntg-context wrote: > [...] > More relevan tis that you'r on TeX where catcodes matter > (here letter vs other) > >\doifelse{\inputfilebarename}{oeps} > {yes}{no} > >\doifelse{\detokenize\expandafter{\jobname}}{\detok

Re: [NTG-context] \jobname and \doifelse

2022-11-06 Thread Pablo Rodriguez via ntg-context
On 11/5/22 16:55, Wolfgang Schuster via ntg-context wrote: > Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30: >> >>\doifelse{\jobname}{a} >> {yes}{no} >> >> I get "no" as in TeX and "yes" with Lua, being "a.tex"

Re: [NTG-context] \jobname and \doifelse

2022-11-06 Thread Hans Hagen via ntg-context
On 11/5/2022 4:30 PM, Pablo Rodriguez via ntg-context wrote: Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context(&quo

Re: [NTG-context] \jobname and \doifelse

2022-11-05 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30: Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context(&quo

[NTG-context] \jobname and \doifelse

2022-11-05 Thread Pablo Rodriguez via ntg-context
Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else context("no") end \stopluacode \

Re: [NTG-context] How to remove \jobname-mpgraph.dddd?

2010-10-22 Thread Hans Hagen
On 22-10-2010 2:03, Mojca Miklavec wrote: I have a silly question - how do I remove mpgraph files now that ctxtools is gone and context --purge doesn't know about them? context doesn't need to know about mpgraph files as long as MKIV is not generating them, but if there is no mkii-only --purge

Re: [NTG-context] How to remove \jobname-mpgraph.dddd?

2010-10-22 Thread Otared Kavian
-only --purge alternative ... I have fifty files \jobname-mpgraph.4000 ... \jobname-mpgraph.3951 and even though I can use rm, --purge would be a lot more convenient. Mojca Hi Mojca, If you are working on a Mac, with TeXShop, I can tell you what I do: my mkiv.engine file contains

[NTG-context] How to remove \jobname-mpgraph.dddd?

2010-10-21 Thread Mojca Miklavec
I have a silly question - how do I remove mpgraph files now that ctxtools is gone and context --purge doesn't know about them? context doesn't need to know about mpgraph files as long as MKIV is not generating them, but if there is no mkii-only --purge alternative ... I have fifty files \jobname

Re: [NTG-context] How to remove \jobname-mpgraph.dddd?

2010-10-21 Thread luigi scarso
is not generating them, but if there is no mkii-only --purge alternative ... I have fifty files \jobname-mpgraph.4000 ... \jobname-mpgraph.3951 and even though I can use rm, --purge would be a lot more convenient. Does mtxrun textutil --purgeall work ? -- luigi

[NTG-context] foldername instead of jobname

2008-07-11 Thread Steffen Wolfrum
Hi, marking=on often uses \jobname. My file's name is not as important as its respective folder name. Is it possible to read and reuse this folder's name? Thanks, Steffen ___ If your question is of interest

Re: [NTG-context] foldername instead of jobname

2008-07-11 Thread Taco Hoekwater
Steffen Wolfrum wrote: Hi, marking=on often uses \jobname. My file's name is not as important as its respective folder name. Is it possible to read and reuse this folder's name? In mkii you would have to do something with \write18, I fear. In mkiv you can simply do: \edef

Re: [NTG-context] foldername instead of jobname

2008-07-11 Thread Steffen Wolfrum
Am 11.07.2008 um 22:44 schrieb Taco Hoekwater: In mkiv you can simply do: \edef\foldername{\ctxlua{tex.sprint(lfs.currentdir())}} (assuming the jobname file lives inside the current directory) quite comfortable ;o) st

Re: [NTG-context] Pagesize papersize: Writing jobname/date outside page area

2007-04-18 Thread Hans Hagen
Thomas A. Schmitz wrote: On Apr 17, 2007, at 3:39 PM, Tobias Burnus wrote: Hello, I have pagesize papersize and use crop marks. What I actually miss is the possibility to put text (Project name, date/time) outside the page. Currently, ConTeXt only prints there the colour bars,

[NTG-context] Pagesize papersize: Writing jobname/date outside page area

2007-04-17 Thread Tobias Burnus
Hello, I have pagesize papersize and use crop marks. What I actually miss is the possibility to put text (Project name, date/time) outside the page. Currently, ConTeXt only prints there the colour bars, the page numbers and the crop marks. Example:

Re: [NTG-context] Pagesize papersize: Writing jobname/date outside page area

2007-04-17 Thread Thomas A. Schmitz
][\reuseMPgraphic{Cross}] \defineoverlay[Camera][\reuseMPgraphic{Camera}] \defineoverlay[Info][{\getbuffer[info]}] \startbuffer[info] \vbox to \paperheight \bgroup \vskip -1 cm \framed[frame=off,align=high]{\tt \tx \jobname - \currentdate [y,/,mm,/,dd]\ - \currenttime\ - \realfolio

Re: [NTG-context] Pagesize papersize: Writing jobname/date outside page area

2007-04-17 Thread Tobias Burnus
Thomas A. Schmitz wrote: I'm not sure if this is what you're looking for, but I wrote a module for my own use that has similar features. That is exactly what I was looking for. (For colour registering marks, one would have to print the marks in all colours (usually CMYK and/or spot

Re: [NTG-context] installation: -jobname pdfetex option

2003-10-23 Thread Ed L Cashin
Ed L Cashin [EMAIL PROTECTED] writes: ... Texexec still just shows a usage message. I bet I have to change something in texexec.ini, but I couldn't find it last time I looked. I'll look again. Now by doing pdfetex \cont-en test.tex I'm able to see the example that made me want to

Re: [NTG-context] installation: -jobname pdfetex option (was Re: [NTG-context] columns and alignment at the bottom)

2003-10-19 Thread Hans Hagen
At 16:26 17/10/2003, you wrote: I looked around a bit in the archives, but I'm not sure which zip that is, so I decided to go ahead and upgrade my whole tetex to 2.0.2. I went to pragma-ade and followed the links to find pdftex 14h. http://www.pragma-ade.com/context/linuxtex.zip to give you