Re: [NTG-context] gnuplot not working

2012-04-11 Thread Mojca Miklavec
                  \let \doprocessGNUPLOTfile ...OTnumber \zerocount \let                                                  \normalstarttikzpicture =\... argument ...NUPLOTfile [sin][\@@GNUPLOTresult ]}                                                  \doif {\@@GNUPLOTterminal ... \firstofoneargument #1-#1

Re: [NTG-context] gnuplot not working

2012-04-11 Thread Wolfgang Schuster
]} \doif {\@@GNUPLOTterminal ... \firstofoneargument #1-#1 argument ...}\writeandprocessGNUPLOTscript {sin} \doifelse {\@@GNUPLOTtermi... \firstoftwoarguments #1#2-#1 ... * ./test.tex \stoptext ? Oh, indeed. It seems that a recent

Re: [NTG-context] \setuphead and \startchapter request

2012-03-19 Thread Wolfgang Schuster
=\texsetup{chapter:list}] \startsetups[chapter:list] \doif{\structureuservariable{list}}{yes}{\placelist[section]} \stopsetups \setupinteraction[state=start] \placebookmarks[chapter,title] \starttext \startfrontmatter \starttitle[saveinlist=no,title=Content] \placelist[chapter,title

[NTG-context] is there a reason not to fix this bug?

2012-03-10 Thread Pablo Rodríguez
Dear community, Wolfgang kindly suggested this fix (that works also with beta from today): strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v

[NTG-context] confirmed bug with \setuplist[alternative=d, margin=2em]

2012-03-08 Thread Pablo Rodríguez
suggested this fix (that works also with latest beta): strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag

Re: [NTG-context] bug with \setuplist[alternative=d,margin=2em]?

2012-02-27 Thread Pablo Rodríguez
be a bug. This fix should help. strc-lst.mkvi: \def\strc_lists_place_indeed#tag#list#settings% {\begingroup \edef\currentlist{#tag}% \setupcurrentlist[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag

Re: [NTG-context] bug with \setuplist[alternative=d,margin=2em]?

2012-02-26 Thread Wolfgang Schuster
[#settings]% \the\everystructurelist % \doif{\listparameter\c!coupling}\v!on{\startlistreferences{#tag}}% \doplacestructurelist % maybe inline {#list}% {\listparameter\c!criterium}% {\listparameter\c!number}% {\listparameter\c!extras}% {\listparameter\c!order

Re: [NTG-context] Problem with \writebetweenlist

2012-02-25 Thread Jaroslav Hajtmar
it’s are lady in \strc_lists_inject_yes but the \begingroup has to be at at another place (see below): \def\strc_lists_write_between[#tag][#settings]#command% we can overload location {\doif{\namedlistparameter{#tag}\c!state}\v!start %{\strc_lists_inject_yes[#tag][#settings,\c!type=\s

Re: [NTG-context] Problem with \writebetweenlist

2012-02-25 Thread Jaroslav Hajtmar
to be at at another place (see below): \def\strc_lists_write_between[#tag][#settings]#command% we can overload location {\doif{\namedlistparameter{#tag}\c!state}\v!start %{\strc_lists_inject_yes[#tag][#settings,\c!type=\s!command][\s!command={#command}]}} {\begingroup\strc_lists_inject_yes

Re: [NTG-context] Problem with \writebetweenlist

2012-02-24 Thread Wolfgang Schuster
to be at at another place (see below): \def\strc_lists_write_between[#tag][#settings]#command% we can overload location {\doif{\namedlistparameter{#tag}\c!state}\v!start %{\strc_lists_inject_yes[#tag][#settings,\c!type=\s!command][\s!command={#command}]}} {\begingroup\strc_lists_inject_yes[#tag

Re: [NTG-context] strc-lst.mkvi [was: \cite fails with “Extra ...”]

2012-02-01 Thread Philipp Gesang
-lst.mkvi”: ··· line 169ff. · \def\strc_lists_write_data_to[#tag][#settings][#userdata]% we can overload location {\doif{\namedlistparameter{#tag}\c!state}\v!start {\ifthirdargument - \strc_lists_inject_yes[#tag][#settings,\c!type=\s

Re: [NTG-context] What’s your favorite command?

2012-01-30 Thread Thomas A. Schmitz
, for me it's \dontcomplain - get rid of overfull messages. The name is just brilliant; it would be wonderful to have it available in real life! But if we want to be more serious: of course all the xml processing commands, and then the multiple \doif... tests which make programming in ConTeXt

Re: [NTG-context] What’s your favorite command?

2012-01-30 Thread Hans Hagen
, and then the multiple \doif... tests which make programming in ConTeXt accessible even to people with no programming or math background. don't forget \forgetall then - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Hide section content

2011-11-20 Thread Wolfgang Schuster
would be better) but to hide the title of the section together with the list entry Hans has to modify the heading macros. \def\gobblesection {\doif{\structureuservariable{review}}{no} {\gobbleuntil\stopsection}} \setuphead[section][insidesection=\gobblesection] \starttext \startsection

Re: [NTG-context] Hide section content

2011-11-20 Thread Aditya Mahajan
you can use this (maybe a buffer would be better) \def\gobblesection {\doif{\structureuservariable{review}}{no} {\gobbleuntil\stopsection}} \setuphead[section][insidesection=\gobblesection] Thanks. but to hide the title of the section together with the list entry Hans has to modify

Re: [NTG-context] Float placement problem

2011-10-02 Thread Wolfgang Schuster
\topinserted\zeropoint \global\botinserted\zeropoint \ifflushingfloats \else \OTRONEdosettopinserts \OTRONEdosetbotinserts \ifsomefloatwaiting - \doif\rootfloatparameter\c!cache\v!no\doflushfloats + \doif{\rootfloatparameter\c!cache}\v!no\doflushfloats \fi \fi

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-26 Thread Wolfgang Schuster
in the parameterhandler. \unprotect \def\checkcurrentoddlayout {\ifcsname\namedlayouthash\v!odd\c!state\endcsname \doif{\namedlayoutparameter\v!odd\c!state}\v!start{\changetolayout\v!odd}% \fi} \def\checkcurrentevenlayout {\ifcsname\namedlayouthash\v!even\c!state\endcsname \doif

[NTG-context] problem with columnsetspan

2011-07-22 Thread Gordon Parrott
\!!countd \plusone \doif {\namedframedtextparameter {cs:#1}\c!alternative }\v!a {\ifnum \!!countc \!!countd \!!countc \!!countd \fi }\setcolumnsetspanhsize \mofcolumns \!!countc \hsize \columnsetspanhsize \setbox \scratchbox \vbox \bgroup \dostartframedtext [cs:#1][\v!none ]\ifnum \columnsetlevel

Re: [NTG-context] bib module (again)

2011-07-07 Thread Andreas Schneider
}{}{\ \MCPsuffix}% }% \else% \doinsertmycite[#1]{\defaultciteprefix}{}% \fi% } \def\doinsertmycite[#1]#2#3{% \footnote{% \doifelse{\MCPrepeat}{yes}{\global\setvalue{mycitelast}{#1}}{\doif{\MCPrepeat}{no}{\global\setvalue{mycitelast}{}}}% #2\doifnot{#2}{}{\strut}%prefix \doifelse

Re: [NTG-context] xml syntax for \externalfigure

2011-06-04 Thread Thomas A. Schmitz
}, args_present and t) end \stopluacode \startxmlsetups xml:externalfigure \ctxlua{my_externalfigure(\xmlatt{#1}{resource}, {width = \xmlatt{#1}{width}, height = \xmlatt{#1}{height}})} \stopxmlsetups My first idea was \expanded{\externalfigure[...][\doif...]} but it does not work

Re: [NTG-context] xml syntax for \externalfigure

2011-06-03 Thread Peter Münster
}, {width = \xmlatt{#1}{width}, height = \xmlatt{#1}{height}})} \stopxmlsetups My first idea was \expanded{\externalfigure[...][\doif...]} but it does not work... -- Peter ___ If your question is of interest

Re: [NTG-context] xml syntax for \externalfigure

2011-06-03 Thread Hans Hagen
\ctxlua{my_externalfigure(\xmlatt{#1}{resource}, {width = \xmlatt{#1}{width}, height = \xmlatt{#1}{height}})} \stopxmlsetups My first idea was \expanded{\externalfigure[...][\doif...]} but it does not work... you can consider passing #1 and using lxml.att at the lua end or go even further

[NTG-context] \type macro weird?

2011-04-25 Thread Hans van der Meer
} title \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str... \dostructurecountercomponent ...\c!title }\v!none {\setfalse \hasstructureco... \docompletefloat ...c!title ={#4},\c!bookmark

[NTG-context] label bug with latest beta (2011.04.22)

2011-04-23 Thread Reviczky, Adam
} \setbox 4\hbox {\doif {\li... ... l.3 \completecontent[criterium=all] ? q OK, entering \batchmode... pagesflushing realpage 2, userpage 2 system end file toc.tex at line 4 )/usr/share/texmf/fonts/opentype/public/lm/lmroman12

[NTG-context] Wiki discussion: Fwd: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I passed first trials contributing wiki - http://wiki.contextgarden.net/Special:Contributions/LuP. Several questions: - http://wiki.contextgarden.net/%5Cdoif... The item about \doif... was intended to appear in the reference/en, but it doesn't. How to provide it? - http

[NTG-context] Wiki discussion: Fwd: Re: Ctx wiki

2011-04-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hi Lukáš, Several questions: - http://wiki.contextgarden.net/%5Cdoif... The item about \doif... was intended to appear in the reference/en, but it doesn't. How to provide it? just insert [[Category:Reference/en|doif]] at the bottom of the page. The page should not be http

[NTG-context] \doif... and Lua

2011-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
} {No} \stoptext --- But this gives me always No. - I'm not sure if this is a good way, and whether attempt to use \doif(...) macro is a good idea at all. Any (better) solution? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz

Re: [NTG-context] \doif... and Lua

2011-03-25 Thread Wolfgang Schuster
= a} \doifempty{\directlua{return test}} %\doifempty{\directlua{test}} {Yes} {No} \stoptext --- But this gives me always No. - I'm not sure if this is a good way, and whether attempt to use \doif(...) macro is a good idea at all. Any (better) solution? \starttext \ctxlua{test

Re: [NTG-context] \doif... and Lua

2011-03-25 Thread Procházka Lukáš Ing . - Pontex s . r . o .
to use \doif(...) macro is a good idea at all. Any (better) solution? \starttext \ctxlua{test = true} Test is \ctxlua{commands.testcase(test)}{True}{False}. \ctxlua{test = false} Test is \ctxlua{commands.testcase(test)}{True}{False}. \stoptext Wolfgang

Re: [NTG-context] Pdfselect in texexec not working!?

2011-01-27 Thread Hans Hagen
{topspace}{0pt}, backspace=\getdocumentargumentdefault{backspace}{0pt}, location=middle, header=0pt, footer=0pt] \doif {\getdocumentargument{marking}} {yes} { \setuplayout [marking=on] } \doif {\getdocumentargument{interaction}} {yes} { \setupinteraction [state=start

[NTG-context] minimal

2010-11-12 Thread Herbert Voss
I just downloaded a minimal with ./first-setup.sh and get symbols : loading symbolset nav (/usr/local/texlive/2010/texmf-dist/tex/context/base/symb-nav.tex) ! Undefined control sequence. \@@iafieldlayer -\currentviewerlayer \doif #1#2-\edef \!!stringa {#1

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-15 Thread Wolfgang Schuster
' parameter. After fixing that in my code, theorems now have proper numbers and references to theorems work properly too. \unprotected\def\doenumerationextratext {\doif{\descriptionparameter\c!title}\v!yes {\doifsomething\@@dodoenumerationtext % WS: added this test {\begingroup

Re: [NTG-context] A few puzzling problems (bugs?) with enumerations

2010-10-15 Thread Mathieu Boespflug
and references to theorems work properly too. \unprotected\def\doenumerationextratext  {\doif{\descriptionparameter\c!title}\v!yes     {\doifsomething\@@dodoenumerationtext % WS: added this test        {\begingroup         \dosetdescriptionattributes\c!titlestyle\c!titlecolor         \hskip

Re: [NTG-context] checking for module parameters

2010-08-13 Thread Philipp Gesang
of doif.* tests a bit more thoroughly.) Thanks, Philipp Wolfgang ___ 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

Re: [NTG-context] Strange expansion behavior in XML/luatex

2010-06-01 Thread Martin Kolařík
Now, if I want not to only typeset a caption, but also to store it and reuse it later (typeset it twice, e.g. in the marging or elsewhere in the page, ...), it fails (on \processaction, \doif, ...). So, if I understand, there is a way to modify my XML template to be safe during expanding -- I

Re: [NTG-context] Strange expansion behavior in XML/luatex

2010-06-01 Thread Hans Hagen
/caption textpText./p/text /section Now, if I want not to only typeset a caption, but also to store it and reuse it later (typeset it twice, e.g. in the marging or elsewhere in the page, ...), it fails (on \processaction, \doif, ...). can't you just filter the caption then? in principle you can

Re: [NTG-context] Strange expansion behavior in XML/luatex

2010-06-01 Thread Martin Kolařík
, ...), it fails (on \processaction, \doif, ...). can't you just filter the caption then? in principle you can access each element everywhere - Hans Hagen | PRAGMA ADE Ridderstraat 27

[NTG-context] Strange expansion behavior in XML/luatex

2010-05-29 Thread Martin Kolařík
hooked xml tags, the \edef (and its counterparts \xdef or \expandedaction) inside the inner tag is skipped by the log. Then macros relying on the expansion fail (I detected it in \doif and \processaction). Macros are normally expanded, only \edef fails (maybe some other TeX commands fail too, but I

Re: [NTG-context] table bug

2010-05-23 Thread Taco Hoekwater
from tabl-tab.mkiv, and now tables are fine again: --- tabl-tab.mkiv~ 2010-05-21 17:27:59.0 +0200 +++ tabl-tab.mkiv 2010-05-23 12:25:57.786336147 +0200 @@ -985,7 +985,7 @@ \doif\@@tisplit\v!auto {\ifinsidesplitfloat\let\@@tisplit\v!yes\fi}% \doifinsetelse\@@tisplit{\v

Re: [NTG-context] table bug

2010-05-23 Thread Hans Hagen
Hans added in the beta. I removed a few from tabl-tab.mkiv, and now tables are fine again: --- tabl-tab.mkiv~ 2010-05-21 17:27:59.0 +0200 +++ tabl-tab.mkiv 2010-05-23 12:25:57.786336147 +0200 @@ -985,7 +985,7 @@ \doif\@@tisplit\v!auto {\ifinsidesplitfloat\let\@@tisplit\v!yes\fi

Re: [NTG-context] strange page break

2010-05-05 Thread Peter Münster
On Wed, May 05 2010, Taco Hoekwater wrote: Looks rather normal here, see attached (ver: 2010.05.02 16:43) A better page break would be after the last line of section 7: \def\mySection{\section{bla}\dorecurse{30}{text }} \starttext \dorecurse8{ \mySection\par bla \doif{\recurselevel}{7

[NTG-context] new error in Context under Linux

2010-04-04 Thread Alain Delmotte
! Argument of \docheckifiteminsetelse has an extra }. inserted text \par to be read again } \@@kjtabletitle -Use of \type {\setuptables } . \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx

Re: [NTG-context] letter: backaddress

2010-03-27 Thread Wolfgang Schuster
Am 27.03.10 17:56, schrieb Wolfgang Werners-Lucchini: I do not understand the the main principle. You're mixing different things. What is the difference between \setupletterstyle[option][backaddress=yes] In t-letter.tex you can fint this: \startsetups[\v!letter:\v!layer] \doif

Re: [NTG-context] new contextbeta distribution broken?

2010-03-20 Thread Wolfgang Schuster
%{\doif{#1}\c!em\donetrue}}} \def\test@@ifdimunt#1% {\edef\!!stringa{#1}% \donefalse \ifx\!!stringa\s!pt\donetrue\else \ifx\!!stringa\s!pc\donetrue\else \ifx\!!stringa\s!in\donetrue\else \ifx\!!stringa\s!bp\donetrue\else \ifx

Re: [NTG-context] new contextbeta distribution broken?

2010-03-20 Thread Hans Hagen
}\s!sp\donetrue % {\doifelse{#1}\c!ex\donetrue % {\doif{#1}\c!em\donetrue}}} \def\test@@ifdimunt#1% {\edef\!!stringa{#1}% \donefalse \ifx\!!stringa\s!pt\donetrue\else \ifx\!!stringa\s!pc\donetrue\else \ifx\!!stringa\s!in\donetrue\else \ifx\!!stringa\s!bp\donetrue\else \ifx\!!stringa\s!cm

Re: [NTG-context] Unable to use example from Excursion

2010-03-19 Thread Aditya Mahajan
?} {} \stoptext which gives ! Undefined control sequence. \@@kjfiguretitle -Do \type {\undefined } and \typeTEX {\undefined } work? \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str

Re: [NTG-context] blank line and signals

2010-03-15 Thread Wolfgang Schuster
}% \setvalue{#1:#2:\ifthirdargument\the\dimexpr#3\relax\fi}{#4}} \def\SectionBlank#1#2% {\edef\CurrentSection{#1}% \executeifdefined{#1:#2:\LastSectionBlankSignal}{\executeifdefined{#1:#2:\the\dimexpr\zeropoint\relax}{\getvalue{#1:#2:}}}% \doif{#2}{after}{\SectionBlankSignal}} \let

[NTG-context] Unable to use example from Excursion

2010-03-11 Thread Alain Delmotte
} \@@kjtabletitle -Use of \type {\setuptables } . \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str... \dostructurecountercomponent ...\c!title }\v!none

Re: [NTG-context] Unable to use example from Excursion

2010-03-11 Thread Aditya Mahajan
} . \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str... \dostructurecountercomponent ...\c!title }\v!none {\setfalse \hasstructureco... \docompletefloat ...c!title ={#4},\c!bookmark

Re: [NTG-context] Automated Quotation/Punctuation Placement

2010-01-08 Thread Tad Ashlock
}\futur... \@@kjfiguretitle -This is \Var {var_name} , a variable. \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str... \dostructurecountercomponent ...\c!title }\v!none

Re: [NTG-context] Usage of filename in document

2009-11-05 Thread Hans Hagen
or less an indocument version for this, like the if-then-else-clauses so thanks but I think it is not the way I can use it. \expandafter\convertargument\jobname\to\testablejobname \expandafter\convertargumentmkii\to\Myjobname \doif{mkii}{\testablejobname} { mkii } you need to do this conversion

Re: [NTG-context] Usage of filename in document

2009-11-05 Thread Martin Scholz
switch in it the type how it is called, so I need more or less an indocument version for this, like the if-then-else-clauses so thanks but I think it is not the way I can use it. \expandafter\convertargument\jobname\to\testablejobname \expandafter\convertargumentmkii\to\Myjobname \doif{mkii

Re: [NTG-context] Usage of filename in document

2009-11-05 Thread Peter Münster
: \doif{\ResultName}{order}{\enablemode[ordermode]}{} \starttext This file is the \ResultName. \startmode[ordermode] special text for order \stopmode \stoptext Then I call context with different resultnames: context --result=order filename or context --result=invoice filename as I got a file

[NTG-context] further bib tests

2009-09-19 Thread Thomas A. Schmitz
=cite] \stoptext I get ! TeX capacity exceeded, sorry [parameter stack size=6000]. \namedlistparameter #1#2- \csname \dolistparameter {\??li #1}#2\endcsname \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str

Re: [NTG-context] References in MKIV and bib module

2009-09-13 Thread Hans Hagen
: ok, revert ... (patch to criterum=here) \def\typesetpubslist {\dobeginoflist \the\initializebibdefinitions \edef\currentlist{pubs}% \doif{\listparameter\c!criterium}\v!cite{\setuplist[pubs][\c!criterium=\v!here]}% \ctxlua{bibtex.hacks.reset(\number\bibtexoncemode

Re: [NTG-context] References in MKIV and bib module

2009-09-13 Thread Thomas A. Schmitz
On Sep 13, 2009, at 9:34 PM, Hans Hagen wrote: ok, revert ... (patch to criterum=here) \def\typesetpubslist {\dobeginoflist \the\initializebibdefinitions \edef\currentlist{pubs}% \doif{\listparameter\c!criterium}\v!cite{\setuplist[pubs][\c! criterium=\v!here]}% \ctxlua

[NTG-context] Footnote and type

2009-08-22 Thread Aditya Mahajan
Hi, Another footnote bug in MKIV: \starttext \footnote{\type{\test}} \stoptext gives ! Undefined control sequence. \@@ddfootnotetitle -\type {\test } \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str

Re: [NTG-context] How to move an inframed block?

2009-08-15 Thread rrvhassel
=\blank, before=\blank, after=\blank, way=bysection] % Tryout logotext % #1: Definition,Lemma,Section, #2: reference, #3: title \define[4]\logotext{% \doif{#1}{Definition}{% \startmyframe \framed[corner=00, background=color, backgroundcolor=agvgreen, foreground=color, foregroundcolor=black

Re: [NTG-context] New to TeX, ConTeXt - How to conditionally include document sections?

2009-07-23 Thread Hans Hagen
be turning these documents into PDFs myself, rather than sending them off to a publisher, that's a concern for me. \doifelse{stringa}{stringb}{...}{...} in mkiv: syst-aux.mkiv, in mkii: syst-gen.mkii cum suis .. or search the wiki for doif If someone would please point me to documentation

[NTG-context] Problems in latest beta

2009-06-02 Thread Kevin D. Robbins
{\synonymparameterhash #1}... \@@ddsyndeftitle ...tes \c!textstyle \c!textcolor ABC \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str... \dododescriptioncomponent ...er \c!title }\v!none

Re: [NTG-context] beta

2009-05-11 Thread Wei-Wei Guo
Hans Hagen 写道: i uploaded a beta with some fixes The following bug is still there. ! Argument of \dotripletestemptyx has an extra }. inserted text \par to be read again } \doif #1#2-\edef \!!stringa {#1} \edef \!!stringb

Re: [NTG-context] bugs in beta

2009-05-07 Thread Henning Hraban Ramm
}} \par \doif #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!!str... \dododescriptioncomponent ...er \c!title }\v!none {\global \nodescriptioncap

Re: [NTG-context] beta

2009-04-28 Thread Wei-Wei Guo
to fix (once i know what fails). So, best collect all bugs while i'm away so that i can deal with then at once. I got an error here. ! Argument of \dotripletestemptyx has an extra }. inserted text \par to be read again } \doif #1#2

[NTG-context] \doif(not)empty(else)

2009-02-08 Thread Alan Stone
Hi, Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ? \def\ISay{} %\def\ISay{Boe!} \starttext \doifemptyelse{\ISay}{I say sht}{I say \ISay} \blank \doif{\ISay}{}{I say sht

Re: [NTG-context] \doif(not)empty(else)

2009-02-08 Thread Peter Münster
On Sun, 8 Feb 2009, Alan Stone wrote: Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ? Hello Alan, Here a small test file: \def\Empty{} \def\Macro#1{argument is \doifemptyelse{#1}{empty}{full}}

Re: [NTG-context] \doif(not)empty(else)

2009-02-08 Thread Wolfgang Schuster
Peter Münster schrieb: On Sun, 8 Feb 2009, Alan Stone wrote: Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ? Hello Alan, Here a small test file: \def\Empty{} \def\Macro#1{argument is

Re: [NTG-context] Page number not updating in layer

2009-02-03 Thread Wolfgang Schuster
=\paperheight] \definelayer[nexthead][width=\paperwidth,height=\paperheight] \startsetups layer \doif {\pagenumber}{1}{\setlayer[head][offset=2cm]{First page}} \doifnot{\pagenumber}{1}{\setlayer[nexthead][offset=2cm]{Page \pagenumber}} \stopsetups \setupbackgrounds[page][setups=layer,background

Re: [NTG-context] ntg-context Digest, Vol 51, Issue 40

2008-09-11 Thread Thomas A. Schmitz
, provides a wealth of consistent \doif... tests; they are logical and easy to use. The key=val parser is maybe the center of the entire ConteXt philosophy and a wonderful mechanism, and even a completely non-CS, non-scientific user such as I am can learn how to use it. You should really read

Re: [NTG-context] Lilypond module

2008-09-07 Thread Henning Hraban Ramm
solution: Use always the old executesystemcommand: Replace the whole \ifeof18 ... \fi block with: \executesystemcommand{\LP}% \doif\jobsuffix{pdf}{% \executesystemcommand{\PDF}% }% Don't forget to change the savebuffer line to: \ifx\directlua\undefined \else \savebuffer[lilypond-\lily

Re: [NTG-context] \indenting[next] and math = no vertical space before the formula

2008-04-30 Thread Mikael Persson
% ! ! \informulatrue %\forgetall % otherwise backgrounds fail \ifdim\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection

Re: [NTG-context] \indenting[next] and math = no vertical space before the formula

2008-04-30 Thread Aditya Mahajan
\formulaparskip % ! ! \informulatrue %\forgetall % otherwise backgrounds fail \ifdim\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif

Re: [NTG-context] \indenting[next] and math = no vertical space before the formula

2008-04-30 Thread Mikael Persson
\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently only option/default

Re: [NTG-context] \indenting[next] and math = no vertical space before the formula

2008-04-24 Thread Wolfgang Schuster
%\forgetall % otherwise backgrounds fail \ifdim\lastskip\zeropoint\else \par \ifvmode \ifdim\parskip\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new

[NTG-context] getbuffer now fails

2008-03-23 Thread Hans van der Meer
\filename{buffer}\def\thefile{#3}\let\@@[EMAIL PROTECTED] {.}% \@@exminput\thefile \endgroup} % reading the file better outside the doif [EMAIL PROTECTED] [EMAIL PROTECTED] Help is appreciated. Hans van der Meer

Re: [NTG-context] getbuffer now fails

2008-03-23 Thread Wolfgang Schuster
\thefile{#3}\let\@@[EMAIL PROTECTED] {.}% \@@exminput\thefile \endgroup} % reading the file better outside the doif [EMAIL PROTECTED] [EMAIL PROTECTED] Help is appreciated. Hans van der Meer

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
] \determinelistcharacteristics[names][settings] # \digits \disableinteractionmenu[position|name][references] # \disablemode # \doglobal # \dogotopar # \doif # \doifcommon # \doifcommonelse # \doifdefined # \doifdefinedelse # \doifelse # \doifelsenothing # \doifelsevalue # \doiffieldelse # \doifflagged # \doifinset

Re: [NTG-context] selectively turn off captions

2007-11-30 Thread Wolfgang Schuster
\emptyfloatcaptionfalse}% \doifinsetelse\v!none{#2} {\global\nofloatcaptiontrue} {\ConvertToConstant\doifelse{#4}\v!none {\global\nofloatcaptiontrue} {\global\nofloatcaptionfalse}}% \doif{\floatcaptionparameter\c!number}\v!none {\global\nofloatcaptiontrue

Re: [NTG-context] selectively turn off captions

2007-11-29 Thread Hans Hagen
\doifelse{#4}\v!none {\global\nofloatcaptiontrue} {\global\nofloatcaptionfalse}}% \doif{\floatcaptionparameter\c!number}\v!none {\global\nofloatcaptiontrue}% \ifemptyfloatcaption \ifnofloatnumber \global\nofloatcaptiontrue \fi \fi} \protect \starttext \placefigure

[NTG-context] defining and expanding in xml

2007-11-23 Thread Thomas A. Schmitz
: ! Argument of \pp!doifinstringelse has an extra }. inserted text \par to be read again } \doif #1#2-\edef \!!stringa {#1} \edef \!!stringb {#2}\ifx \!!stringa \!!str... \checkfigureusersettings ...ntedfigurepage \empty

Re: [NTG-context] currentheadnumber / doif.. problem

2007-10-18 Thread Peter Schorsch
ok, I found the solution. In the documentation (cont-eni.pdf) at page 172 following is written: For example: \currentheadnumber : 8.3 \headnumber[chapter] : 8 \headnumber[section] : 8.3 but that is partly wrong. There should be standing (change example from 8.3 to 8.3.2): For example:

Re: [NTG-context] currentheadnumber / doif.. problem

2007-10-15 Thread Peter Schorsch
Aditya wrote: Can you create a minimum example to play with? I attached the module t-pararef.tex and the example pararef-test.tex. The ref1 is still wrong. When I replace \currentheadnumber in \paragraphMark with the before defined \presentheadnumber  context is saying that a «Missing

Re: [NTG-context] currentheadnumber / doif.. problem

2007-09-25 Thread Peter Schorsch
hm.. it still executes always the else-part of the doifelse-function (Untested) \def\presentheadnumber% {\doifelse{\headnumber[section]}{0}% ^^ {\headnumber[chapter]}% {\headnumber[section]}%

Re: [NTG-context] currentheadnumber / doif.. problem

2007-09-25 Thread Aditya Mahajan
On Tue, 25 Sep 2007, Peter Schorsch wrote: hm.. it still executes always the else-part of the doifelse-function Can you create a minimum example to play with? Aditya ___ If your question is of interest to

Re: [NTG-context] currentheadnumber / doif.. problem

2007-09-12 Thread Duncan Hothersall
Hi Peter Date: Mon, 10 Sep 2007 01:21:26 +0200 From: Peter Schorsch [EMAIL PROTECTED] Subject: [NTG-context] currentheadnumber / doif.. problem To: ntg-context@ntg.nl Hi, I tried to get the full present heading-number. If I am using currentnumber I am getting back only the last part

Re: [NTG-context] currentheadnumber / doif.. problem

2007-09-12 Thread Aditya Mahajan
On Mon, 10 Sep 2007, Peter Schorsch wrote: Hi, I tried to get the full present heading-number. If I am using currentnumber the result is only the last part of the heading-number. So I tried do implement a function like this: (Untested) \def\presentheadnumber%

[NTG-context] currentheadnumber / doif.. problem

2007-09-11 Thread Peter Schorsch
Hi, I tried to get the full present heading-number. If I am using currentnumber the result is only the last part of the heading-number. So I tried do implement a function like this: \def\presentheadnumber% {\doifelse{\headnumber[section]}{}% {\headnumber[chapter]}%

[NTG-context] currentheadnumber / doif.. problem

2007-09-10 Thread Peter Schorsch
Hi, I tried to get the full present heading-number. If I am using currentnumber I am getting back only the last part of the heading-number. So I tried do implement a function like this: \def\presentheadnumber% {\doifelse{\headnumber[section]}{}% {\headnumber[chapter]}%

Re: [NTG-context] Buffers (gone) in MK IV (was: MK IV Lilypond)

2007-08-25 Thread David Wooten
\installprogram{\LP}% etc. But luaTeX now reports the following to console: system (LUATEX) : [line 32] \savebuffer [lilypond-\the \lily!figures ]\endLUATEX \ifeof 18 \installprogram {\LP }\doif \jobsuffix {pdf}{\installprogram {\PDF }}\else \executesystemcommand {\LP }\doif \jobsuffix {pdf

Re: [NTG-context] Buffers (gone) in MK IV (was: MK IV Lilypond)

2007-08-21 Thread Mojca Miklavec
\installprogram {\LP }\doif \jobsuffix {pdf}{\installprogram {\PDF }}\else \executesystemcommand {\LP }\doif \jobsuffix {pdf}{\executesystemcommand {\PDF }}\fi \doifelse \jobsuffix {pdf} {\edef \lily!img {\lily!filename .pdf}}{\edef \lily!img {\lily!filename .eps}}\ifvmode \getfiguredimensions [\lily!filename

Re: [NTG-context] TOC, listalternative d, ragged right, interaction

2007-07-18 Thread luigi scarso
!interaction}{##1} {\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}% \linklisttoelement{#2}{#5}{#6}{\box0}}% {\hbox{##2}}}% % \doif{\listparameter\c!interaction}\v!all % not supported %%{\setlistparameter\currentlist\c!interaction\v!sectionnumber}% {\setlistparameter

Re: [NTG-context] TOC, listalternative d, ragged right, interaction

2007-06-28 Thread luigi scarso
]% \tolerance1 % \def\makelistelement##1##2% {\hskip1sp%% temporary \doifelse{\listparameter\c!interaction}{##1} {\setbox0\hbox{\showcontrastlocation\??ia{#6}{##2}}% \linklisttoelement{#2}{#5}{#6}{\box0}}%{\copy0}}% {\hbox{##2}}}% % \doif{\listparameter\c!interaction}\v!all

Re: [NTG-context] How to make \framed ignore the width of the rule

2007-06-07 Thread Wolfgang Schuster
]% {\let\\\crlf\bold #2}\crlf} \def\stopprotocoloheader {\egroup} \def\protocolheaderfield#1#2% {\doif{\countervalue{v!protocolheaderlength}}{\c!protocolbits} {\resetcounter{v!protocolheaderlength}\crlf}% \removeunwantedspaces \dontleavehmode \protocolfieldheader[width=#1\c

Re: [NTG-context] How to make \framed ignore the width of the rule

2007-06-07 Thread David Arnold
]% \protocolfieldheader[frame=on,width=\dimexpr\c!protocolunitsize* \c!protocolbits\relax]% {\let\\\crlf\bold #2}\crlf} \def\stopprotocoloheader {\egroup} \def\protocolheaderfield#1#2% {\doif{\countervalue{v!protocolheaderlength}}{\c!protocolbits} {\resetcounter{v!protocolheaderlength}\crlf

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

2007-05-27 Thread Aditya Mahajan
file first, right? \setvariable[namespace][key=DefaultValue], right? So how do I test for a (Default)Value? Sorry, I'm just beginning TeX programming I don't understand how to do this. Elliot, You can use \doif{\getvalue{set}{var}}{value} for simple string comparisons. See http

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

2007-05-27 Thread Hans Hagen
them in the environment file first, right? \setvariable[namespace][key=DefaultValue], right? So how do I test for a (Default)Value? Sorry, I'm just beginning TeX programming I don't understand how to do this. Elliot, You can use \doif{\getvalue{set}{var}}{value} for simple string

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

2007-05-27 Thread Peter Rolf
}% probably not the fastest variant. If I remember it right, I had some problems with \doif comparison (catcodes?). Sorry, I'm just beginning TeX programming I don't understand how to do this. No problem. If it's not in the WIKI, this is the place to ask. Best, Peter Elliot

Re: [NTG-context] installprogram problem

2007-05-24 Thread Henning Hraban Ramm
-fonts \LPFN.tmp}% \doif\jobsuffix{pdf}{% \installprogram{texmfstart --ifchanged=\LPFN.eps pstopdf \LPFN.eps}% }% } Still the same: \writestatus writes the right filename (enumerated), but the latter is always called with no.1 Of course I first tried just using #1

Re: [NTG-context] installprogram problem (was: lilypond newbie)

2007-05-23 Thread Henning Hraban Ramm
} \ifeof18 \writestatus{DEBUG-w18}{\LP} \installprogram{\LP}% \doif\jobsuffix{pdf}{% \installprogram{\PDF}% }% \else ... So I get lots of messages like: DEBUG-w18 : texmfstart --ifchanged=prd_kanons

Re: [NTG-context] mirrored pages

2007-04-19 Thread Wolfgang Schuster
=\v!no, #2]% \dorecurse\@@ipn {\doif\@@ipmirrored\v!yes\domirrorbox \vbox to \textheight {\hsize\textwidth \scratchdimen\@@ipoffset \centeredbox {\doifelse\@@ipmarking\v!on\cuthbox\hbox {\ifdim\scratchdimen\zeropoint\relax

Re: [NTG-context] mirrored pages

2007-04-19 Thread Horacio Suarez
{mirrored} \def\docopypages[#1][#2]% {\bgroup \getfiguredimensions[#1]% \getparameters[\??ip] [\c!n=\noffigurepages, \c!marking=\v!off, \c!scale=\!!thousand, \c!offset=\!!zeropoint, \c!mirrored=\v!no, #2]% \dorecurse\@@ipn {\doif\@@ipmirrored\v!yes

<    1   2   3   >