[NTG-context] styling individual parts of ToC entry

2020-09-04 Thread jbf
]\TitleTocEntry{%   #1\hskip 1cm% title    \structurelistuservariable{author}%   } \setuplist[title][textstyle=bold,   textcommand=\TitleTocEntry, ] %--- /Question 1:/ /How to get the two author names to line up vertically./ Given that I have both a Foreword and a Preface, I am using \title

Re: [NTG-context] author in ToC and other design complications

2020-09-04 Thread Henning Hraban Ramm
ble: > > \define[1]\ChapterTocEntry{% > \structurelistuservariable{author}\crlf% > #1\crlf% title > %\structurelistuservariable{subtitle}}% > } > > \setuplist[chapter][ > textcommand=\ChapterTocEntry, > ] > > So, in other words I swapped the word 'section' in your

Re: [NTG-context] author in ToC and other design complications

2020-09-04 Thread jbf
) and an author, and added, below what I already have in the preamble: \define[1]\ChapterTocEntry{%   \structurelistuservariable{author}\crlf%   #1\crlf% title   %\structurelistuservariable{subtitle}}% } \setuplist[chapter][   textcommand=\ChapterTocEntry, ] So, in other words I swapped the word

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

2020-09-04 Thread Jan Willem Flamma
it up!):\definestructureconversionset[frontpart:pagenumber][][romannumerals]\definestructureconversionset[bodypart:pagenumber] [][numbers]\startsectionblockenvironment[frontpart]\setupuserpagenumber[numberconversion=romannumerals]\setuplist[chapter][pageconversionset=pagenumber]\setuppagenumber[nu

[NTG-context] author in ToC and other design complications

2020-09-03 Thread jbf
this MWE): %-- \setuphead [subject] [incrementnumber=list] \setuphead [title] [incrementnumber=list] \setupcombinedlist   [content] [list={chapter,title,section,subsection}]\switchtobodyfont[10.5pt] \setuplist[chapter][style=normal,alternative=b, before=] And then I

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

2020-09-03 Thread jbf
where - wiki? elsewhere? Not sure. I didn't make it up!): \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setup

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

2020-09-03 Thread Jan Willem Flamma
[bodypart:pagenumber] [][numbers]\startsectionblockenvironment[frontpart]\setupuserpagenumber[numberconversion=romannumerals]\setuplist[chapter][pageconversionset=pagenumber]\setuppagenumber[number=1]\stopsectionblockenvironment\startsectionblockenvironment[bodypart]\setuppagenumber[number=1

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

2020-09-02 Thread Wolfgang Schuster
] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuplist[chapter][pageconversionset=pagenumber] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \stopsectionblockenvironment The frontmatter

[NTG-context] \setupuserpagenumber not working as expected

2020-09-02 Thread jbf
] \setupuserpagenumber[numberconversion=romannumerals] \setuplist[chapter][pageconversionset=pagenumber] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \stopsectionblockenvironment The frontmatter is some 16 pages worth (ends

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

2020-08-19 Thread Adrian
nset=section, > sectionstopper=.] > > \setuphead > [section] > [sectionsegments=section, > sectionconversionset=section, > sectionstopper=.] > > \setuphead > [title] > [alternative=middle, > style=WOR

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

2020-08-19 Thread Wolfgang Schuster
style=WORD] \setuplist [chapter] [label=yes, style=bold, width=fit, distance=\spaceamount] \setuplist [section] [margin=3em, width=1.5em] \starttext \completecontent ... \stoptext Wolfgang _

[NTG-context] TOC chapter and section numbering

2020-08-18 Thread Adrian
Hello, I'm attempting to typeset a short book using ConTeXt (current version: 2020.08.09 22:03). EXAMPLE: \setuplist[content][alternative=c] \setuphead[title][alternative=middle,style=cap] \setuphead[chapter][number=no] \setuphead[section][sectionsegments=section] \setuplist[section][width

Re: [NTG-context] \checkpage in the TOC

2020-08-12 Thread Willi Egger
pagebreak. >> \definepagechecker >> [willi] >> [method=1,before=,after=,inbetween={\page}] >> \setuplist >> [chapter] >> [prefix=no, >> sectionnumber=no, >> headnumber=no, >> alternative=command, >> command=\Mychaptercommand, &

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

2020-08-12 Thread Nicola
es to be aligned: >>>> >>>> Preface >>>> I XYZ >>>>... >>>> VIII XYZ >>>>... >>>> >>>> I have tried to do my homework by playing with \setuphead, but I am >>>>

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

2020-08-11 Thread Wolfgang Schuster
about setting distance for \setuplist[chapter] in the sectionblock frontpart with the desired width? That does not seem to change the layout, unfortunately. I have tried with `margin` and `aligntitle` as well: \setuplist[chapter][distance=1cm,aligntitle=yes] \startsectionblockenvironment[frontpart

Re: [NTG-context] \checkpage in the TOC

2020-08-11 Thread Hans Hagen
reference I include a screenshot of the problematic pagebreak. \definepagechecker    [willi]    [method=1,before=,after=,inbetween={\page}] \setuplist [chapter] [prefix=no, sectionnumber=no, headnumber=no,    alternative=command,    command=\Mychaptercommand,   inbetween={\checkpage[willi

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

2020-08-11 Thread Nicola
ith \setuphead, but I am >> afraid I need your help on this. > > Sorry, but too tired to type a sample. > > How about setting distance for \setuplist[chapter] in the sectionblock > frontpart with the desired width? That does not seem to change the layout, unfortunately. I have tr

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

2020-08-11 Thread Pablo Rodriguez
gt; I'd prefer all the titles to be aligned: > > Preface >I XYZ > ... > VIII XYZ > ... > > I have tried to do my homework by playing with \setuphead, but I am > afraid I need your help on this. Sorry, but too tired to type a sample. How

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

2020-08-11 Thread Nicola
Thank Pablo, Wolfgang, I have learned more by reading your replies than by myself in the rest of the afternoon. Just one more thing: >>> 1. Increase the space between Roman numbers and titles in the ToC. >> >> distance with dimension is the key in \setuplist. > > Corr

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

2020-08-11 Thread Wolfgang Schuster
is the key in \setuplist. Correct but it's also important to set "width" to a value which is large enough to fit the number. 2. Vertically center the ToC (wrt to the text area). Use a makeup for the TOC (if and only if it takes a single page). 3. Suppress page numbers and headers in

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

2020-08-11 Thread Pablo Rodriguez
between Roman numbers and titles in the ToC. distance with dimension is the key in \setuplist. > 2. Vertically center the ToC (wrt to the text area). Use a makeup for the TOC (if and only if it takes a single page). > 3. Suppress page numbers and headers in all blank pages. Break pages

[NTG-context] \checkpage in the TOC

2020-08-11 Thread Willi Egger
of the problematic pagebreak. \definepagechecker [willi] [method=1,before=,after=,inbetween={\page}] \setuplist [chapter] [prefix=no, sectionnumber=no, headnumber=no, alternative=command, command=\Mychaptercommand, inbetween={\checkpage[willi][lines=4

Re: [NTG-context] About the table of contents

2020-07-11 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 11.07.2020 um 16:30: Hi Wolfgang, Sorry but i was wrong on what i want to get : 1  My first chapter     1.1 My first section   1.1.1 My first subsection Set the margin values: \setuplist [section][margin=1em] \setuplist [subsection] [margin=2em

Re: [NTG-context] About the table of contents

2020-07-11 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 11.07.2020 um 15:02: Hello, I would like to reduce the space between the numbering and the title of the chapters, sections and subsections. I would also like to have this: 1 My first chapter 1.1 My first section 1.1.1 My first subsection You can use \setuplist

[NTG-context] About the table of contents

2020-07-11 Thread Fabrice Couvreur
Hello, I would like to reduce the space between the numbering and the title of the chapters, sections and subsections. I would also like to have this: 1 My first chapter 1.1 My first section 1.1.1 My first subsection \setuplist [chapter] [style=bold,width=10mm] \starttext \placelist

Re: [NTG-context] spacing between chapters in TOC

2020-06-01 Thread jbf
:05: Hi list, I want my table of contents to look like: Chapter 1     section   5     section  10     section  15 In other words with section items indented. I presumed I would need to do something with \setuplist[section]. I know how to control interline

Re: [NTG-context] spacing between chapters in TOC

2020-06-01 Thread Wolfgang Schuster
jbf schrieb am 02.06.2020 um 03:05: Hi list, I want my table of contents to look like: Chapter 1     section   5     section  10     section  15 In other words with section items indented. I presumed I would need to do something with \setuplist[section]. I

[NTG-context] spacing between chapters in TOC

2020-06-01 Thread jbf
Hi list, I want my table of contents to look like: Chapter 1     section   5     section  10     section  15 In other words with section items indented. I presumed I would need to do something with \setuplist[section]. I know how to control interline

Re: [NTG-context] Anyone managed a tabulated table of contents

2020-05-25 Thread Hans Hagen
was not present. %%% Begin %%% \setuppapersize [A4] [A4] \setupinteraction [state=start] \setuplist [chapter] [ alternative=command, %interactive command=\myTOCrow, before=\myTOCbefore, after=\myTOCafter ] % #1 == Section number; #2 == text; #3 == page number \define[3]\myTOCrow

[NTG-context] Anyone managed a tabulated table of contents

2020-05-25 Thread Bruce Horrocks
[A4] [A4] \setupinteraction [state=start] \setuplist [chapter] [ alternative=command, %interactive command=\myTOCrow, before=\myTOCbefore, after=\myTOCafter ] % #1 == Section number; #2 == text; #3 == page number \define[3]\myTOCrow{\NC #2 \NC dummy \NC John Doe \NC #3 \NC\NR

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-17 Thread Henning Hraban Ramm
without hyperlinks >>> >>> alternative=interactive : Custom TOC with hyperlinks >> >> Thank you! Wikified: https://wiki.contextgarden.net/Command/setuplist > > Thank-you Wolfgang for the quick reply and also Hraban for beating me to it > on the Wiki - I

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-17 Thread Bruce Horrocks
t;>> hyperlinks. Is there a simple configuration option that I have missed or do >>> I need to create my own links somehow? [snip] >> alternative=command : Cutsom TOC without hyperlinks >> >> alternative=interactive : Custom TOC with hyperlinks > > Th

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-16 Thread Henning Hraban Ramm
\hskip 1em >> \vtop{\hsize\dimexpr\textwidth-3em\relax#2} >> \egroup \par} >> >> % Comment out this next line to regain section hyperlinks in the ToC >> \setuplist[section][alternative=command,command=\SectionListEntry] > > alternative

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-16 Thread Wolfgang Schuster
[option=bookmark] \define[3]\SectionListEntry {\par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par} % Comment out this next line to regain section hyperlinks in the ToC \setuplist[section][alternative

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-16 Thread Henning Hraban Ramm
ut this next line to regain section hyperlinks in the ToC > \setuplist[section][alternative=command,command=\SectionListEntry] > > \starttext > Table of Contents > \placecontent[criterium=all] > \placebookmarks[chapter,subject] Should be \placebookmarks[chapter,section]. Move it in f

[NTG-context] Custom list layout with PDF bookmarks

2020-05-15 Thread Bruce Horrocks
{\par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par} % Comment out this next line to regain section hyperlinks in the ToC \setuplist[section][alternative=command,command=\SectionListEntry] \starttext Table

Re: [NTG-context] TOC- removing Contents 0

2020-04-22 Thread Pablo Rodriguez
  [content] >   [list={chapter,section,title,subject,subsection}] > \setuplist[chapter][style=normal,alternative=b, before=] Hi Julian, \completecontent is similar to simply use: \title{Contents} \placelist[content] If you include title in \setupcombinedlist[content], you are

Re: [NTG-context] TOC- removing Contents 0

2020-04-22 Thread Henning Hraban Ramm
t; \setupcombinedlist > [content] > [list={chapter,section,title,subject,subsection}] > \setuplist[chapter][style=normal,alternative=b, before=] > > Grateful for any help with this, Usually the unnnumbered headers aren’t part of any ToC, but since you include title, you also get the T

[NTG-context] TOC- removing Contents 0

2020-04-21 Thread jbf
of the page it is appearing on, is there a way I can prevent that line from being produced as part of the ToC? I assume it would be something I need to do in the following setup: \setupcombinedlist   [content]   [list={chapter,section,title,subject,subsection}] \setuplist[chapter][style=normal

Re: [NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Pablo Rodriguez
I missing something or have I hit a bug? > > You can show the realpage value but there is no proper interface setting > (e.g. \setuplist[chapter][pagenumber=realpage]) for this yet and I think > it's better to do this. Many thanks for your reply, Wolfgang. In that case, whi

Re: [NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Wolfgang Schuster
[chapter] use the realpage counter? According to i-context.pdf, \placelist inherits from \setuplist (which also inherits from \setupcounter). While \setuplist inherits values from \setupcounter doesn't mean it supports all of them and keys like "counter" work only when you create a ne

[NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Pablo Rodriguez
-context.pdf, \placelist inherits from \setuplist (which also inherits from \setupcounter). I really need that, since the document I’m composing needs chapter and part page numbering independent from the whole document page numbering. Am I missing something or have I hit a bug? Many thanks for your

Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread T. Kurt Bond
multi columns text but it's a very recent addition and > lacks some features like column balancing. > > begin columns > \setuphead >[chapter,section,subsection,subsubsection] >[before={\blank[nowhite]}, > after={\blank[nowhite]}, > grid=no] > > \setupwh

Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread Wolfgang Schuster
] \setuplist [chapter,section,subsection,subsubsection] [before={\blank[nowhite]}, after={\blank[nowhite]}] \setupcolumns [grid=no] \starttext \startcolumns \completecontent \chapter{Chapter} \samplefile{knuth} \section{Section} \samplefile{weisman} \subsection{Subsection

Re: [NTG-context] Indenting entries in the table of contents?

2020-03-21 Thread Richard Mahoney | Indica et Buddhica
This is what I'm using at the moment: % Tables of Contents \setuplist[part][textstyle={\sl},pagestyle={\tf}] \setuplist[chapter][textstyle={\sl},pagestyle={\tf},label=yes,width=fi t,stopper=~~] \setuplist[section][width=42pt,margin=10pt,style={\tf}] \setuplist[subsection][width=42pt,margin

Re: [NTG-context] Indenting entries in the table of contents?

2020-03-21 Thread Henning Hraban Ramm
way to do this? It’s not obvious in https://wiki.contextgarden.net/Table_of_Contents but you need \setuplist[subsection][margin=2cm] etc. see https://wiki.contextgarden.net/Command/setuplist Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.d

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Pablo Rodriguez
On 3/16/20 7:00 PM, Wolfgang Schuster wrote: > [...] > A way to fix the wrong spacing here is to add a strut option to > \setuplist (or use always the upright font to set the strut values). Any of these ones would be great to avoid the corner cases. Pablo -- http://www

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Wolfgang Schuster
a strut option to \setuplist (or use always the upright font to set the strut values). Of course one could also tweak the ht/dp of a specific style using one of the pseudo features. Also possible because the larger value for the ex-height of the italic font causes the bigger strut dimensions

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Hans Hagen
, e.g. \setuplist[strut=no]. The problem in this case is that the ex-height for the italic font is larger than the ex-height for the upright font which pushes the text down because add a strut at the begin and end of the entries. Many thanks for your reply, Wolfgang. I don’t get \setuplist[strut

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 16.03.2020 um 10:01: On 3/15/20 10:56 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 15.03.2020 um 20:32: [...] Everthing is fine when italic fonts aren’t used. It can be fixed with a strut option for lists, e.g. \setuplist[strut=no]. The problem

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-16 Thread Pablo Rodriguez
On 3/15/20 10:56 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 15.03.2020 um 20:32: >> [...] >> Everthing is fine when italic fonts aren’t used. > > It can be fixed with a strut option for lists, e.g. > \setuplist[strut=no]. The problem in this ca

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Wolfgang Schuster
be fixed with a strut option for lists, e.g. \setuplist[strut=no]. The problem in this case is that the ex-height for the italic font is larger than the ex-height for the upright font which pushes the text down because add a strut at the begin and end of the entries. Below is a minimal example

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
; title to my transform function. > > \startluacode > > userdata = userdata or {} > > function userdata.mytransform(title) > > --context(title) --this is just fine, but isn't very useful > > context(string.reverse(title)) > > end > > \stopluacode > > \def\trans

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
useful > >     context(string.reverse(title)) > > end > > \stopluacode > > \def\transformtitle#1% > >     {\ctxlua{userdata.mytransform([==[#1]==])}} > > \setuplist[chapter][textcommand=\transformtitle] > > \starttext > > \completecontent > > \startchapter[titl

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread Wolfgang Schuster
context(title) --this is just fine, but isn't very useful > context(string.reverse(title)) > end > \stopluacode > > \def\transformtitle#1% > {\ctxlua{userdata.mytransform([==[#1]==])}} > > \setuplist[chapter][textcommand=\transformtitle] > > \starttext &

Re: [NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread Hans Hagen
ata or {} function userdata.mytransform(title)     --context(title) --this is just fine, but isn't very useful     context(string.reverse(title)) end \stopluacode \def\transformtitle#1%     {\ctxlua{userdata.mytransform([==[#1]==])}} \setuplist[chapter][textcommand=\transformtitle] \startt

[NTG-context] Accessing raw titles in textcommand in TOC

2020-02-21 Thread alephzorro
tle#1% {\ctxlua{userdata.mytransform([==[#1]==])}} \setuplist[chapter][textcommand=\transformtitle] \starttext \completecontent \startchapter[title={Sample Chapter}] \stopchapter \stoptext When I print the actual title that is passed to mytransform, all I get is \currentlistentrytitle an

Re: [NTG-context] How to get subsubject to show numbering in TOC?

2019-12-20 Thread Wolfgang Schuster
Jon Wong schrieb am Fr., 20. Dez. 2019, 15:18: > Is it \setuplist[subsubject][headnumber=yes]? > \setuphead[...][incrementnumber=list] Wolfgang > ___ If your question is of interest to others as well, p

[NTG-context] How to get subsubject to show numbering in TOC?

2019-12-20 Thread Jon Wong
Is it \setuplist[subsubject][headnumber=yes]? ___ 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/listinfo/ntg-context

[NTG-context] Manipulating the pagenumber in the TOC

2019-04-21 Thread Willi Egger
nt.0f”,(\pagenumber+1)/2}} \setuplist [section] [pagecommand=\SectionTOCPagenumber] My question is: is there a way to manipulate the pagenumber in the TOC such, that it reflects the pagenumbers in the document? Kind re

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

2019-02-20 Thread Wolfgang Schuster
1, just 1, for example). This behaviour should apply both to the titles in the text and in the TOC.. With the code: \definestructureresetset[default][1,0,1][1] % reset part and section, but not chapter, from wiki \setuphead[sectionresetset=default] \setuphead[part] [placehead=yes, number=yes,] \setup

[NTG-context] Omitting part number in chapter numbers

2019-02-19 Thread Simon Collier
apply both to the titles in the text and in the TOC.. With the code: \definestructureresetset[default][1,0,1][1] % reset part and section, but not chapter, from wiki \setuphead[sectionresetset=default] \setuphead[part] [placehead=yes, number=yes,] \setuplist [part] [number=yes,] \setuphead [chapter]

Re: [NTG-context] local ToC after each chapter title

2019-01-10 Thread Henning Hraban Ramm
Am 2019-01-10 um 15:21 schrieb Otared Kavian : > Hi Hraban, > > Probably instead of > >> \setuplist[chapter][ >> before=, >> after={\placecombinedlist[content][criterium=local]},] > > you wanted to say > > \setuphead[chapter][ > befor

Re: [NTG-context] local ToC after each chapter title

2019-01-10 Thread Otared Kavian
Hi Hraban, Probably instead of > \setuplist[chapter][ > before=, > after={\placecombinedlist[content][criterium=local]},] you wanted to say \setuphead[chapter][ before=, after={\placecombinedlist[content][criterium=local]}] which gives the expected result without an

[NTG-context] local ToC after each chapter title

2019-01-10 Thread Henning Hraban Ramm
Hello again, in my current book project I need a local ToC after each chapter title. What’s wrong with my use of "after"? The following example leads to a "TeX capacity exceeded" error: \setupcombinedlist[content][% list={chapter,section},] \setuplist[chapter]

Re: [NTG-context] two different outputs.

2019-01-01 Thread Jeong Dal
] %\setupuserpagenumber[numberconversion=romannumerals] %\setuppagenumbering[alternative=doublesided] %\setuppagenumber[number=1] %\stopsectionblockenvironment \setupcombinedlist[content][list={title,chapter}]%,section,subsection}] \setuplist[chapter, title][width=5mm, style=,textstyle={\ss\bf }]%,after={\blank

Re: [NTG-context] page interaction in contents list entry

2018-09-20 Thread Henning Hraban Ramm
e.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD Am 2018-09-20 um 17:26 schrieb Wolfgang Schuster : > \setupinteraction[state=start] > > \define[3]\ChapterTocEntry > {\maxaligned{#2\hfill#3}} > > \setuplist > [chapter] > [alternative=interactive

Re: [NTG-context] page interaction in contents list entry

2018-09-20 Thread Wolfgang Schuster
\setupinteraction[state=start] \define[3]\ChapterTocEntry   {\maxaligned{#2\hfill#3}} \setuplist   [chapter]   [alternative=interactive,    before=\endgraf,    after=\endgraf,    command=\ChapterTocEntry] \usemodule[visual] \starttext \placelist[chapter][criterium=all] \dorecurse{5

Re: [NTG-context] page interaction in contents list entry

2018-09-20 Thread Henning Hraban Ramm
oto{\currentlistentrypagenumber}[page(\currentlistentrypagenumber)]} %%% %\at{}[\structurelistvariable{reference}] % #3 = \currentlistentrypagenumber \par } \setuplist[chapter][% alternative=command, interaction=pagenumber, textcolor=black, before=, inbetween=, after=, comm

Re: [NTG-context] Table of contents setup

2018-08-30 Thread Wolfgang Schuster
of the font. \setuplist[...][textstyle=...] Secondly I would like to have the page numbers all in the same size, irrespective from the level. Thirdly, I would love to adapt the distance between the leader-dots to a bigger size. How to do that? Create your own leaders setup with the \definefiller

Re: [NTG-context] unwanted page break in contents

2018-08-26 Thread Jeong Dal
Dear Wolfgang, > > \setuplist > [section] > [width=10mm, > style=, > textstyle=\ss, > after={\blank[preference]}] It works perfectly. Thank you so much. Best regards, Dalyoung ___

Re: [NTG-context] unwanted page break in contents

2018-08-26 Thread Wolfgang Schuster
. Is it possible to list them continuously? Best regards, Dalyoung \starttext \definepagebreak[emptyodd][yes,header, footer, odd] \setuphead[chapter][page=emptyodd] \setuphead[title][incrementnumber=list] \setupcombinedlist[content][list={title,chapter,section,subsection}] \setuplist[chapter, title

[NTG-context] unwanted page break in contents

2018-08-26 Thread Jeong Dal
, Dalyoung \starttext \definepagebreak[emptyodd][yes,header, footer, odd] \setuphead[chapter][page=emptyodd] \setuphead[title][incrementnumber=list] \setupcombinedlist[content][list={title,chapter,section,subsection}] \setuplist[chapter, title][width=5mm, style=,textcommand={\ss\bf

Re: [NTG-context] page interaction in contents list entry

2018-07-26 Thread Henning Hraban Ramm
Am 2018-07-23 um 13:06 schrieb Henning Hraban Ramm : > Dear wizards, > > in a list command (i.e. \setuplist[command=\MyCmd]) I use > \currentlistentrypagenumber to show the page number. > Now I’d like to make this a link, like in a normal ToC. I didn’t find a > suitable com

[NTG-context] page interaction in contents list entry

2018-07-23 Thread Henning Hraban Ramm
Dear wizards, in a list command (i.e. \setuplist[command=\MyCmd]) I use \currentlistentrypagenumber to show the page number. Now I’d like to make this a link, like in a normal ToC. I didn’t find a suitable command. Is there one? Greetlings, Hraban --- https://www.fiee.net http

Re: [NTG-context] Some questions about the presentation of a book

2018-07-21 Thread Fabrice Couvreur
t; \setupheadertexts[{\getmarking[section]}] > [pagenumber] > [{\getmarking[chapter]}] > [pagenumber] > > > \setuppagenumbering[alternative=,location=] > > > \setuplabeltext[fr][chapter=Chapitre ] > > \definestructureconversionset >

[NTG-context] Some questions about the presentation of a book

2018-07-20 Thread Fabrice Couvreur
n, R, n, n, n] \definestructureconversionset [digits] [n, n, n, n, n] \setupheads[sectionconversionset=structure] \setuplist[chapter][style=bold,width=5mm] \starttext \starttitle[title={\bf Sommaire}] \placelist [chapter,section,subsection] [criterium=all, alternative=c]

Re: [NTG-context] Align TOC section numbers flushright

2018-06-26 Thread Idris Samawi Hamid ادريس سماوي حامد
are valid for \setupcombinedlist. Ah, our npp-4-context config files for calltips need updating, I have \definecombinedlist [NAME] [LIST] [INHERIT: \setuplist] but that should be \definecombinedlist [NAME] [LIST] [INHERIT: \setupcombinedlist] I have the changes only in my local files. Ah, ok

Re: [NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. Juni 2018 um 21:42 On Mon, 25 Jun 2018 13:17:40 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد schrieb: \setuphead[chapter] [conversion=R] \setuplist[chapter][width

Re: [NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 13:17:40 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد schrieb: \setuphead[chapter] [conversion=R] \setuplist[chapter][width=2.8em] \definecombinedlist [content] [chapter] [level=chapter, alternative=c, numberalign=flushright] Use \setuplist

Re: [NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد schrieb: \setuphead[chapter] [conversion=R] \setuplist[chapter][width=2.8em] \definecombinedlist [content] [chapter] [level=chapter, alternative=c, numberalign=flushright] Use \setuplist to change the numeralign setting, you need also a distance value

[NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Trying to get the sectioning numerals in the left margin of the TOC to be fushright; by default they are flushleft; see attached and below: === \setuphead[chapter] [conversion=R] \setuplist[chapter][width=2.8em] \definecombinedlist [content] [chapter] [level=chapter

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Wolfgang Schuster
edlist % \setuplist[] [content] [section] [level=section, alternative=c, criterium=local] \setuphead[section][alternative=inmargin] \setupitemize[1][inmargin][stopper=] \placecontent \starttext \startsection[title= First] \input ward \stopsection \startsection[title= Second] \startitemize[r] \sta

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Wolfgang Schuster
edlist % \setuplist[] [content] [section] [level=section, alternative=c, criterium=local] \setuphead[section][alternative=inmargin] \setupitemize[1][inmargin][stopper=] \placecontent \starttext \startsection[title= First] \input ward \stopsection \startsection[title= Second] \startitemize[r] \sta

[NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, mtx-context | current version: 2018.06.24 18:28 In the attached and below, we want sectioning numbers placed and naturally aligned in the margin: === \definecombinedlist % \setuplist[] [content] [section] [level=section, alternative=c, criterium=local] \setuphead[section

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

2018-03-06 Thread ????????
etuptyping[bodyfont=9pt, numbering=line, before=\blank, after=\blank] \setupitemize[paragraph, packed, broad] % \setupcombinedlist[content][alternative=c,aligntitle=yes,interaction=pagenumber] \setuplist[section][margin=2em,] \setuplist[subsection][margin=5em,] \setuplist[subsubsection][margin=8em,

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد
below: Line 13 makes the TOC disappear entirely: == \setuphead[subject] [incrementnumber=yes, % keep track of the number number=no]% but don't show it \starttext % Approach I \starttitle[title={Table of Contents},reference={}] \start \setuplist[subject,section,subs

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Hans Hagen
he TOC, but style=bold doesn't work.  In approach II) style=bold works, but the subject heading doesn't show up.  For each approach, how do we get both subject heading and style=bold in the TOC? you set up individual lists elements at another level \setuplist[subject,section,subsection,subsubs

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Idris Samawi Hamid ادريس سماوي حامد
works, but the subject heading doesn't show up. For each approach, how do we get both subject heading and style=bold in the TOC? you set up individual lists elements at another level \setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold] Ok - see below. loo

Re: [NTG-context] Table of contents: style and subject

2018-03-04 Thread Hans Hagen
get both subject heading and style=bold in the TOC? you set up individual lists elements at another level \setuplist[subject,section,subsection,subsubsection][alternative=c,style=bold] looks bad this: \setupinterlinespace[line=1.4ex] Between I) and II), which is the current recommended

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-19 Thread Otared Kavian
he uses the apa specification) > DON'T try this, as we do not implement it (yet)! > > > For the other requests: > > \setupbtx [apa:list:title] [style=italic] > (the default for apa) > > \setupbtx [apa:list:title:book] [style={slanted,sans}] > (untested) >

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-18 Thread Hans Hagen
ons, a rendering uses the standard list mechanism, so some of the parameters (such as pagestate) get passed on. See \setuplist Others, such as numbering= yes no num index tag short page controls the numbering of the list. It is numbering=num (or yes for default and aps) but numbering=no (for apa). numbering=inde

Re: [NTG-context] Learning how to use \setupbtxrendering

2018-02-17 Thread Alan Braslau
{slanted,sans}] (untested) \setupbtx [apa:list:volume] [style=bold] (apa default is italic) On your other questions, a rendering uses the standard list mechanism, so some of the parameters (such as pagestate) get passed on. See \setuplist Others, such as numbering= yes no num index tag short page controls

Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Wolfgang Schuster
fine[3]\SectionListCommand {\doiftextelse{\structurelistuservariable{test}}{YES}{NO}% \endgraf} % \define[3]\SectionListCommand % {\doifsomethingelse{\rawstructurelistuservariable{test}}{YES}{NO}% %\endgraf} \setuplist[section][alternative=command,command=\SectionListCommand] \starttext \pla

Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Henning Hraban Ramm
tureuservariable{author}\crlf >> }% >> #1% >> \doifnotempty{\structurelistuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}} >> >> But author/subtitle still don’t show up in the ToC. > > You’re still using the wrong command to pr

Re: [NTG-context] structureuservariable in ToC

2018-01-24 Thread Wolfgang Schuster
{\crlf\structureuservariable{subtitle}}} But author/subtitle still don’t show up in the ToC. You’re still using the wrong command to print the variables. \setuplist --> \structurelistuservariable \setuphead --> \structureuservariab

Re: [NTG-context] structureuservariable in ToC

2018-01-23 Thread Henning Hraban Ramm
}% > #1% > > \doifnotempty{\structureuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}} > > \setuplist[chapter][textcommand=\ChapterTocEntry] > > \starttext > \completelist[chapter][criterium=all] > > \startchapter[ > title={The Use of Typef

[NTG-context] structureuservariable in ToC

2018-01-14 Thread Henning Hraban Ramm
Now, my second issue with user variables: """ \define[1]\ChapterTocEntry{% \doifnotempty{\structureuservariable{author}}{\structureuservariable{author}\crlf }% #1% \doifnotempty{\structureuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}} \setuplist[chapt

Re: [NTG-context] \setuplist with numbercommand renders wrongly

2017-12-11 Thread Henri
If you want to format the TOC line you have to use command=... together with alternative=command. \define[3]\ChapterNumber{\line{Chapter #1: #2\hfill#3}} \setuplist   [section]   [alternative=command,    command=\ChapterNumber] \starttext \completecontent \startsection[title={blabla

[NTG-context] \setuplist with numbercommand renders wrongly

2017-12-10 Thread SteamedFish
I don’t know if I use it wrongly, or it’s a bug in ConTeXt, but use \setuplist with numbercommand renders wrongly % this is not working, ``chapter’’ and chapter name overlapped \define[2]\ChapterNumber{chapter #1: #2} % have to add extra spaces here to avoid overlapping % \define[2

<    1   2   3   4   5   6   7   8   9   >