Re: [NTG-context] FLOW chart module broken

2011-11-28 Thread Willi Egger
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

[NTG-context] FLOW chart module broken

2011-11-27 Thread Willi Egger
\@@vars:flowcell:text:text -Randje $\leq $ 1mm maken argument ...]{\getvariable {flowcell:text}{text} } \firstoftwoarguments #1#2-#1 \@@su:flowcell:text:place:indeed ...:text}{text

Re: [NTG-context] FLOW chart module broken

2011-11-27 Thread Otared Kavian
$\leq $ 1mm maken argument ...]{\getvariable {flowcell:text}{text} } \firstoftwoarguments #1#2-#1 \@@su:flowcell:text:place:indeed ...:text}{text

Re: [NTG-context] arguments on context call

2011-10-16 Thread 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}\crlf But that clearly didn't work. Hans van der Meer

Re: [NTG-context] arguments on context call

2011-10-16 Thread Wolfgang Schuster
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

Re: [NTG-context] arguments on context call

2011-10-16 Thread Meer, H. van der
: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

[NTG-context] Document title (was: (no subject))

2011-09-10 Thread Wolfgang Schuster
]\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

Re: [NTG-context] Indenting in footnotes

2011-08-15 Thread Wolfgang Schuster
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

Re: [NTG-context] Indenting in footnotes

2011-08-15 Thread Cecil Westerhof
\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

Re: [NTG-context] Fwd: Personalizing a PDF generated with ConTeXt

2011-03-05 Thread Wolfgang Schuster
[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

Re: [NTG-context] Fwd: Personalizing a PDF generated with ConTeXt

2011-03-05 Thread Cecil Westerhof
] [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

Re: [NTG-context] tex placeholder for use in metapost/metafun

2010-09-10 Thread Wolfgang Schuster
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

Re: [NTG-context] Filling boxes

2010-08-31 Thread Cecil Westerhof
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

Re: [NTG-context] Filling boxes

2010-08-30 Thread Cecil Westerhof
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

Re: [NTG-context] Filling boxes

2010-08-28 Thread Wolfgang Schuster
=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

Re: [NTG-context] ntRe: Table head

2010-06-14 Thread Wolfgang Schuster
) 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

Re: [NTG-context] texexec --purgeall not working

2010-05-23 Thread Hans Hagen
. 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

Re: [NTG-context] texexec --purgeall not working

2010-05-23 Thread Hans Hagen
. 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

Re: [NTG-context] problem with def

2010-05-12 Thread Wolfgang Schuster
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

Re: [NTG-context] ! Undefined control sequence

2010-04-26 Thread Wolfgang Werners-Lucchini
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

Re: [NTG-context] ! Undefined control sequence

2010-04-24 Thread Wolfgang Schuster
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

Re: [NTG-context] ! Undefined control sequence

2010-04-23 Thread Wolfgang Schuster
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

[NTG-context] Re :! Undefined control sequence

2010-04-23 Thread Wolfgang Werners-Lucchini
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

Re: [NTG-context] Re :! Undefined control sequence

2010-04-23 Thread Wolfgang Schuster
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

Re: [NTG-context] ! Undefined control sequence

2010-04-23 Thread 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}*broad] \starttext \setvariables[tst][broad=1] \startTst

Re: [NTG-context] defining commands

2010-02-05 Thread Hans Hagen
... \startsetups titlepage \startstandardmakeup \definedfont[SerifBold at 40pt] \setupinterlinespace \getvariable{document}{title} \vfill \definedfont[SerifBold at 20pt] \setupinterlinespace \getvariable{document}{author

[NTG-context] texexec --purge (was: Linux PPC64 minimals)

2010-02-02 Thread Mojca Miklavec
') 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

Re: [NTG-context] texexec --purge

2010-02-02 Thread Roger Mason
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

Re: [NTG-context] texexec --purge

2010-02-02 Thread Hans Hagen
') 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

Re: [NTG-context] Call for papers (pracjourn mkiv)

2009-12-15 Thread Aditya Mahajan
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

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Peter Münster
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

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Hans Hagen
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

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Peter Münster
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

Re: [NTG-context] setting variable on cmd-line

2009-09-21 Thread Hans Hagen
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

Re: [NTG-context] setting variable on cmd-line

2009-09-20 Thread Peter Münster
(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

Re: [NTG-context] Round-corner textbox with shadow

2009-08-16 Thread Hans Hagen
}] \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

[NTG-context] Round-corner textbox with shadow

2009-08-15 Thread Tom
|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

Re: [NTG-context] Round-corner textbox with shadow

2009-08-15 Thread Peter Rolf
="" %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

[NTG-context] First time user trying to get Context to work

2009-07-13 Thread Harrie Frericks
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

[NTG-context] modife the style of taspresent

2009-03-03 Thread Bill Long
[\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

Re: [NTG-context] setvalue/setvariable

2009-02-05 Thread Wolfgang Schuster
}}} \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

[NTG-context] setvalue/setvariable (was: Re: Remove leading spaces)

2009-02-05 Thread Peter Münster
} \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

Re: [NTG-context] setvalue/setvariable

2009-02-05 Thread Wolfgang Schuster
}}} \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

Re: [NTG-context] specific document layout with ConTeXt

2008-12-28 Thread Aditya Mahajan
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

Re: [NTG-context] help with a latex - context conversion

2008-12-11 Thread Aditya Mahajan
=, board=, external=, year=, ] \def\placethesistitle {\startstandardmakeup[top=,bottom=] \startalignment[middle,broad] {\ThesisTitleFont\setupinterlinespace \getvariable{thesis}{title}\endgraf} \blank[1em] \getvariable{thesis:text}{note

Re: [NTG-context] Custom Section / Table of contents inside a table

2008-08-11 Thread Wolfgang Schuster
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

Re: [NTG-context] Custom Section / Table of contents inside a table

2008-08-09 Thread Taco Hoekwater
{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

[NTG-context] Custom Section / Table of contents inside a table

2008-08-08 Thread Demian Gutierrez
. 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

Re: [NTG-context] Making a template, defining a macro

2008-07-31 Thread Wolfgang Schuster
\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

Re: [NTG-context] Making a template, defining a macro

2008-07-31 Thread Demián Gutierrez
\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

[NTG-context] Making a template, defining a macro

2008-07-30 Thread Demián Gutierrez
]} 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

Re: [NTG-context] Tables in headers

2008-04-28 Thread Wolfgang Schuster
} \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

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
} \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

[NTG-context] color expansion (not colo-new related)

2007-08-30 Thread Peter Rolf
\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

Re: [NTG-context] Multiline footer

2007-06-20 Thread Aditya Mahajan
{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

Re: [NTG-context] Multiline footer

2007-06-20 Thread Renaud Aubin
=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

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Peter Rolf
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

Re: [NTG-context] Test whether variable has been set

2007-05-27 Thread Peter Rolf
? 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

Re: [NTG-context] Suppressing printing of chapter head.

2007-02-15 Thread Wolfgang Schuster
\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

Re: [NTG-context] \write \getvariable and expansion

2006-11-19 Thread Taco Hoekwater
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

Re: [NTG-context] \write \getvariable and expansion

2006-11-19 Thread Aditya Mahajan
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

[NTG-context] \write \getvariable and expansion

2006-11-17 Thread Aditya Mahajan
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

Re: [NTG-context] Problems with texexec pdfarrange

2006-11-16 Thread Sanjoy Mahajan
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

Re: [NTG-context] typesetting a url from variabless

2006-10-26 Thread Hans Hagen
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

Re: [NTG-context] typesetting a url from variabless

2006-10-24 Thread Wolfgang Schuster
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

Re: [NTG-context] typesetting a url from variabless

2006-10-24 Thread Aditya Mahajan
\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

[NTG-context] typesetting a url from variabless

2006-10-23 Thread Aditya Mahajan
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

[NTG-context] Append to a commalist

2006-10-12 Thread Fredrik Sjunnesson
} 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

Re: [NTG-context] Append to a commalist

2006-10-12 Thread Hans Hagen
} \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

Re: [NTG-context] Append to a commalist

2006-10-12 Thread Aditya Mahajan
} \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

Re: [NTG-context] Append to a commalist

2006-10-12 Thread Hans Hagen
\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

Re: [NTG-context] Append to a commalist

2006-10-12 Thread Fredrik Sjunnesson
}{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

Re: [NTG-context] \sometxt bodyfontsize in staticMPfigure (2006.09.27 beta)

2006-09-28 Thread Hans Hagen
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

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Hans Hagen
= 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

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Sanjoy Mahajan
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

Re: [NTG-context] Working example for correspondence

2006-09-23 Thread r . ermers
, 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

Re: [NTG-context] Create a directory using tex

2006-08-30 Thread Hans Hagen
}{\getvariable{filestate}{permissions}} {writable} {not writable} \end - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax

Re: [NTG-context] Create a directory using tex

2006-08-30 Thread Aditya Mahajan
. Aditya \usemodule[x][dir-05] \getfilestate{context.tex} \doifinstringelse{w}{\getvariable{filestate}{permissions}} {writable} {not writable} \end - Hans Hagen | PRAGMA ADE

[NTG-context] How to make startalignment middle not change the linewidth

2006-08-15 Thread Aditya Mahajan
] \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

Re: [NTG-context] How to make startalignment middle not change the linewidth

2006-08-15 Thread Aditya Mahajan
] [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

[NTG-context] How to align graphics at text edge?

2006-08-09 Thread The Wizard
] [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

[NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel
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

Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Vit Zyka
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

Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel
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

Re: [NTG-context] How to make this section header in ConTeXt?

2006-06-16 Thread Hans Hagen
{\getvariable{chapter}{key-\recurselevel}} { \expanded { % first one not expanded anyway \NC \getvariable{chapter}{key-\recurselevel} \noexpand \NC \getvariable{chapter}{value-\recurselevel

Re: [NTG-context] new release

2006-05-09 Thread nico
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

Re: [NTG-context] new release

2006-05-09 Thread Hans Hagen
}) 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

Re: [NTG-context] texexec

2006-05-07 Thread Hans Hagen
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

Re: [NTG-context] Float caption feature request

2006-05-07 Thread Hans Hagen
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

Re: [NTG-context] texexec

2006-05-07 Thread Aditya Mahajan
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

Re: [NTG-context] texexec

2006-05-07 Thread Hans Hagen
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

Re: [NTG-context] texexec

2006-05-07 Thread Aditya Mahajan
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

Re: [NTG-context] texexec

2006-05-06 Thread Aditya Mahajan
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

Re: [NTG-context] bug in today's release

2006-02-02 Thread Taco Hoekwater
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

Re: [NTG-context] bug in today's release

2006-02-02 Thread Hans Hagen
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

Re: [NTG-context] bug in today's release

2006-02-02 Thread Thomas A. Schmitz
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

Re: [NTG-context] xml and buffers

2006-01-19 Thread Hans Hagen
}]} \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

Re: [NTG-context] xml and buffers

2006-01-19 Thread Junod Antoine
\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

Re: [NTG-context] serial definition

2006-01-02 Thread Peter Rolf
\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

Re: [NTG-context] font-switching oddities

2005-11-09 Thread Hans Hagen
] [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

<    1   2   3   4   >