.
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
--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
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
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
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
) 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
.
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
, 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
)
* 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
. 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
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
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
?)
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
[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
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
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
@@
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
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
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
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
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
(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
][#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
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
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
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
··
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
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
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
\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
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
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
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
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
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
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
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
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
$ 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
-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
)
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
):
\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
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
):
\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
:
==
\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
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
][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
, 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
=... 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
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
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
://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
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
: 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
{#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
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
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
, 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
(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
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
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
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
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
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
?
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
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
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
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
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
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
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
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
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
?
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
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
} |]
\{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
}
{\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
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
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
--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
--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
-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
))
(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
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
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
%
\stopcommand
some text
\startcommand[arg]
this is bold indeed but with a blank line before
\input knuth
\stopcommand
\stoptext
\ignorespaces
... \removeunwantedspaces
Hans
--
-
Hans
\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
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
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
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
? 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
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
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
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
--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
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
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
\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
?}
\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
:\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
101 - 200 of 203 matches
Mail list logo