\let
\doprocessGNUPLOTfile ...OTnumber \zerocount \let
\normalstarttikzpicture =\...
argument ...NUPLOTfile [sin][\@@GNUPLOTresult ]}
\doif {\@@GNUPLOTterminal ...
\firstofoneargument #1-#1
]}
\doif {\@@GNUPLOTterminal
...
\firstofoneargument #1-#1
argument ...}\writeandprocessGNUPLOTscript {sin}
\doifelse
{\@@GNUPLOTtermi...
\firstoftwoarguments #1#2-#1
...
* ./test.tex \stoptext
?
Oh, indeed. It seems that a recent
=\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
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
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
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
[#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
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
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
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
-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
, 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
, 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
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
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
\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
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
\!!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
}{}{\ \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
}, 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
},
{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
\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
} 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
}
\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
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
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
}
{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
= 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
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
{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
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
' 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
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
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
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
/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
, ...), 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
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
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
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
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
! 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
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
%{\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
}\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
?}
{}
\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
}%
\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
}
\@@kjtabletitle -Use of \type {\setuptables }
.
\doif #1#2-\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa
\!!str...
\dostructurecountercomponent ...\c!title }\v!none
}
.
\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
}\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
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
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
:
\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
=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
:
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
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
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
=\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
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
{\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
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
}}
\par
\doif #1#2-\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa
\!!str...
\dododescriptioncomponent ...er \c!title }\v!none
{\global
\nodescriptioncap
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
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
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}}
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
=\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
, 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
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
% ! !
\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
\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
\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
%\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
\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
\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
]
\determinelistcharacteristics[names][settings]
# \digits
\disableinteractionmenu[position|name][references]
# \disablemode
# \doglobal
# \dogotopar
# \doif
# \doifcommon
# \doifcommonelse
# \doifdefined
# \doifdefinedelse
# \doifelse
# \doifelsenothing
# \doifelsevalue
# \doiffieldelse
# \doifflagged
# \doifinset
\emptyfloatcaptionfalse}%
\doifinsetelse\v!none{#2}
{\global\nofloatcaptiontrue}
{\ConvertToConstant\doifelse{#4}\v!none
{\global\nofloatcaptiontrue}
{\global\nofloatcaptionfalse}}%
\doif{\floatcaptionparameter\c!number}\v!none
{\global\nofloatcaptiontrue
\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
:
! 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
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:
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
hm.. it still executes always the else-part of the doifelse-function
(Untested)
\def\presentheadnumber%
{\doifelse{\headnumber[section]}{0}%
^^
{\headnumber[chapter]}%
{\headnumber[section]}%
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
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
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%
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]}%
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]}%
\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
\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
!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
]%
\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
]%
{\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
]%
\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
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
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
}%
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
-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
}
\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
=\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
{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
101 - 200 of 225 matches
Mail list logo