Re: [NTG-context] Getting arguments by Lua

2011-06-09 Thread Taco Hoekwater
. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments))} Best wishes, Taco ___ If your question is of interest to others as well, please add

Re: [NTG-context] Getting arguments by Lua

2011-06-09 Thread Cedric Mauclair
--result=Result.pdf --mode=Mode is it possible to access the command line arguments from Lua? the 'environment' table has information about this stuff. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments

Re: [NTG-context] Getting arguments by Lua

2011-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
to access the command line arguments from Lua? the 'environment' table has information about this stuff. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments))} Best wishes, Taco I think the tables

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont
This following code works, except that the first random is always the same (Analysis) for some reason. Anyone knows why ? \enableregime[il1]\starttext\startluacode userdata = userdata or {} math.randomseed( os.time() )function userdata.random(...) context(arg

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Hans Hagen
userdata.random(...) context(arg[math.random(1, #arg)]) end\stopluacode\def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}\dorecurse{10}{\CHOOSERANDOM{Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, Schrödinger equation}\par}\stoptext Because context remembers the seed

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont
) for some reason. Anyone knows why ? \enableregime[il1]\starttext\startluacode userdata = userdata or {} math.randomseed( os.time() )function userdata.random(...) context(arg[math.random(1, #arg)]) end\stopluacode\def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
. Anyone knows why ? \enableregime[il1] \starttext \startluacode userdata = userdata or {} math.randomseed( os.time() ) function userdata.random(...) context(arg[math.random(1, #arg)]) end \stopluacode \def\CHOOSERANDOM#1{\ctxlua{userdata.random

Re: [NTG-context] qpdf broken with beta since 2001/02/08

2011-02-10 Thread luigi scarso
, though. :-) for emacs users: save this in qdf-mode.el ;;; ;; the command to comment/uncomment text (defun qdf-comment-dwim (arg) Comment or uncomment current line or region in a smart way. For detail, see `comment-dwim'. (interactive *P) (require

Re: [NTG-context] Using virtual fonts defined with lua-code

2011-02-09 Thread Ulrike Fischer
) * fonts.define seems to be named fonts.definers now (luaotfload.lua line 87) * Instead of logs.report the context files use now report_prepare (with a different syntax) which is perhaps the source of the error I'm getting now: J:/MiKTeX2.9/tex/luatex/luaotfload/otfl-luat-ovr.lua:19: bad arg ument

Re: [NTG-context] Passing and retrieveing a variable

2011-01-08 Thread Procházka Lukáš
. they are not 'nil' but 'false', even if not specified on the command line. (tex.mode.__newindex predefined to this purpose?) indeed - There is no table of arguments or variables being passed by --arguments=ARG=arg or by --variable=VAR=var from the command line. indeed (--arguments is an old mechanism

Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .
if not specified on the command line. (tex.mode.__newindex predefined to this purpose?) - There is no table of arguments or variables being passed by --arguments=ARG=arg or by --variable=VAR=var from the command line. - All arguments passed to the command line are accessible by document.arguments

Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread luigi scarso
are 'false' by default. I.e. they are not 'nil' but 'false', even if not specified on the command line. (tex.mode.__newindex predefined to this purpose?) - There is no table of arguments or variables being passed by --arguments=ARG=arg or by --variable=VAR=var from the command line. - All

Re: [NTG-context] Passing and retrieveing a variable

2011-01-07 Thread Hans Hagen
?) indeed - There is no table of arguments or variables being passed by --arguments=ARG=arg or by --variable=VAR=var from the command line. indeed (--arguments is an old mechanism and mkii compatible) - All arguments passed to the command line are accessible by document.arguments. Unfortunately, when

[NTG-context] \do(single|double|etc)empty behaviour

2010-12-15 Thread Marco Pessotto
[center]% \dosingleempty\doTalPart} \def\doTalPart[#1]#2{% \iffirstargument debug: I have the optional arg \bfc#1\blank[2*big] \writetolist[talpart]{}{{#1. }#2} \else debug: I don't have any arg \blank[2*big] \writetolist[talpart]{}{#2} \fi \bfd#2

Re: [NTG-context] Re;Help TABLE

2010-12-10 Thread Philipp Gesang
and so the tables just runs OFF the end of the page Placetable takes an optional arg “split”: ···8 \startbuffer \bTABLE[split=repeat] \bTABLEhead \bTR \bTH Group \eTH \bTH N \eTH \bTH MEAN \eTH \bTH STD \eTH \bTH MIN \eTH \bTH MAX \eTH \bTH

Re: [NTG-context] function ‘trace_context’ o ut of scope in mult-cld.lua

2010-10-21 Thread Hans Hagen
On 21-10-2010 2:38, Philipp Gesang wrote: Hi, the following code calls ‘trace_context()’ which is created only later on line 254. This is triggered if the first arg of ‘context()’ is of type ‘table’. ··example.cld function test (str

[NTG-context] quoted environment arguments

2010-10-18 Thread Philipp Gesang
@@ for index=1,#arg do local argument = arg[index] if find(argument,^\) then -newarg[#newarg+1] = gsub(argument,^\,) if not find(argument,\$) then instring = true +else +argument = argument:gsub

Re: [NTG-context] calling ConTeXt as a background process

2010-10-08 Thread Henning Hraban Ramm
14119] read(3, g[ 0] = arg[2]\nfor k=3,#arg d..., 4096) = 4096 [pid 14119] read(3, \nend\n\nif arg then\n\n-- new, re..., 4096) = 4096 [pid 14119] read(3, name)\nend\nels..., 4096) = 4096 [pid 14119] brk(0xa932000) = 0xa932000 [pid 14119] read(3, ot

Re: [NTG-context] calling ConTeXt as a background process

2010-10-08 Thread Henning Hraban Ramm
m = { }\n ..., 4096) = 4096 read(3, g[ 0] = arg[2]\nfor k=3,#arg d..., 4096) = 4096 read(3, \nend\n\nif arg then\n\n-- new, re..., 4096) = 4096 read(3, name)\nend\nels..., 4096) = 4096 brk(0x1c27) = 0x1c27 read(3, ot that down

Re: [NTG-context] section conversion gets lost in MKIV

2010-08-31 Thread Hans Hagen
starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all below that as 1..n

Re: [NTG-context] section conversion gets lost in MKIV

2010-08-31 Thread Cedric Mauclair
figure out how to use them. it's just a list of conversions starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all below that as 1..n All right, I'm starting to get

Re: [NTG-context] section conversion gets lost in MKIV

2010-08-31 Thread Hans Hagen
(on the wiki) are kind of scarce and I can't quite figure out how to use them. it's just a list of conversions starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all below that as 1

Re: [NTG-context] questions regarding `\date`

2010-08-28 Thread Wolfgang Schuster
][#3]% \getvalue{\??ef\??ef\s!dummy}[]} % [] is dummy arg 5 {\doifassignmentelse{#2} {\getvalue{\??ef\??ef#1}[#2]}% {\getvalue{\??ef\??ef#1}[#3]}}}% \globallet\currentresourcecomment\empty \egroup} \protect \starttext this is how a \externalfigure

Re: [NTG-context] Blank lines and \noindent

2010-08-06 Thread Hans Hagen
and third arg can be used for a message or so, \ReadFile takes only one argument) The readfile command also backtracks to . and .. as one can have a project structure Hans - Hans Hagen

[NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
Hi all, what would be an elegant way to make out the current interpreter from inside lua? For now I'm branching things at the top of the script like this: ···8·· if arg[-1] == texlua then utf=unicode.utf8 else

Re: [NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Hans Hagen
On 22-7-2010 11:51, Philipp Gesang wrote: Hi all, what would be an elegant way to make out the current interpreter from inside lua? For now I'm branching things at the top of the script like this: ···8·· if arg[-1

Re: [NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Philipp Gesang
·· if arg[-1] == texlua then utf=unicode.utf8 else require lpeg utf=string end ···8·· if you run your script with mtxrun then you can ask for arguments using

Re: [NTG-context] tooltips and glossary

2010-05-05 Thread Philipp Gesang
and will reference the point in the % main text where \usegloss was called with a nonempty first arg. \def\placeglossary{\ctxlua{gloss.place_glossary()}} \starttext \gloss{glossary}{% A collection of glosses; a list with explanations of abstruse, antiquated, dialectal, or technical terms; a partial

Re: [NTG-context] tooltips and glossary

2010-05-04 Thread Philipp Gesang
in bold face and will reference the point in the % main text where \usegloss was called with a nonempty first arg. \def\placeglossary{\ctxlua{gloss.place_glossary()}} \starttext \gloss{glossary}{% A collection of glosses; a list with explanations of abstruse, antiquated, dialectal, or technical

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-23 Thread Hans Hagen
\doconvertcsvlist \d...@nx\arg{#3}% \ed...@nx\temp{##1}% \...@nx\expanded{\@nx#...@nx\temp}}% \...@nx\else \l...@nx\next\@NX\redoconvertcsvquoteditem \d...@nx\arg{##1\@NX\csvquotechar}% \...@nx\fi \...@nx\expandafter\@nx\ne...@nx\arg}% \edef

Re: [NTG-context] lua, footnotes, interaction

2010-04-17 Thread Peter Münster
On Fri, Apr 16 2010, Philipp Gesang wrote: function track.simple(arg) Try this: print(TRACK:, arg) \def\foottrack#1{\footnote{\ctxlua{track.simple(#1)}}} With interaction enabled, the argument to \footnote{} gets evaluated twice. Cheers, Peter -- Contact information: http://pmrb.free.fr

Re: [NTG-context] lua, footnotes, interaction

2010-04-17 Thread Hans Hagen
On 17-4-2010 8:27, Peter Münster wrote: On Fri, Apr 16 2010, Philipp Gesang wrote: function track.simple(arg) Try this: print(TRACK:, arg) \def\foottrack#1{\footnote{\ctxlua{track.simple(#1)}}} With interaction enabled, the argument to \footnote{} gets evaluated twice. eventually

[NTG-context] lua, footnotes, interaction

2010-04-16 Thread Philipp Gesang
Good evening all, interaction remains a mystery to me. When tracking things I encountered the following deviation in footnotes: ---8-- \startluacode track = {} track.preceding = function track.simple(arg) context

Re: [NTG-context] alpha release

2009-07-16 Thread Wolfgang Schuster
of course) ... (the true arg is just for pretty printing and can be omitted) Nice feature to shorten code when some data comes from a lua table but it did not work when used in the lua environment, the code for the table appears only on the terminal. \starttext some text \startluacode

Re: [NTG-context] alpha release

2009-07-16 Thread Hans Hagen
new playground (unfinished of course) ... (the true arg is just for pretty printing and can be omitted) Nice feature to shorten code when some data comes from a lua table but it did not work when used in the lua environment, the code for the table appears only on the terminal. indeed

Re: [NTG-context] alpha release

2009-07-15 Thread Hans Hagen
Peter Rolf wrote: Hans Hagen schrieb: i'll make a new alpha later today i'll take my chance and hijack this thread then... :) there is a cp error in lpdf-grp.lua. since you're looking into lua code ... there is some new playground (unfinished of course) ... (the true arg is just

Re: [NTG-context] label, caption and eps in figures?

2009-06-13 Thread Pau
in ConTeXt of LaTeX \ref{} --- \label{} is label is always an optional arg refs go like: \in{figure}[label] or \at{page}[label] --- \begin{equation} 1 + 1 = 2 \label{eq.1} \end{equation} In Eq. \ref{eq.1}, we show

Re: [NTG-context] label, caption and eps in figures?

2009-06-12 Thread Hans Hagen
Pau wrote: Hello, thanks for the hint. The legend worked very well. Nevertheless, I still have not understood what the equivalent in ConTeXt of LaTeX \ref{} --- \label{} is label is always an optional arg refs go like: \in{figure}[label] or \at{page}[label

[NTG-context] epstopdf oddity?

2009-03-13 Thread Marko Schütz
$ etex); def_terminal(fun, btex \texttt{exp}$_1$ $:: \beta$ etex); def_terminal(exp, btex \texttt{exp}$_2$ $:: \gamma$ etex); def_terminal(two, btex \texttt{2} etex); def_terminal(times, btex \texttt{(*)} etex); def_terminal(varx, btex \texttt{arg} $:: \beta$ etex); beginfig(2); app.root(fun, exp

Re: [NTG-context] emacs

2009-02-05 Thread Peter Münster
-add-environments (reverse ConTeXt-environment-list-en)) (TeX-add-symbols '(but ConTeXt-arg-define-ref (TeX-arg-literal )) '(item (TeX-arg-literal )) '(items [ConTeXt-arg-setup] (TeX-arg-string Comma separated list)) '(its ConTeXt-arg-define-ref (TeX-arg-literal )) '(nop (TeX-arg

Re: [NTG-context] on imposition and local or external files

2008-11-07 Thread Taco Hoekwater
) local content, responsecode, extra = http.request(arg[1]) io.write (content) but in real life, you have to deal with partial content, errors codes, url escaping, etc. etc. Best wishes, Taco ___ If your question

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Wolfgang Schuster
): \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [serif] [pagella] % heros, adventor \definetypeface [mygyre] [ss] [sans] [adventor] \definetypeface [mygyre] [tt] [sans] [cursor] \definetypeface [mygyre

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Aditya Mahajan
are not complete? Here is the test file which I've used (some cyrillic text also): \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [serif] [pagella] % heros, adventor \definetypeface

[NTG-context] Some questions about TeX Gyre support in minimals

2008-10-22 Thread Oleg Kolosov
): \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [serif] [pagella] % heros, adventor \definetypeface [mygyre] [ss] [sans] [adventor] \definetypeface [mygyre] [tt] [sans] [cursor

Re: [NTG-context] What's the difference between \dodoub leargument and \dodoubleempty?

2008-10-21 Thread Ruini Xue
: == \def\test {\dodoubleargument\dotest} % use \dodoubleempty \def\dotest[#1][#2] {\iffirstargument First arg: #1 \fi \ifsecondargument Second arg: #2 \fi} \test[ok][ok] % 1. this is ok \test [ok] [] % 2. warning? \test [wrong] % 3. Error: lack one arg

Re: [NTG-context] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Wolfgang Schuster
mandatory arguments? I try this example: == \def\test {\dodoubleargument\dotest} % use \dodoubleempty \def\dotest[#1][#2] You need a comment sign at the end of the line. \def\dotest[#1][#2]% {\iffirstargument First arg: #1 \fi \ifsecondargument

[NTG-context] Fails to load certain Chinese fonts

2008-10-06 Thread Yanrui Li
][name:AdobeSongStd-Light][features=zh] \definefont[myfont][Song at 12pt] \starttext \myfont 中文~English~之间的间隔\par 中文\;English\;之间的间隔 \stoptext I got such informations of error: load otf | loading: /usr/share/fonts/adobe/AdobeSongStd-Light.otf load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4

Re: [NTG-context] Last beta and CJK

2008-10-01 Thread Hans Hagen
, fixed; thanks for testing; new beta in 15 minutes No really but it could be a Mac only problem, I get now: load otf | loading: /Users/wolf/Library/Fonts/KozMinProVI-Regular.otf load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 (Sjis-UTF-8) load otf | warning: Bad call

Re: [NTG-context] Last beta and CJK

2008-10-01 Thread Wolfgang Schuster
=... in \definefontsynonym are ignored. ok, fixed; thanks for testing; new beta in 15 minutes No really but it could be a Mac only problem, I get now: load otf | loading: /Users/wolf/Library/Fonts/KozMinProVI-Regular.otf load otf | warning: Bad call to gww_iconv_open, neither arg is UCS4 (Sjis

[NTG-context] Strange error in using backgrounds with enumerations

2008-07-13 Thread Aditya Mahajan
by moving backwards in time. The optimal performance of \in Problem[prob:deterministic] (and \in Problem[prob:two-agent]) is given by \placeformula[+] \startformula \COST^*_T = \1 V_1(\1 {π}_1). \stopformula For any $\SOME t$ and $\SOME {π}$, the $\arg\min$ (or $\arg\inf$) in the \RHS

Re: [NTG-context] Font question

2008-03-11 Thread Marcin Borkowski
be used in the right hand side of assignments in arg #3 of \definebodyfont, and in the #2 argument of \definefont. So to be sure: I can use names defined by \definefontsynonym in place of font filenames? \definefont has no real relation to font switching, it is just a low-level shortcut

Re: [NTG-context] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
://archive.contextgarden.net/message/20080131.07.9fb1c327.en.html ? yes Hans, I do not get this to work. My *.tex file looks like so: % texmfstart texexec --lua COOnTeXML.tex --arg=odt=someotherfile.zip \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph} \stopxmlsetups

Re: [NTG-context] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
Thanks for your time. Hans Hagen wrote: you'll have to make me a test file then Attached. As described earlier this is supposed to compile like so: texmfstart texexec --lua --purge --arg=odt=Versuch.odt --result=Versuch.odt.pdf COOnTeXML.tex where COOnTeXML reads: \startxmlsetups

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
: todo \about{text}[reference] \adaptlayout[number][dimensions] \adding[size] # \aftersplitstring # \and \appendix[references]{text} # \appendtoks # \AR \arg{text} \at{text}{text}[reference] \atpage[reference] \background # \bbox # \beforesplitstring # \begstrut \blackrule[settings] \blackrules

Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Johannes Graumann
{#1}\endgraf \stopxmlsetups \starttext \processXMLfilegrouped{zip::\env{odt}::content.xml} \stoptext Why do I get nothing but a tuo file when processing like so: texmfstart \ texexec --lua --purge --arg=odt=Versuch.odt --result=Versuch.odt.pdf \ COOnTeXML.tex where the code above

Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Wolfgang Schuster
in combination with xmlregistersetup Why do I get nothing but a tuo file when processing like so: texmfstart \ texexec --lua --purge --arg=odt=Versuch.odt --result=Versuch.odt.pdf \ COOnTeXML.tex where the code above is in COOnTeXML.tex and Versuch.odt contains a text:p tag ... Thanks, Joh Wolfgang

Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Johannes Graumann
file). Attached. Thanks for your time. Joh % texmfstart texexec --lua COOnTeXML.tex --arg=odt=someotherfile.zip \startxmlsetups xml:mysetups \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph} \stopxmlsetups \xmlregistersetup{xml:mysetups} \startxmlsetups xml:paragraph \xmlflush{#1}\endgraf

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
, leaving a gap on bottom (and same for left-right). Did you try display mode? \vfill arg \vfill? I guess I don't see the complication... :-) Best Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort

Re: [NTG-context] Images centered on page

2007-11-23 Thread Vyatcheslav Yatskovsky
(roughly A4), I only need them to be centered. Now they are stuck to the top, leaving a gap on bottom (and same for left-right). Did you try display mode? \vfill arg \vfill? I guess I don't see the complication... Best Idris

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
On Fri, 23 Nov 2007 10:24:35 -0700, Vyatcheslav Yatskovsky [EMAIL PROTECTED] wrote: Hello Idris, Thank you. What is display mode? Simply \vfill\externalfigure[Image1.jpg]\vfill doesn't work for me. Try $$arg$$. I'm sure there's a ConTeXt-ish solution for this as well

Re: [NTG-context] some warnings about fonts

2007-11-18 Thread Taco Hoekwater
Arthur Reutenauer wrote: While luatex was compiling fonts, I noticed some warnings. I suspect they are harmless, but I'd better report them. [...] report load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 (Sjis-UTF-8) Mostly harmless. It's a side-effect of converting

[NTG-context] some warnings about fonts

2007-11-17 Thread Vyatcheslav Yatskovsky
0.0619998 seconds report load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 (Sjis-UTF-8) report load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 (Sjis-UTF-8) report load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 (Sjis-UTF-8

Re: [NTG-context] some warnings about fonts

2007-11-17 Thread Arthur Reutenauer
While luatex was compiling fonts, I noticed some warnings. I suspect they are harmless, but I'd better report them. [...] report load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 (Sjis-UTF-8) Mostly harmless. It's a side-effect of converting some of the strings

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-11 Thread Wolfgang Schuster
something like TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access this during processing using lua? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} Thanks Hans

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-06 Thread Hans Hagen
? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-06 Thread Hans Hagen
to access this during processing using lua? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} Thanks Hans! Not as elegant as I had hoped, but it does what I want when I use \input zip::\env{name

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-06 Thread Johannes Graumann
processing using lua? texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} Thanks Hans! Not as elegant as I had hoped, but it does what I want when I use \input zip::\env{name}::somezipcontent.tex

[NTG-context] Prescript in ConTeXt

2007-04-18 Thread Aditya Mahajan
and the % base object even when the latter is not of type ord. [EMAIL PROTECTED]@}% #3% } To port it to ConTeXt, I need something equivalent to [EMAIL PROTECTED], which is defined in amsmath. % [EMAIL PROTECTED] %The function |[EMAIL PROTECTED]| takes three arguments; the third arg

Re: [NTG-context] Manual (English) Update soon?

2007-01-02 Thread Henning Hraban Ramm
Am 2006-12-30 um 10:28 schrieb Douglas Philips: Arg. My bane. Fonts. The one thing that pulls me ever so slightly to using Pages... Not because I want a garish mix of goofball junk fonts, but because I love Palatino for newletters and Papyrus for cards and short notes... I figured out how

Re: [NTG-context] Manual (English) Update soon?

2006-12-30 Thread Douglas Philips
reading! See http://wiki.contextgarden.net/My_Way Thanks! Most other MyWay's deal with fonts. Arg. My bane. Fonts. The one thing that pulls me ever so slightly to using Pages... Not because I want a garish mix of goofball junk fonts, but because I love Palatino for newletters and Papyrus

Re: [NTG-context] layout question

2006-08-29 Thread richard rascher-friesenhausen
Hans Hagen schrieb: sorry, wrong command \definefloat[myfigure][myfigures][figure] the second arg is the plural, the third the parent Hans Hello, i added the cloning to my figure definitions. The caption is inherited from figure. But the new margin- and textmarginfigures do

Re: [NTG-context] some questions

2006-08-15 Thread wwl
Should'nt \arg{bla} be \type{{bla}}? I can't give you a satisfying answer for this, but Should'nt \expandafter\type\expandafter{\arg{bla}} be \type{{bla}}? gives Should?nt \dohandlemathtokenarg{bla} be {bla}? (so I guess the answer is probably no) \arg is one of the verbatim

Re: [NTG-context] some questions

2006-08-15 Thread Taco Hoekwater
Hi, [EMAIL PROTECTED] wrote: Should'nt \arg{bla} be \type{{bla}}? I can't give you a satisfying answer for this, but Should'nt \expandafter\type\expandafter{\arg{bla}} be \type{{bla}}? gives Should?nt \dohandlemathtokenarg{bla} be {bla}? (so I guess the answer is probably no) \arg

Re: [NTG-context] some questions

2006-08-13 Thread wwl
? The wikiwriter has obviously used this source too. Should'nt \arg{bla} be \type{{bla}}? \arg{bla} gives me 'argbla'! Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] some questions

2006-08-12 Thread wwl
here? \starttable[ o1 | C{red} |] \VL red \VL\SR \stoptable red too! Should'nt \arg{bla} be \type{{bla}}? \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] some questions

2006-08-12 Thread Peter Rolf
} |] \{C{red} Salve, Peter \VL red \VL\SR \stoptable red too! Should'nt \arg{bla} be \type{{bla}}? \stoptext Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] section headnumber at texexec

2006-08-10 Thread Hans Hagen
} {\setupheadnumber[section][\numexpr\env{sectionnumber}-1\relax]} {} \starttext \section{test} \stoptext === end of d === texexec --arg=sectionnumber=4 d if needed you can do in an environment file \startsetups check-section \doifenvelse{sectionnumber} {\setupheadnumber[section][\numexpr\env

Re: [NTG-context] eating up

2006-07-14 Thread Hans Hagen
and that you use * ; it' shard to see what goes wrong with an uncomplete example; in normal cases arg grabbing should work ok Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] extentable arrows

2006-06-29 Thread Hans Hagen
the optional arg for tuning purposes \if0#1\else\mkern#1mu\fi test, does a \mkern0mu hurt? Will make copy paste a bit easier! Though these days I find myself writing more in context and soon will face the reverse problem. I will need to copy context math into latex (needed for final journal

Re: [NTG-context] texmfstart newbie

2006-06-28 Thread David Arnold
--browser examplap.pdf texmfstart showcase.pdf texmfstart --page=2 --file=showcase.pdf texmfstart --program=yourtex yourscript.rb arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart --direct ruby rel:wn

[NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-11 Thread Johannes Graumann
--program=yourtex yourscript.rb arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart bin:xsltproc env:somepreset path:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres texmfstart texmfstart

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Johan Sandblom
-column (optional arg) Insert a column in a TABLE (interactive P) (insert \\bTD \\eTD) (indent-for-tab-command) (newline) (backward-char 5)) (defun context-insert-FLOW-cell (n) ;; Johan Sandblom 060128 Insert a FLOWchart cell (interactive nNumber of cells: \n) (newline) (let ((x 1)) (while

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Sanjoy Mahajan
)) (while ( column (- columns 1)) (insert \\bTD \\eTD\n) (setq column (1+ column))) (insert \\bTD \\eTD\\eTR\n))) (defun context-insert-nattab-column (optional arg) Insert a column in a TABLE (interactive P) (insert \\bTD \\eTD) (indent-for-tab-command) (newline) (backward

Re: [NTG-context] simplify \setuppapersize call

2006-04-12 Thread Hans Hagen
probably get a PDF with an a4 whateverbox (mediabox?). don't worry, when the second arg is missing, context will at least enlarge the print paper size to get it fit. Hans - Hans Hagen

Re: [NTG-context] A few questions about eating spaces in macros

2006-01-24 Thread Radhelorn
be bold \input knuth this is bold% \stopcommand some text \startcommand[arg] this is bold indeed but with a blank line before \input knuth \stopcommand \stoptext \ignorespaces \removeunwantedspaces Hans After some fiddling I've found that it is not spaces that interfere

Re: [NTG-context] A feq questions about eating spaces in macros

2006-01-23 Thread Hans Hagen
% \stopcommand some text \startcommand[arg] this is bold indeed but with a blank line before \input knuth \stopcommand \stoptext \ignorespaces ... \removeunwantedspaces Hans -- - Hans

[NTG-context] A feq questions about eating spaces in macros

2006-01-22 Thread Radhelorn
\startcommand[arg] this is bold indeed but with a blank line before \input knuth \stopcommand \stoptext -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] DOC/RTF to ConTeXt via XML

2005-09-28 Thread Christopher Creutzig
use constant, errorcode, errorname, errortext, exceptionname, funcdef, funcprototype, funcsynopsis, cmdsynopsis, constructorsynopsis, arg, function, methodname, methodparam, methodsynopsis, ooclass, ooexception, oointerface, progamlisting and its annotated cousin programlistingco, sgmltag

Re: [NTG-context] s-pre-19: page numbers?

2005-06-20 Thread h h extern
that in the following case we have one arg too much (some time ago i cleaned up part of the list macros and it seems that this indirect call was not done). (core-int.tex:) \def\dodomenulistelement#1#2#3#4#5#6#7% {\setbox0=\hbox {\let\gotolocation\gobbleoneargument % hack to catch last

[NTG-context] Layout questions

2005-03-14 Thread Marcin Borkowski
it imply that the smaller page (determined by the second argument) is centered on the real paper (with size defined by the first arg)? What do the options offset and scale for \definepapersize mean? Are there any other options other than these two and height and width? Thanks in advance

Re: [NTG-context] Layout questions

2005-03-14 Thread Hans Hagen
? If I use both, does it imply that the smaller page (determined by the second argument) is centered on the real paper (with size defined by the first arg)? no, \setuppapersize[A3] will map in onto width=max(width(A4),width(A3)) etc What do the options offset and scale for \definepapersize mean

Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-08 Thread Vit Zyka
texmfstart --program=yourtex yourscript.pl arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres Hmmm. What exactly

Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread h h extern
texmfstart --program=yourtex yourscript.pl arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres Hans

Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread Vit Zyka
yourscript.pl arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres Hmmm. What exactly 'texmfstart showcase.pdf' does? It starts

Re: [NTG-context] permissions in texmf/scripts/context/*

2005-02-07 Thread Hans Hagen
--program=yourtex yourscript.pl arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart bin:xsltproc kpse:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres Hmmm. What exactly 'texmfstart

Re: [NTG-context] New ConTeXt cz interface installation problem

2005-01-11 Thread Hans Hagen
will see at the night. :-) in that case, just download the minimal context distribution for linux, you can rsync that one of needed (some 25 meg zip initially) in there, there is setuptex, run that one (with the tex root as arg) and make the formats texexec --make --all will give you all

Re: [NTG-context] optional arguments, if(nth)argument

2005-01-07 Thread Taco Hoekwater
arguments and \if...argument : \def\SkillField{\dodoubleempty\doSkillField} \def\doSkillField[#1][#2]#3{\bTR\bTD #3 \iffirstargument\hfill (#1)\fi % don't print when no optional argument \eTD \bTD \ifsecondargument % if second optional arg is provided

[NTG-context] optional arguments, if(nth)argument

2005-01-06 Thread Henning Hraban Ramm
\ifsecondargument % if second optional arg is provided \definefield[#2][line][Skill][#1]\field[#2] \else % if no second optional arg \definefield[#3][line][Skill][#3]\field[#3] \fi \eTD\eTR} e.g. \SkillField[+8][Aergern]{Ärgern} % works

Re: [NTG-context] Problems with uniqueMPgraphic

2004-12-17 Thread Hans Hagen
?} \stopitemize \stoptext in your case, in order to make the graphic unique, you need to pass the second arg in order to make them unique (uniqueness is determined by dimensions and a few more things; another option would be to use the backgroundcolor of inframed which is accessible by \OverlayColor and also

[NTG-context] Re: mag-0008

2004-12-15 Thread Hans Hagen
:\the\paragraphdepth}\or\endstrut\fi \endgraf \advance\paragraphdepth\minusone} % fonts \def\startfont[#1]{\bgroup\getvalue{#1}} \def\stopfont {\egroup} \defineXMLcommand [fx:definefont] [fox] [label=fallbackfont,spec=lmtt10] % todo: more efficient (no spec/label in third arg

<    1   2   3   >