=\outermarginwidth]
\setupmargindata [SidenoteContent][stack=yes,style=\it]
\def\sidenotemark{\rawcountervalue[SidenoteMarkNumber]}
\def\convertsidenotemark#1{\high{\convertnumber{#1}{\sidenotemark}}}
\def\sidenote{\dosingleempty\dosidenote}
\def\dosidenote[#1]#2{%
\getparameters[SMsidenote
have \reference[\lastpagenumber]{} at the end of the file. But this
gives me ??–viii (the viii is correct and interactive) for the FMTitle.
Sadly the entries for all my other Titles (SourceTitle, StudyTitle...) is
??–viii.
(Each title is a modified chapter.)
Curiously, \at[\Reference]–\convertnumber
\\ier"
else
context(s)
end
end
}
\stopluacode
\def\ier{\highordinalstr{er}}
\mainlanguage[fr]
\defineconversion[frd][\FRdate]
\setuplanguage[fr][date={day:frd,\ ,month,\ ,year}]
\starttext
Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK
end
end
}
\stopluacode
\def\ier{\highordinalstr{er}}
\mainlanguage[fr]
\defineconversion[frd][\FRdate]
\setuplanguage[fr][date={day:frd,\ ,month,\ ,year}]
\starttext
Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\
Dates: \date[d=1], \date[d=2] (not OK)
\stoptext
--8<
On 12/6/2022 10:04 PM, Rik Kabel via ntg-context wrote:
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote:
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote:
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
maybe like
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
maybe like this:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
(\X
On 2022-01-19 12:39, Rik Kabel via ntg-context wrote:
This is still a problem with the current standalone.
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
artchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\ifnum\headnumber[chapter]=5
{\bfd five}
\fi
\blank
\input tufte
\blank
\input ward
\blank
\ifnum\recurselevel=5
\page
\input zapf
uphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\ifnum\headnumber[chapter]=5
{\
{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\ifnum\headnumber[chapter]=5
{\bfd five}
\fi
\blank
\input tufte
\blank
\input ward
\blank
\ifnum\recurselevel=5
\page
\input zapf
stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\blank
\i
ter[title={Chapter \convertnumber{word}{\recurselevel}}]
\input knuth
\blank
\input tufte
\blank
\input ward
\blank
\ifnum\recurselevel=5
\page
\input zapf
\input zapf
\fi
\stopchapter
}
\stoptext
%%% EOF
s chapter:after
\doifoddpageelse{}
{\page[empty]}
\stopsetups
\setuphead
[chapter]
[page=yes,
before=\directsetup{chapter:before},
aftersection=\directsetup{chapter:after}]
\starttext
\dorecurse{10}{
\startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
This is still a problem with the current standalone.
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
%% The above example fails to compile when there is no tuc
[arfootnote]
[before=\setlatin,
alternative=text,
]
\setupnote
[arfootnote]
[headstyle={\switchtobodyfont[amiri]},
textcommand=\footnotenotenumbercommand,
alternative=text,
]
\protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{arabicdecimals}{#1
).
\setupnote [arfootnote] [
headstyle={\switchtobodyfont[kitab]},
textcommand=\footnotenotenumbercommand,
alternative=text,
]
\define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}}
Since the update, for the 123rd footnote, I now get `(123arabic)`
instead of `(١٢٣
]},
textcommand=\footnotenotenumbercommand,
alternative=text,
]
\define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}}
Since the update, for the 123rd footnote, I now get `(123arabic)` instead
of `(١٢٣)`.
Elsewhere, I do get the expected output (i.e. `١٢٣٢`) when calling
] [page=no]
\startdocument [title={Dummy title}]
\dorecurse{5}
{\startchapter[title={Chapter \convertnumber{word}{#1}}]
\samplefile{lorem}
\stopchapter}
\stopdocument
Wolfgang
___
If your question
ble glue units , pointing to the second \convertnumber line.
\definelabel[XX]%[text=,before=,after=,alternative=inright]
\startTEXpage[offset=2em]
abc\XX[xx]\par
\ref[number][xx] ·
\convertnumber{r}{1} ·
\convertnumber{R}{\ref[number][xx]}
\stopTEXpage
In this case I
ond \convertnumber line.
\definelabel[XX]%[text=,before=,after=,alternative=inright]
\startTEXpage[offset=2em]
abc\XX[xx]\par
\ref[number][xx] ·
\convertnumber{r}{1} ·
\convertnumber{R}{\ref[number][xx]}
\stopTEXpage
In this case I am trying to display with roman numer
,
The following fails with ConTeXt ver: 2021.10.24 21:45 MKIV but works
with the companion LMTX. The error message is:tex error > tex
error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible
glue units , pointing to the second \convertnumber line.
\definelabel[XX]%[text=,bef
Hello list,
The following fails with ConTeXt ver: 2021.10.24 21:45 MKIV but works
with the companion LMTX. The error message is:tex error > tex
error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue
units , pointing to the second \convertnumber line.
\definela
,2mm) withpen pensquare scaled 1.5mm ;
>draw (0,0)--(TextWidth,0) withpen pensquare scaled 1.0mm ;
>clip currentpicture to unitsquare yscaled 1cm xscaled TextWidth
> \stopMPcode
> \stopsetups
>
> \define[2]\placePartTitle{\midaligned{#2}}
> %% The above line is w
MPcode
\stopsetups
\define[2]\placePartTitle{\midaligned{#2}}
%% The above line is what I use. You want Roman numerals so maybe adapt it to:
%% \define[2]\placePartTitle{\midaligned{\convertnumber[Romannumerals][#1] #2}}
\definehead [Part] [part]
\setuphead[Part]
[ page=right,
placehe
pagenumbering
> [alternative=doublesided]
>
> \showframe
>
> \starttext
> \dorecurse{10}{\expanded{\chapter{Chapter
> \convertnumber{word}{\recurselevel
> \stoptext
this looks interesting, but it's not quite what I want.
I think I would like to have a different solutio
this?
\setuphead
[chapter]
[page=yes,
alternative=inmargin,
location=outer,
align=outer]
\setuppagenumbering
[alternative=doublesided]
\showframe
\starttext
\dorecurse{10}{\expanded{\chapter{Chapter
\convertnumber{word}{\recurselevel
\stoptext
Wolfgang
rgb=no,conversion=no]
%\setupcolors[state=stop,conversion=no]
\setcolormodel[none]
\starttext
\dorecurse{20}{\convertnumber{word}{#1} }%
\color[red]{not a number}
\dorecurse{20}{\convertnumber{word}{#1} }
\stoptext
Wolfg
gt;
> > MWE where I expect the word "ett" instead of "1":
> > \mainlanguage[sv]
> > \starttext
> > \convertnumber{words}{1}
> > \stoptext
> You have to remake the format:
>
> context --make
>
> (I'll check the code and add it to the distribut
d
point me in the right direction. There must be some step that I'm
missing.
Thank you.
MWE where I expect the word "ett" instead of "1":
\mainlanguage[sv]
\starttext
\convertnumber{words}{1}
\stoptext
You have to remake the format:
context --make
(I'll check the code and add it to
d
point me in the right direction. There must be some step that I'm
missing.
Thank you.
MWE where I expect the word "ett" instead of "1":
\mainlanguage[sv]
\starttext
\convertnumber{words}{1}
\stoptext
ConTeXt doesn't use the source files itself when you produce a document
but use
p that I'm
missing.
Thank you.
MWE where I expect the word "ett" instead of "1":
\mainlanguage[sv]
\starttext
\convertnumber{words}{1}
\stoptext
attachment_core-con.lua
Description: Binary data
__
>
> \definefontsynonym
>[AnotherFontMain]
>[file:texgyrepagellaregular]
> [fallbacks=AnotherFontFallback]
>
> \definefont [AnotherFont] [AnotherFontMain*default]
>
> \starttext
>
> \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par
> \dorecurse{
]
\definefont [AnotherFont] [AnotherFontMain*default]
\starttext
\dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par
\dorecurse{26}{\convertnumber{a}{\recurselevel}\space}
\AnotherFont
\dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par
\dorecurse{26}{\convertnumber{a}{\recurselevel
thought I could do it with
\setuphead
[chapter]
[deepnumbercommand=\convertnumber{words}]
but this throws an error. How do I achieve this? I want Chapter One, not
Chapter 1.1
Issue 3 might already be solved once I resolve Issue 2!
But given that I have parts, the chapters at the moment
that’s to mimic old
> typesetting (very specific case for sure :-).
>
> Ie 118 -> cxiij
>
> Is there a way to do this with convertnumber anyhow ?
>
>
>
> *De : *Wolfgang Schuster
> *Envoyé le :*mercredi 25 novembre 2020 20:11
> *À : *mailing list f
Yes, I replace last ‘i’ with a ‘j’ in roman number, that’s to mimic old typesetting (very specific case for sure :-).Ie 118 -> cxiijIs there a way to do this with convertnumber anyhow ? De : Wolfgang SchusterEnvoyé le :mercredi 25 novembre 2020 20:11À : mailing list for ConTeXt user
Joseph schrieb am 25.11.2020 um 19:51:
Dear list,
Following MWE outputs only ‘m’ characters (with latest upload).
Is there a reason why you don't use the conversion mechanism?
\starttext
\convertnumber{r}{7}
\cldcontext{converters.convert("r",7)}
\stoptext
Hi, everybody. I expect you to be safe.
I found the following issues.
*First. *The following gives wrong results for Spanish numbers
\mainlanguage[es]
\starttext
\convertnumber{words}{100}
%Prints "ciento" instead of "cien"
\convertnumber{words}{200}
%Prints "do
\convertnumber{word}{#1}}
\dorecurse{5}
{\section{Section \convertnumber{word}{##1}}
\dorecurse{\numexpr#1+##1\relax}{\samplefile{lorem
\stoptext
Wolfgang
___
If your question is of interest to others
k for this project I'm working on, at least.
>
> %%% Start MWE
>
> \setuplayout[
> topspace=0.722in,
> header=0.311in,
> footer=0.622in,
> width=4.211in,
> height=9.622in,
> backspace=1.311in,
> rightmargin=1.8in,
> margin
]
\definecounter[marginales][way=bytext,prefix=no]
\def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}}
\def\marginal{\dosingleempty\doMarginal}
\def\doMarginal[#1]#2{%
\incrementnumber[marginales]
\iffirstargument
\high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2}
\else
:53 -0500
> Mohammad Hossein Bateni wrote:
>
> > Hi,
> >
> > I can't understand why the following code does not work. Could someone
> > help me out here?
> >
> > \starttext
> > \startMPpage
> > draw textext("\convertnumber{r}{12}");
&
On Sun, 3 Mar 2019 12:52:53 -0500
Mohammad Hossein Bateni wrote:
> Hi,
>
> I can't understand why the following code does not work. Could someone
> help me out here?
>
> \starttext
> \startMPpage
> draw textext("\convertnumber{r}{12}");
> dr
Hi,
I can't understand why the following code does not work. Could someone
help me out here?
\starttext
\startMPpage
draw textext("\convertnumber{r}{12}");
draw textext("\convertnumber{r}{" & "12" & "}");
\stopMPpage
\stoptext
The first dra
,alternative=A]
On 26 Aug 2018, at 17:43, Wolfgang Schuster
<mailto:wolfgang.schuster.li...@gmail.com>> wrote:
The real question is why do you get an index without two columns.
\starttext
\dorecurse{26}{\convertnumber{a}{#1}\expanded{\index{\convertnumber{a}{#1
\placeregister[in
The real question is why do you get an index without two columns.
\starttext
\dorecurse{26}{\convertnumber{a}{#1}\expanded{\index{\convertnumber{a}{#1
\placeregister[index]%[n=3]
\stoptext
Hans van der Meer schrieb am 26.08.18 um 17:37:
How do I produce an index with more than one
Pablo Rodriguez <mailto:oi...@gmx.es>
10. April 2016 um 00:00
Dear list,
I have the following document:
\mainlanguage[es]
\starttext
\startTEXpage[offset=1em]
\dorecurse{27}%
{\def\abcd{\convertnumber{a}{\recurselevel}}%
\dorecurse{27}%
{\abcd\convertnumber{a}{\recurselevel} }\par}
\stopT
On Sun, 10 Apr 2016, Pablo Rodriguez wrote:
Dear list,
I have the following document:
\mainlanguage[es]
\starttext
\startTEXpage[offset=1em]
\dorecurse{27}%
{\def\abcd{\convertnumber{a}{\recurselevel}}%
\dorecurse{27}%
{\abcd\convertnumber
Dear list,
I have the following document:
\mainlanguage[es]
\starttext
\startTEXpage[offset=1em]
\dorecurse{27}%
{\def\abcd{\convertnumber{a}{\recurselevel}}%
\dorecurse{27}%
{\abcd\convertnumber{a}{\recurselevel} }\par}
\stopTEXpage
Try this:
\setupheadertexts[{\convertnumber{Romannumerals}{\namedheadnumber{chapter}}\quad\getmarking[chapter]}]
Thanks Wolfgang!
___
If your question is of interest to others as well, please add an entry
in the text (not in the header).
For the moment I can achieve only the chapter numbering for the text but
not for the header:
\define[1]{\myconversion}{\ifcase #1\relax \or First\else
\convertnumber{Romannumerals}{#1}\fi}
\defineconversion[myconversion][\myconversion]
\setuphead[chapter][conversion
\relax
% 0
\or
First% 1
\else
\convertnumber{Romannumerals}{#1}%
\fi}
\defineconversion[Weirdnumber][\Weirdnumber]
\defineconversionset[Weirdchapter][number,Weirdnumber][number]
\setuplist[chapter][width=3em,numberconversionset=Weirdchapter]
\starttext
\completecontent
Has to be \defineheadalternative:
\defineheadalternative[mysection][renderingsetup=mysection]
\startsetups[mysection]
\vbox\bgroup
\headsetupspacing
\strut\headnumbercontent\par
\begstrut\headtextcontent\endstrut
\egroup
\stopsetups
\setuplabeltext[en][section={, Section}]
Hi,
just another newbie question
\setuphead[section]
[command=\MyCommand]
\define[2]\MyCommand%
{\convertnumber{I}{#1} --- #2}
\convertnumber does not work on command parameter. What am I doing
wrong? I know that I can use /conversion/ key in setuphead, but I need
slightly more
Am 11.06.2013 um 14:22 schrieb Jan Pohanka xhpoha...@gmail.com:
Hi,
just another newbie question
\setuphead[section]
[command=\MyCommand]
\define[2]\MyCommand%
{\convertnumber{I}{#1} --- #2}
\convertnumber does not work on command parameter. What am I doing wrong? I
know
\convertnumber does not work on command parameter. What am I doing
wrong? I know that I can use /conversion/ key in setuphead, but I
need slightly more complicated command.
Use \setuphead[section][conversion=I], you can't use \convertnumber
because the first argument is the formatted (styles
Am 11.06.2013 um 14:36 schrieb Jan Pohanka xhpoha...@gmail.com:
\convertnumber does not work on command parameter. What am I doing wrong? I
know that I can use conversion key in setuphead, but I need slightly more
complicated command.
Use \setuphead[section][conversion=I], you can’t
\definesectionalternative[mysection][renderingsetup=mysection]
\startsetups[mysection]
\vbox\bgroup
\headsetupspacing
\strut\headnumbercontent\par
\begstrut\headtextcontent\endstrut
\egroup
\stopsetups
\setuplabeltext[en][section={}{Section]
Am 11.06.2013 um 15:53 schrieb Jan Pohanka xhpoha...@gmail.com:
\definesectionalternative[mysection][renderingsetup=mysection]
\startsetups[mysection]
\vbox\bgroup
\headsetupspacing
\strut\headnumbercontent\par
\begstrut\headtextcontent\endstrut
\egroup
\stopsetups
]\ChapterConversion
{\convertnumber{Numbers}{#1}.0}
\defineconversion[ChapterConversion][\ChapterConversion]
\setuphead[chapter][conversion=ChapterConversion]
\starttext
\completecontent
\chapter{First Chapter}
\section{First Section}
\stoptext
Wolfgang
Another alternative is to pick the color from a list using
\convertnumber{colors}{userpage}, similar to the solution at
http://tex.stackexchange.com/a/54062/323
Aditya
___
If your question is of interest to others
set the titlepage yellow, page1 gray and
page2 darkyellow. How can I achieve this? regrads, Tim
See: http://thread.gmane.org/gmane.comp.tex.context/75726/focus=75743
Another alternative is to pick the color from a list using
\convertnumber{colors}{userpage}, similar to the solution at
http
[footnote][numberconversion=dagger,alternative=text]
Also I could find no explanations for what a set is, as in conversion=set 1
or 2 or 3 etc. What is set 1 or 2 or 3?
A set is a list with symbols:
\starttext
\dorecurse {8}{\convertnumber{set 0}{\recurselevel}\quad}\par
\dorecurse {9
* looking for a place on the wiki were conversions are documented, I
found http://wiki.contextgarden.net/Command/convertnumber. Seems fine.
(Conversion and Conversions redirects there now.)
* words and Words are now documented on that page, too.
Hans: while I was there, I found a bug in the month
://wiki.contextgarden.net/Command/convertnumber
http://wiki.contextgarden.net/Command/defineconversion
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax
-in number conversion?
- If so, what are other built-in [number] conversion sets?
Predefined are “set 0” till “set 3”.
\starttext
\dorecurse {8}{\convertnumber{set 0}{#1}\quad}\par
\dorecurse {9}{\convertnumber{set 1}{#1}\quad}\par
\dorecurse{12}{\convertnumber{set 2}{#1}\quad}\par
\dorecurse{15
[row][backgroundcolor={\convertnumber{triadcolors}{\getvalue{m_tabl_ntb_positive_row}}}]
\stopsetups
If I need rules, I guess I can explicitly check for the value of \m_tabl_ntb_postive_pow
inside an overlay.
Thanks
},\m{ζ},
\m{η},\m{θ},\m{ι},\m{κ},\m{λ},\m{μ},
\m{ν},\m{ξ},\m{ο},\m{π},\m{ρ},\m{σ},
\m{τ},\m{υ},\m{φ},\m{χ},\m{ψ},\m{ω}]
%\setupbodyfont[lucidaot]
\starttext
\starttabulate
\NC greek \EQ \dorecurse{24}{\convertnumber{greek}{\recurselevel} }
\NC\NR
\NC mathgreek \EQ \dorecurse{24
\setupbodyfont [computer-modern-unicode]
\csname #1reeknumerals\endcsname{#2}%
\egroup%
}
Use \switchtobodyfont for local font switches.
\def\cmu_numerals#1#2%
{\bgroup
\switchtobodyfont[computer-modern-unicode]%
\convertnumber{#1}{#2}%
\egroup}
Wolfgang
\convertnumber but which numbers are wrong when you use your own
command?
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/mailman
Hi,
replying to my self:
I was not aware of this macro \convert{new_form}{number_to_be_converted}
So in the meantime the commands which give the correct result become:
\unexpanded\def\Mychaptercommand#1#2#3{\blank
CHAPTER~\convertnumber{R}{#1}.\blank{#2}.\hskip0.25\bodyfontsize}
\unexpanded
\@@cvordinal -\enordinaldaynumber
\convertnumber ... 2\else 3\fi \fi \endcsname {#1}
{\number #2}
l.7 }
\doconvertedstructurecounter ...!criterium , } )}
\endgroup
to be read again
Dear list,
this
\setuppagenumbering[conversion=romannumerals,left={--~},right={~--}]
%
taken from contextref.pdf does nothing in ConTeXt ver: 2011.09.12 22:49
MKIV, except adding the '–' left and right. The number is still Arabic.
However this
\convertnumber{r}{4}
works
Dear list,
this
\setuppagenumbering[conversion=romannumerals,left={--~},right={~--}] % taken
from contextref.pdf
does nothing in ConTeXt ver: 2011.09.12 22:49 MKIV, except adding the '–' left
and right. The number is still Arabic.
However this
\convertnumber{r}{4}
works as expected
this
\convertnumber{r}{4}
works as expected.
Is this fixed in a later beta?
There is nothing to fix, the while numbering mechanism has changed in MkIV and
you have to write now
\setupuserpagenumber[numberconversion=romannumerals]
or better (because you can set different conversion
on the backslash?
3. Wolfgang write about using context command
\convertnumber{R}{1400} and the corresponding syntax:
context.convertnumber(R,1400) to roman converting.
It is great, but I could not figure out how to use in combination with
the above syntax (ie use case context.command) or find
. comment on the backslash?
indeed
3. Wolfgang write about using context command
\convertnumber{R}{1400} and the corresponding syntax:
context.convertnumber(R,1400) to roman converting.
It is great, but I could not figure out how to use in combination with
the above syntax (ie use case
...and \directlua \zerocount {#1
}}
l.25 \stopluacode
?
That category characters again? Comment character -- works differently
in TEX file, and otherwise in the LUA file?
Ie. comment on the backslash?
indeed
3. Wolfgang write about using context command
\convertnumber{R}{1400} and the corresponding
the better syntax:
context('\\def\\Mymacro\{arg of mymacro\}')
or context(\\def\\test#1{#1}) etc...
Exist other (best or most optimal) way to do?
You can use “context.setvalue”. To convert numbers in different formats
you can use the \convertnumber command.
\starttext
\startluacode
]{\ssd Test:
\test}}
\stopsetups
\setupbackgrounds[page][background=test,setups=test]
\starttext
\dorecurse{12}
{\def\test{\convertnumber{A}{\recurselevel}}%
\dontleavehmode\page}
\stoptext
Wolfgang
___
If your
]
\starttext
\dorecurse{12}
{\def\test{\convertnumber{A}{\recurselevel}}%
\dontleavehmode\page}
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist
,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]
\setupwhitespace[halfline]
\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]
\mainlanguage[de]
\def\HeadL{Part
{\convertnumber{Numbers
,footerdistance=0pt,
location=middle,marking=off]
\setupwhitespace[halfline]
\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]
\mainlanguage[de]
\def\HeadL{Part
{\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]}
\def\HeadR
,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]
\setupwhitespace[halfline]
\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]
%\def\HeadL{Part
{\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking
]
\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]
\def\HeadL{Part
{\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]}
\def\HeadR{\headnumber[section]\enskip\getmarking[section]}
\setupheadertexts
[\vtop{\startalignment
\convertnumber{tom}{\structurenumber}
\setuphead
[chapter]
[ alternative=middle,
style=\ssc,
textstyle=\bf,
numberstyle=\tf,
textcommand=\ChapterTextCommand,
numbercommand=\ChapterNumberCommand]
\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext
] [One,Two,Three,Four,Five,.]
\define[1]\ChapterTextCommand
{\line{\expanded{\stretched{\structuretitle
\define[1]\ChapterNumberCommand
{\line{\expanded{\stretched{Chapter
\convertnumber{tom}{\structurenumber}
\setuphead
[chapter]
[ alternative=middle,
style=\ssc
\stopalignment}] [pagenumber]
[pagenumber] [\vtop{\startalignment[center]\KolumneL\stopalignment}]
\def\KolumneL{{\convertnumber{Numbers}{\namedheadnumber{chapter}}.\,Teil:}\enskip\getmarking[EbeneEins]}
\def\KolumneR{\headnumber[section]\enskip\getmarking[section]}
\starttext
\chapter{X
=doublesided,location=]
\setupheader[align=middle]
\def\KolumneL{{\convertnumber{Numbers}{\namedheadnumber{chapter}}.\,Teil:}\enskip\getmarking[chapter]}
\def\KolumneR{\headnumber[section]\enskip\getmarking[section]}
\setupheadertexts
[\vtop{\startalignment[center]\KolumneR\stopalignment
Hi all,
how can I change a section's conversion (eg. for use in headertext).
See minimal example below, please.
Steffen
===
\starttext
\chapter{Test}
\headnumber[chapter]% now we have numbers
% And just now we want to show the same as Characters not numbers:
%\convertnumber{\Characters
Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum:
Hi all,
how can I change a section's conversion (eg. for use in headertext).
\convertnumber{...}{\namedheadnumber{chapter}}
or
\convertnumber{...}{\placerawheadnumber[chapter]}
Wolfgang
Am 12.09.2010 um 18:28 schrieb Wolfgang Schuster:
Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum:
Hi all,
how can I change a section's conversion (eg. for use in headertext).
\convertnumber{...}{\namedheadnumber{chapter}}
or
\convertnumber{...}{\placerawheadnumber[chapter
)}
l.1 \convertnumber{a}{1}
\doconvertedstructurecounter ...!criterium , } )}
\endgroup
to be read again
\fi
\doactualitemnumber ...rrentitemgroupcounter ]\fi
\dohandleitemreference
...phabetic(\number #1,sl)}
l.1 \convertnumber{a}{1}
\doconvertedstructurecounter ...!criterium , } )}
\endgroup
to be read again
\fi
\doactualitemnumber ...rrentitemgroupcounter ]\fi
}
\processfile{tufte}
\stoptext
\def\Myheader#1#2%
{\framed
[width=0.60\textwidth,
frame=off,
align=middle]
{\determineheadnumber[chapter]
\expanded{\stretchednormalcase{CHAPTER~\convertnumber{englishnumbers}{\currentheadnumber}}}
\blank#2}}
\def\englishnumbers#1
=middle]
{\determineheadnumber[chapter]
\expanded{\stretchednormalcase{CHAPTER~\convertnumber{englishnumbers}{\curr
entheadnumber}}} \blank#2}}
\def\englishnumbers#1{
\ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
\defineconversion[englishnumbers][\englishnumbers
to \hsize\bgroup%
\tbox{\midaligned
\framed[offset=-0.5pt,frame=on,align=middle,width=0.85\textwidth]
{{\FuenfCommand{\convertnumber{characters}
{\countervalue{@@sesection-6{\kern0.75em}#2}}%
\egroup}
\setuphead[EbeneFuenf][command=\CurrentEbeneFuenfNumber]% using this
command moves
.}
\def\CurrentEbeneFuenfNumber#1#2%
{\hbox to \hsize\bgroup%
\tbox{\midaligned\framed[offset=-0.5pt,frame=on,align=middle,width=0.85\textwidth]{{\FuenfCommand{\convertnumber{characters}{\countervalue{@@sesection-6{\kern0.75em}#2}}%
\egroup}
\setuphead[EbeneFuenf][command
,previousnumber=yes]
\def\FuenfCommand#1{#1.}
\def\CurrentEbeneFuenfNumber#1#2%
{\hbox to \hsize\bgroup%
\tbox{\midaligned
\framed[offset=-0.5pt,frame=on,align=middle,width=0.85\textwidth]
{{\FuenfCommand{\convertnumber{characters}
{\countervalue{@@sesection-6{\kern0.75em}#2}}%
\egroup
1 - 100 of 120 matches
Mail list logo