the latest beta: ConTeXt ver: 2011.11.25 21:29 MKIV fmt:
2011.11.27
\@@vars:flowcell:text:text -Randje $\leq $
1mm maken
argument ...]{\getvariable {flowcell:text}{text}
}
\firstoftwoarguments #1#2-#1
\@@vars:flowcell:text:text -Randje $\leq $
1mm maken
argument ...]{\getvariable {flowcell:text}{text}
}
\firstoftwoarguments #1#2-#1
\@@su:flowcell:text:place:indeed ...:text}{text
$\leq $
1mm maken
argument ...]{\getvariable {flowcell:text}{text}
}
\firstoftwoarguments #1#2-#1
\@@su:flowcell:text:place:indeed ...:text}{text
Thanks, but I am afraid I do not understand the mechanism well enough.
I did the follwoing call in the shell:
context --fontchoice=my font choice test
And in the test.tex file:
variable mykey = \getvariable{documents.arguments}{fontchoice}\crlf
But that clearly didn't work.
Hans van der Meer
Am 16.10.2011 um 19:14 schrieb Meer, H. van der:
Thanks, but I am afraid I do not understand the mechanism well enough.
I did the follwoing call in the shell:
context --fontchoice=my font choice test
And in the test.tex file:
variable mykey = \getvariable{documents.arguments}{fontchoice
:32, Wolfgang Schuster wrote:
Am 16.10.2011 um 19:14 schrieb Meer, H. van der:
Thanks, but I am afraid I do not understand the mechanism well enough.
I did the follwoing call in the shell:
context --fontchoice=my font choice test
And in the test.tex file:
variable mykey = \getvariable
]\getvariable{exam}{title}}
\blank
\getvariable{exam}{course}
\stopframedtext
\blank[big]
\startcolor[colortwo]
\doifelsevariable{exam}{date}{\expanded{\date[\getvariable{exam}{date}]}}{\currentdate}
\hfill
Start: \getvariable{exam}{start
is this:
\startbuffer[footnote:a]
Note A
\stopbuffer
\startsetups[footnote:b]
Note B
\stopsetups
%\setvariables[footnote][c={Note C}]
\setvariable{footnote}{c}{Note C}
\starttext
A\footnote{\getbuffer[footnote:a]}
B\footnote{\texsetup{footnote:b}}
C\footnote{\getvariable{footnote}{c}}
\stoptext
You can write
\startsetups[footnote:b]
Note B
\stopsetups
%\setvariables[footnote][c={Note C}]
\setvariable{footnote}{c}{Note C}
\starttext
A\footnote{\getbuffer[footnote:a]}
B\footnote{\texsetup{footnote:b}}
C\footnote{\getvariable{footnote}{c}}
\stoptext
That is already a lot better as it was first
[variables]
\setvariables
[test]
[one=One,
two=Two]
\stopmode
\starttext
\doifelsevariable{test}{one}{1: \getvariable{test}{one}}{??}\par
\doifelsevariable{test}{two}{2: \getvariable{test}{two}}{??}
\stoptext
Wolfgang
]
[one=One,
two=Two]
\stopmode
\starttext
\doifelsevariable{test}{one}{1: \getvariable{test}{one}}{??}\par
\doifelsevariable{test}{two}{2: \getvariable{test}{two}}{??}
\stoptext
Works. I use:
\doifelsevariable{personalise}{completeName}{}{
\setvariables[personalise][
completeName
to do
so...
You can set the values with
\setvariables
[document]
[author=...,
title=...,
logo=...]
and access them with
\getvariable{document}{author}
You can also test for a content of the variable:
\doifvariable{document}{logo}{\externalfigure[\getvariable{document}{logo
Op zaterdag 28 aug 2010 16:20 CEST schreef Wolfgang Schuster:
\def\CheckBoxContent
{\begingroup
\setbox\scratchbox\vbox{\getvariable{tree}{\treecounter}}%
\ifdim\ht\scratchbox\vsize
\forcequitjob{tree}%
\else
\box\scratchbox
\fi
\endgroup}
I have a solution for the parameters. I work
parameters to input
the values for the boxes. How would I do that?
\def\CheckBoxContent
{\begingroup
\setbox\scratchbox\vbox{\getvariable{tree}{\treecounter}}%
\ifdim\ht\scratchbox\vsize
\forcequitjob{tree}%
\else
\box\scratchbox
\fi
\endgroup}
\starttext
\setupfootertexts[\copyright
=Four,
4={\switchtobodyfont[9pt]\input ward },
5=Five,
6=Six,
7=Seven]
\def\CheckBoxContent
{\begingroup
\setbox\scratchbox\vbox{\getvariable{tree}{\treecounter}}%
\ifdim\ht\scratchbox\vsize
\forcequitjob{tree}%
\else
\box\scratchbox
\fi
\endgroup}
\starttext
)
commands, e.g.
\setvariable{text}{sps} {special-purpose digital computers}
\setvariable{text}{mfst}{Module №1 “Main principles of organization of
\getvariable{text}{sps}”}
\setvariable{text}{msec}{Module №2 “Principles of construction of
airborne computers”}
Wolfgang
. Any idea why?
because we removed a bunch of stubs
can you locate tex.rb and patch: (around line 2055):
# Kpse.runscript('ctxtools',rawbase,'--purge')
if getvariable('purge')
# Kpse.runscript('ctxtools',rawbase,'--purge
--all') if getvariable('purgeall
. Any idea why?
or maybe:
runcommand('mtxrun','--script','ctxtools',rawbase,'--purge') if
getvariable('purge')
runcommand('mtxrun','--script','ctxtools',rawbase,'--purge --all') if
getvariable('purgeall')
i'm a bit puzzled as normaly Kpse.runscript should figure it out
Hans
but that didn't work either.
I suggest to use ConTeXt’s \setvariables
\setvariables[book][title=My Book Title]
\starttext
\rightaligned{\bf\getvariable{book}{title}}
\stoptext
Wolfgang
___
If your question is of interest
What is the following command for:
\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broa
d]
}]
This is enough, or are there any problems?
\setupTst[1][n,\getvariable{tst}{broad}*broad]
To explain it with simpler macros
\setvariables[tst][set
Am 23.04.10 22:24, schrieb Peter Münster:
On Fri, Apr 23 2010, Wolfgang Schuster wrote:
\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]
Hello Wolfgang,
It works event without \setvariables:
\defineitemgroup[Tst]
\setupTst[1][n,\getvariable{tst}{broad
better to show users a better alternative if possible?
\defineitemgroup[Tst]
\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]
\starttext
\startTst
\item text
\stopTst
\setvariables[tst][broad=5]
\startTst
\item text
\stopTst
\stoptext
Wolfgang
Hallo Taco and Wolfgang,
Why is this?
Because \setupitemgroup expands its third argument.
And how can I make it work in position 2?
\setupitemgroup[Tst][1][n,\noexpand\broad ]
thank you very much!
\defineitemgroup[Tst]
\setvariables[tst][set={\setupTst[1][n,\getvariable
Am 23.04.10 19:20, schrieb Wolfgang Werners-Lucchini:
What is the following command for:
\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]
}]
This is enough, or are there any problems?
\setupTst[1][n,\getvariable{tst}{broad}*broad]
To explain it with simpler macros
On Fri, Apr 23 2010, Wolfgang Schuster wrote:
\setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}]
Hello Wolfgang,
It works event without \setvariables:
\defineitemgroup[Tst]
\setupTst[1][n,\getvariable{tst}{broad}*broad]
\starttext
\setvariables[tst][broad=1]
\startTst
...
\startsetups titlepage
\startstandardmakeup
\definedfont[SerifBold at 40pt]
\setupinterlinespace
\getvariable{document}{title}
\vfill
\definedfont[SerifBold at 20pt]
\setupinterlinespace
\getvariable{document}{author
') if getvariable('purge')
doesn't call the ctxtools script with proper quoting, so arguments are
interpreted as commands instead of being just arguments.
But I didn't inspect any further.
Mojca
texexec --verbose --purge besedilo
...
pdfTeX warning: pdftex: no GlyphToUnicode entry has been inserted yet
Mojca Miklavec mojca.miklavec.li...@gmail.com writes:
On Tue, Feb 2, 2010 at 15:34, Mojca Miklavec wrote:
The problem goes away if I comment out the lines 2053 and 2054 of
tex.rb. I suspect that
Kpse.runscript('ctxtools',rawbase,'--purge') if
getvariable('purge')
doesn't call
') if getvariable('purge')
doesn't call the ctxtools script with proper quoting, so arguments are
interpreted as commands instead of being just arguments.
But I didn't inspect any further.
Yes, commenting those lines removes the error messages here too, but of
course the desired --purge does not take
the tile and the author
\title{\getvariable{pracjourn}{title}}
\blank[medium]
\bgroup\authorfont\setupinterlinespace
\getvariable{pracjourn}{author} \endgraf\egroup
\blank[2*big]
% Place the additional information
\bgroup\switchtobodyfont[11pt]
\setupindenting[no]
\doifdefinedurl{email
the value of the variable:
\ctxlua{tex.print(document.arguments[arguments=myVar])}
I'm quite sure, that this is not Hans' intention.
As I've written yesterday, I suppose, that the following syntax is wanted:
\getvariable{environment}{myVar} but this does not work...
Cheers, Peter
--
Contact
of the variable:
\ctxlua{tex.print(document.arguments[arguments=myVar])}
I'm quite sure, that this is not Hans' intention.
As I've written yesterday, I suppose, that the following syntax is wanted:
\getvariable{environment}{myVar} but this does not work...
how does it look with:
local flag, value
On Mon, 21 Sep 2009, Hans Hagen wrote:
As I've written yesterday, I suppose, that the following syntax is wanted:
\getvariable{environment}{myVar} but this does not work...
how does it look with:
local flag, value = argument:match(^%-+(.-)=(.-)$)
.+ - .-
I've changed the line
Peter Münster wrote:
On Mon, 21 Sep 2009, Hans Hagen wrote:
As I've written yesterday, I suppose, that the following syntax is wanted:
\getvariable{environment}{myVar} but this does not work...
how does it look with:
local flag, value = argument:match(^%-+(.-)=(.-)$)
.+ - .-
I've changed
(document.arguments[arguments=myVar])}
\stoptext
cmd-line:
context --arguments=myVar=myValue test
But this syntax is very strange!
This would be much nicer:
Value of myVar: \getvariable{environment}{myVar}
Perhaps there is just a bug in the evaluation of environment.arguments?
That means
}]
\starttable[s1|Br|o4l|Br|l|]
\NC Name:\NC \getvariable{Book:Demos}{name}
\NC Nickname: \NC \getvariable{Book:Demos}{nickname} \NC\AR
\NC DOB: \NC \getvariable{Book:Demos}{dob}
\NC Height: \NC \getvariable{Book:Demos}{height} \NC\AR
\NC Weight: \NC \getvariable
|Br|o4l|Br|l|]
\NC Name:\NC \getvariable{Book:Demos}{name}
\NC Nickname: \NC \getvariable{Book:Demos}{nickname} \NC\AR
\NC DOB: \NC \getvariable{Book:Demos}{dob}
\NC Height: \NC \getvariable{Book:Demos}{height} \NC\AR
\NC Weight: \NC \getvariable{Book:Demos}{weight
=""
%substitute screen for
shadow and get clean box BUT no shadow
backgroundscreen=0.9,
backgroundcorner=round,
backgroundradius=.0625 in,
bodyfont=9pt,
offset=0.05 in
]
\setuptables[distance=small,bodyfont={9pt,sansserif}]
\starttable[s1|Br|o4l|Br|l|]
\NC Name:
\NC
\g
piece of code starting at line 646:
if texformats texengine then
report(using tex engine #{texengine})
texformatpath = if getvariable('local') then '.' else
Kpse.formatpath(texengine,true) end
# can be empty, to do
report(using tex format path
[\Titlesize]\color[c]{\bf
\getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\getvariable{taspresent}{author}\blank[2*line]\currentdate}
\vfill
\null}
%D The following parts are optional; if you don't use backgrounds and are
%D content with CONTEXT's default itemization, you
}}}
\setvalue{myfunction:1}{\medspace dog }
\setvalue{myfunction:2}{\medspace cat }
\setvalue{myfunction:default}{\ldots}
Hello,
I'm working now a lot with \setvariable and \getvariable. What are the
advantages/disadvantages of set/get-value over set/get-variable?
It's more a style decision, set
}
\setvalue{myfunction:2}{\medspace cat }
\setvalue{myfunction:default}{\ldots}
Hello,
I'm working now a lot with \setvariable and \getvariable. What are the
advantages/disadvantages of set/get-value over set/get-variable?
Cheers, Peter
--
Contact information: http://pmrb.free.fr/contact
}}}
\setvalue{myfunction:1}{\medspace dog }
\setvalue{myfunction:2}{\medspace cat }
\setvalue{myfunction:default}{\ldots}
I'm working now a lot with \setvariable and \getvariable. What are
the
advantages/disadvantages of set/get-value over set/get-variable?
It's more a style decision, set
IEEE:abstract:setup
\switchtobodyfont[9pt]
\stopsetups
\startsetups IEEE:title:after
\startalignment[middle]
\doifsomething{\getvariable{article}{author}}
\bgroup
\blank[big]
\tfa\setupinterlinespace
\getvariable{article}{author}
\endgraf\egroup
\doifsomething
=,
board=,
external=,
year=,
]
\def\placethesistitle
{\startstandardmakeup[top=,bottom=]
\startalignment[middle,broad]
{\ThesisTitleFont\setupinterlinespace
\getvariable{thesis}{title}\endgraf}
\blank[1em]
\getvariable{thesis:text}{note
and after I get just **).
Try
\expanded{\fieldNameSection{*\getvalue{CrudCampo:NombreCampoGUIVAL}*}}
\getvariable and not \getvalue
\expanded{\fieldNameSection{*\getvariable{CrudCampo}{NombreCampoGUIVAL}*}}
The second issue is that the previous commented code:
\doifelsenothing{\getvariable
{CrudCampo:NombreCampoGUIVAL}*}}
The second issue is that the previous commented code:
\doifelsenothing{\getvariable{CrudCampo}{NombreCampoGUIFLG}}
{\EMPTY}{\getvariable{CrudCampo}{NombreCampoGUIVAL}}
The bib module had a similar problem, that is why I have:
\unprotect
\long\def\bibdoifelse
. But when I
do it inside the table macro definition, and then use the macro:
\def\bCrudCampo{
\doifnothing{\getvariable{CrudCampo}{CrudCampo}}
{\section{Descripción de Campos}}
\setvariables[CrudCampo][CrudCampo=FLG]
\bgroup
\def\bNombreCampoGUI##1\eNombreCampoGUI{
\setvariables
\def\startclassname #1
\stopclassname{\setvariables[crudmain][classname=#1]}
GUI Name: \getvariable{crudmain}{guiname}
Class Name: \getvariable{crudmain}{classname}
\stopsetups
\definestartstop[crudmain][commands=\setups{crudmain}]
\startcrudmain
\startguiname
Some name here
\startguiname #1
\stopguiname{\setvariables[crudmain][guiname=#1]}
\long\def\startclassname #1
\stopclassname{\setvariables[crudmain][classname=#1]}
GUI Name: \getvariable{crudmain}{guiname}
Class Name: \getvariable{crudmain}{classname}
\stopsetups
\definestartstop[crudmain][commands=\setups
]}
GUI Name: \getvariable{crudmain}{guiname}
Class Name: \getvariable{crudmain}{classname}
\stopsetups
\definestartstop[crudmain][commands=\setups{crudmain}]
\startcrudmain
\startguiname
Some name here...
\stopguiname
\startclassname
Other name here...
\stopclassname
\stopcrudmain
}
\stopsetups
\startsetups head:table:first
\bTABLE[textwidth=\textwidth,option=stretch,align=right]
\bTR
\bTD[nx=2] Type of document\\\getvariable{document}{type} \eTD
\bTD Page\\\pagenumber\space(\lastpagenumber) \eTD
\eTR
\bTR
\bTD Name of document\\\getvariable{document}{name} \eTD
}
\framedtext[settings]
\from[reference]
\getbuffer[name]
# \getfiguredimensionsonly
# \getmarking[name][options]
# \getvalue
# \getvariable
# \globalletvalue
\godown[dimension]
\goto{text}{text}[references]
\gotobox{text}[references]
\graycolor[text]
\grid[options]
# \gsaveXMLasdata
\hairline
\head
\ifconditional\CondB#1
\else
\ifconditional\CondC#2
\else#3\fi
\fi
\fi}%
\starttext
%\settrue\CondA
%\settrue\CondB
\settrue\CondC
\setvariables[FOO][foregroundcolor=\GetFGcolor{red}{green}{blue}{lightgray}{darkgray}]
\color[red]{color} is working.
\edef\FGcolor{\getvariable{FOO
{text a}]
\startsetups[text a]
\input knuth
\stopsetups
What I usually do is surround the disclaimer in a vbox or a \framed.
For example (in s-ptj-01)
\startlocalsetups [titlefooter]
\framed[frame=off,width=\textwidth,align=flushright,location=low]
{\small\setupinterlinespace
\getvariable
=flushright,location=low]
{\small\setupinterlinespace
\getvariable{pracjourn}{copyright}\endgraf}
\stoplocalsetups
Aditya
begin:vcard
fn:Renaud AUBIN
n:AUBIN;Renaud
email;internet:[EMAIL PROTECTED]
url:http://www.nibua-r.org
version:2.1
end:vcard
Hi Elliot,
Elliot Clifton schrieb:
Hi,
How can test whether a variable has been set? I couldn't find any
reference to this in the wiki?
What do you mean by set?
I use
\doifnothing{\getvariable{foo}{bar}}
{foo:bar contains nothing.\par}%
\doifsomething{\getvariable{foo}{bar}}
{foo:bar
?
As long as you can garantee, that your variables are declared *before*
they are read, things are ok. But an environment or extra file is IMO
the cleanest way.
Reading an undefined variable results in the \empty token. This can be
problematic, if you expect a number; e.g.
\dimexpr\getvariable{foo
\setuphead
[chapter]
[header=empty,
footer=empty,
command=\johnchapter,
numberstyle=\it]
\def\johnchapter#1#2%
{\vbox
\bgroup
\vbox
\bgroup
\baselineskip=\getvariable{johnchapter}{baselineskipone}
\bgroup
\getvariable{johnchapter}{fontone}%
\getvariable
Aditya Mahajan wrote:
Hi,
Can someone explain what should be the correct order of expansion
here. I want to enter the date entered as a variable to a file.
\setvariables
[test]
[date={d=11,m=11,y=2006}]
\starttext
The date entered was \expanded{\date[\getvariable{test
was \expanded{\date[\getvariable{test}{date}]}.
\immediate\openout \scratchwrite test-001
\immediate\write \scratchwrite {The date entered was}
% None of these work.
The best you can get is:
\immediate\write\scratchwrite{\noexpand\date[\getvariable{test}{date}]}
(The variable is expanded
Hi,
Can someone explain what should be the correct order of expansion
here. I want to enter the date entered as a variable to a file.
\setvariables
[test]
[date={d=11,m=11,y=2006}]
\starttext
The date entered was \expanded{\date[\getvariable{test}{date}]}.
\immediate\openout
in my opinion the print command option is --print=2up
It shouldn't matter (2up vs up). The tex.rb script has this:
case getvariable('printformat')
when '' then arrangement \\v!normal
when /.*up/oi then arrangement [2UP,\\v!rotated
I print the url. I tried
\starttext
\goto{\getvariable{test}{website}}[URL(\getvariable{test}{website})]
\stoptext
but this does not seem to work. Any suggestions?
Aditya
Hi Aditya,
you should look into the log-file and will see it is a problem with the
tilde
in the url
2006/10/24, Aditya Mahajan [EMAIL PROTECTED]:
Hi,What is the best way of typesetting a url from a variable. Forexample, if I have\setvariables[test][website=
http://www.xyz.com/~abc/first_index.html]how can I print the url. I tried\starttext\goto{\getvariable{test}{website}}[URL(\getvariable{test
\starttext
\goto{\getvariable{test}{website}}[URL(\getvariable{test}{website})]
\stoptext
but this does not seem to work. Any suggestions?
Aditya
Hi Aditya,
you should look into the log-file and will see it is a problem with the
tilde
in the url.
I know that the tilde is causing
Hi,
What is the best way of typesetting a url from a variable. For
example, if I have
\setvariables[test][website=http://www.xyz.com/~abc/first_index.html]
how can I print the url. I tried
\starttext
\goto{\getvariable{test}{website}}[URL(\getvariable{test}{website})]
\stoptext
}
I have tired this:
\def\append#1#2#3{
\fullexpandoneargafter\doifemptyelse{\getvariable{#1}{#2}}
{\edef\tmp{#3}}
{\edef\tmp{\getvariable{#1}{#2},#3}}
\setvariables[#1][#2={\tmp}]}
but it only works for one list. Apparently \tmp is not expanded so when
an item is appended to one list all
}
\append{namepace}{listname}{item3}
I have tired this:
\def\append#1#2#3{
\fullexpandoneargafter\doifemptyelse{\getvariable{#1}{#2}}
{\edef\tmp{#3}}
{\edef\tmp{\getvariable{#1}{#2},#3}}
\setvariables[#1][#2={\tmp}]}
but it only works for one list. Apparently \tmp is not expanded so
}
\append{namepace}{listname}{item2}
\append{namepace}{listname}{item3}
I have tired this:
\def\append#1#2#3{
\fullexpandoneargafter\doifemptyelse{\getvariable{#1}{#2}}
{\edef\tmp{#3}}
{\edef\tmp{\getvariable{#1}{#2},#3}}
\setvariables[#1][#2={\tmp}]}
but it only works for one
\append{namepace}{listname}{item1}
\append{namepace}{listname}{item2}
\append{namepace}{listname}{item3}
I have tired this:
\def\append#1#2#3{
\fullexpandoneargafter\doifemptyelse{\getvariable{#1}{#2}}
{\edef\tmp{#3}}
{\edef\tmp{\getvariable{#1}{#2},#3}}
\setvariables[#1][#2={\tmp
}{listname}{item2}
\append{namepace}{listname}{item3}
I have tired this:
\def\append#1#2#3{
\fullexpandoneargafter\doifemptyelse{\getvariable{#1}{#2}}
{\edef\tmp{#3}}
{\edef\tmp{\getvariable{#1}{#2},#3}}
\setvariables[#1][#2={\tmp}]}
but it only works for one list. Apparently \tmp
outside sometxt
\usestaticMPfigure[fig]
\stoptext
for this we need to patch tex.rb:
def processmpstatic
if filename = getvariable('filename') then
filename += .mp unless filename =~ /\..+?$/
if FileTest.file?(filename) then
begin
= getvariable('filename') then
in tex.rb
looks like a messed up update
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038
def processmpstatic
if filename = getvariable('filename') then
in tex.rb
looks like a messed up update
Ah, you're right and I just realized what happened.
'ctxtools --updatecontext' calls unzip with -uo:
-u update existing files and create new ones if needed
,
noflines-max=5,
noflines=\getvariable{letter:reference}{noflines-max}
]
\setvariables
[letter:style]
[opening=formal,
closing=formal]
%appendices=diverse]
%\setvariables
% [letter:data]
% [opening=,
% initials=,
% prefix=,
% suffix=,
% informalname=,
% formalname=]
% noflines=10
}{\getvariable{filestate}{permissions}}
{writable}
{not writable}
\end
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax
.
Aditya
\usemodule[x][dir-05]
\getfilestate{context.tex}
\doifinstringelse{w}{\getvariable{filestate}{permissions}}
{writable}
{not writable}
\end
-
Hans Hagen | PRAGMA ADE
]
\setvariables[paper]
[ title={Optimal Performance of Feedback Control Systems with
Limited Communication over Noisy Channels}]
\starttext
{\TitleFont\setupinterlinespace
\getvariable{paper}{title}
\blank[1.0em]\endgraf}
\startalignment[middle]
{\TitleFont\setupinterlinespace
] [Regular at 24pt]
\setvariables[paper]
[ title={Optimal Performance of Feedback Control Systems with
Limited Communication over Noisy Channels}]
\starttext
{\TitleFont\setupinterlinespace
\getvariable{paper}{title}
\blank[1.0em]\endgraf}
\startalignment[middle
]
[preset=righttop,y=.08\paperheight,x=.01\paperwidth]
{\externalfigure[my_logo_blk.pdf][height=.1\paperheight]}
\setlayer[page][preset=middle]
{\definedfont[SansBold at 22pt]\color[sunblue]\setupinterlinespace
\framed[align=flushleft,frame=off]{\getvariable{document}{title
rmat using "texmfstart texexec --make en", the generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex. Then, when trying to use the format, it is not found...This is done on line 547 of tex.rb:texformatpath = if getvariable('local') then '.' else Kpse.formatpath(texengine,true
texmfstart texexec --make en, the
generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex.
Then, when trying to use the format, it is not found...
This is done on line 547 of tex.rb:
texformatpath = if getvariable('local') then '.' else
Kpse.formatpath(texengine,true) end
So I've
Live\texmf-var\web2c\pdfetex.
Then, when trying to use the format, it is not found...
This is done on line 547 of tex.rb:
texformatpath = if getvariable('local') then '.' else
Kpse.formatpath(texengine,true) end
So I've changed it to "Kpse.formatpath(texengine,false)" and
eve
{\getvariable{chapter}{key-\recurselevel}} {
\expanded { % first one not expanded anyway
\NC
\getvariable{chapter}{key-\recurselevel}
\noexpand \NC
\getvariable{chapter}{value-\recurselevel
environment setting from tex.rb, it works on
my machine. I don't know if it can be a fix working on any platform:
def fixbackendvars(backend)
if backend then
report(fixing backend map path for #{backend}) if
getvariable('verbose')
ENV['backend'] = backend
}) if
getvariable('verbose')
ENV['backend'] = backend ;
ENV['progname']= backend unless validtexengine(backend)
#ENV['TEXFONTMAPS'] =
.;\$TEXMF/fonts/map/{#{backend},pdftex,dvips,}//
else
report(unable to fix backend map path
of metapost graphics to using
one-click installer (RC2) for windows. From tex.rb
report(command) if getvariable('verbose')
ok = system(command)
if ok File.appended(mptex, \\end\n) then
This is failing on my system. Can others using windows test this.
you mean that ok is false?
1
and the designer, but square brackets
seem more consistent with other ConTeXt commands; at least to me.)
this is indeed more natural to context, but i consider \select to be more like
the \getvariable mechanism, and when used inside [] it saves outer braces:
\setupheadertexts[\select{caption}{zapf
my recent failure of metapost graphics to using
one-click installer (RC2) for windows. From tex.rb
report(command) if getvariable('verbose')
ok = system(command)
if ok File.appended(mptex, \\end\n) then
This is failing on my system. Can others using windows test this.
you mean
between platforms have given me many headaches)
I have debugged my recent failure of metapost graphics to using
one-click installer (RC2) for windows. From tex.rb
report(command) if getvariable('verbose')
ok = system(command)
if ok File.appended(mptex, \\end\n
differences between platforms have given me many headaches)
I have debugged my recent failure of metapost graphics to using
one-click installer (RC2) for windows. From tex.rb
report(command) if getvariable('verbose')
ok = system(command)
if ok File.appended(mptex, \\end\n
comment on this?
I have debugged my recent failure of metapost graphics to using
one-click installer (RC2) for windows. From tex.rb
report(command) if getvariable('verbose')
ok = system(command)
if ok File.appended(mptex, \\end\n) then
This is failing on my system. Can others using windows
Thomas A. Schmitz wrote:
Sorry it's me again who's breaking the bad news... Today's release
seems to have a bug; newtexexec won't run. Here's the output I get:
On line 1249 in scripts/context/ruby/base/tex.rb there is a bare
if verbose. It should be if getvariable('verbose')
Cheers, Taco
for if verbose change that into if getvariable('verbose')
btw, i now use the alternative (written in ruby) kpse lib; if that works
ok, i'll enable a speed improvement (faster database read)
Hans
news... Today's release
seems to have a bug; newtexexec won't run. Here's the output I get:
On line 1249 in scripts/context/ruby/base/tex.rb there is a bare
if verbose. It should be if getvariable('verbose')
Cheers, Taco
___
ntg-context mailing list
}]}
\defineXMLenvironment
[title]
{}
{\startstandardmakeup
\getvariable{document:meta}{course_name} \endgraf
\getvariable{document:meta}{date} \endgraf
\stopstandardmakeup}
\startXMLdata
meta name=course_name content=Genie Logiciel /
meta name=datecontent=23 decembre 2005 /
title
\defineXMLsingular
[meta]
[name=,content=]
{\setevariables[document:meta][\XMLop{name}=\XMLop{content}]}
\defineXMLenvironment
[title]
{}
{\startstandardmakeup
\getvariable{document:meta}{course_name} \endgraf
\getvariable{document:meta}{date} \endgraf
\stopstandardmakeup
\Row
\increment\Row
\dostepwiserecurse{1}{9}{1}{%
\getvariable{PREFIX\Row}{foo}=
\getvalue{PREFIX\recurselevel}\crlf
\increment\Row
}
\stoptext
You can combine x counters to simulate a x-dimensional array (but you
better wait for lua). Hope that helps.
Greetings, Peter
Grüßlis vom
] [greekgentium]
[default] [rscale=\getvariable{Greek}{scale},encoding=agr]
\definetypeface [MyCaslon] [mm] [math] [modern] [default]
\stoptypescript
Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
201 - 300 of 330 matches
Mail list logo