Hello,
The align key seems to be ignored here:
\usemodule[letter]
\setupletterstyle[head][align=flushright]
\setupletterstyle[letterhead][align=flushright]
\setupletter[fromname=bla, fromaddress=bla bla]
\starttext
\startletter
bla
\stopletter
\stoptext
TIA for any help!
--
Peter
On Thu, Jul 07 2011, Wolfgang Schuster wrote:
The head use predefined layouts and you can select between
a left aligned, a centered or a right aligned layout.
\setupletterstyle[head][alternative=right]
On page 99 of lettercorrespondence.pdf you write:
The default alternative a prints the
On Fri, Jul 08 2011, Wolfgang Schuster wrote:
With the alternative “a” i print only the values from the variables
“fromname” and “fromaddress” while “left”, “middle” and “right” are
complexer. Another feature from the last three alternatives is that
the alignment is fixed and you can’t change
On Wed, Jun 29 2011, Mojca Miklavec wrote:
Hans has changed the command line parameter for modules (--modules=vim
should work now). The problem is that he now stores the chosen modules
to a variable modules as opposed to extras. So if you want to keep
your modules, please edit
On Wed, Jun 29 2011, Hans Hagen wrote:
That would be a possibility, but I was wondering if there was a way to let
ConTeXt do it. Saves a lot of time. Also: when changing from A4 to A5, you
have to do it all over again.
You can plugin in a converter. However, it only works for one to anothe
On Tue, Jun 28 2011, Kip Warner wrote:
Is there any way to have ConTeXt not surround the link in the text with
quotation marks when using \about[some_node]?
\setupreferencing[left=, right=]
--
Peter
On Mon, Jun 27 2011, Kip Warner wrote:
Is there any way to remove the trailing space that appears to be
automatically inserted when \cldcontext output is captured? For
instance,
Bazaar revision \cldcontext{os.resultofbzr revno}.
Will show Bazaar revision 43 .
I've manually checked the
Hello,
With the latest beta, the no-break space seems to be broken:
\starttext
\hsize1pt
bla~bla % line breaks here
\stoptext
No problem with mkii.
--
Peter
___
If your question is of interest to others
On Thu, Jun 09 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
but I'd need to get also the source file name (Source.mkiv) and the option
(--result - Result.pdf).
\starttext
result (lua): \ctxlua{context(environment.outputfilename)}\par
result (tex): \systemparameter{file}
\stoptext
--
Hello,
How can one avoid these bad page breaks here:
\starttext
\dorecurse{10}{
\startsection[title=test]
\startitemize[columns, intro]
\item bla
\stopitemize
\input tufte
\stopsection
}
\stoptext
TIA for any hints,
--
Peter
On Mon, Jun 06 2011, luigi scarso wrote:
\starttext
\dorecurse{10}{
\startsection[title=test]
\startitemize[columns, intro]
\item bla
\stopitemize
\input tufte
\stopsection
}
\stoptext
\setuphead[section][before={\testpage[5]\blank}]
I've already tried that...
Please
On Sat, Jun 04 2011, Wolfgang Schuster wrote:
Edition de Trilogie de l'enfer en novembre 2011 chez Sens Tonka
Should be: Édition (common error in French)
--
Peter
___
If your question is of
On Sat, Jun 04 2011, Paul Menzel wrote:
I want to define `\abs` as the command for the absolute value. The
following minimal example is also attached.
\define\abs[1]{\lvert #1 \rvert}
Don't ask me why \define doesn't work (certainly related to
expansion), but \def does the job:
On Fri, Jun 03 2011, Thomas A. Schmitz wrote:
Ah, expdoifelse is for expanded doifelse, right? Any examples for such a lua
helper? Sounds good, but I still haven't been able to understand how to mix
xml and lua code.
\startluacode
function my_externalfigure(file, t)
local args_present
Hello,
How can I avoid a page break here:
\setuplayout[height=2cm]
\starttext
\startsection[title=test]
\startitemize[columns, intro]
\item bla
\stopitemize
\stopsection
\stoptext
TIA for any hints!
--
Peter
On Wed, Jun 01 2011, Wolfgang Schuster wrote:
How can I avoid a page break here:
\setuplayout[height=2cm]
\starttext
\startsection[title=test]
\startitemize[columns, intro]
\item bla
\stopitemize
\stopsection
\stoptext
It would help when you give ConTeXt space for the text,
Of
Hello,
How can one use \asciimode in cld syntax?
This does not seem to work:
context.starttext()
context.asciimode()
contextbla % bla
context.stoptext()
TIA for any hints!
--
Peter
___
If your question
On Fri, May 27 2011, Jeong Dalyoung wrote:
Is it possible to check what is the mainlanguage set in document?
Yes. Example:
%\mainlanguage[fr]
%\language[fr]
\starttext
currentlanguage:
\doifelse\currentlanguage{fr}{French}{Not French}\par
currentmainlanguage:
Steffen Wolfrum cont...@st.estfiles.de writes:
\setupTABLE[…][…][align=nothyphenated]
I thought the same, but why does this end in lines that are not only
nothyphenated but also not-wrapped??
align={nothyphenated, stretch} or align={nothyphenated, flushleft} can
help here.
--
Steffen Wolfrum cont...@st.estfiles.de writes:
\setupTABLE[column][1][width=2.7cm,align={nothyphenated,right}]
Please don't use align=right, it's so horrible ! ;))
(the big bug, that'll never be fixed...)
--
Peter
Hello,
With this test.cld file, the = blub is not printed:
context.starttext()
context.startchapter{title = bla = blub}
context.stopchapter()
context.stoptext()
Workaround:
context.startchapter{title = {bla = blub}}
But according to the documentation
Hello,
The year is always 2011 and the French month août has wrong spelling:
\mainlanguage[fr]
\starttext
\date[d=23, m=3, y=1985]: must be \quote{1985}\par
\date[d=1, m=8, y=2011]: must be \quote{août}
\stoptext
Cheers,
--
Peter
Hello,
Here a test file test.cld to show the problem:
local t = {bla = blub}
-- no problem:
print(table.serialize(t))
-- error: l-table.lua:565: unable to dump given function:
print(table.serialize(environment))
context.bye()
--
Peter
Hans Hagen pra...@wxs.nl writes:
-- error: l-table.lua:565: unable to dump given function:
print(table.serialize(environment))
to be expected
And what about replacing line 565 by something like this:
handle(format(%s [%q]=loadstring(%q),,depth,k,
Hello,
With this file, I get an undefined control sequence:
\setuplayout[grid=yes]
\starttext
bla
\stoptext
Thanks for the fixes in the latest beta, Hans!
--
Peter
___
If your question is of interest to
Aditya Mahajan adit...@umich.edu writes:
(but I don't see why locale should be different when a
program is run from inside context then when it is run from a shell).
Taco can surely better explain why. I think somewhere in the luatex
manual, he explains why luatex sets locale to C.
To see the
Mojca Miklavec mojca.miklavec.li...@gmail.com writes:
2. Until we do something about it, it would be very very desirable to
put it to modules.contextgarden.net (I know that it is painful).
Indeed, very painful ... ;)
I'm sure, that the module authors would like to run just one simple
command
Aditya Mahajan adit...@umich.edu writes:
$context --pipe
Oh, nice option, that I haven't known yet! :)
*\directlua{os.execute(locale)}
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
Strange, here it's:
LANG=
LC_CTYPE=C
LC_NUMERIC=C
LC_TIME=POSIX
LC_COLLATE=C
LC_MONETARY=POSIX
LC_MESSAGES=POSIX
Aditya Mahajan adit...@umich.edu writes:
*\directlua{os.execute(locale)}
Ok, locale outputs something depending on the enviroment. Lets look
directly at the enviroment:
$ CMD=set | grep -e ^LC_ -e ^LANG
--8---cut here---start-8---
$ eval $CMD
정진기 jinkijinki.j...@partner.samsung.com writes:
What I like to do is “getting certain area of certain page of a PDF
file”
using context command without saving to a separate JPG file.
\clip[...]{\externalfigure[filename.pdf][page=X]}
See also:
Cecil Westerhof cldwester...@gmail.com writes:
I tried the first example from fill-in fields:
\starttext
\usemodule[fields, abr-pseudocaps]
\setupinteraction[state=start]
\starttext
--
Peter
___
If
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
No, “mkvi” is a valid file extension for MkIV. The difference between
a mkiv and a mkvi file is that you can use named parameters, e.g.
Hello,
Why mkvi and not mkv ?
--
Peter
Steffen Wolfrum cont...@st.estfiles.de writes:
\enquote{Needless to say \enquote{mind mapping} is just ...}
And the result looked like this ...
“Needless to say ‘mind mapping’ is just ...”
Do we have something like this in ConTeXt too?
\quotation{Needless to say \quote{mind mapping} is
Marco net...@lavabit.com writes:
I think the idea behind Steffens post was not to find a
command that does the quoting, rather than finding *one*
command that »knows« about the level of quotation and
inserts the corresponding quotation marks.
Right. That's why I mentioned also
Aditya Mahajan adit...@umich.edu writes:
Or modify TEXINPUTS and LUAINPUTS variables.
I remember, that setting TEXINPUTS is not recommended. See also:
http://wiki.contextgarden.net/Mark_IV#Troubleshooting
Did that change?
--
Peter
Paul Menzel paulepan...@users.sourceforge.net writes:
PS: Will an updated version be published sometime?
[1] http://www.pragma-ade.com/general/manuals/cont-eni.pdf
Hello Paul,
This file won't be updated.
Corrections will go directly to the new revision of the manual (work in
progress). You
Paul Menzel paulepan...@users.sourceforge.net writes:
Corrections will go directly to the new revision of the manual (work in
progress). You can find the links on the main wiki page.
Do you mean [1]?
No. http://wiki.contextgarden.net/manual_being_revised
There is a link on the main wiki
Aditya Mahajan adit...@umich.edu writes:
\setuppaersize[A5] appears to be working fine in MKIV.
Nice! So you can close http://tracker.luatex.org/view.php?id=581
--
Peter
___
If your question is of
Procházka Lukáš l...@pontex.cz writes:
draw p yshifted -1cm withpen pencircle scaled 1mm withcolor .667red;
draw p withpen pencircle scaled 0mm withcolor white;
draw p yshifted -OverlayHeight withpen pencircle scaled 1mm withcolor .667red;
(quick and dirty, there is certainly a cleaner
Procházka Lukáš l...@pontex.cz writes:
\def\Text#1{\inframed[background=Label,frame=off]{#1}}
Or like this (less quick and perhaps less dirty):
\def\Text#1{\inframed[location=top, background=Label, boffset=\lineheight,
frame=off]{#1}}
--
Peter
pmli...@free.fr (Peter Münster) writes:
Procházka Lukáš l...@pontex.cz writes:
\def\Text#1{\inframed[background=Label,frame=off]{#1}}
Or like this (less quick and perhaps less dirty):
\def\Text#1{\inframed[location=top, background=Label, boffset=\lineheight,
frame=off]{#1}}
Oh
Cecil Westerhof cldwester...@gmail.com writes:
Is it possible to generate only a TOC? (\completecontent) When
creating a document I like to have the 'stakeholders' to have an
indication of what is going on. For this a TOC is enough. I could
create the document and cut out the TOC, but it
Pau vim.u...@googlemail.com writes:
%\enableregime[utf-8]
Uncomment this line.
\enableregime[latin1]
Remove this line.
my terminal encoding is set to UTF-8.
Good.
--
Peter
___
If your question
Vedran Miletić riva...@gmail.com writes:
Thanks, but this says nothing about + character specifically.
It's easier and less error-prone to say what characters are guaranteed
to work, than to say what characters could cause problems.
There are a lot more characters, that you could try:
Vedran Miletić riva...@gmail.com writes:
Should + not be used? It seems to work ok without modes, but I
haven't tested deeply.
There is now an entry in the FAQ:
http://wiki.contextgarden.net/FAQ#Why_should_I_only_use_letters.2C_digits_and_hyphens_in_file.2Fpath_names.3F
--
Peter
Henry House hajho...@hajhouse.org writes:
I strongly agree that sample set-up code (ideally well-commented so that
it also serves as a tutorial of sorts) to reproduce the style of LaTeX
would be helpful.
If you agree, that http://pmrb.free.fr/work/OS/ConTeXt/arbeit.pdf is
standard latex style
Cecil Westerhof cldwester...@gmail.com writes:
I would expect that \at{page}[test] gives:
pagina 1
but it gives:
page 1
Is it a bug, or am I doing something wrong?
Probably the latter.
Solution a:
\at{pagina}[test]
Solution b:
\usemodule[googletranslate]
Reviczky, Adam adam.revic...@kcl.ac.uk writes:
only Hans can decide if this can/should be changed
I won't argue for any changes, just thought to ask about it.
A simple yes, can be done or no, its a really bad idea is perfectly enough
for me.
See also section 1.7 on page 11 of the ConTeXt
Hans Hagen pra...@wxs.nl writes:
--directives=system.dumpfiles
should do that but it's currently broken
Indeed. That's exactly what I'd tried before sending my request.
I guess, the output file will have a special name?
(but no make file output, at least not now as i never used make
Hello,
Here comes a little feature request: it would be nice, if context
allowed us to write a file with dependency information, like a
C-compiler does for the dependencies of a C-file on the included header
files. The best would be, to get such dependencies directly in Makefile
syntax.
Example:
Hello,
Bug or feature?
--
Peter
___
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
Hello,
There are 3 errors when processing the context manual:
1.) ! LuaTeX error
...text/tex/texmf-context/tex/context/base/core-con.lua:178: attempt to call
local 'mapper' (a table value)
\starttext
\startitemize[g]
\item a \type{g} for Greek characters
\item a \type{G} for Greek capitals
Oliver Buerschaper oliver.buerscha...@mpq.mpg.de writes:
I was wondering because not too long ago (e.g. 2010.11.12 18:22 MKIV) this
didn't happen… are included files now automatically terminated by an implicit
\par? Personally I would find that confusing.
No answer to your question, just a
maggy...@gmail.com writes:
How to control the space between the number and the title in heads? By default
it seems there is a space of about 1 em. I want to change that space and set a
normal space instead (a word space), since I've put a dot stopper after the
numbers
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
Related question: is there a macro, that returns the width of
some
content, so that one can use distance=\widthof{ }?
http://www.ntg.nl/pipermail/ntg-context/2007/024390.html
Thanks! So it seems, that there is nothing
Hello,
No space is printed between bla2 and bla3 with latest mkiv:
\startsetups 1
\getparameters[Prefix][Text={bla1 bla2
bla3}]
\stopsetups
\starttext
\setups{1}
\PrefixText, no space between bla2 and bla3...
\stoptext
--
Peter
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
Am 09.02.2011 um 00:31 schrieb Peter Münster:
\startsetups 1
\getparameters[Prefix][Text={bla1 bla2
bla3}]
\stopsetups
Use \startrawsetups … \stoprawsetups.
So, it's not a bug, but a feature? Should it be documented like
Hans Hagen pra...@wxs.nl writes:
no, i'm still trying to get mkii and mkiv working at the same time with a
fundamental different setup strategy .. getting there
Or perhaps 2 completely different distributions?
mkii: frozen, only some fixes from time to time
mkiv: no more mkii files, no more
Vnpenguin vnpeng...@vnoss.org writes:
On Wed, Feb 2, 2011 at 13:41, Peter Münster pmli...@free.fr wrote:
no, i'm still trying to get mkii and mkiv working at the same time with a
fundamental different setup strategy .. getting there
Or perhaps 2 completely different distributions?
mkii
Vedran Miletić riva...@gmail.com writes:
Yes, there is a bug when using dots,
Or a feature...?! ;)
See also:
- http://www.ntg.nl/pipermail/ntg-context/2010/052339.html
(and such can mean a dot)
- http://pmrb.free.fr/contextref.pdf section 1.7
;-)
--
Peter
Hello,
What about \super and \suber¹? Are these commands replaced by other
commands, obsolete, broken,... ?
¹ http://pmrb.free.fr/contextref.pdf section 19.6, page 340
--
Peter
___
If your question is of
Stefan Müller warrence@gmx.de writes:
\starttext
\bTABLE \bTR[width=10cm]
\bTD \input knuth \eTD
\eTR \eTABLE
\stoptext
\starttext
\bTABLE \bTR[width=10cm, align=yes]
\bTD \setupinterlinespace[5ex] \input knuth \eTD
\eTR \eTABLE
\stoptext
--
Peter
Stefan Müller warrence@gmx.de writes:
However, for some reason the following does not work. Only the space before
the first line and the space between the first line and second line are
changed (not even to the same dimension). Any ideas?
deserunt mollit anim id est laborum. \eTD
Hans van der Meer h.vanderm...@uva.nl writes:
Thanks for changing things that way between one and the other. I am starting
to get a bit choleric about all things that constantly seem broken with the
next update. Sorry for the sour note but these are costing me hours to iron
out, time I do not
Vnpenguin vnpeng...@vnoss.org writes:
I'm trying TeX-figures (Section 13.5 of ConTeX manual). Here is my test
Hello,
In the new manual it's section 16.5.
\stopbuffer
\externalfigure[mytable.tmp][width=0.8\textwidth]
In mkiv, the buffer is not saved in a file. You need to do this
Hello,
I get ! I can't find file `virtual://viafile.1'. with the following
example:
\starttext
\startbuffer[mytable1]
bla
\stopbuffer
\savebuffer[mytable1][mytable.tmp]
\externalfigure[mytable.tmp][width=0.8\textwidth]
\stoptext
--
Peter
Steffen Wolfrum cont...@st.estfiles.de writes:
[...]
\getbuffer
Works great for me ...
Sure, but it's really not the same ;)
Compare:
\starttext
\startbuffer
\startTEXpage[width=5cm]
\input tufte
\stopTEXpage
\stopbuffer
\getbuffer
\startbuffer[testbuf]
\input tufte
\stopbuffer
Hello,
It would be nice, if \typesetbuffer wouldn't add anything to the buffer.
Here an example, where the outer \starttext ... \stoptext environment
deranges:
\starttext
\startbuffer[pdf-pages]
\setuppapersize[A7, landscape]
\showframe
\starttext
page 1 \page page 2
\stoptext
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
It would be nice, if \typesetbuffer wouldn't add anything to the buffer.
Here an example, where the outer \starttext ... \stoptext environment
deranges:
Why, context ignores the inner starttext/stoptext pair.
Wrong interpretation
Hello,
luatex takes 100% cpu (probably endless loop, at least some minutes ;)
here:
\starttext
\halign
{\hss#\cr
\showcolorgroup[red][horizontal,name,number]\cr
\showcolorgroup[green] [horizontal,name]\cr
}
\stoptext
Message:
systems : command \showcolorgroup not found in
Hello,
This used to work with pdftex:
\starttext
\input \string|echo hello world
\stoptext
What's the recommended way, to do this in mkiv?
I've defined \Pipe{} like this:
\startluacode
userdata = userdata or {}
function userdata.pipe(c)
local h = io.popen(c)
context(h:read*a)
Hans Hagen pra...@wxs.nl writes:
On 30-1-2011 11:19, Peter Münster wrote:
But I suppose that there is already a nice command in the core... ;)
os.resultof(...)
Thanks!
No tex-command...?
(not important, \ctxlua{context(os.resultof...)} is ok)
--
Peter
Hello,
The thin space and the narrow no-break space are not typeset:
\starttext
THIN SPACE (U+2009): 50 \%
NARROW NO-BREAK SPACE (U+202F): 50 \%
NO-BREAK SPACE (U+00A0): 50 \%
\type{\,}: 50\,\%
\stoptext
About one year ago, this used to work. Bug or feature?
--
Peter
Verhaag, G.C.H.M. verhaagg...@ziggo.nl writes:
\definesynonyms[kind][kinds][\infull]
\definesynonyms[state][states][\infull]
Don't use the same command. Better:
\definesynonyms[kind][kinds][\KindFull]
\definesynonyms[state][states][\StateFull]
--
Peter
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
When you use “location=hanging” and set the margin to 0pt contexts sets
the margin to 1.5em. I don’t know what do you want to achieve but maybe
“location=serried” is what you want.
Another question: does it make sense, that context
Hello,
margin=0pt does not work here:
\definedescription[Test][location=hanging, margin=0pt]
\starttext
\startTest{Problem}
\input tufte
\stopTest
\setupdescriptions[Test][margin=0.0001pt]
\startTest{Workaround}
\input tufte
\stopTest
\stoptext
--
Peter
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
When you use “location=hanging” and set the margin to 0pt contexts sets
the margin to 1.5em. I don’t know what do you want to achieve but maybe
“location=serried” is what you want.
Right, location=serried is what I want!
(I had a
Hello,
\numero is broken (additional n is printed) and seems to be obsolete
(comment in symb-mis.mkiv). Should \textnumero be used instead, or what
else is recommended?
--
Peter Münster
Contact information: http://pmrb.free.fr/contact
Renaud AUBIN au...@nibua-r.org writes:
It would be nice to think of those like me who use dot into their naming
scheme… ;)
See also http://www.ntg.nl/pipermail/ntg-context/2010/052339.html ;)
--
Peter Münster
Contact information: http://pmrb.free.fr/contact
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz writes:
\NC {\normalfont Code} \NC {\nomath Symbol} \NC Description \NC\NR
\NC {\rm Code} \NC \text{Symbol} \NC Description \NC\NR
--
Peter Münster
Contact information: http://pmrb.free.fr/contact
get this error:
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___
If your question is of interest to others as well
Hans Hagen pra...@wxs.nl writes:
On 14-1-2011 4:54, Peter Münster wrote:
local t = {}
package.seeall(t)
setfenv(0, t)
what do you want to achieve with the first three lines
I want to prevent pollution of the global environment, when I need to
define my own globals. But of course, I can do
Khaled Hosny khaledho...@eglug.org writes:
context.environment(foo.tex) -- throws an error
context(\\environment foo )
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___
If your question
Khaled Hosny khaledho...@eglug.org writes:
On Fri, Jan 14, 2011 at 06:52:25PM +0100, Peter Münster wrote:
Khaled Hosny khaledho...@eglug.org writes:
context.environment(foo.tex) -- throws an error
context(\\environment foo )
The same error, no difference.
Then a minimal example
, ConTeXt *is* already a replacement for
LaTeX: for all the users, who switched from LaTeX to ConTeXt, like me
some years ago.
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___
If your question
,
backgroundcolor=white]{\externalfigure[a4-page]}}
\stoppositioning
\stoptext
--8---cut here---end---8---
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___
If your
Hans Hagen pra...@wxs.nl writes:
What do you think?
\setuppapersize
[A4][samesized]
Not really an improvement over \setuppapersize[A4][A4] ...
--
Peter Münster
Contact information: http://pmrb.free.fr/contact
Hans Hagen pra...@wxs.nl writes:
On 10-1-2011 3:04, Peter Münster wrote:
Hans Hagenpra...@wxs.nl writes:
What do you think?
\setuppapersize
[A4][samesized]
Not really an improvement over \setuppapersize[A4][A4] ...
why not?
Just my personal opinion: more keystrokes to type
the \setuppapersize[][samesized] was for the user-document...
But in page-lay.mkiv it makes much more sense!
Excuse me, Peter
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___
If your question is of interest
Hans Hagen pra...@wxs.nl writes:
Is this a bug or am I missing something here?
I get newlines here.
Minimal example:
\definetyping[Test][escape={/,/}]
\starttext
No line break between the blas:
\startTest
bla
/bla/
\stopTest
\stoptext
--
Peter Münster
Contact information: http
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz writes:
context.exe t.mkiv --arguments=ARG1=arg1 --arguments=ARG2=arg2
It's supposed to be --arguments=ARG1=arg1,ARG2=arg2
Peter
___
If your question is of
Procházka Lukáš l...@pontex.cz writes:
I'd need to pass a variable to Ctx and to retrieve it inside a
compiled document - via Ctx itself and also by Lua.
Hello,
% cmd-line: context --arguments=testvar=my-value test
\starttext
value of testvar: \env{testvar}
with lua:
Sanjoy Mahajan san...@olin.edu writes:
\starttext
\placefigure[right,none]{}%
{\externalfigure[sample/cow.pdf]%
[scale=500,
frame=on, frameoffset=20pt,
framecolor=black,
background=color, backgroundcolor=lightgray,
On Thu, Dec 23 2010, Mojca Miklavec wrote:
tex.print('\\hbox to 1.5em{\\hss %s \\hss}',
tex.print() does not handle the %s. context() does.
So just replace tex.print() by context().
Peter
--
Contact information: http://pmrb.free.fr/contact/
On Thu, Dec 23 2010, luigi scarso wrote:
PS: I still don't know the reason why my example fails
catcode , I suppose
Indeed. The %-sign starts a comment in TeX.
\starttext
\startluacode
tex.print(\\hbox{ %s }, a string)
\stopluacode
\stoptext
is nearly the same as
\starttext
\hbox{ %s } a
On Tue, Dec 21 2010, Bill O'Connor wrote:
Shouldn't that be:
\starttext
X\vcenter{\hbox{X}}{X}
X\vcenter{\hbox{X}}{X}
\showboxes
\stoptext
No, it shouldn't.
Peter
--
Contact information: http://pmrb.free.fr/contact/
On Wed, Dec 22 2010, Willi Egger wrote:
context.setupTABLE({column}{each}{width=number.todimen(.041*tex.dimen.textwidth),align=flushright,offset=1pt})
context.setupTABLE({column}, {each}, {width=...
(not tested...)
Peter
--
Contact information: http://pmrb.free.fr/contact/
On Tue, Dec 21 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
is it possible to place an \externalfigure deeper to some distance,
shifted down, bellow the line or bellow the default position? To get:
+--+
Aaa | A figure | bbb
+--+
This looks to me, like a
Hello,
The placement of the second \hbox{} is wrong:
\starttext
X\vcenter{\hbox{X}}{X}
\showboxes
X\vcenter{\hbox{X}}{X}
\stoptext
Peter
--
Contact information: http://pmrb.free.fr/contact/
___
If your question is
On Sun, Dec 19 2010, Thomas Schmitz wrote:
and this doesn't:
\newtoks\mytoks
\def\TestMacro#1#2#3%
{\item[#1] #2\par
\appendtoks \in[#1]: {#3} \to\mytoks}
\doglobal \appendtoks \in[#1]: {#3} \to\mytoks}
Cheers, Peter
--
Contact information: http://pmrb.free.fr/contact/
301 - 400 of 1353 matches
Mail list logo