Re: [NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
Index % todo: lucida  {%\startnotmode[*\v!frontpart]     \page[\v!right]     \setupbackgrounds[\v!paper][\c!background=\v!color]     \startmakeup[\v!standard]   \raggedleft       \doifsomething{\currentheadnumber} {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}}   \vfill  

[NTG-context] how access to \namedstructurevariable [next / previous]

2023-04-29 Thread Garulfo via ntg-context
, \c!numberstyle=\bfe] and \def\PlaatsHoofdstukIndex % todo: lucida {%\startnotmode[*\v!frontpart] \page[\v!right] \setupbackgrounds[\v!paper][\c!background=\v!color] \startmakeup[\v!standard] \raggedleft \doifsomething{\currentheadnumber} {\hfill\expanded

Re: [NTG-context] Calling in chapter number in list={}

2022-03-17 Thread jbf via ntg-context
But thanks anyway and also to Jean-Pierre (although I do understand sufficient German and could also have made headway in French if it came to that!). The \currentlistentry... options were what I needed. I was playing with wrong options (for this particular problem) like \currentheadnumber

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
efore \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chap

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
etermineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chapCover] \page[empty] \popbackground} \stopsetups \startsetups chapter:after \doifoddpageelse{} {\page[e

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
\startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][backgroun

Re: [NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Pablo Rodriguez
On 3/7/21 1:21 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 07.03.2021 um 10:49: >> Dear list, >> >> I have the following sample: >> >>\starttext >> \section{Section} >>\currentheadnumber\\ > > You ne

Re: [NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 07.03.2021 um 10:49: Dear list, I have the following sample: \starttext \section{Section} \currentheadnumber\\ You need \determineheadnumber[section] before you can use \currentheadnumber. \headnumbercontent\\ You can use

[NTG-context] bug in \headnumber[section] in LMTX?

2021-03-07 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \section{Section} \currentheadnumber\\ \headnumbercontent\\ \headnumber[section] \stoptext In LMTX, \headnumber[section] triggers an error message about missing number. BTW, \currentheadnumber outputs 0 in both MkIV

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-05 Thread Willi Egger
the the evaluation of the sectionnumber results always in “false”, >> having therefore always odd as a sectionending. > > You have two problem: > > 1. To get the current value for \currentheadnumber you have use > \determineheadnumber[section] before you use it but the examp

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-04 Thread Wolfgang Schuster
results always in “false”, having therefore always odd as a sectionending. You have two problem: 1. To get the current value for \currentheadnumber you have use \determineheadnumber[section] before you use it but the example below shows a better method. 2. What you do with \doifelse{...}{even} is

[NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-04 Thread Willi Egger
{\currentheadnumber} %{\headnumber[section][current]}{odd} {even} {\vfil {\bf End of even numbered section} \stopsection% } {\vfil {\bf End of odd numbered section

Re: [NTG-context] Omitting part number in chapter numbers

2019-02-20 Thread Wolfgang Schuster
mit part number and get only the chapter number displayed? In wiki there is something that is almost suitable, namely setting: numbercommand={\determineheadnumber[chapter]\currentheadnumber\gobbleoneargument}] But this does not work for TOC, returning just zeros (and seems like also an extra zer

[NTG-context] Omitting part number in chapter numbers

2019-02-19 Thread Simon Collier
layed? In wiki there is something that is almost suitable, namely setting: numbercommand={\determineheadnumber[chapter]\currentheadnumber\gobbleoneargument}] But this does not work for TOC, returning just zeros (and seems like also an extra zero is spilled on TOC, overall pretty hackish solution)

Re: [NTG-context] about makempy (metapost outlines)

2018-02-19 Thread Jeong Dal
\def\NumberCommand#1% {\expanded{\setMPtext{string}{\currentheadnumber}}% \hsmash {\framed [frame=off,offset=overlay,height=3cm,width=\hsize] {\useMPgraphic{number \setuphead [section] [distance=0pt, textcommand=\TextCommand, numbercommand=\NumberCommand] %\set

Re: [NTG-context] \currentheadnumber does not work

2016-07-11 Thread Fabrice Couvreur
; Fabrice > > 2016-07-09 12:45 GMT+02:00 Wolfgang Schuster > : > >> Fabrice Couvreur >> 9. Juli 2016 um 12:17 >> Hi Wolfgang, >> >> In the first example, so I do not need the command \currentheadnumber >> but just do : >> >> \setu

Re: [NTG-context] \currentheadnumber does not work

2016-07-10 Thread Fabrice Couvreur
Hi Wolfgang, Thank you for the code and still as clear explanations. Fabrice 2016-07-09 12:45 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 9. Juli 2016 um 12:17 > Hi Wolfgang, > > In the first example, so I do not need the command \currentheadnumber > but just d

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Wolfgang Schuster
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 9. Juli 2016 um 12:17 Hi Wolfgang, In the first example, so I do not need the command \currentheadnumber but just do: \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\Headed] ConTeXt passes the s

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Fabrice Couvreur
Hi Wolfgang, In the first example, so I do not need the command \currentheadnumber but just do : \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\Headed] But in this second example, using the command \determineheadnumber[chapter], the chapter number is

Re: [NTG-context] \currentheadnumber does not work

2016-07-09 Thread Wolfgang Schuster
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 9. Juli 2016 um 11:12 Hello, In this command, I have two problems: - \currentheadnumber does not work You need \determineheadnumber[chapter] before you can access the value with \currentheadnumber - the chapter number appe

[NTG-context] \currentheadnumber does not work

2016-07-09 Thread Fabrice Couvreur
Hello, In this command, I have two problems : - \currentheadnumber does not work - the chapter number appears in black thank you, Fabrice \setuppagenumbering[location=footer] \startuseMPgraphic{head} pickup pencircle scaled 1mm ; drawoptions(withcolor lightgray) ; fill unitsquare scaled

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
gt; > \unexpanded\def\processMPheadnumber#1% > {\setMPtext{chapter}{\bf#1} >\useMPgraphic{chapter}} > > \setuphead >[chapter] >[command=\HeadTitle, > numbercommand=\processMPheadnumber{\currentheadnumber}] > > \starttext > > \startchap

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
% {\setMPtext{chapter}{\bf#1} \useMPgraphic{chapter}} \setuphead [chapter] [command=\HeadTitle, numbercommand=\processMPheadnumber{\currentheadnumber}] \starttext \startchapter [title={Séries statistiques à deux variables}] \stopchapter \startchapter [title={Matrice

[NTG-context] Spelling out chapter numbers for novels.

2013-10-09 Thread john Culleton
\currentheadnumber\or One\or Two\or Three\or Four\or Five\or Six\or Seven\or Eight\or Nine\or Ten\or ... Ninety-eight\or Ninety-nine\else One hundred\fi} This file enables authors to rearrange chapters without worrying about renumbering the chapters since it depends on

Re: [NTG-context] setuphead broken?

2012-09-13 Thread John Devereux
>> \useexternalfigure[section-1][cow][width=5cm,height=1cm] >> \useexternalfigure[section-2][mill.png][width=5cm,height=1cm] >> >> \setuphead >> [section] >> [command=\MySectionCommand] >> \setuphead >> [subsection] >> [command=] >

Re: [NTG-context] setuphead broken?

2012-09-13 Thread Wolfgang Schuster
cm,height=1cm] > > \setuphead > [section] > [command=\MySectionCommand] > \setuphead > [subsection] > [command=] > > \def\MySectionCommand#1#2% > {\externalfigure[section-\currentheadnumber]} Use \define[2]\MySectionCommand{…} or \unexpanded\def\MySectio

[NTG-context] setuphead broken?

2012-09-13 Thread John Devereux
the figure \useexternalfigure[section-1][cow][width=5cm,height=1cm] \useexternalfigure[section-2][mill.png][width=5cm,height=1cm] \setuphead [section] [command=\MySectionCommand] \setuphead [subsection] [command=] \def\MySectionCommand#1#2% {\externalfigure[section-\currentheadnumber

Re: [NTG-context] section headings

2011-04-19 Thread Willi Egger
on from the wiki and the documentation. >> >> \def\PartNo#1{#1.\,Teil} >> \def\ChapterNo#1{§ \headnumber[part] >> \determineheadnumber[chapter]\currentheadnumber} >> \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber} >> >> \setuphead[part][num

Re: [NTG-context] section headings

2011-04-18 Thread Herbert Voss
[part] \determineheadnumber[chapter]\currentheadnumber} \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber} \setuphead[part][number=yes,after=\blank,numbercommand=\PartNo, style={\tfc\ss\bf},placehead=yes] \setuphead[chapter][before=\blank,after=\blank,conversion

[NTG-context] section headings

2011-04-09 Thread Herbert Voss
]\currentheadnumber} \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber} \setuphead[part][number=yes,after=\blank,numbercommand=\PartNo, style={\tfc\ss\bf},placehead=yes] \setuphead[chapter][before=\blank,after=\blank,conversion=Characters

Re: [NTG-context] \stretched in chapter titles in MKII

2011-02-21 Thread Tom
eadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand=\ChapterTextStretch, deepnumbercommand=\ChapterNumberStretch] \starttext \chapter{Test Chapter T

Re: [NTG-context] Trouble with customising section heads

2010-08-17 Thread Cedric Mauclair
t turns out, neither MkII nor MkIV processes the attached example >>> as expected: >>> MkII The table of contents is incomplete, even though the wiki says >>>      it shouldn't be; >> >> The solution seems to be to use deeptextcommand instead of textcommand. &

Re: [NTG-context] Trouble with customising section heads

2010-08-17 Thread Elias Oltmanns
in_Headings >> . > [...] >> As it turns out, neither MkII nor MkIV processes the attached example >> as expected: >> MkII The table of contents is incomplete, even though the wiki says >> it shouldn't be; > > The solution seems to be to use deeptextcomma

Re: [NTG-context] Trouble with customising section heads

2010-08-17 Thread Elias Oltmanns
ther MkII nor MkIV processes the attached example > as expected: > MkII The table of contents is incomplete, even though the wiki says > it shouldn't be; The solution seems to be to use deeptextcommand instead of textcommand. > MkIV \currentheadnumber seems to be 0 all the time.

Re: [NTG-context] Trouble with customising section heads

2010-08-15 Thread Elias Oltmanns
#Figures_in_Headings >> . For the purposes of testing, I've installed a current minimals >> distribution. As it turns out, neither MkII nor MkIV processes the >> attached example as expected: >> MkII The table of contents is incomplete, even though the wiki says it >>

Re: [NTG-context] Trouble with customising section heads

2010-08-10 Thread Elias Oltmanns
kII nor MkIV processes the >> attached example as expected: >> MkII The table of contents is incomplete, even though the wiki says it >> shouldn't be; >> MkIV \currentheadnumber seems to be 0 all the time. >> >> There is a possibility, of cours

Re: [NTG-context] Trouble with customising section heads

2010-08-10 Thread Wolfgang Schuster
ys it shouldn't be; MkIV \currentheadnumber seems to be 0 all the time. There is a possibility, of course, that something is wrong with my setup of ConTeXt. But I just did another % ./first-setup.sh --context=current Thanks in advance for any hint, Elias %% \setuphead[section][t

[NTG-context] Trouble with customising section heads

2010-08-10 Thread Elias Oltmanns
#Figures_in_Headings . For the purposes of testing, I've installed a current minimals distribution. As it turns out, neither MkII nor MkIV processes the attached example as expected: MkII The table of contents is incomplete, even though the wiki says it shouldn't be; MkIV \currentheadnumber s

Re: [NTG-context] \stretched in chapter titles in MKII

2010-07-06 Thread Tom
\define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand

Re: [NTG-context] \stretched in chapter titles in MKII

2010-07-06 Thread Tom
\define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr etch{Chapter \currentheadnumber}} \setuphead [chapter] [alternative=middle, textstyle=sansbold, numberstyle=sans, deeptextcommand

Re: [NTG-context] \stretched in chapter titles in MKII

2010-07-06 Thread Wolfgang Schuster
values, i.e {Chapter #1} and {#2}. Because of these errors I have hardcoded the values in the example that follows: \define[1]\ChapterTextStretch {\line{\stretched{#1}}} \define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStretch{Chapter \currentheadnumber}} \setuphead

[NTG-context] labels and new structure code

2009-06-04 Thread Thomas A. Schmitz
" and fails to compile in current beta: \setupcolors[state=start] \setuphead [section] [command={{\determineheadnumber[section]}\ifodd\currentheadnumber \resetSlideNumber\incrementSlideNumber \else\incrementSlideNumber \fi}, expansion=yes] \definelabel[SlideNumber][headstyle=normal,

Re: [NTG-context] subsection numbering

2009-05-27 Thread Amaël Broustet
Thanks for the tip ! Le mercredi 27 mai 2009 à 16:38 +0200, Hans Hagen a écrit : > Amaël Broustet wrote: > > Dear all, > > > > I got a problem with the numbering of subsections : > > > > they are numbered using the \currentheadnumber of the headi

Re: [NTG-context] subsection numbering

2009-05-27 Thread Hans Hagen
Amaël Broustet wrote: Dear all, I got a problem with the numbering of subsections : they are numbered using the \currentheadnumber of the heading containing the \subsection attached an example and the output. whow ... \char`\\{}currentheadnumber easier ... \type

[NTG-context] subsection numbering

2009-05-23 Thread Amaël Broustet
Dear all, I got a problem with the numbering of subsections : they are numbered using the \currentheadnumber of the heading containing the \subsection attached an example and the output. in the log, I get : structure : chapter @ level 2 : 0.1 -> Chapter structure : section @ le

Re: [NTG-context] New structure ...

2009-05-21 Thread Willi Egger
fixerror \doreporttextprefixerror \... \labeltexts ...eftlabeltext {#1}#2\rightlabeltext {#1} \doifundefinedelse #1->\ifcsname #1 \endcsname \...@ea \secondoftwoarguments \el... ... {\??ef \??ef XY\curren

Re: [NTG-context] New structure ...

2009-05-19 Thread Hans Hagen
luigi scarso wrote: On Tue, May 19, 2009 at 3:49 PM, Hans Hagen wrote: Alan Stone wrote: {\externalfigure[XY\currentheadnumber][width=0.5\textwidth]} \the\dimexpr.5\texidth\relax \the\dimexpr.5\texwidth\relax dimensions are directly passed to luatex so they need to be 'exp

Re: [NTG-context] New structure ...

2009-05-19 Thread Alan Stone
{#1} > \doifundefinedelse #1->\ifcsname #1 > \endcsname \...@ea \secondoftwoarguments > \el... > ... {\??ef \??ef XY\currentheadnumber } > {\useexternalfigure > [\s!

Re: [NTG-context] New structure ...

2009-05-19 Thread Willi Egger
ame \...@ea \secondoftwoarguments \el... ... {\??ef \??ef XY\currentheadnumber } {\useexternalfigure [\s!d... ... l.14 ...er][width=\the\dimexpr.5\textwidth\relax]} \starttext \chapter{One} \placefigure [here] [] {A figure} {\extern

Re: [NTG-context] New structure ...

2009-05-19 Thread luigi scarso
On Tue, May 19, 2009 at 3:49 PM, Hans Hagen wrote: > Alan Stone wrote: > >> {\externalfigure[XY\currentheadnumber][width=0.5\textwidth]} >> > > > \the\dimexpr.5\texidth\relax > \the\dimexpr.5\texwidth\relax what'

Re: [NTG-context] New structure ...

2009-05-19 Thread Hans Hagen
Alan Stone wrote: {\externalfigure[XY\currentheadnumber][width=0.5\textwidth]} \the\dimexpr.5\texidth\relax - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] New structure ...

2009-05-19 Thread luigi scarso
ERRATA .14 ...Y\currentheadnumber][width=0.5/textwidth]} CORRIGE .14 ...Y\currentheadnumber][width=0.5\textwidth]} ie not '/textwidth' but \textwidth On Tue, May 19, 2009 at 3:13 PM, Willi Egger wrote: > Hi Alan, > > thanks for your reply, humble but I can not see the

Re: [NTG-context] New structure ...

2009-05-19 Thread Willi Egger
Hi Alan, thanks for your reply, humble but I can not see the difference in your replied line and the line stated in the example file. Sorry Willli On May 19, 2009, at 11:58 AM, Alan Stone wrote: {\externalfigure[XY\currentheadnumber][width=0.5\textwidth]} {\externalfigure[XY

Re: [NTG-context] New structure ...

2009-05-19 Thread Alan Stone
{\externalfigure[XY\currentheadnumber][width=0.5\textwidth]} ^ Alan On Tue, May 19, 2009 at 11:41 AM, Willi Egger wrote: > Hi all, > > I should call the current head number in a figure. > > I am getting the following error:

[NTG-context] New structure ...

2009-05-19 Thread Willi Egger
ror \doreporttextprefixerror \... \labeltexts ...eftlabeltext {#1}#2\rightlabeltext {#1} \doifundefinedelse #1->\ifcsname #1 \endcsname \...@ea \secondoftwoarguments \el... ... {\??ef \??ef XY\currenthead

[NTG-context] titles question

2009-03-11 Thread Alan Stone
With \setuphead[section][number=yes/no] how do you test whether what's being typeset is in a section or not ? Using \determineheadnumber[section] \currentheadnumber is only relevant when number=yes. -- Alan _

[NTG-context] Customizing chapter heads

2009-01-24 Thread Alfredo Catalina
} \stoptext An easy workaround for the chapter number replaces the argument #1 by \currentheadnumber \def\HeadTitle#1#2% {\hbox to \hsize \bgroup {\hfill % \setupframed[height=7cm,offset=.5em,frame=off] \framed[width=9cm,align=left] { {\tfc

Re: [NTG-context] Kerning

2008-11-13 Thread Wolfgang Schuster
ead [chapter][ >command=\Myheader, >textcommand=\bfd, > ] > \setupheadtext[chapter=CHAPTER] % used by \headtext > \starttext > \chapter{Title for Chap 1} > \processfile{tufte} > \stoptext \def\Myheader#1#2% {\framed [width=0.60\textwidth, frame=off,

Re: [NTG-context] Inleft text not verticaly aligned

2008-10-18 Thread Peter Rolf
Eric DÉTREZ schrieb: > Hello > > I tried to get some sections without any title and with numbering in > the margin. > Here is an example of a try I made : > > %%% > \def\CommandQS#1#2{\inleft{\bf \currentheadnumber}} > \setuphea

[NTG-context] Inleft text not verticaly aligned

2008-10-18 Thread Eric DÉTREZ
Hello I tried to get some sections without any title and with numbering in the margin. Here is an example of a try I made : %%% \def\CommandQS#1#2{\inleft{\bf \currentheadnumber}} \setuphead[section][alternative=text, command=\CommandQS

[NTG-context] different layout in the table of content

2008-08-22 Thread Eric DÉTREZ
{\expandafter\Numeros\currentheadnumber\ {#2}} \setuphead[subsection][command=\CNumero] * Unfortunately this doesn't work in the table of contents. How can we change the look of the numeration in th

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
text}{text} \copyfield[name][names] \correctwhitespace{text} # \countXMLchildren \coupledocument[name][file][name] \coupledregister[text]{text} \couplemarking[name][name] \couplepage[names][options] \couplepaper[name] \coupleregister[name] \crlf \currentdate[syntax] \currentheadnumber \date[date][

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 «Miss

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 other

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[se

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% >{\doifelse{\hea

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 >

[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 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] value-copy - e.g. in \textreference

2007-08-31 Thread Peter Schorsch
Wolfgang Schuster wrote: > > \def\MyMark[#1]% > {\expanded{\textreference[#1]{Para. \currentheadnumber / > {\getnumber[number]}}} > Thanks, it works with the expanded... ___ If your question is

Re: [NTG-context] value-copy - e.g. in \textreference

2007-08-30 Thread Wolfgang Schuster
; > \definenumber[number] > > \setuphead[chapter,section,subsection,subsubsection > [after={\resetnumber[number]}] > > \def\MyMark[#1] > {\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}} \def\MyMark[#1]% {\expanded{\textreference[#1]{Para. \currentheadn

[NTG-context] value-copy - e.g. in \textreference

2007-08-30 Thread Peter Schorsch
] {\textreference[#1]{Para. \currentheadnumber / \getnumber[number]}} \definestartstop[MyPara] [before= {\blank[medium]\incrementnumber[number]% \inothermargin{\getnumber[number]~}}, after={\blank[medium]}] \starttext \section \startMyPara blabla blabla blabla blabla

[NTG-context] broken section number

2007-04-12 Thread Wolfgang Werners-Lucchini
Hallo! I need help with referencing a subsubsection-number and the following setup: --- \setuphead[chapter][number=no] \setuphead[subsection][resetnumber=no] \setuphead[subsubsection][ numbercommand={\determineheadnumber[section]\currentheadnumber

Re: [NTG-context] using headnumber

2006-04-20 Thread Hans Hagen
Thomas A. Schmitz wrote: > Hi Peter, > > thanks for the help! The additional { must have been a fluke with > copy/paste; wasn't in my file. By sheer stubbornness, I tried until I > found something that works: > command={{\determineheadnumber[section]}\

Re: [NTG-context] using headnumber

2006-04-20 Thread Sanjoy Mahajan
> So after \determineheadnumber[something], \currentheadnumber appears > to have that value and doesn't take an argument. Thanks, that information answers the question I just sent to the list. -Sanjoy `Never underestimate the evil of which men of power are capable.' --

Re: [NTG-context] using headnumber

2006-04-20 Thread Sanjoy Mahajan
ce this setup: \definehead[exercise][subsection] \def\choptwo#1.#2.{} \def\processtwo#1{\expandafter\choptwo#1\relax} \setuphead[exercise][style=italic, numbercommand={\processtwo{\currentheadnumber} \gobbleoneargument}] If there's an easier way using \determineheadnumber, I

Re: [NTG-context] using headnumber

2006-04-20 Thread Thomas A. Schmitz
Hi Peter, thanks for the help! The additional { must have been a fluke with copy/paste; wasn't in my file. By sheer stubbornness, I tried until I found something that works: command={{\determineheadnumber[section]}\ifodd\currentheadnumber \resetSlideNumber\incrementSlideNumber

Re: [NTG-context] using headnumber

2006-04-20 Thread Peter Rolf
{\determineheadnumber[section]} one opening brace too much If you problem remains, try to add a \expandafter in front of \ifodd. Sometimes it is also helpful to enclose the number expression by \numexpr ... \relax (for conversion). Greets, Peter > \ifodd{\currentheadn

[NTG-context] using headnumber

2006-04-20 Thread Thomas A. Schmitz
Hi, I have a counter which I want to be incremented after every \section command and reset after every odd \section (don't ask why...). So I tried this approach: \setuphead[section] [command={{{\determineheadnumber[section]} \ifodd{\currentheadnumber[section]}\resetSlideN

Re: [NTG-context] Suppreesin section header

2005-05-30 Thread John R. Culleton
r] [textcommand=\MyChapterTextCommand, numbercommand=\MyChapterNumberCommand] \def\MyChapterNumberCommand#1{} % hide chapter number \def\MyChapterTextCommand#1% {\externalfigure[(some graphic reference)]} ----- The graphic reference was chapter-\currentheadnumber

Re: [NTG-context] replace chapter text by an image, possible ?

2005-05-24 Thread VnPenguin
NumberCommand#1{} % hide chapter number > > \def\MyChapterTextCommand#1% > {\externalfigure[chapter-\currentheadnumber][height=5cm]} Wow, it works :-) Thank you a lot, Regards -- http://vnoss.org - Vietnamese Open Source Software Community ___ n

Re: [NTG-context] replace chapter text by an image, possible ?

2005-05-24 Thread Mojca Miklavec
TOC. Thank you in advance, \useexternalfigure[chapter-1][cow.pdf] \useexternalfigure[chapter-2][hacker.jpg] \setuphead [chapter] [command=\MyChapterCommand] \def\MyChapterCommand#1#2% {\externalfigure[chapter-\currentheadnumber][height=5cm]} Your code works fine. However when I try

Re: [NTG-context] replace chapter text by an image, possible ?

2005-05-20 Thread VnPenguin
[chapter] >[command=\MyChapterCommand] > > \def\MyChapterCommand#1#2% >{\externalfigure[chapter-\currentheadnumber][height=5cm]} > > \starttext > > \chapter{One} > \chapter{Two} > > \stoptext > > this solution looks wiki-able to me, so ... &

Re: [NTG-context] replace chapter text by an image, possible ?

2005-05-19 Thread Hans Hagen
igure[chapter-1][cow.pdf] \useexternalfigure[chapter-2][hacker.jpg] \setuphead [chapter] [command=\MyChapterCommand] \def\MyChapterCommand#1#2% {\externalfigure[chapter-\currentheadnumber][height=5cm]} \starttext \chapter{One} \chapter{Two} \stoptext this solution looks wiki-able to me, so ...

[NTG-context] Moving chapternumber in the margin ...

2004-04-13 Thread Willi Egger
down. Replacing the \realpageno with \currentheadnumber the chapternumber is not moving or only after a couple of pages ... Is there someone who could hint me how to approach this? Please refer to the attached sample file "bleedingchapternumber.tex" Thanks and regards Willi % pagenumb