[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Wolfgang Schuster
adapted from Marco's answer: ``` \usemodule[ipsum] \definesectionblock[roman][romanpages] \definestructureconversionset [roman:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart]   \setcounter [userpage] [1] \stopsectionblockenvironment \starttext   \startstandardm

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Florent Michel
c-numerals-in-context > > > > The following example is slightly adapted from Marco's answer: > > > > ``` > > \usemodule[ipsum] > > > > \definesectionblock[roman][romanpages] > > \definestructureconversionset [roman:pagenumber] [] [romannumerals] > &g

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Shiv Shankar Dayal
m/questions/108676/page-numbers-roman-number-and-arabic-numerals-in-context > > The following example is slightly adapted from Marco's answer: > > ``` > \usemodule[ipsum] > > \definesectionblock[roman][romanpages] > \definestructureconversionset [roman:pagenumber] [] [r

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
ipsum] \definesectionblock[roman][romanpages] \definestructureconversionset [roman:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \starttext \startstandardmakeup \placecontent \stopstandardmakeup \startroman

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
\def\romanpage{\convertnumber{romannumerals}{\userpage}} \setupuserpagenumber[ numberconversion=romannumerals, viewerprefix=\romanpage -, ] \dorecurse {6} \ipsum \stoptext ``` In section 2, pages are shown with roman numerals in the document and as (roman numerals)-(arabic numerals) in the ou

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Shiv Shankar Dayal
> Try > \setupuserpagenumber[numberconversion=romannumerals] > > Instead of “romannumerals” you can also use r, R, or, or RK. > > If you meant “Arabic” numerals, try n, N, o, or zero. The problem is that PDF Outline does not show roman numerals. It shows page numbers

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Henning Hraban Ramm
[numberconversion=romannumerals] Instead of “romannumerals” you can also use r, R, or, or RK. If you meant “Arabic” numerals, try n, N, o, or zero. Hraban ___ If your question is of interest to others as well, please add an

[NTG-context] No roman numerals in frontmatter header

2024-06-28 Thread jbf
Perhaps someone can advise me where I am going wrong. I have no trouble getting roman numeral page numbers in the footer text in frontmatter with \startsectionblockenvironment [frontpart] \setupuserpagenumber [numberconversion=romannumerals] \setcounter [userpage] [5

[NTG-context] Re: roman numerals frontpart

2024-06-25 Thread jbf
is not working for me at the moment, and I cannot figure out why: \startsectionblockenvironment [frontpart] \setupuserpagenumber [numberconversion=romannumerals] \setcounter [userpage] [5] \stopsectionblockenvironment \startsectionblockenvironment [bodypart] \setcounter [userpage] [1

[NTG-context] roman numerals frontpart

2024-06-25 Thread jbf
Something that has worked for me in the past is not working for me at the moment, and I cannot figure out why: \startsectionblockenvironment [frontpart] \setupuserpagenumber [numberconversion=romannumerals] \setcounter [userpage] [5] \stopsectionblockenvironment

[NTG-context] Re: self defined conversion in \date

2024-05-30 Thread Wolfgang Schuster
Peter Münster schrieb am 30.05.2024 um 13:59: Hi, It seems, that you cannot use self defined conversions in \date: \defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self

[NTG-context] self defined conversion in \date

2024-05-30 Thread Peter Münster
Hi, It seems, that you cannot use self defined conversions in \date: \defineconversion[mytest][X-\romannumerals] \starttext Self defined conversion: \convertnumber{mytest}{1} (OK)\\ Predefined conversion in date: \date[d=1][day:a] (OK)\\ Self defined conversion in date: \date[d=1][day:mytest

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
e{example}% set the sidenote instance to example \incrementcounter[example]% increment the example/sidenote counter \convertedcounter[example]% print the example/sidenote counter \stop % change the number format of the example/sidenote counter \setupsidenote[example][numberconversion=romannumera

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-14 Thread mf
ution, but it's been the way to the solution. Thank you again, Massi Il 12/01/24 12:02, Wolfgang Schuster ha scritto: mf schrieb am 12.01.2024 um 10:18: Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pa

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-12 Thread Wolfgang Schuster
while the twenty-second is '2'. How do I get 'XII' from 12 and '2' from 22? \defineconversionset   [frontpart:pagenumber] [] [romannumerals] \setuppagenumber   [way=byblock] % Alternative method for "way=byblock" when you have an appendix where % the page

[NTG-context] Re: unwanted blank page

2023-11-19 Thread madiazm . eoicc
OQUES % %%% \definesectionblock[portada][number=no] \defineconversionset [portada:pagenumber][][characters] \defineconversionset [frontpart:pagenumber][][romannumerals] \defineconversionset [bodypart:pagenumber][][numbers] \defineconversionset [appendixpart:pagenumber][][Chara

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[se

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
7;t have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[section] [-1] \startsection[title={Section zero}]\stopsection \startsection[title={Section one}]\stopsection \stoptext ###

[NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals]

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
=none, frame=none, width=broad, height=fit, align=middle]{#1.\\#2}} \setuphead[section][ conversion=Romannumerals, style={\bf\kerncharacters[0.075]\WORDS}, align=middle, command=\MySection, ] ### Thanks! Le 15/02/23 à 19:11, Rik Kabel via ntg-context a

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
,     conversion=Romannumerals,     style={\bf\WORDS},     align=middle,     command=\MySection, ] \starttext \startsection[title={First section}] this is the text \stopsection \stoptext Have you tried it with \framedtext in the place of \framed ? -- Rik

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
,     conversion=Romannumerals,     style={\bf\WORDS},     align=middle,     command=\MySection, ] \starttext \startsection[title={First section}] this is the text \stopsection \stoptext Have you tried it with \framedtext in the place of \framed ? -- Rik

[NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
=broad, % height=22pt, align=middle ]{{#1.\\#2}}} \setuphead[section][ strut=no, conversion=Romannumerals, style={\bf\WORDS}, align=middle, command=\MySection, ] \starttext \startsection[title={First section}] this is the te

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
pter} > picture cg; > cg := outlinetext.d > ("\ssbfd \headnumber[chapter]") > (withcolor transparent(1,0.5,blue)); > fill boundingcircle cg withcolor transparent(1, 0.5, lightgray); > draw cg; > \st

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread śrīrāma via ntg-context
ter]") (withcolor transparent(1,0.5,blue)); fill boundingcircle cg withcolor transparent(1, 0.5, lightgray); draw cg; \stopuseMPgraphic Using \headnumber[..][..] any 'conversion' applied to the chapter number

Re: [NTG-context] new upload, new trickery

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
{\strut\box\localboxcontentbox\hss)}} > % \protected\def\RightNumber{\hbox to > \localboxesparameter{width}{\strut(\hss\box\localboxcontentbox)}} > > % using the provided line number: > > % \def\LineNumberL{\the\localboxlinenumber} > % \def\LineNumberR{\the\localboxlinenumber}

[NTG-context] new upload, new trickery

2021-10-28 Thread Hans Hagen via ntg-context
ounter[MyLineNumberL] \definecounter[MyLineNumberR] \setupcounter[MyLineNumberL][numberconversion=characters] \setupcounter[MyLineNumberR][numberconversion=romannumerals] \def\LineNumberL{\incrementcounter[MyLineNumberL]\convertedcounter[MyLineNumberL]} \def\LineNumberR{\incrementcounter[MyLineNumbe

[NTG-context] Solved: Book setup with LHS-side quotes before chapters/parts, header/footer issues, TOC, etc.

2021-10-26 Thread Gerben Wierda via ntg-context
\stopalignment\stop}] \define[1]\SectionPrequote{\startSectionLHSPage #1\stopSectionLHSPage} %%% %%% part is managed here %%% \defineconversionset [part] [Romannumerals] [numbers] \setuplabeltext[en][partlabel=Part~] \setuphead [part] [sectionsegments=part, bodypartlabel=partlabel

Re: [NTG-context] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
Width,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

Re: [NTG-context] A book with sections

2021-10-23 Thread Bruce Horrocks via ntg-context
\stopMPcode \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, pl

Re: [NTG-context] A book with sections

2021-10-23 Thread Wolfgang Schuster via ntg-context
ts to number with Roman numerals? See below. % Change the number conversion for section titles \defineconversionset [section] [Romannumerals] [numbers] \setuphead   [sectionconversionset=section] % Show only the chapter value for chapter \setuphead   [chapter]   [sectionsegments=chapter] %

Re: [NTG-context] Roman PDF labels

2021-09-14 Thread Wolfgang Schuster via ntg-context
footer) to roman numbers? Hi Sylvain, copied from https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pagecon

Re: [NTG-context] Roman PDF labels

2021-09-14 Thread Pablo Rodriguez via ntg-context
lvain, copied from https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \startsectionb

Re: [NTG-context] Different footers for frontmatter and bodymatter

2021-08-18 Thread Rik Kabel via ntg-context
left footer and the pagenumber is on the right. I can switch between roman numerals and numbers with ``` \defineconversionset   [frontpart:pagenumber]   []   [romannumerals] \defineconversionset   [bodypart:pagenumber]   []   [numbers] ``` but I can't figure out how to have two differ

[NTG-context] Different footers for frontmatter and bodymatter

2021-08-18 Thread noib3 via ntg-context
I can switch between roman numerals and numbers with ``` \defineconversionset [frontpart:pagenumber] [] [romannumerals] \defineconversionset [bodypart:pagenumber] [] [numbers] ``` but I can't figure out how to have two different footer setups. Right now I have ``` \setupfootertexts

Re: [NTG-context] Lua code and table

2021-02-19 Thread Hans Hagen
.MyTable { action = function(value) context(value == "X" and 1 or 0) end, conversion = "Greek", pattern = { ".XXX..XX", "X...XXX.", "X..X.XXX", "X.X.X..X&qu

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
X", > ".X.X.XX.", > ".XX.X...", > "XXX.X...", > "X.XX" > } > } > \stopluacode > > \startluacode > document.MyTable { > action = function(value) >

Re: [NTG-context] Lua code and table

2021-02-18 Thread Hans Hagen
0) end, conversion = "Greek", pattern = { ".XXX..XX", "X...XXX.", "X..X.XXX", "X.X.X..X", } } \stopluacode \startluacode document.MyTable {

[NTG-context] Table of Content

2021-02-11 Thread Ursula Hermann
ject] \setuplist[subject, section, subsection] \setupcombinedlist[content][list={subject,section,subsection}, alternative=c] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][5] \page \subject{Vorwort} \page \setupuserpagenumber[numberconversion=numbers] \setco

Re: [NTG-context] Display reference number as Roman number

2021-01-06 Thread Rik Kabel
it. However, I want to display it in one instance as a Roman numeral. \Romannumerals{\in[label]} complains that it is not being fed a number. How can I display the label number in Roman number format in this one instance? -- Rik Okay, I have something that works. Perhaps not optimally, but

[NTG-context] Display reference number as Roman number

2020-11-24 Thread Rik Kabel
in one instance as a Roman numeral. *\**Romannumerals{\in[label]}* complains that it is not being fed a number. How can I display the label number in Roman number format in this one instance? -- Rik ___ If your

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Wolfgang Schuster
ttp://www.pragma-ade.com/general/manuals/ma-cb-en.pdf>? \defineconversionset [bodypart:pagenumber] [] [Romannumerals] \startsetups [footer]      \starttabulate[|l|c|c|]      \NC \bf Command          \NC \bf Current page \NC \bf Last page    \NC\NR      \NC \tex{pagenumb

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Sylvain Hubert
> Btw, do you know whether there is any difference between \lastpagenumber > > and \lastuserpagenumber mentioned both by Wolfgang and by the excursion > > book <http://www.pragma-ade.com/general/manuals/ma-cb-en.pdf>? > > \defineconversionset [bodypart:pagenumber] [] [Rom

Re: [NTG-context] "page i/n" in footer

2020-11-08 Thread Wolfgang Schuster
neconversionset [bodypart:pagenumber] [] [Romannumerals] \startsetups [footer] \starttabulate[|l|c|c|] \NC \bf Command \NC \bf Current page \NC \bf Last page \NC\NR \NC \tex{pagenumber} \NC \pagenumber \NC \lastpagenumber \NC\NR \NC \tex{userpagenumber} \NC \user

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
end product  begin environment\startenvironment env-WA \setuppagenumbering   [alternative=doublesided, location=right]   \defineconversionset   [frontpart:pagenumber] [] [romannumerals] \setupexternalfigures   [directory={External PDF}] \startsectionblockenvironment [frontpart]    \setu

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
[alternative=doublesided, location=right] \defineconversionset [frontpart:pagenumber] [] [romannumerals] \setupexternalfigures [directory={External PDF}] \startsectionblockenvironment [frontpart] \setupbackgrounds [leftpage] [setups=pagenumber:left] \setupbackgrounds

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
doublesided,  location=right]    % Pagenumbering style\definestructureconversionset    [frontpart:pagenumber][][romannumerals]\definestructureconversionset    [bodypart:pagenumber]

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
Start chapter on right (odd) page, pagenumber = bottom right \setuppagenumbering [alternative=doublesided,  location=right] % Pagenumbering style \definestructureconversionset [frontpart:pagenumber][][romannumerals] \definestructureconversionset [bodypart:pagenumber] [][nu

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
]    % Pagenumbering style\definestructureconversionset    [frontpart:pagenumber][][romannumerals]\definestructureconversionset    [bodypart:pagenumber] [][numbers]\definestructureconversionset    [appendix:pagenumber] [][numbers]=   The fm-frontpage.tex file

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-02 Thread Wolfgang Schuster
know why this is happening. My setup for page numbering is as follows (something I found somewhere - wiki? elsewhere? Not sure. I didn't make it up!): \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][nu

[NTG-context] \setupuserpagenumber not working as expected

2020-09-02 Thread jbf
for page numbering is as follows (something I found somewhere - wiki? elsewhere? Not sure. I didn't make it up!): \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \startsectionblockenvironment[fron

Re: [NTG-context] TOC chapter and section numbering

2020-08-19 Thread Adrian
nd formulas > >    6. Conversion > >    7. Fundamental theorems on well-formed formulas and on the normal form > > I tried to the following for the chapters: > > \defineconversion[church][Chapter \Romannumerals.\quad] > > \setuphead[chapter][conversion=church] >

Re: [NTG-context] TOC chapter and section numbering

2020-08-19 Thread Wolfgang Schuster
d on the normal form I tried to the following for the chapters: \defineconversion[church][Chapter \Romannumerals.\quad] \setuphead[chapter][conversion=church] Which appeared to generate the prefix correctly but it overlapped the title. \setuplabeltext [en] [chapter=Chapter ] \definerese

[NTG-context] TOC chapter and section numbering

2020-08-18 Thread Adrian
raction Chapter II. Lambda Conversion . 5. Primitive symbols and formulas 6. Conversion 7. Fundamental theorems on well-formed formulas and on the normal form I tried to the following for the chapters: \defineconversion[church][Chapter \Romannumerals.\quad] \setuphead[chapter][conversion

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
, conversion=Romannumerals, numbercommand=\groupedcommand{\blank[20mm]}{\blank[10mm]}, after={\blank[3cm]}, ] \setupheadtext[content=] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] \rlap{whatever} \hfill \getmarking[chapter] \hfill

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

2020-08-04 Thread Willi Egger
} \stopsection% } \stopsetups \starttext \startsection[title=Ward] \setuppagenumbering[conversion=romannumerals] \input ward \stopmysection \startsection[title=Knuth

[NTG-context] using annotations for extended print handling

2020-06-14 Thread Pablo Rodriguez
ld be passed automatically to a \filterpages command. A sample that generates something similar: \setuppapersize[A8] \setupinteraction[state=start] \starttext \dorecurse{5}{\part{\romannumerals{\recurselevel}} \dorecurse{15}{\chapter{\recurselevel} \comment [title=whatever,

Re: [NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
page number i instead of ii. It seems to have something to do > > with the use of makeup. I was using it to create a vertically centered > > title page. Is there a better way of doing this which will give the > > correct page numbers? > > > > Best, > > > >

Re: [NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Wolfgang Schuster
ay of doing this which will give the correct page numbers? Best, Jack \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber][][numbers] \definemakeup[titlepage][align=middle] \definemakeup[titlepage][align=middle,pagestate=

[NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
page numbers? Best, Jack \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber][][numbers] \definemakeup[titlepage][align=middle] \starttext \startfrontmatter \startmakeup[titlepage] Title \stopmakeup test \stopfrontm

Re: [NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Wolfgang Schuster
onset [frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getma

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
[frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking

[NTG-context] No menu bar option for Adobe Reader

2019-04-27 Thread Paul Schalck
injections.getpagedimensions() local llx = leftoffset local lly = paperheight + topoffset - height local urx = width - leftoffset local ury = paperheight - topoffset -- boxes can be cached local function extrabox(WhatBox,offset,always) if offset ~= 0 or alwa

[NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
t draw statement works perfectly. But the second one throws out errors and complains as follows: .test.tex: ! Missing number, treated as zero \number " & "12" & " \romannumerals #1->\clf_romannumerals \numexpr #1

Re: [NTG-context] two different outputs.

2019-01-01 Thread Jeong Dal
, incrementnumber=list] \startproduct Danggok \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber][][numbers] \definestructureconversionset[backpart:pagenumber][][numbers] \startsectionblockenvironment[frontpart] \setupuserpagenumber

Re: [NTG-context] Align the chapter-title to the middle of the header

2018-07-23 Thread Pablo Rodriguez
t; of the header? Hi Huseyin, this should work: \setuppagenumbering[alternative=doublesided, location=] \setupheadertexts[center] %~ \setupheadertexts[\doifoddpageelse{odd}{even}] \starttext \dorecurse{10}{\Romannumerals{\recurselevel}\page} \stoptext Uncomment the commented line

Re: [NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
=== How can one make a conversion of the numerals output by the \newcount? That is, how so we replace the default U+0030-U+0039 digits (0 1 2 3..) with some defined conversion (e.g., \romannumerals)? Is there a ConTeXt way to setup new counts so that they can automatically use the conv

Re: [NTG-context] Conversion of \newcounts

2018-05-19 Thread Wolfgang Schuster
by the \newcount? That is, how so we replace the default U+0030-U+0039 digits (0 1 2 3..) with some defined conversion (e.g., \romannumerals)? Is there a ConTeXt way to setup new counts so that they can automatically use the conversion mechanism? \definecounter[idris]%[numberconversio

[NTG-context] Conversion of \newcounts

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
me defined conversion (e.g., \romannumerals)? Is there a ConTeXt way to setup new counts so that they can automatically use the conversion mechanism? See attached. Thanks in advance for your wisdom! Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State Unive

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
normal] \startstandardmakeup \midaligned{\CruxFramed{\ssd OpenStack}} \vfil \stopstandardmakeup \stopBG \startfrontmatter \setuplayout[reset] \setuppagenumbering[conversion=romannumerals] \setuppagenumber[number=1] \completecontent %\completelistoffigures %\completel

Re: [NTG-context] Page printed upside down

2017-10-23 Thread Fabrice Couvreur
e colums > > Sorry, but overflowing is normal here, the formula has too many data to > fit in that column width. > > I would discourage the use of columns to create the booklet. > > My advice would be to compose the standard text and then impose the pages: > > \startte

Re: [NTG-context] Page printed upside down

2017-10-22 Thread Pablo Rodriguez
al here, the formula has too many data to fit in that column width. I would discourage the use of columns to create the booklet. My advice would be to compose the standard text and then impose the pages: \starttext \dorecurse{4}{\chapter{Chapter \Romannumerals{\recurselevel}} \section{\TeX}\inpu

[NTG-context] sectionconversionset not working for table of contents

2017-09-18 Thread Stephens, Kenny
econtent[criterium=all] \stopfrontmatter \startbodymatter \startchapter[title={The First Numerals Chapter}] \startsection[title={The First Caps-Romannumerals Section}] \input knuth \startsubsection[title={The First characters Subsection}] \input knuth \stopsubsection \stopsectio

Re: [NTG-context] Some questions about my document

2017-08-27 Thread Fabrice Couvreur
Hi Pablo, " You have to define a new conversion set and use it for the prefix segments " It seems to me that's what I did : \definestructureconversionset [structure] [numbers, Romannumerals, numbers, numbers, numbers] [numbers] \setupheads [sectionconversi

Re: [NTG-context] Some questions about my document

2017-08-26 Thread Fabrice Couvreur
emark 1.2 > Remark 1.3 > > Thanks > Fabrice > > % > \definestructureconversionset > [structure] > [numbers, Romannumerals, numbers, numbers, numbers] > [numbers] > > \setupheads [sectionconversionset=structure] > > \defineenumeration >

Re: [NTG-context] Some questions about my document

2017-08-26 Thread Fabrice Couvreur
Hi, I have simplified the code, but I get : Remark I.1. Remark I.2. Remark I.3. instead : Remark 1.1. Remark 1.2 Remark 1.3 Thanks Fabrice % \definestructureconversionset [structure] [numbers, Romannumerals, numbers, numbers, numbers] [numbers

[NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \definestructureconversionset [structure] [numbers, Romannumerals, numbers, numbers, numbers] [numbers] \setupheads [sectionconversionset=structure

[NTG-context] Some questions about my document

2017-08-24 Thread Fabrice Couvreur
, Romannumerals, numbers, numbers, numbers] [numbers] \setupheads [sectionconversionset=structure] \setupenumerations [ before={\blank[big]}, after={\blank[big]}, alternative=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=bold, prefix=chapter, way=bychapter, conversion=numbers

Re: [NTG-context] Odd numbering of pp. in PDF viewer

2017-07-26 Thread Sebastian L.
][][romannumerals] to my environment file. I didn't take this into accout, as I initially didn't plan on using roman numbers. But right now this seems the only proper solution to the wrong numbering in my case. I attached an explanation document to show you what I mean. If you still wish for

Re: [NTG-context] \mainlanguage[pe]

2016-08-01 Thread Mohammad Hossein Bateni
ng number' error. > > % \mainlanguage[en] > \romannumerals{\currentdate[day]} > > 1. The \currentdate command isn’t expandable and is therefore not expanded > when you use it as argument for another command. > > 2. The \romannumerals commands expects a number as argument

Re: [NTG-context] A new problem in old TOC

2016-07-18 Thread Ursula Hermann
in old TOC <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 15. Juli 2016 um 19:33 Hello Wolfgang! Yes, I want it both title in header and in the TOC! Ursula Hermann Danksagung \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userp

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Wolfgang Schuster
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 15. Juli 2016 um 19:33 Hello Wolfgang! Yes, I want it both title in header and in the TOC! Ursula Hermann Danksagung \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] The two se

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Ursula Hermann
, alternative=c, interaction=all] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Wolfgang Schuster
ersion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann \indenting[yes, next] Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Ursula Hermann
] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title

Re: [NTG-context] A new problem in old TOC

2016-07-15 Thread Wolfgang Schuster
[chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sect

[NTG-context] A new problem in old TOC

2016-07-15 Thread Ursula Hermann
ntent] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, numb

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Wolfgang Schuster
Mohammad Hossein Bateni <mailto:bat...@gmail.com> 7. Juli 2016 um 16:31 Thanks, Wolfgang! BTW why doesn't the following work? it gives the 'missing number' error. % \mainlanguage[en] \romannumerals{\currentdate[day]} 1. The \currentdate command isn’t expandable and is th

Re: [NTG-context] \mainlanguage[pe]

2016-07-07 Thread Mohammad Hossein Bateni
Thanks, Wolfgang! BTW why doesn't the following work? it gives the 'missing number' error. % \mainlanguage[en] \romannumerals{\currentdate[day]} On Thu, Jul 7, 2016 at 10:02 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > Mohammad Hossein Bateni

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-07-01 Thread Ursula Hermann
Hello Otared! At least the example is this. Now it works perfekt: \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-07-01 Thread Ursula Hermann
Hello Otared! I have it. I found an mail on the mailinglist . This works. It is: \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][5] \startpart [title={Danksagung}] \stoppart \startchapter [title={Bildbeschreibung der Cover

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
ula Hermann wrote: > > Hello Wolfgang! > > I have now written as you told me. > \starttext > \placecontent > \setupuserpagenumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberco

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
enumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stoptext > > Ähm where do i set the

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Ursula Hermann
Hello Wolfgang! I woud like to change the counter because there is a wrong pagenumber at the numbers, not at the romannumerals . I have compiled but I always have 2 instead of 6.This ist the pagenumber I need. Thanks Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Wolfgang Schuster
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 28. Juni 2016 um 14:15 Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Ursula Hermann
Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Ursula Hermann
, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-24 Thread Wolfgang Schuster
genumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagen

[NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-24 Thread Ursula Hermann
ction,subsection,subsubsect ion}] \setupuserpagenumbering[conversion=romannumerals] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, intera

[NTG-context] issue with bookmark for sections

2016-04-21 Thread Pablo Rodriguez
, pagenumber=no, style=\itxx] \par \stop \stopsetups \setuplist [chapter] [after=\directsetup{placelist:section}] \starttext \completecontent \dorecurse{5}{\chapter{Chapter \Romannumerals{\recurselevel}} \dorecurse{10}{\section{Section}\input zapf\par

  1   2   3   4   5   >