Re: [NTG-context] page interaction in contents list entry
Still the same problem: I can’t get a page link in my custom ToC. What’s wrong? - >8 - \setupinteraction[state=start] \define[3]\ChapterTocEntry{% % #1-3 is not used, #1/2 are empty, #3 is page number \currentlistentrytitle\hfill% %%% goto doesn’t create a link here: {\goto{\currentlistentrypagenumber}[page(\currentlistentrypagenumber)]} %%% %\at{}[\structurelistvariable{reference}] % #3 = \currentlistentrypagenumber \par } \setuplist[chapter][% alternative=command, interaction=pagenumber, textcolor=black, before=, inbetween=, after=, command=\ChapterTocEntry, ] \usemodule[visual] \starttext \placelist[chapter][criterium=all] \dorecurse{5}{ \chapter{\fakewords{2}{7}} \dorecurse{5}{ \fakewords{10}{300}\par } } \stoptext - 8< - Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD Am 2018-07-26 um 16:22 schrieb 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 command. Is there one? > > From the sources (strc-ref.mkvi) it looks like > \goto{\currentlistentrypagenumber}[page(\currentlistentrypagenumber)] > should do the trick. > It does show the right page number, but doesn’t make it a link. > While > \goto{something}{page(30)} > works; i.e. it creates a link to page 30 of the PDF, even if the displayed > page number (user page?) is different. > > Is this an expansion problem? > > Greetlings, Hraban > --- > https://www.fiee.net > http://wiki.contextgarden.net > https://www.dreiviertelhaus.de > GPG Key ID 1C9B22FD > > ___ > 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 > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to cite online websites (reloaded)
This is my file .tex file now: \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=sample] \setuppublications[numbering=yes] \starttext As \cite[hh2010] already indicated... \completepublications \stoptext In the same folder is my sample.bib, which I copied from the CTX distribution. Example: @ELECTRONIC{hh2010, author = hh, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } This is the output from the PDF-file: *As [[error 2]] already indicated...* The output in the placelist section (no entries): *1 References* I don't see what I am doing wrong. This is how I updated CTX: first-setup -engine=luatex -modules=all -fonts=all to version *2018.09.01 23:10* Thanks for help in advance, Lars. Am Mo., 3. Sep. 2018 um 07:47 Uhr schrieb Alan Braslau < braslau.l...@comcast.net>: > \usemodule[bib] > \usemodule[bibltx] > \setupbibtex[database=sample] > > > On 3 Sep 2018, at 01:43, Lars wrote: > > > > Hi Alan, > > I don't understand. What is it that makes my code mkii? > > > > \usebtxdataset[default][My_file.bib] > > \usebtxdefinitions[aps] > > \setupbtxlist[aps][ > > %alternative=, > > width=fit, > > distance=.5em, > > %distance=0pt, > > margin=0em, > > ] > > > > \starttext > > Hallo Welt! \cite[lnkHWelt] > > > > \startappendices > > \startsection[title={Pubs},marking={}] > > \placelistofpublications[method=dataset] > > \stopsection > > \stopappendices > > \stoptext > > And that's in My_file.bib: > > > > @Misc{lnkHWelt, > > Note = "zuletzt abgerufen am 5. Aug. 2018", > > Url = "http://wiki.contextgarden.net; > > } > > > > What would be the mkiv way? > > > > Thanks in advance, Lars. > > > > > > Am 02/09/2018 um 23:56 schrieb Alan Braslau: > >> You are using the old mkii BibTeX module, not the bibliography database > system that is part of the mkiv core. > >> > >> Alan > >> > >> > >> > > > ___ > > 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 > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > ___ > > > ___ > 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 > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Some questions about the presentation of a book
Hello, To center the titles, we must add the key alternative = middle However for the title of the summary, it is correct because a single word but for the titles of chapters, it is not correct because I get : Chapitre I : First chapter instead of : Chapitre I : First chapter Thanks Fabrice 2018-07-20 23:55 GMT+02:00 Fabrice Couvreur : > Hello, > I would like to modify the file below to : > > - center the title "Sommaire" > - delete the line of the first page > - center the title of each chapter > - delete the line on each page with the title of the chapter > > Thanks for your help > Fabrice > > > ## > \usemodule[visual] > > \mainlanguage[fr] > > \setuphead[chapter][commandbefore={:\,},header=empty] > > \setuphead[subsection][style=bold] > > \setuphead[section] > [distance=\zeropoint, >style=bold, >commandbefore={\space\endash\space}] > > \setuphead[title][commandbefore={}] > > \setuplayout > [height=middle, >width=middle, >backspace=2cm, >topspace=10mm, >bottomspace=10mm, >header=10mm, >footer=10mm, >footerdistance=10mm, >headerdistance=10mm] > > \definelayout > [firstpage] > [header=empty] > > > \setupbackgrounds[header][text][bottomframe=on] > > \setupheadertexts[{\getmarking[section]}] > [pagenumber] > [{\getmarking[chapter]}] > [pagenumber] > > > \setuppagenumbering[alternative=,location=] > > > \setuplabeltext[fr][chapter=Chapitre ] > > \definestructureconversionset > [structure] > [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] > > \stoptitle > > \startchapter[title=First chapter] > \startsection[title=Fist section] > \startsubsection[title=First subsection] > \dorecurse{10}{\fakewords{120}{120}\par} > \stopsubsection > \stopsection > \stopchapter > \startchapter[title=Second chapter] > \startsection[title=Second section] > \startsubsection[title=Second subsection] > \dorecurse{10}{\fakewords{120}{120}\par} > \stopsubsection > \stopsection > \stopchapter > \stoptext > > ## > ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Some questions about the presentation of a book
Hello, I would like to modify the file below to : - center the title "Sommaire" - delete the line of the first page - center the title of each chapter - delete the line on each page with the title of the chapter Thanks for your help Fabrice ## \usemodule[visual] \mainlanguage[fr] \setuphead[chapter][commandbefore={:\,},header=empty] \setuphead[subsection][style=bold] \setuphead[section] [distance=\zeropoint, style=bold, commandbefore={\space\endash\space}] \setuphead[title][commandbefore={}] \setuplayout [height=middle, width=middle, backspace=2cm, topspace=10mm, bottomspace=10mm, header=10mm, footer=10mm, footerdistance=10mm, headerdistance=10mm] \definelayout [firstpage] [header=empty] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[{\getmarking[section]}] [pagenumber] [{\getmarking[chapter]}] [pagenumber] \setuppagenumbering[alternative=,location=] \setuplabeltext[fr][chapter=Chapitre ] \definestructureconversionset [structure] [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] \stoptitle \startchapter[title=First chapter] \startsection[title=Fist section] \startsubsection[title=First subsection] \dorecurse{10}{\fakewords{120}{120}\par} \stopsubsection \stopsection \stopchapter \startchapter[title=Second chapter] \startsection[title=Second section] \startsubsection[title=Second subsection] \dorecurse{10}{\fakewords{120}{120}\par} \stopsubsection \stopsection \stopchapter \stoptext ## ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Problem of compiling a file with Emacs
Hello, I'm starting a new discussion about compiling a file with Emacs. I will try to be clear: 1. Compilation without Emacs in a terminal (Xterm): /home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex Ok! / home / aragorn / context / tex / linux-64 / bin / context Test.tex Ok! 2. Compiling with a Emacs terminal shell command by having this in my ~ / .emacs file (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) / home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex No Ok! / home / aragorn / context / tex / tex-linux-64 / bin / context Test.tex No Ok! 3. Compiling with an Emacs terminal shell command by commenting this in my ~ / .emacs file ;; (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) / home / aragorn / texlive / 2018 / bin / x86_64-linux / context Test.tex Ok! / home / aragorn / context / tex / linux-64 / bin / context Test.tex Ok! 4. Compiling with the C-C C-C command by commenting this in my ~ / .emacs file ;; (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) OK ! 5. Coming with the C-c C-c command by having this in my ~ / .emacs file (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) (that's what I do with all other files) No OK ! Thanks. My file Test.tex % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") ysized 50pt ; \stopusableMPgraphic \unexpanded\def\processMPheadnumber#1% {\useMPgraphic{NumberHead}} \setuphead [chapter] [command=\HeadTitle, headstyle=\ss, numbercommand=\processMPheadnumber, ] \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, bottomframe=on, width=broad, align={broad,nothyphenated,left}] {#1\blank[nowhite]#2}} \starttext \starttitle[title={Sommaire}] \start \placelist [chapter,section,subsection] [criterium=all, alternative=c] \stop \stoptitle \startchapter[title=Espaces probabilisés] \startsubsection[title=Expérience aléatoire et univers] \stopsubsection \startsubsection[title=Événements] \stopsubsection \stopchapter \stoptext ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ToC as itemize
Am 2018-06-10 um 13:35 schrieb Hans Hagen : > On 6/10/2018 11:55 AM, Henning Hraban Ramm wrote: >> Might there be a solution to this problem? >> I.e. how to insert ToC entries in an itemize? > > Well, don't expect a solution without a MWE ... anyway The MWE was in my first mail (May 3rd). Thank you anyway! > > \starttext > > \define[3]\ChapterTocEntry{% > \startitem > \structurelistuservariable{author}: #1/#2/#3 > \stopitem > } > > \definelist[chapter][% > alternative=command, > interaction=all, > criterium=all, > before=, > after=, > command=\ChapterTocEntry] So I was missing alternative=command. If you consider my attached MWE one problem remains: The usual space between items is missing between the last manual item and the ToC list: ... \startitem Test entry \stopitem %\blank[1em] \placelist[chapter] ... I can fix it with the blank, but I’d like to understand. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD toctest.tex Description: Binary data ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ToC as itemize
On 6/10/2018 11:55 AM, Henning Hraban Ramm wrote: Might there be a solution to this problem? I.e. how to insert ToC entries in an itemize? Well, don't expect a solution without a MWE ... anyway \starttext \define[3]\ChapterTocEntry{% \startitem \structurelistuservariable{author}: #1/#2/#3 \stopitem } \definelist[chapter][% alternative=command, interaction=all, criterium=all, before=, after=, command=\ChapterTocEntry] \startitemize \placelist[chapter] \stopitemize \chapter{one} \chapter{two} \chapter{three} \stoptext Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD Am 2018-05-03 um 16:13 schrieb Henning Hraban Ramm : Hi again, Alan Bowen invented this interesting setup where the table of contents is to be included in an itemize. E.g. Foreword I 1. Smth unrelated .. II 2. Author: Title ... 1 3. Author: Title ... 5 etc. Only 2. and 3. come from a "list" of chapters, other entries are added manually. The attached not-really-minimal working example also handles the author setup – IRL we use a lot of user variables for metadata that needs different representation in ToC and titling. This is the core code: \define[1]\ChapterTocEntry{% \startitem \structurelistuservariable{author}: #1\leaderfill\currentlistentrypagenumber \stopitem } \definelist[chapter][% alternative=b, interaction=all, criterium=all, textcommand=\ChapterTocEntry, pagecommand=\gobbleoneargument, ] \startContentsList %\sym{}Preface\leaderfill\at{Preface} % Preface unnumbered \startitem Test entry\leaderfill 123 \stopitem \placelist[chapter][criterium=all] \stopContentsList The actual problem: The chapter list entries don’t adhere to the formatting of the itemize. I guess there’s some expansion problem, due to the \startitem inside if the textcommand? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ToC as itemize
Might there be a solution to this problem? I.e. how to insert ToC entries in an itemize? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD Am 2018-05-03 um 16:13 schrieb Henning Hraban Ramm : > Hi again, > Alan Bowen invented this interesting setup where the table of contents is to > be included in an itemize. > E.g. > > Foreword I > 1. Smth unrelated .. II > 2. Author: Title ... 1 > 3. Author: Title ... 5 > > etc. > Only 2. and 3. come from a "list" of chapters, other entries are added > manually. > > > The attached not-really-minimal working example also handles the author setup > – IRL we use a lot of user variables for metadata that needs different > representation in ToC and titling. > > This is the core code: > > \define[1]\ChapterTocEntry{% > \startitem >\structurelistuservariable{author}: >#1\leaderfill\currentlistentrypagenumber > \stopitem > } > > \definelist[chapter][% >alternative=b, >interaction=all, >criterium=all, >textcommand=\ChapterTocEntry, >pagecommand=\gobbleoneargument, > ] > > \startContentsList > %\sym{}Preface\leaderfill\at{Preface} % Preface unnumbered > > \startitem Test entry\leaderfill 123 \stopitem > > \placelist[chapter][criterium=all] > > \stopContentsList > > > The actual problem: > The chapter list entries don’t adhere to the formatting of the itemize. > I guess there’s some expansion problem, due to the \startitem inside if the > textcommand? > > > Greetlings, Hraban > --- > https://www.fiee.net > http://wiki.contextgarden.net > GPG Key ID 1C9B22FD > > ___ > 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 > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] First example in xml-mkiv.pdf
Aah yes, how silly of me to forget to add \starttext... \stoptext! Thanks for your help. Best Wishes Keith On 06/06/2018 14:32, Hans Hagen wrote: On 6/5/2018 10:03 PM, Keith McKay wrote: Dear List, In my continuing effort to improve my ConTeXt skills I thought I would have a look at XML and ConTeXt. Note: I have no XML skills but, "in for a penny, in for a pound", as they say over here. I started by looking at the very first example on page 5 of "Dealing with XML in ConTeXt mkiv" and straight away hit a problem. There is a typo in the first line of the XML file which I corrected: should be However when I ran the file using the tex file it only produced a 3 page pdf with a contents page and 2 title pages and no other text. Here is the XML file which is the similar to the one on page 5 but with two sections rather than one: Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \xmlprocessfile{demo}{demo.xml}{} This seemed such a simple example and I'm a bit perplexed as to why it did not work. Can somebody explain why no paragraphs are showing up? I'm using: ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: english/english LuaTeX, Version 1.07.0 (TeX Live 2018) Thanks and Best Wishes you need to add \starttext ... \stoptext \startbuffer[demo] Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text \stopbuffer \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocessbuffer{demo}{demo}{} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] First example in xml-mkiv.pdf
On 6/5/2018 10:03 PM, Keith McKay wrote: Dear List, In my continuing effort to improve my ConTeXt skills I thought I would have a look at XML and ConTeXt. Note: I have no XML skills but, "in for a penny, in for a pound", as they say over here. I started by looking at the very first example on page 5 of "Dealing with XML in ConTeXt mkiv" and straight away hit a problem. There is a typo in the first line of the XML file which I corrected: should be However when I ran the file using the tex file it only produced a 3 page pdf with a contents page and 2 title pages and no other text. Here is the XML file which is the similar to the one on page 5 but with two sections rather than one: Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \xmlprocessfile{demo}{demo.xml}{} This seemed such a simple example and I'm a bit perplexed as to why it did not work. Can somebody explain why no paragraphs are showing up? I'm using: ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: english/english LuaTeX, Version 1.07.0 (TeX Live 2018) Thanks and Best Wishes you need to add \starttext ... \stoptext \startbuffer[demo] Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text \stopbuffer \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocessbuffer{demo}{demo}{} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] First example in xml-mkiv.pdf
Dear List, In my continuing effort to improve my ConTeXt skills I thought I would have a look at XML and ConTeXt. Note: I have no XML skills but, "in for a penny, in for a pound", as they say over here. I started by looking at the very first example on page 5 of "Dealing with XML in ConTeXt mkiv" and straight away hit a problem. There is a typo in the first line of the XML file which I corrected: should be However when I ran the file using the tex file it only produced a 3 page pdf with a contents page and 2 title pages and no other text. Here is the XML file which is the similar to the one on page 5 but with two sections rather than one: Some title a paragraph of text another paragraph of text Another title a paragraph of text another paragraph of text The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \xmlprocessfile{demo}{demo.xml}{} This seemed such a simple example and I'm a bit perplexed as to why it did not work. Can somebody explain why no paragraphs are showing up? I'm using: ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: english/english LuaTeX, Version 1.07.0 (TeX Live 2018) Thanks and Best Wishes Keith McKay ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] ToC as itemize
Hi again, Alan Bowen invented this interesting setup where the table of contents is to be included in an itemize. E.g. Foreword I 1. Smth unrelated .. II 2. Author: Title ... 1 3. Author: Title ... 5 etc. Only 2. and 3. come from a "list" of chapters, other entries are added manually. The attached not-really-minimal working example also handles the author setup – IRL we use a lot of user variables for metadata that needs different representation in ToC and titling. This is the core code: \define[1]\ChapterTocEntry{% \startitem \structurelistuservariable{author}: #1\leaderfill\currentlistentrypagenumber \stopitem } \definelist[chapter][% alternative=b, interaction=all, criterium=all, textcommand=\ChapterTocEntry, pagecommand=\gobbleoneargument, ] \startContentsList %\sym{}Preface\leaderfill\at{Preface} % Preface unnumbered \startitem Test entry\leaderfill 123 \stopitem \placelist[chapter][criterium=all] \stopContentsList The actual problem: The chapter list entries don’t adhere to the formatting of the itemize. I guess there’s some expansion problem, due to the \startitem inside if the textcommand? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD toctest.tex Description: Binary data ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question to sectioning
Hi Wolfgang, some deep error appeared, unfortunately. I tested it on TL2014--17. Did you use TL2018? It seems similarly as any other error related with the change of dimensions maintanance betweeen TL2017 and 2018. Tomáš tex error > tex error on line 8 in file x.tex: ! Missing number, treated as zero s s amepage--1 \addaskedblankskip ..._vspacing_temp #1\dimexpr #2 \relax l.8 } \spac_vspacing_yes_indeed ...ar \clf_vspacing {#1} \fi \strc_sectioning_handle_page_yes ...entheadlevel ] \fi \headparameter \c!befo... ... l.15\levelA{A1} 1 2\definehead [specialpage] [chapter] 3\definehead [levelA] [chapter] 4 5\setuphead 6 [specialpage] 7 [incrementnumber=list, 8 >> header=empty 9 ] 10 Wed, Apr 18, 2018 ve 06:00:27PM +0200 Wolfgang Schuster napsal(a): # [1]Tomas Hala # 11. April 2018 um 19:36 # Hello, # # I have got a document with e.g. six chapters, numbers are from 1 to 6. # At special places I would like put a special page containing a special # title. # The special page should be without a header and without any number, # the title should be put into the contents by the same way as other # chapters.. # # I came across two problems: # # First, in the minimal example below I get chapter numbers 1, 2, 4, 5, 7, # 8 # and if I use incrementnumber=no, the "specialpage" is not stored in the # contents. # # Secondly, I do know how to switch off the header only at this special # page. # # I also tried \definehead[specialpage][title] but in this case the # "specialpage" is not stored in the # contents, too. # #Like this? # #\definehead [specialpage] [chapter] #\definehead [levelA] [chapter] # #\setuphead # [specialpage] # [incrementnumber=list, # header=empty] # #\starttext # #\placelist[levelA,specialpage] # #\levelA{A1} #\levelA{A2} #\specialpage{Special page 1} #\levelA{A3} #\levelA{A4} #\specialpage{Special page 2} #\levelA{A5} #\levelA{A6} # #\stoptext # #Wolfgang # # References # #Visible links #1. mailto:tomas.h...@mendelu.cz # /usr/bin/xdg-open: řádek 402: htmlview: příkaz nenalezen # /usr/bin/xdg-open: řádek 402: firefox: příkaz nenalezen # /usr/bin/xdg-open: řádek 402: mozilla: příkaz nenalezen # /usr/bin/xdg-open: řádek 402: netscape: příkaz nenalezen # ___ # 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 # webpage : http://www.pragma-ade.nl / http://context.aanhet.net # archive : https://bitbucket.org/phg/context-mirror/commits/ # wiki : http://contextgarden.net # ___ Tomáš Hála Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 http://akela.mendelu.cz/~thala ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question to sectioning
Tomas Hala <mailto:tomas.h...@mendelu.cz> 11. April 2018 um 19:36 Hello, I have got a document with e.g. six chapters, numbers are from 1 to 6. At special places I would like put a special page containing a special title. The special page should be without a header and without any number, the title should be put into the contents by the same way as other chapters.. I came across two problems: First, in the minimal example below I get chapter numbers 1, 2, 4, 5, 7, 8 and if I use incrementnumber=no, the "specialpage" is not stored in the contents. Secondly, I do know how to switch off the header only at this special page. I also tried \definehead[specialpage][title] but in this case the "specialpage" is not stored in the contents, too. Like this? \definehead [specialpage] [chapter] \definehead [levelA] [chapter] \setuphead [specialpage] [incrementnumber=list, header=empty] \starttext \placelist[levelA,specialpage] \levelA{A1} \levelA{A2} \specialpage{Special page 1} \levelA{A3} \levelA{A4} \specialpage{Special page 2} \levelA{A5} \levelA{A6} \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table of contents: style and subject
On Sun, 04 Mar 2018 06:29:53 -0700, Hans Hagen <pra...@wxs.nl> wrote: A working minimal example follows. Is this the recommended practice? Can it be streamlined further? : \placecontent \placelist[content] [subject,section,subsection,subsubsection] Hm, toggling lines 12-13 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,subsection,subsubsection] [alternative=c,style=bold] \setupcombinedlist[content] [list={subject,section,subsection,subsubsection}] % \placecontent % line 12 \placelist[content] % line 13 [subject,section,subsection,subsubsection] \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection \startsection[title={Section Two},reference={}] new page \page \stopsection \startsubject[title={Subject},reference={}] \stopsubject \stoptext == -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table of contents: style and subject
On 3/4/2018 2:01 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Sun, 04 Mar 2018 02:47:17 -0700, Hans Hagen <pra...@wxs.nl> wrote: On 3/4/2018 4:27 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Here's a strange situation: In approach I) we get the subject heading in the 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,subsubsection][alternative=c,style=bold] Ok - see below. looks bad this: \setupinterlinespace[line=1.4ex] Yes, residue from another experiment.. Between I) and II), which is the current recommended standard practice for MKIV? A working minimal example follows. Is this the recommended practice? Can it be streamlined further? Best wishes Idris == \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,subsection,subsubsection] [alternative=c,style=bold] \setupcombinedlist[content] [list={subject,section,subsection,subsubsection}] \placecontent \placelist[content] [subject,section,subsection,subsubsection] \stop \stoptitle \page \startsection[title={Section One},reference={}] new page \page \stopsection \startsection[title={Section Two},reference={}] new page \page \stopsection \startsubject[title={Subject},reference={}] \stopsubject \stoptext == ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] structureuservariable in ToC
Henning Hraban Ramm <mailto:te...@fiee.net> 24. Januar 2018 um 08:51 Thank you, now I have: \define[1]\ChapterTocEntry{% \doifnotempty{\structurelistuservariable{author}}{\structureuservariable{author}\crlf }% #1% \doifnotempty{\structurelistuservariable{subtitle}}{\crlf\structureuservariable{subtitle}}} But author/subtitle still don’t show up in the ToC. Use the \doiftext check or replace \structurelistuservariable (which is never empty because it is tagged) with \rawstructurelistuservariable (which isn’t tagged and contains only the content of the variable). \define[3]\SectionListCommand {\doiftextelse{\structurelistuservariable{test}}{YES}{NO}% \endgraf} % \define[3]\SectionListCommand % {\doifsomethingelse{\rawstructurelistuservariable{test}}{YES}{NO}% %\endgraf} \setuplist[section][alternative=command,command=\SectionListCommand] \starttext \placelist[section] \startsection[title=X][test=A] \stopsection \startsection[title=Y] \stopsection \startsection[title=Z][test=B] \stopsection \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] uservariables in heads and lists
Hi, it’s been a while... For a scientific magazine I need subtitles in the margin and authors as well as subtitles in my ToC. I didn’t yet try the latter, since I got stuck with the first. Here’s my complete, not really working example: """ \usemodule[visual] \setuplayout[ backspace=21mm, topspace=12mm, width=117mm, height=270mm, header=15mm, headerdistance=2mm, footer=3mm, footerdistance=4mm, rightmargindistance=5mm, rightmargin=55mm, leftmargin=0mm, grid=yes, location=doublesided ] \define[2]\ChapterCmd{% {\bfa #2} {\inouter{\structureuservariable{subtitle}}} } \setuphead[chapter][ page=right, command=\ChapterCmd, ] \starttext %\showlayout \starttitle[title={Content}][subtitle={}] %\placelist[chapter][criterium=all] \stoptitle \startchapter [title=My Title,][% is this necessary? subtitle=My Subtitle, author=Me and I] \fakewords{100}{200} \stopchapter \stoptext """ Problems: (1) The subtitle is not in the margin as defined by \setuplayout, but beside the chapter title. (2) \starttitle throws ...xmf/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:823: table index is nil stack traceback: ...xmf/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:823: in function 'setprop' ...xmf/tex/texmf-context/tex/context/base/mkiv/typo-mar.lua:207: in function <...xmf/tex/texmf-context/tex/context/base/mkiv/typo-mar.lua:204> What does that mean? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \listfigures in context..
AKA \placelistoffigures [criterium=all] Alan On Sat, 16 Dec 2017 18:26:10 +0100 Otared Kavian <ota...@gmail.com> wrote: > Hi John, > > You are maybe looking for > > \placelist[figure] > > Best regards: OK > > > > On 16 Dec 2017, at 18:13, John Culleton <j...@wexfordpress.com> > > wrote: > > > > > > Latex has a \llistfigures command. Does context have an equivalent > > command? > > John Culleton > > > > ___ > > 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 webpage : > > http://www.pragma-ade.nl / http://context.aanhet.net archive : > > https://bitbucket.org/phg/context-mirror/commits/ wiki : > > http://contextgarden.net > > ___ > > ___ > 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 webpage : > http://www.pragma-ade.nl / http://context.aanhet.net archive : > https://bitbucket.org/phg/context-mirror/commits/ wiki : > http://contextgarden.net > ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \listfigures in context..
Hi John, You are maybe looking for \placelist[figure] Best regards: OK > On 16 Dec 2017, at 18:13, John Culleton <j...@wexfordpress.com> wrote: > > > Latex has a \llistfigures command. Does context have an equivalent command? > > John Culleton > > ___ > 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 > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \setupheadertexts except on pages with title of chapter
Hello, I would like that on the pages with the title of the chapter the header is empty. Fabrice \setupheadertexts[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \starttext \placelist[chapter,section][alternative=c] \startchapter[title={First chapter}] \startsection[title={First section}] \dorecurse{5}{\input knuth} \stopsection \stopchapter \startchapter[title={Second chapter}] \startsection[title={Second section}] \dorecurse{5}{\input knuth} \stopsection \stopchapter \stoptext ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages
Hi Pablo, Thank you so much ! Fabrice %\setupbackgrounds[header][text][bottomframe=on] \setuphead [chapter] [header=empty] \setupheader[text][after=\vskip 1pt \hrule] \starttext \starttitle[title={\bf My Book}] \stoptitle \placelist[chapter,section][alternative=c] \stoptext 2017-08-24 18:12 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>: > On 08/24/2017 05:10 PM, Fabrice Couvreur wrote: > > Hi, > > How to proceed so that the text of the head is not on the page with the > > table of contents and pages with the title of the chapter ? > > Hi Fabrice, > > to the first question: > > \setuphead > [chapter] > [header=empty] > > You might not want the rule in those pages. Play with the options: > > %~ \setupheader[text][after=\vskip 3pt \hrule] > \setupheader[text][after={\blackrule[ > width=\textwidth, > height=1em]}] > > It is wiser (not only to solve the problem), that you write a \title > before \placelist. > > I hope it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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 > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages
On 08/24/2017 05:10 PM, Fabrice Couvreur wrote: > Hi, > How to proceed so that the text of the head is not on the page with the > table of contents and pages with the title of the chapter ? Hi Fabrice, to the first question: \setuphead [chapter] [header=empty] You might not want the rule in those pages. Play with the options: %~ \setupheader[text][after=\vskip 3pt \hrule] \setupheader[text][after={\blackrule[ width=\textwidth, height=1em]}] It is wiser (not only to solve the problem), that you write a \title before \placelist. I hope it helps, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Draw a line under the headertext in ConTeXt except some pages
Hi, How to proceed so that the text of the head is not on the page with the table of contents and pages with the title of the chapter ? Thanks Fabrice \setuplayout [ header=\lineheight, headerdistance=\lineheight, ] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \definestructureconversionset [structure] [numbers, Romannumerals, numbers, numbers, numbers] [numbers] \setupheads [sectionconversionset=structure] \setuplist [chapter] [ style=bold, ] \starttext \placelist[chapter,section][alternative=c] \startchapter[title=Espaces probabilisés] \startsection[title=Expérience aléatoire et univers] \dorecurse{5}{\input knuth} \stopsection \startsection[title=Événements] \dorecurse{5}{\input knuth} \stopsection \stopchapter \startchapter[title=Variables aléatoires : généralités] \startsection[title=Définition] \dorecurse{5}{\input knuth} \stopsection \startsection[title=Loi de probabilité d'une variable aléatoire] \dorecurse{5}{\input knuth} \stopsection \stopchapter \stoptext ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] \xmlfirst broken?
On 7/17/2017 3:40 AM, Henri Menke wrote: Dear list, A recent question on TeX.SX is asking about XML processing. https://tex.stackexchange.com/questions/380935 To reproduce the error from the question I copied the demo from the XML manual. First of all we have demo.xml: Some title a paragraph of text another paragraph of text And then we have a ConTeXt document: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|section|p}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocessfile{demo}{demo.xml}{} \stoptext This works partially. Some entities are printed fine but stuff in \xmlfirst is missing. I can reproduce this in TL2017 and latest beta. In the attached PDF you can see that the section has no title and no content (exactly the stuff \xmlfirst was supposed to get). just comment the line: \xmlsetsetup{#1}{*}{-} or provide setups for content and title too Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \xmlfirst broken?
Dear list, A recent question on TeX.SX is asking about XML processing. https://tex.stackexchange.com/questions/380935 To reproduce the error from the question I copied the demo from the XML manual. First of all we have demo.xml: Some title a paragraph of text another paragraph of text And then we have a ConTeXt document: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|section|p}{xml:demo:*} \stopxmlsetups \xmlregisterdocumentsetup{demo}{xml:demo:base} \startxmlsetups xml:demo:document \starttitle[title={Contents}] \placelist[chapter] \stoptitle \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:demo:section \startchapter[title=\xmlfirst{#1}{/title}] \xmlfirst{#1}{/content} \stopchapter \stopxmlsetups \startxmlsetups xml:demo:p \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocessfile{demo}{demo.xml}{} \stoptext This works partially. Some entities are printed fine but stuff in \xmlfirst is missing. I can reproduce this in TL2017 and latest beta. In the attached PDF you can see that the section has no title and no content (exactly the stuff \xmlfirst was supposed to get). Cheers, Henri test.pdf Description: Adobe PDF document ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Table of content in presentation example
On 5/12/2017 10:08 PM, cryo shock wrote: \placecontent \placelist[chapter,section][criterium=all] by default you get a local one (you can also ask for one level up and so) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] sorting languages
On 03/21/2017 06:44 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez schrieb am 21. März 2017 um 18:19: >> After updating to latest beta (2017.03.21 14:21), I’m afraid I still get >> wrong alphabetic sorting for both Spanish and ancient Greek texts. >> [...] >> In the line above, isn’t "ὰ" replaced by two different values? Is this ok? > > As I can see \setuplist[order=title] has no language specific settings. Is there a way to specify the language? Couldn’t it use by default \currentlanguage of the \placelist command? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] list items not broken in lines
On 03/06/2017 09:45 PM, Henning Hraban Ramm wrote: > Am 2017-03-06 um 21:23 schrieb Pablo Rodriguez: >> [...] >> I’m afraid I wasn’t clear. This is required for: >> >>\placelist[section][alternative=d]. >> >> I’m afraid it doesn’t work there. > > Did you try \setuplist[textcommand ? Hraban, I tired it, but I had to do something wrong, because it didn’t work and now it works fine. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] list items not broken in lines
Am 2017-03-06 um 21:23 schrieb Pablo Rodriguez <oi...@gmx.es>: > On 03/06/2017 09:01 PM, Henning Hraban Ramm wrote: >> Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez: >>> I would like to avoid line breaks in section items. Which would be the >>> right way of doing it? >>> >>> This would be similar (I think) to know how to get the "{this is a >>> expression}" with no line break inside (and not using "~"). >> >> Usually you can use \hbox{this doesn’t break}. >> >> Try something like >> >> \def\MySection#1{\hbox{#1}} >> \setuphead[section][textcommand=\MySection] > > Hraban, > > I’m afraid I wasn’t clear. This is required for: > >\placelist[section][alternative=d]. > > I’m afraid it doesn’t work there. Did you try \setuplist[textcommand ? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] list items not broken in lines
On 03/06/2017 09:01 PM, Henning Hraban Ramm wrote: > Am 2017-03-06 um 19:04 schrieb Pablo Rodriguez: >> I would like to avoid line breaks in section items. Which would be the >> right way of doing it? >> >> This would be similar (I think) to know how to get the "{this is a >> expression}" with no line break inside (and not using "~"). > > Usually you can use \hbox{this doesn’t break}. > > Try something like > > \def\MySection#1{\hbox{#1}} > \setuphead[section][command=\MySection] Hraban, I’m afraid I wasn’t clear. This is required for: \placelist[section][alternative=d]. I’m afraid it doesn’t work there. Any other option to get it? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] list items not broken in lines
Dear list, I have the following sample: \setupinteraction[state=start, color=, style=, contrastcolor=] \enabledirectives[references.border] \startsetups[placelist:section] \startalign[center] \setupinterlinespace[line=2.8ex] \placelist[section] [alternative=d, pagenumber=no, headnumber=no, style=\itx, criterium=local] \par \stopalign \stopsetups \setuplist[chapter][after=\directsetup{placelist:section}] \starttext \placelist[chapter] \dorecurse{4}{\chapter{Chapter} \dorecurse{20}{\section{Section from This Chapter}}} \stoptext I would like to avoid line breaks in section items. Which would be the right way of doing it? This would be similar (I think) to know how to get the "{this is a expression}" with no line break inside (and not using "~"). Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] issue with linenotes and columns
Dear list, I have the following sample: http://www.ousia.tk/hippocratic-oath.tex After the fix from last beta, I’m afraid I’m still experiencing wrong column breaks, as displayed in http://www.ousia.tk/hippocratic-oath.pdf. Page 1: last line from first column should move to second column. Page 2: totally unbalanced columns. Page 3: first line from second column should be moved to first column. Page 4: I wonder why there is so much spaceinbetween notes (more than a line, as far as I can tell) and no spacebefore. For all pages: if setups are exactly the same, why does the first group of linenotes (dict) have a bigger interlinespace than the second group? Another question is how I should get columns for \placelist[dict]? Is the columnn breaking issue a bug or am I missing something? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] keep interaction with \insertpages and \filterpages
On 1/10/2017 9:41 AM, Pablo Rodriguez wrote: On 01/09/2017 01:15 PM, Hans Hagen wrote: On 1/9/2017 12:39 PM, Pablo Rodriguez wrote: Dear list, is there a way to keep interaction in the resulting PDF document when adding the whole document with \insertpages, or only some pages with \filterpages? \setupexternalfigures[interaction=all] Many thanks for the reply, Hans. Is there a way to keep internal document links (such as in the table of contents)? They are all gone in the imposition (I use the commands above for imposition). 1.tex: \setupinteraction[state=start] \starttext \placelist[chapter] \chapter{one} \chapter{two} \stoptext 2.tex: \setupinteraction[state=start] \starttext % \startTEXpage \externalfigure[1.pdf][page=1,interaction=all]\stopTEXpage % \startTEXpage \externalfigure[1.pdf][page=2,interaction=all]\stopTEXpage % \startTEXpage \externalfigure[1.pdf][page=3,interaction=all]\stopTEXpage \setuplayout[page] \setupexternalfigure[interaction=all] \filterpages[1.pdf][1,2,3] \page \setuplayout[reset] \typefile{1.tex} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] align natural tables left and right
On 2016-12-30 14:42, MF wrote: I've realized that \startplacetable is not necessary: \starttext \startframed[frame=off, align=flushleft, % table aligned to the left width=broad, % the frame takes all the text width offset=overlay, % no space around the table ] \bTABLE \bTR \bTD $a_{11}$ \eTD \bTD $a_{12}$ \eTD \eTR \bTR \bTD $a_{21}$ \eTD \bTD $a_{22}$ \eTD \eTR \eTABLE \stopframed Following text. Following text. Following text. Following text. \stoptext Massi, Whether or not you need \startplacefloat (where the float can be a figure, graphic, intermezzo, or table, or a user-defined item) depends on the requirements of the document. Floats are typically separate entities that do not appear in the linear flow of the text, but instead appear in a convenient place close to where they are referenced by the text. In addition to providing suggestions to the placement algorithm for positioning the float and handling caption formatting, the \startplacefloat mechanism manages the generation of reference information. If your tables are always set inline and do not need to be referenced within the text or in lists of floats (via \placelist), then you do not need \startplacefloat. -- Rik ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \directsetup?
On 11/17/2016 8:53 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[placesect] \start \setupinterlinespace [line=2.8ex] \placelist [section] [alternative=d, numbersegments=section, pagenumber=no, style=\itx] \par \stop \stopsetups \setuplist [chapter] [before={\blank[medium]}, after=\directsetup{placesect}] \starttext \placelist[chapter] \dorecurse{5}{\chapter{Knuth}\input knuth \dorecurse{8}{\section{Zapf}\input zapf}} \stoptext I need the \directsetup to be able to set up a different interline space in the section list from TOC. I’m using latest beta from 2016.11.17 14:19. There is a weird behaviour: the links from TOC for the first sections reach the chapter title an not the section title. fixed in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] bug in \directsetup?
Dear list, I have the following sample: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[placesect] \start \setupinterlinespace [line=2.8ex] \placelist [section] [alternative=d, numbersegments=section, pagenumber=no, style=\itx] \par \stop \stopsetups \setuplist [chapter] [before={\blank[medium]}, after=\directsetup{placesect}] \starttext \placelist[chapter] \dorecurse{5}{\chapter{Knuth}\input knuth \dorecurse{8}{\section{Zapf}\input zapf}} \stoptext I need the \directsetup to be able to set up a different interline space in the section list from TOC. I’m using latest beta from 2016.11.17 14:19. There is a weird behaviour: the links from TOC for the first sections reach the chapter title an not the section title. All other sections have their right destinations from the table of contents. And bookmarks for first sections have also the right destinations. Of course, this would work as expected, if I avoided the \directsetup (having a wrong interline space). If this isn’t a bug, what am I missing? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] interline space for \setuplist[alternative=d]
Hans, I have the following sample: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[lsect] \setupinterlinespace[line=28ex] \stopsetups \setuplist[section][style=\tfxx, alternative=d, setups=lsect] \starttext \completecontent \dorecurse{5}{\chapter{Knuth}\input knuth \dorecurse{8}{\section{Zapf}\input zapf}} \stoptext I cannot set the interline space for \setuplist[section]. Wolfgang kindly provided me with a workaround: \setuppapersize[A6] \setupinteraction[state=start, focus=standard] \placebookmarks[chapter, section][chapter, section] \startsetups[plsect] \start \setupinterlinespace [line=2.8ex] \placelist [section] [alternative=d, numbersegments=section, pagenumber=no, style=\itx] \par \stop \stopsetups \setuplist [chapter] [before={\blank[medium]}, after=\directsetup{plsect}] \starttext \placelist[chapter] \dorecurse{5}{\chapter{Knuth}\input knuth \dorecurse{8}{\section{Zapf}\input zapf}} \stoptext But the issue I discovered recently is that the first section links from the table of contents reach the chapter destination (and not the first section). Bookmarks work fine, instead. Wouldn’t it be better to improve the alternative=d in \setuplist, so that interline space could be set up with the setups option? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
On 6 Sep 2016, at 09:06 , Robert Blackstone <blackstone.rob...@gmail.com> > To: ntg-context@ntg.nl > > On 5 Sep 2016, at 11:06 , Hans Hagen <pra...@wxs.nl> wrote >> >> On 9/5/2016 9:06 AM, Robert Blackstone wrote: >>> >>> I need a pagebreak in the ToC to avoid a widow. >>> So far I used the method given in sept 2010 in >>> https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and >>> still on http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break, >>> but >>> it does not seem to work anymore. >>> >>> MWE (from the first-mentioned site): >>> %%% >>> >>> \definelistextra[page][before=\page,after=\page] >>> >>> \starttext >>> >>>\placelist[chapter,section][criterium=text,extras={1.1=page}] >>> >>>\chapter{x1} >>>\section{xx1} >>>\section{xx2} >>>\chapter{y2} >>>\section{yy1} >>>\section{yy2} >>> >>> \stoptext >>> >>> % >>> Compiled with a recent mkiv, from between sept 2015 till july 2016, the >>> result shows no page break in the ToC. >>> What can be done about this? >> >> \showinjector >> >> \setinjector[register][3][\column] >> \setinjector[list][2][{\blank[3*big]}] >> >> \starttext >>\placelist[section][criterium=text] >>\blank[3*big] >>\placeregister[index][criterium=text] >>\page >>\startsection[title=Alpha] first \index{first} \stopsection >>\startsection[title=Beta] second \index{second} \stopsection >>\startsection[title=Gamma] third \index{third} \stopsection >>\startsection[title=Delta] fourth \index{fourth} \stopsection >> \stoptext > > Thanks Hans, for your quick reaction. > > Maybe my question was not clear enough but in any case your remedy does not > help me. > .. etc. Dear Hans, My apologies. Your remedy does help. Initially I just didn’t understand what to do with this injector. Best regards, Robert Blackstone > > > > > > > -- > > Message: 2 > Date: Mon, 5 Sep 2016 16:33:53 +0200 > From: Pablo Rodriguez <oi...@gmx.es> > To: mailing list for ConTeXt users <ntg-context@ntg.nl> > Subject: Re: [NTG-context] bug in latest beta? > Message-ID: <58e9fb16-dade-5cb0-3c0c-c2cc572d9...@gmx.es> > Content-Type: text/plain; charset=utf-8 > > On 09/05/2016 10:39 AM, Akira Kakuto wrote: >>> the following sample gives a Lua error with latest beta (2016.09.04 13:46): >> >> Compilation is fine in the latest luatex 0.98.4 with >> mtx-context | current version: 2016.09.04 13:46. >> > > Hi Akira, > > it seems that luatex-0.98.4 has been released for Windows today. > > I will wait for the release in the Linux 32bit platform. > > Luigi, would it be possible that all platforms have the latest LuaTeX > version included? > > Many thanks for your help, > > > Pablo > -- > http://www.ousia.tk > > > -- > > Message: 3 > Date: Mon, 5 Sep 2016 16:44:16 +0200 > From: luigi scarso <luigi.sca...@gmail.com> > To: mailing list for ConTeXt users <ntg-context@ntg.nl> > Subject: Re: [NTG-context] bug in latest beta? > Message-ID: >
Re: [NTG-context] insert pagebreak in toc (MkIV)
On 5 Sep 2016, at 11:06 , Hans Hagen <pra...@wxs.nl> wrote > > On 9/5/2016 9:06 AM, Robert Blackstone wrote: >> >> I need a pagebreak in the ToC to avoid a widow. >> So far I used the method given in sept 2010 in >> https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and >> still on http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break, >> but >> it does not seem to work anymore. >> >> MWE (from the first-mentioned site): >> %%% >> >> \definelistextra[page][before=\page,after=\page] >> >> \starttext >> >> \placelist[chapter,section][criterium=text,extras={1.1=page}] >> >> \chapter{x1} >> \section{xx1} >> \section{xx2} >> \chapter{y2} >> \section{yy1} >> \section{yy2} >> >> \stoptext >> >> % >> Compiled with a recent mkiv, from between sept 2015 till july 2016, the >> result shows no page break in the ToC. >> What can be done about this? > > \showinjector > > \setinjector[register][3][\column] > \setinjector[list][2][{\blank[3*big]}] > > \starttext > \placelist[section][criterium=text] > \blank[3*big] > \placeregister[index][criterium=text] > \page > \startsection[title=Alpha] first \index{first} \stopsection > \startsection[title=Beta] second \index{second} \stopsection > \startsection[title=Gamma] third \index{third} \stopsection > \startsection[title=Delta] fourth \index{fourth} \stopsection > \stoptext Thanks Hans, for your quick reaction. Maybe my question was not clear enough but in any case your remedy does not help me. I have adapted your MWE containing the remedy a bit to make the problem a bit more obvious: %% \setinjector[register][3][\column] \setinjector[list][][{\blank[3*big]}] \starttext \placelist[chapter,section][criterium=text] \blank[3*big] \startchapter[title={Introduction}] \startsection[title=Alpha] \index{first} \stopsection \startsection[title=Beta] second \index{second} \stopsection \stopchapter \startchapter[title={History}] \startsection[title=Gamma] third \index{third} \stopsection \startsection[title=Delta] fourth \index{fourth} \stopsection \stopchapter \startchapter[title={Index}] \placeregister[index][criterium=text] \stopchapter \stoptext %%%% What I would need is a forced page break in the ToC, in this example before Chapter 2. A few months ago this could still be accomplished by inserting into the preamble "\definelistextra[page][before=\page,after=\page]", and "\placelist[chapter,section][criterium=text,extras={1.2=page}]" in the text. But now, with the same version of mkiv, nothing happens. Has this method of forcing a page-break in the ToC mysteriuosly diswppeared or do I use the worng command? Best regards, Robert Blackstone ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] insert pagebreak in toc (MkIV)
On 9/5/2016 9:06 AM, Robert Blackstone wrote: Dear all (but maybe in particular Dear Hans), I need a pagebreak in the ToC to avoid a widow. So far I used the method given in sept 2010 in https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and still on http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break, but it does not seem to work anymore. MWE (from the first-mentioned site): %%% \definelistextra[page][before=\page,after=\page] \starttext \placelist[chapter,section][criterium=text,extras={1.1=page}] \chapter{x1} \section{xx1} \section{xx2} \chapter{y2} \section{yy1} \section{yy2} \stoptext % Compiled with a recent mkiv, from between sept 2015 till july 2016, the result shows no page break in the ToC. What can be done about this? \showinjector \setinjector[register][3][\column] \setinjector[list][2][{\blank[3*big]}] \starttext \placelist[section][criterium=text] \blank[3*big] \placeregister[index][criterium=text] \page \startsection[title=Alpha] first \index{first} \stopsection \startsection[title=Beta] second \index{second} \stopsection \startsection[title=Gamma] third \index{third} \stopsection \startsection[title=Delta] fourth \index{fourth} \stopsection \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] insert pagebreak in toc (MkIV)
Dear all (but maybe in particular Dear Hans), I need a pagebreak in the ToC to avoid a widow. So far I used the method given in sept 2010 in https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and still on http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break, but it does not seem to work anymore. MWE (from the first-mentioned site): %%% \definelistextra[page][before=\page,after=\page] \starttext \placelist[chapter,section][criterium=text,extras={1.1=page}] \chapter{x1} \section{xx1} \section{xx2} \chapter{y2} \section{yy1} \section{yy2} \stoptext % Compiled with a recent mkiv, from between sept 2015 till july 2016, the result shows no page break in the ToC. What can be done about this? Thanks in advance for any help. Best regards, Robert Blackstone ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Captions numbering
2016-09-04 6:42 GMT-03:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>: > Use "incrementnumber=list" to get TOC entries for your unnumbered sections. > > Wolfgang Hello Wolfgang. In fact, with the option "incrementnumber=list" you can to show unnumbered section in TOC but unfortunately this causes the captions numbering problem. In the following example you can check that when one use a figure/table in a unnumbered section, captions will shown as Table 1, and not as Table 1.1. \setuphead[chapter, section, subsection] \setuphead[subsubsection][number=no,incrementnumber=list] \starttext \starttitle[title={Contents}] \stoptitle \placelist[chapter,section,subsubsection] \starttitle[title={Figures}] \stoptitle \placelist[figure] \startchapter[title=Chapter title] \input ward \startsection[title=Section title1] \input ward \placefigure[here][]{Caption}{\externalfigure[dummy]} \startsubsubsection[title=Subsubsection title] \input ward \placefigure[here][]{Caption}{\externalfigure[dummy]} \stopsubsubsection \stopsection \stopsection \stopchapter \stoptext Thanks. ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] issue with TOC
Dear list, I have the following sample \starttext \placelist[chapter][alternative=c] \chapter{\input zapf} \stoptext Which is the key that controls the separation between title and page number, similar to "distance" for number and title? Sorry, I checked both i-context.pdf and strc-lst.mkvi, but I’m afraid I was unable to find answer to my question. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [NTG-ConTeXt] Wrong order of sections and subsections
Dear List In the wiki, http://wiki.contextgarden.net/Titles, there is a MWE of how to flush section head data without typesetting it in the text. But then \placelist gives a wrong order of sections and subsections: 1 First section 1.1 First subsection 2 Second section 1.2 Second subsection 2.1 First subsection If \setuptexttexts is omitted and the argument placehead=yes instead of placehead=hidden, then the order is correct: 1 First section 1.1 First subsection 1.2 Second subsection 2 Second section 2.1 First subsection Am I missing something? Marcus Vinicius __- MWE from the wiki \setuphead [section] [placehead=hidden, page=yes] \setuphead [subsection] [placehead=yes, page=yes, continue=yes, style=\it] \setuptexttexts[{\placerawheaddata[section]}] \starttext \placelist[section,subsection] \page \startsection[title=First section] \startsubsection[title=First subsection] Lorem ipsum \dots \stopsubsection \startsubsection[title=second subsection] Lorem ipsum \dots \stopsubsection \stopsection \startsection[title=Second section] \startsubsection[title=First subsection] Lorem ipsum \dots \stopsubsection \stopsection \stoptext Marcus Vinicius -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] issue with bookmark for sections
Dear list, I have the following sample: \setuppapersize[A5] \setupinteraction[state=start, focus=standard] \startsetups[placelist:section] \start \setupinterlinespace [line=2.8ex] \placelist [section] [alternative=d, 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\input knuth} } \stoptext The setups are required to allow a different interline space in the list of section items from the content lists. But the issue I’m experiencing is that the bookmarks from the first sections in each chapter have their destinations in the chapter and not in its section titles. Am I missing something or this is a bug in ConTeXt? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] placelist not working in latest beta
> On 21 Mar 2016, at 15:28, Hans Hagenwrote: > > when playign with some new feature i commented too much > > around line 722, uncomment: > > \setuplistalternative > [\c!command=\strictlistparameter\c!command, > \c!symbol=.] > > Done, and it works again! Thanks Hans! Thomas ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] placelist not working in latest beta
On 3/21/2016 9:57 AM, Schmitz Thomas A. wrote: Hi all, example attached with output from latest beta and an older one. The \placelist command appears to have changed recently; the older beta I tested is from November, but this used to work in February as well, the change must be recent. when playign with some new feature i commented too much around line 722, uncomment: \setuplistalternative [\c!command=\strictlistparameter\c!command, \c!symbol=.] Thanks a lot Thomas \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \gdef\MyMark{#1}% \writetolist[MyTopics][location=none]{#1}{}} \define[3]\FancyEntry{% \doifelse{\rawstructurelistfirst}{\MyMark}% {\quad\color[red]{#1}\quad} {\quad #1\quad}} \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}] \starttext \Topic[First] \contextversion First Topic \page \Topic[Second] Second Topic \page \Topic[Third] Third Topic \stoptext ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] placelist not working in latest beta
Hi all, example attached with output from latest beta and an older one. The \placelist command appears to have changed recently; the older beta I tested is from November, but this used to work in February as well, the change must be recent. Thanks a lot Thomas \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \gdef\MyMark{#1}% \writetolist[MyTopics][location=none]{#1}{}} \define[3]\FancyEntry{% \doifelse{\rawstructurelistfirst}{\MyMark}% {\quad\color[red]{#1}\quad} {\quad #1\quad}} \setuplist[MyTopics] [pagenumber=no, alternative=command, command=\FancyEntry] \setupfootertexts [{\switchtobodyfont[8pt]\quad{\placelist[MyTopics]}}] \starttext \Topic[First] \contextversion First Topic \page \Topic[Second] Second Topic \page \Topic[Third] Third Topic \stoptext 2015_11_19.pdf Description: Adobe PDF document 2016_03_13.pdf Description: Adobe PDF document ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] in next beta
Hello, I'm probably not getting what supposed; my sample files are attached; both were compiled with today's beta. Could the intended product be placed somewhere to download? Best regards, Lukas On Tue, 08 Mar 2016 11:22:50 +0100, Hans Hagen <pra...@wxs.nl> wrote: On 3/7/2016 9:59 PM, Wolfgang Schuster wrote: Hans Hagen <mailto:pra...@wxs.nl> 4. März 2016 um 12:01 \starttext \setuplistalternative [c] [filler=symbol, symbol=\hbox to .25em{\periodcentered}, symcolor=darkred, symstyle=\bf] \startsubject[title=Contents] \placelist[section][criterium=all,alternative=c] \stopsubject \startsection[title=D. Ward] \input ward \stopsection \startsection[title=E.R. Tufte] \input tufte \stopsection \stoptext Is there a reason why you haven’t used the filler command from spac-flr.mkiv? well, i then need to extend that mechanism a bit with spread, color, style and so .. you can check it in the next beta \starttext \setuplistalternative[c][filler=sym] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=symbol] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=width] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=space] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=rule] \placelist[chapter][alternative=c] \definefiller [whatever] [symbol] [filler=symbol, symbol=\hbox to .25em{\periodcentered}, color=darkred, style=\bf] \setuplistalternative[c][filler=whatever] \placelist[chapter][alternative=c] \chapter{test a} \chapter{test b} \chapter{test c} \stoptext Hans -- 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 241 096 751 Fax: +420 244 461 038 ListSym.log Description: Binary data ListSym.mkiv Description: Binary data ListSym.pdf Description: Adobe PDF document ListSym2.log Description: Binary data ListSym2.mkiv Description: Binary data ListSym2.pdf Description: Adobe PDF document ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] in next beta
On 3/7/2016 9:59 PM, Wolfgang Schuster wrote: Hans Hagen <mailto:pra...@wxs.nl> 4. März 2016 um 12:01 \starttext \setuplistalternative [c] [filler=symbol, symbol=\hbox to .25em{\periodcentered}, symcolor=darkred, symstyle=\bf] \startsubject[title=Contents] \placelist[section][criterium=all,alternative=c] \stopsubject \startsection[title=D. Ward] \input ward \stopsection \startsection[title=E.R. Tufte] \input tufte \stopsection \stoptext Is there a reason why you haven’t used the filler command from spac-flr.mkiv? well, i then need to extend that mechanism a bit with spread, color, style and so .. you can check it in the next beta \starttext \setuplistalternative[c][filler=sym] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=symbol] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=width] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=space] \placelist[chapter][alternative=c] \setuplistalternative[c][filler=rule] \placelist[chapter][alternative=c] \definefiller [whatever] [symbol] [filler=symbol, symbol=\hbox to .25em{\periodcentered}, color=darkred, style=\bf] \setuplistalternative[c][filler=whatever] \placelist[chapter][alternative=c] \chapter{test a} \chapter{test b} \chapter{test c} \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] in next beta
Hans Hagen <mailto:pra...@wxs.nl> 4. März 2016 um 12:01 \starttext \setuplistalternative [c] [filler=symbol, symbol=\hbox to .25em{\periodcentered}, symcolor=darkred, symstyle=\bf] \startsubject[title=Contents] \placelist[section][criterium=all,alternative=c] \stopsubject \startsection[title=D. Ward] \input ward \stopsection \startsection[title=E.R. Tufte] \input tufte \stopsection \stoptext Is there a reason why you haven’t used the filler command from spac-flr.mkiv? 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Enumeration lists (was: \definedescription and setupdescription options)
On Mon, 7 Mar 2016 04:42:09 +0100 Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > \defineenumeration > [fact] > [list=fact] > > \starttext > > \startfact [title=First fact] > Many commands in \CONTEXT\ are obvious. > \stopfact > > \placelist [enumeration:fact] [criterium=all] > > \stoptext > > does not produce a list. > Use \placelist[fact][criterium=all]. In fact, [list=fact] above is ignored, and one cannot type \defineenumeration [fact] [list=facts] ... \placelist [facts] [criterium=all] Alan ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \definedescription and setupdescription options
On Fri, 4 Mar 2016 16:52:12 +0100 Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: > Take a look at the attached files for the valid keys for the > description and enumeration environments. I am not managing use of lists of enumerations. \defineenumeration [fact] [list=fact] \starttext \startfact [title=First fact] Many commands in \CONTEXT\ are obvious. \stopfact \placelist [enumeration:fact] [criterium=all] \stoptext does not produce a list. Alan ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \writetolist command...
Hans, thank you for your tip! Willi > On 4 mrt. 2016, at 12:08, Hans Hagen <pra...@wxs.nl> wrote: > > On 3/4/2016 5:37 AM, Willi Egger wrote: >> Hi all, >> >> I need to write to a list, however it appears that the second argument from >> \writetolist[name]{number}{ext} does not end up in the list. — What do I >> miss? >> >> \starttext >> \startsubject[title=Contents] >> \placelist[section][criterium=all] >> \stopsubject >> >> \startsubject[title=A Paragraph as Subject] >> \writetolist[section]{1}{Writetolist: Subject title} >> \stopsubject >> \stoptext > > headnumber=always > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl > - > ___ > 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 > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \writetolist command...
On 3/4/2016 5:37 AM, Willi Egger wrote: Hi all, I need to write to a list, however it appears that the second argument from \writetolist[name]{number}{ext} does not end up in the list. — What do I miss? \starttext \startsubject[title=Contents] \placelist[section][criterium=all] \stopsubject \startsubject[title=A Paragraph as Subject] \writetolist[section]{1}{Writetolist: Subject title} \stopsubject \stoptext headnumber=always - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] in next beta
\starttext \setuplistalternative [c] [filler=symbol, symbol=\hbox to .25em{\periodcentered}, symcolor=darkred, symstyle=\bf] \startsubject[title=Contents] \placelist[section][criterium=all,alternative=c] \stopsubject \startsection[title=D. Ward] \input ward \stopsection \startsection[title=E.R. Tufte] \input tufte \stopsection \stoptext -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \writetolist command...
Hi all, I need to write to a list, however it appears that the second argument from \writetolist[name]{number}{ext} does not end up in the list. — What do I miss? \starttext \startsubject[title=Contents] \placelist[section][criterium=all] \stopsubject \startsubject[title=A Paragraph as Subject] \writetolist[section]{1}{Writetolist: Subject title} \stopsubject \stoptext Kind regards Willi ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] horizontal list of sections/topics?
On Fri, 12 Feb 2016 23:36:47 +0100 "Thomas A. Schmitz" <thomas.schm...@uni-bonn.de> wrote: > Hi, > > this is a quick question before I start coding: for my next > presentation style, I would like to have a list of topics with the > current topic highlighted. There are already two styles in > simpleslides doing this, but this time, I'd like the list to be > horizontal, at the bottom of the slide. Is there already a > listalternative for this? Or is it not too complex to have a > \definelistalternative do this? Or would it be easier not to rely on > the list mechanism but code something from scratch? > > Thanks for your advice and all best > > Thomas Hi Thomas, I use the following code that puts a (vertical) list into the left margin. The present topic is highlighted. You will need to modify your list with before=,after=, etc. Maybe this can give you some ideas. Alan I use it as follows: \def\MarkPage{4} % first 3 slides are title, introduction and outline... I then put this whenever I want to begin a new topic. \Topic [A new topic] \definelist [MyTopics] [criterium=all] \setuplist [MyTopics] [pagenumber=no,alternative=command,command=\FancyEntry,interaction=all] \setupinteraction [state=start,color=,contrastcolor=] \def\MarkPage{0} \def\MyMark{} \def\Topic{\dosingleargument\doTopic} \def\doTopic[#1]{\def\MyMark{#1}\writetolist[MyTopics]{}{#1}} \define[3]\FancyEntry { \framed[width=2.5cm,align={right,nothyphenated},frame=off,offset=0pt] {\doifelse \rawstructurelistsecond \MyMark {\color [simpleslides:contrastcolor]{\switchtobodyfont [12pt]#2\par}} {\color [simpleslides:altcontrastcolor] {\switchtobodyfont [12pt]#2\par}} \blank [small]} } \setuptexttexts[margin][\ifnum\realpageno>\MarkPage\vbox{\placelist[MyTopics]}\fi][] ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] is there a bug in the startappendices commend?
Hello list, After using the \startappendices command the entire document becomes an appendix. After the command the numbering restarts. Here is a simple example. - \setuplabeltext [appendix=Appendix~] \setuphead [chapter] [page=no] \setuphead [section] [appendixlabel=appendix] \setuplist [section] [label=yes] \starttext \title{Contents} \placelist[title,chapter,section][criterium=all,alternative=c] \chapter{First Chapter} \section{First Section} \chapter{Second Chapter} \startappendices \chapter{Appendices} \section{First Appendix} \stopappendices \stoptext - Thank you, Matthias ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] is there a bug in the startappendices commend?
Matthias Wende <mailto:we...@math.hu-berlin.de> 21. Januar 2016 um 14:04 Hello list, After using the \startappendices command the entire document becomes an appendix. After the command the numbering restarts. You forgot the start/stop commands for the frontpart and bodypart! Here is a simple example. - \setuplabeltext [appendix=Appendix~] \setuphead [chapter] [page=no] \setuphead [section] [appendixlabel=appendix] \setuplist [section] [label=yes] \starttext \startfrontmatter \title{Contents} \placelist[title,chapter,section][criterium=all,alternative=c] \stopfrontmatter \startbodymatter \chapter{First Chapter} \section{First Section} \chapter{Second Chapter} \stopbodymatter \startappendices \chapter{Appendices} \section{First Appendix} \stopappendices \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Regression with \doboundtext in \writetolist
On 10/11/2015 5:21 AM, Rik Kabel wrote: The following example works with older versions of ConTeXt, such as the version from 20150325 in my repository. It fails with TL15 and later, including the current standalone beta. % macros=mkvi \setwidthof {99}\to\IDWidth\relax \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister3{A list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister4{Different list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \subject{List half width} \startcolumns[n=2] \placelist[OList] \stopcolumns \stoptext With the 20150325 ConTeXt, there are .tuc file entries like: ["second"]="\\hbox {\\simplealignedbox {\\IDWidth }{left}{2\\quad }{\\doboundtext {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}{\\STWidth }{…}}}", but with more recent versions, the corresponding entry is: ["second"]="\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\dimexpr \\textwidth -12.6pt+1cm\\relax \\box \\scratchbox }}}", \unexpanded\def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Regression with \doboundtext in \writetolist
Rik Kabel <mailto:cont...@rik.users.panix.com> 11. Oktober 2015 um 18:25 On 2015-10-11 06:11, Hans Hagen wrote: On 10/11/2015 5:21 AM, Rik Kabel wrote: The following example works with older versions of ConTeXt, such as the version from 20150325 in my repository. It fails with TL15 and later, including the current standalone beta. % macros=mkvi \setwidthof {99}\to\IDWidth\relax \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister3{A list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister4{Different list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \subject{List half width} \startcolumns[n=2] \placelist[OList] \stopcolumns \stoptext With the 20150325 ConTeXt, there are .tuc file entries like: ["second"]="\\hbox {\\simplealignedbox {\\IDWidth }{left}{2\\quad }{\\doboundtext {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}{\\STWidth }{…}}}", but with more recent versions, the corresponding entry is: ["second"]="\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\dimexpr \\textwidth -12.6pt+1cm\\relax \\box \\scratchbox }}}", \unexpanded\def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} Yes, expansion needs to be delayed to get the current dimension when the list is placed. My error—thank you for the correction. But the regression is not resolved. The .tuc file now contains: ["second"]="\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\STWidth \\relax \\box \\scratchbox }}}", Still no mention of dobounded text is carried into the list. Is \limitatetext a option for you because unlike \doboundtext the command is unexpandable? \starttext \doboundtext {Thus, I came to the conclusion that the designer of a new system ...}{.5\textwidth}{...} \limitatetext{Thus, I came to the conclusion that the designer of a new system ...}{.5\textwidth}{...} \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Regression with \doboundtext in \writetolist
On 2015-10-11 06:11, Hans Hagen wrote: On 10/11/2015 5:21 AM, Rik Kabel wrote: The following example works with older versions of ConTeXt, such as the version from 20150325 in my repository. It fails with TL15 and later, including the current standalone beta. % macros=mkvi \setwidthof {99}\to\IDWidth\relax \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister3{A list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister4{Different list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \subject{List half width} \startcolumns[n=2] \placelist[OList] \stopcolumns \stoptext With the 20150325 ConTeXt, there are .tuc file entries like: ["second"]="\\hbox {\\simplealignedbox {\\IDWidth }{left}{2\\quad }{\\doboundtext {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}{\\STWidth }{…}}}", but with more recent versions, the corresponding entry is: ["second"]="\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\dimexpr \\textwidth -12.6pt+1cm\\relax \\box \\scratchbox }}}", \unexpanded\def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} Yes, expansion needs to be delayed to get the current dimension when the list is placed. My error—thank you for the correction. But the regression is not resolved. The .tuc file now contains: ["second"]="\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\STWidth \\relax \\box \\scratchbox }}}", Still no mention of dobounded text is carried into the list. -- Rik ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Regression with \doboundtext in \writetolist
The following example works with older versions of ConTeXt, such as the version from 20150325 in my repository. It fails with TL15 and later, including the current standalone beta. % macros=mkvi \setwidthof {99}\to\IDWidth\relax \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister2{Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister3{A list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OLister4{Different list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \subject{List half width} \startcolumns[n=2] \placelist[OList] \stopcolumns \stoptext With the 20150325 ConTeXt, there are .tuc file entries like: ["second"]="\\hbox {\\simplealignedbox {\\IDWidth }{left}{2\\quad }{\\doboundtext {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}{\\STWidth }{…}}}", but with more recent versions, the corresponding entry is: ["second"]="\\hbox {\\simplealignedbox {12.6pt}{left}{2\\quad }{\\hbox {\\setbox \\scratchbox \\hbox {Yet another list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx}\\scratchdimen \\dimexpr \\textwidth -12.6pt+1cm\\relax \\box \\scratchbox }}}", -- Rik ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Questions on registers, and on processors used with registers
A few questions on registers, and on processors used with registers: Can processors be used on entries in \setregisterentry? My tests so far have not been successful. Can processors be used on one level of a two-level register {\index{Name+Processor->quotation precis}? Again, no success with attempts. Can something other than page numbers be the indexed item? I have a book with many quotations, each identified by a number (generated by \definelabel). For an index of quotations, it would be more useful to point to that quotation number than the page number. Perhaps the last requirement would be served by building a list with the quote number and quotation precis, suppressing the page numbers with pagenumber=\gobbleoneargument. But placelist does not seem to behave as one would hope. The example in the wiki for setuplist (shown below) does not print the numbers (1., 2.) in the first braced argument to writetolist. \definelist[Reprints][criterium=all] \starttext \section{Sec 1} \writetolist[Reprints]{1.}{List entry A} \subsection{Subsec 1} \writebetweenlist[Reprints]{\hrule} \writetolist[Reprints]{2.}{List entry B} \completelist[Reprints] \stoptext I would prefer a register solution to take advantage of similar formatting (column support and such) provided there, since this will appear with the book’s standard indices. -- Rik ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Section head without numbers, ToC with numbers
On Sun, 4 Oct 2015, Erik Margraf wrote: On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan <adit...@umich.edu> wrote: On Sat, 3 Oct 2015, Erik Margraf wrote: Dear List, is it possible to achieve the following: First section Some Text Second section Some Text Table of Contents 1 First section 2 Second section (Untested): \setuphead[section][numbercommand=\gobbleoneargument] thanks for your answer! This comes close, but has the problem, that the section head is indented. \starttext \setuphead[section][numbercommand=\gobbleoneargument] \placelist[section] \section{First section} \input knuth \stoptext Add distance=0pt to the settings. Aditya ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Section head without numbers, ToC with numbers
This does the trick! Thank you! On Mon, Oct 5, 2015 at 2:27 AM, Aditya Mahajan <adit...@umich.edu> wrote: > On Sun, 4 Oct 2015, Erik Margraf wrote: > > On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan <adit...@umich.edu> wrote: >> >> On Sat, 3 Oct 2015, Erik Margraf wrote: >>> >>> Dear List, >>> >>>> >>>> is it possible to achieve the following: >>>> >>>> First section >>>> Some Text >>>> >>>> Second section >>>> Some Text >>>> >>>> Table of Contents >>>> 1 First section >>>> 2 Second section >>>> >>>> >>>> (Untested): >>> >>> \setuphead[section][numbercommand=\gobbleoneargument] >>> >>> thanks for your answer! This comes close, but has the problem, that the >> section head is indented. >> >> \starttext >> \setuphead[section][numbercommand=\gobbleoneargument] >> \placelist[section] >> \section{First section} >> \input knuth >> \stoptext >> > > Add distance=0pt to the settings. > > Aditya > ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] table of contents
Meer, Hans van der <mailto:h.vanderm...@uva.nl> 28. September 2015 um 14:27 I would like to restrict the tableofcontents to chapters only, leaving the sections etc. out. \completecontent does not seem the right command here. I am sure it is simple, but I don't see it. How to accomplish? You can use the \placelist command, e.g. \title{Content} \placelist[chapter] 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] put titles in toc
On Tue, 8 Sep 2015 20:55:04 +0200 Pablo Rodriguez <oi...@gmx.es> wrote: > On 09/08/2015 08:25 PM, John Culleton wrote: > > In thew frontmatter there are several titles > > headings that i want to see in the TOC > > Here is a > > stripped down version of my file: > > Hi John, > > I think this might do what you want: > > \definehead[titleintoc][chapter][number=no] > \starttext > \noheaderandfooterlines > \title{Contents} > \placelist[chapter,titleintoc] > \chapter{foo} > \input knuth.tex > \titleintoc{bar} > \input knuth.tex > \stoptext > > I hope it helps, > > > Pablo Simple elegant, works. Thanks for your help! -- John Culleton Wexford Press Book layout, typesetting and Indexing Free list of books for self-publishers: http://wexfordpress.net/shortlist.html ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Forced page break in a TOC
On 9/8/2015 1:25 PM, Mari Voipio wrote: Hello all! I've got a TOC where the page break really should be one line higher than it is automatically. I found a solution in the wiki at <http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break>, but it doesn't seem to work (any more). Any ideas on how to fix the problem? \showinjector \setinjector[register][3][\column] \setinjector[list][2][{\blank[3*big]}] \starttext \placelist[section][criterium=text] \blank[3*big] \placeregister[index][criterium=text] \page \startsection[title=Alpha] first \index{first} \stopsection \startsection[title=Beta] second \index{second} \stopsection \startsection[title=Gamma] third \index{third} \stopsection \startsection[title=Delta] fourth \index{fourth} \stopsection \stoptext now, if this works for you, you have to give a demo of how you use it at the upcoming meeting Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] put titles in toc
On 09/08/2015 08:25 PM, John Culleton wrote: > In thew frontmatter there are several titles > headings that i want to see in the TOC > Here is a > stripped down version of my file: Hi John, I think this might do what you want: \definehead[titleintoc][chapter][number=no] \starttext \noheaderandfooterlines \title{Contents} \placelist[chapter,titleintoc] \chapter{foo} \input knuth.tex \titleintoc{bar} \input knuth.tex \stoptext I hope it helps, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Expand a part of TOC
On 8/23/2015 10:17 AM, Eric Détrez wrote: hello Here is my problem : I wish to write a TOC at the beginning of each chapter (that I can do). But I want it to write every chapter and only the sections and subsections of the current chapter. Like, at the head of chapter 3 (the style is not relevant) Chapter 1 1 Chapter 2 15 Chapter 3 23 3.1 ...23 3.2 ...26 3.3 ...29 3.3.1 .29 3.3.2 .33 3.3.3 .36 Chapter 4 38 I tried to combine 2 lists with differents criterium but it doesn't seems to work. Thank's for any indication ; I'll write the result in the wiki. \placelist[section,subsection][criterium=...] in this case use criterium 'local' or 'previous' (depends a bit on where exactly it is called) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Formatting of page number in table of contents
On Tue, 11 Aug 2015, Wolfgang Schuster wrote: Aditya Mahajan mailto:adit...@umich.edu 11. August 2015 18:53 Hi, I am using a document structure part-section-subsection (i.e., no chapters). The page numbers have to be formatted as partnumber-pagenumber. So, I am using the following setup: \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] The page numbers are formatted correctly on each page, but not in the table of contents. For example, \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] \starttext \placelist[part,section][alternative=c, criterium=all] Change this to \placelist[part,section][alternative=c,criterium=all,pageprefixsegments=part] or \placelist[part,section][alternative=c,criterium=all,pageprefixset=part] Thanks! Aditya ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Formatting of page number in table of contents
Hi, I am using a document structure part-section-subsection (i.e., no chapters). The page numbers have to be formatted as partnumber-pagenumber. So, I am using the following setup: \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] The page numbers are formatted correctly on each page, but not in the table of contents. For example, \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] \starttext \placelist[part,section][alternative=c, criterium=all] \part{Part 1} \section{one} \input knuth \page \section{two} \input knuth \page \section{three} \input knuth \page \part{Part Two} \section{one} \input knuth \page \section{two} \input knuth \page \section{three} \input knuth \page \stoptext The numbers of the table of content are: 1 Part 1 1-1 1.1 one 1-1 1.2 two 2-2 1.3 three ... 3-3 Note that the prefix of page number is the section number rather than the part number. Any idea what I am doing wrong and how to fix it? Thanks, Aditya ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Formatting of page number in table of contents
Aditya Mahajan mailto:adit...@umich.edu 11. August 2015 18:53 Hi, I am using a document structure part-section-subsection (i.e., no chapters). The page numbers have to be formatted as partnumber-pagenumber. So, I am using the following setup: \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] The page numbers are formatted correctly on each page, but not in the table of contents. For example, \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] \starttext \placelist[part,section][alternative=c, criterium=all] Change this to \placelist[part,section][alternative=c,criterium=all,pageprefixsegments=part] or \placelist[part,section][alternative=c,criterium=all,pageprefixset=part] 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can \getmarking take more than one argument?
Many thanks, Hans, as that seems to have done the trick! On 9 Aug 2015, at 11:59, Hans Hagen pra...@wxs.nl wrote: On 8/9/2015 2:42 AM, tala...@fastmail.fm mailto:tala...@fastmail.fm wrote: Hello, I currently use the following to define my even and odd page headers. — \startsetups[header] {\doifoddpageelse {\getmarking[section]} {\getmarking[chapter]} } \doiftextelse {\getmarking[chapter]} \stopsetups — The problem is that some of my ‘section’s are not sections, but ‘subject’s (because I don’t want that section heading to appear in the TOC). As a result, my header is blank on the ‘subject’ pages. Is it possible to define getmarking to take either a section or a subject, somehow? Listing them both separated by a coma (\getmarking[section,subject]) produced no result. I also tried: — {\doifoddpageelse {\getmarking[section]} {\getmarking[subject]} {\getmarking[chapter]} — …but that caused the subject and the chapter to both be printed in the header. Many thanks for any help. \setupheadertexts[{\getmarking[section]}] \definehead[suction][section][number=no] \starttext \placelist[section] \page \section{foo} \page \suction{bar} \page \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com http://www.pragma-ade.com/ | www.pragma-pod.nl http://www.pragma-pod.nl/ - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can \getmarking take more than one argument?
On 8/9/2015 2:42 AM, tala...@fastmail.fm wrote: Hello, I currently use the following to define my even and odd page headers. — \startsetups[header] {\doifoddpageelse {\getmarking[section]} {\getmarking[chapter]} } \doiftextelse {\getmarking[chapter]} \stopsetups — The problem is that some of my ‘section’s are not sections, but ‘subject’s (because I don’t want that section heading to appear in the TOC). As a result, my header is blank on the ‘subject’ pages. Is it possible to define getmarking to take either a section or a subject, somehow? Listing them both separated by a coma (\getmarking[section,subject]) produced no result. I also tried: — {\doifoddpageelse {\getmarking[section]} {\getmarking[subject]} {\getmarking[chapter]} — …but that caused the subject and the chapter to both be printed in the header. Many thanks for any help. \setupheadertexts[{\getmarking[section]}] \definehead[suction][section][number=no] \starttext \placelist[section] \page \section{foo} \page \suction{bar} \page \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Colored descriptions
Le 03-08-2015 16:15, Procházka Lukáš Ing. - Pontex s. r. o. a écrit : Hello, On Mon, 03 Aug 2015 15:31:49 +0200, Eric Détrez i...@eric-detrez.fr wrote: I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored background. Is it possible ? there was a similar discussion - see http://www.ntg.nl/pipermail/ntg-context/2015/081528.html Best regards, Lukas Thank you, I didn't fint it before. So I can't put a startxxx in inbetween, it must be in before. More : a placelist[description] is no longer effective if there are sections and chapters :( So I have to use a register : is there a way to get the title of a description, something like #1 or /descriptiontitle ? -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (announcement) from pandoc to ConTeXt
Pablo Rodriguez mailto:oi...@gmx.es 9. Juli 2015 18:32 Dear list, this is a bit weird, because the vast majority of the list members are way forward in the path of ConTeXt knowledge than myself. But just in case you were interested, I created an environment to typeset XHTML generated by pandoc with ConTeXt MkIV. Here you have the websites: http://www.from-pandoc-to-context.tk https://github.com/ousia/from-pandoc-to-context Just a few comments on your code. 1. When you use \vfill at the begin of a makeup environment you don’t need \mbox and a ConTeXt user would use \dontleavehmode instead of \mbox. 2. To create a language dependant header for the TOC etc. you can use the \headtext command, e.g. \title{\headtext{content}} \placelist[part,chapter] 3. Be careful when you use _ in command names, e.g. \TOC_Title because it your case you created the command \TOC followed by the string “_Title”. 4. Better use \crlf to force a line break for the br/ tag because \\ can produce different results depending in the environment. 5. Use \define[2]\... or \unexpanded\def\... to create your \href command. 6. ConTeXt already has a \url command. 7. Your \url command has two font changes (\tt and \hw) and one should be removed. 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug with bookmarks?
Dear list, I have the following sample: \setupinteraction[state=start] \placebookmarks [part,chapter,section,subsection,subsubsection] [part,chapter] \starttext \placelist[part,chapter] \startfrontmatter \chapter{Introduction} \stopfrontmatter \startbodymatter \dorecurse{2}{\part{Part} \dorecurse{3}{\chapter{Chapter} \dorecurse{5}{\section{Section \stopbodymatter \stoptext For some strange reason, with front and body matters the bookmarks for parts don’t contain bookmarks for chapters (although chapter bookmarks do contain section bookmarks). Removing \placelist[part,chapter] shows the same issue (part bookmarks not containing chapter bookmarks). And replacing \placelist[part,chapter] with \completecontent places bookmarks from front matter after the ones from the body matter. (Besides the fact that I don’t want to have sections in the TOC.) I suspect this may be a bug. Could you confirm it or explain me what I’m missing? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to limit level of sections in TOC?
Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz 20. Juni 2015 11:30 Hello, I'm not able to limit level of sections in TOC so to not show \subsubsection: %\setuplist[content][level=subsection] % Doesn't work %\setuplist[content][section,subsection] % Doesn't work \starttext \placecontent[level=subsection] % Doesn't work \hairline \placecontent[level=3] % Doesn't work \hairline \section{Sec} \subsection{SSec} \subsubsection{SSSec} \stoptext I studied wiki (http://wiki.contextgarden.net/Command/setuplist) and also contextref.pdf (pg. 218) but without success. The level key doesn't work with MkIV but you can use the following two methods. 1. Use the \placelist command and list the sections you want to show, e.g. \placelist[chapter,section,subsection] 2. Use the list key for \placecontent to show only the listed entries, e.g. \placecontent[list={chapter,section,subsection}] 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to limit level of sections in TOC?
Thank you, it works perfectly. Lukas On Sat, 20 Jun 2015 11:40:47 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz 20. Juni 2015 11:30 Hello, I'm not able to limit level of sections in TOC so to not show \subsubsection: %\setuplist[content][level=subsection] % Doesn't work %\setuplist[content][section,subsection] % Doesn't work \starttext \placecontent[level=subsection] % Doesn't work \hairline \placecontent[level=3] % Doesn't work \hairline \section{Sec} \subsection{SSec} \subsubsection{SSSec} \stoptext I studied wiki (http://wiki.contextgarden.net/Command/setuplist) and also contextref.pdf (pg. 218) but without success. The level key doesn't work with MkIV but you can use the following two methods. 1. Use the \placelist command and list the sections you want to show, e.g. \placelist[chapter,section,subsection] 2. Use the list key for \placecontent to show only the listed entries, e.g. \placecontent[list={chapter,section,subsection}] Wolfgang -- 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 241 096 751 Fax: +420 244 461 038 ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] First page after standardmakeup gets page number 0 in table of contents
Hi, I'm experiencing a weird issue. The first page after standardmakeup ends up with page number zero in table of contents. Here's a minimal example: \setuphead [chapter] [page=odd] \setuppagenumbering [alternative=doublesided] \starttext \startstandardmakeup title page \stopstandardmakeup \chapter{first} \chapter{second} \title{TOC} \placelist[chapter,section][criterium=all,alternative=c] \stoptext This prints TOC 1 first .. 0 2 second . 3 But the first chapter is on page 1. A temporary workaround was to prepare a separate document with the initial pages (and print them separately and merge the pages with an external tool), but it would be great to solve this properly. Thank you, Mojca ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Preventing double title pages for nested content
Am 21.05.2015 um 00:36 schrieb Kate F k...@elide.org: Hi, There's been a misunderstanding here. You're showing a structure which is a two-deep hierarchy (Libraries containing Manpages). That's not what the structure in my example is, and you're showing something which I think is different to what I'm asking for. (Or I just can't see how to apply the technique you're illustrating) You have to add just another level to my example, nothing more. The structure for my example is Volumes which contain either Libraries *or* Manpages, and a Library contains Manpages. I'll draw out the tree from my example again: (this is the same as in my first email for this thread, but I'm repeating it here for clarity) \starttext \placecontent[list={Volume,Library,Manpage}] \startVolume[title=Section 1: Programs] \dorecurse{3}{\startManpage[title=progxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 2: Syscalls] \dorecurse{3}{\startManpage[title=syscallxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 3: Libraries] \startLibrary[title=libjpeg] \dorecurse{3}{\startManpage[title=jpegapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libpng] \dorecurse{3}{\startManpage[title=pngapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libbmp] \dorecurse{3}{\startManpage[title=bmpapi_a(3)] \input lorem \stopManpage} \stopLibrary \stopVolume \startVolume[title=Section 4: Drivers] \dorecurse{3}{\startManpage[title=drvxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 7mk: Makefiles] \dorecurse{3}{\startManpage[title=xyz.mk(1)] \input lorem \stopManpage} \stopVolume \stoptext Please look at Volume 3; you can see it contains some Libraries (libjpeg, libpng, libbmp). The other Volumes do not contain Libraries; they just contain Manpages directly. So the ToC is: Volume 1: Programs -- I want a title page for this ... manpages for (1) Volume 2: Syscalls -- I want a title page for this ... manpages for (2) Volume 3: Libraries -- no title page for this!! Because this Volume contains Libraries Library libjpeg -- I want a title page for this ... manpages for (3) libjpeg Library libpng -- I want a title page for this ... manpages for (3) libpng Library libbmp -- I want a title page for this ... manpages for (3) libbmp Volume 4: Drivers -- I want a title page for this ... manpages for (4) Volume 7: Makefiles -- I want a title page for this ... manpages for (7) As I said in my original email, this grouping into libraries only applies to Volume 3. The effect I'm trying to achieve is to have a single title page before each set of manpages. So I want a title page for Programs, Syscalls, libjpeg, libpng, libbmp, Drivers, and Makefiles. But I do not want a title page for Volume 3 itself, Libraries because that would be immediately followed by the title page for libjpeg, and my aim is to avoid having two consecutive title pages. I have indicated these with arrows above. I hope that's clear. Sorry for repeating myself… Sorry for resending nearly the same example for another time but it still does what you asked for. \definehead [Volume] [part] \definehead [Library] [chapter] \definehead [Manpage] [section] \setuphead [Volume] [placehead=empty, after=\directsetup{libraryentries}] \startsetups[libraryentries] \determinelistcharacteristics[Library] \ifnum\structurelistsize=0 \startframed[frame=off,width=\textwidth,height=\dimexpr\textheight-\strutdp\relax,align={middle,lohi}] \placeheadtext[Volume] \stopframed \else % Hide the Volume title \fi \stopsetups \starttext \placelist[Volume,Library,Manpage] \startVolume[title=Section 1: Programs] \dorecurse{3}{\startManpage[title=progxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 2: Syscalls] \dorecurse{3} {\startManpage[title=syscallxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 3: Libraries] \startLibrary[title=libjpeg] \dorecurse{3} {\startManpage[title=jpegapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libpng] \dorecurse{3} {\startManpage[title=pngapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libbmp] \dorecurse{3} {\startManpage[title=bmpapi_a(3)] \input lorem \stopManpage} \stopLibrary \stopVolume \startVolume[title=Section 4: Drivers] \dorecurse{3}{\startManpage[title=drvxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 7mk
Re: [NTG-context] Preventing double title pages for nested content
\fi \stopsetups \startsetups[Library:after] \startframed[frame=off,width=\textwidth,height=\dimexpr\textheight-\strutdp\relax,align={middle,lohi}] \placeheadtext[Library] \stopframed \page \stopsetups \newconditional\libraryentries \settrue\libraryentries \startsetups[libraryentries] \determinelistcharacteristics[Library] \ifnum\structurelistsize=0 \startframed[frame=off,width=\textwidth,height=\dimexpr\textheight-\strutdp\relax,align={middle,lohi}] \placeheadtext[Volume] \stopframed \else \setfalse\libraryentries \fi \stopsetups %\showframe[text][text] \starttext \placelist[Volume,Library,Manpage] \startVolume[title=Section 1: Programs] \dorecurse{3}{\startManpage[title=progxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 2: Syscalls] \dorecurse{3} {\startManpage[title=syscallxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 3: Libraries] \startLibrary[title=libjpeg] \dorecurse{3} {\startManpage[title=jpegapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libpng] \dorecurse{3} {\startManpage[title=pngapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libbmp] \dorecurse{3} {\startManpage[title=bmpapi_a(3)] \input lorem \stopManpage} \stopLibrary \stopVolume \startVolume[title=Section 4: Drivers] \dorecurse{3}{\startManpage[title=drvxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 7mk: Makefiles] \dorecurse{3}{\startManpage[title=xyz.mk(1)] \input lorem \stopManpage} \stopVolume \stoptext Wolfgang Yes! That's exactly what I was trying to achieve. Thank you. Your code there is full of things I didn't know about, or didn't think to use, but having just added some things to see what's going on, I think I understand how it works. It's a very different implementation than I had imagined! -- Kate ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Preventing double title pages for nested content
] \startframed[frame=off,width=\textwidth,height=\dimexpr\textheight-\strutdp\relax,align={middle,lohi}] \placeheadtext[Library] \stopframed \page \stopsetups \newconditional\libraryentries \settrue\libraryentries \startsetups[libraryentries] \determinelistcharacteristics[Library] \ifnum\structurelistsize=0 \startframed[frame=off,width=\textwidth,height=\dimexpr\textheight-\strutdp\relax,align={middle,lohi}] \placeheadtext[Volume] \stopframed \else \setfalse\libraryentries \fi \stopsetups %\showframe[text][text] \starttext \placelist[Volume,Library,Manpage] \startVolume[title=Section 1: Programs] \dorecurse{3}{\startManpage[title=progxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 2: Syscalls] \dorecurse{3} {\startManpage[title=syscallxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 3: Libraries] \startLibrary[title=libjpeg] \dorecurse{3} {\startManpage[title=jpegapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libpng] \dorecurse{3} {\startManpage[title=pngapi_a(3)] \input lorem \stopManpage} \stopLibrary \startLibrary[title=libbmp] \dorecurse{3} {\startManpage[title=bmpapi_a(3)] \input lorem \stopManpage} \stopLibrary \stopVolume \startVolume[title=Section 4: Drivers] \dorecurse{3}{\startManpage[title=drvxyz(1)] \input lorem \stopManpage} \stopVolume \startVolume[title=Section 7mk: Makefiles] \dorecurse{3}{\startManpage[title=xyz.mk(1)] \input lorem \stopManpage} \stopVolume \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Controlling linespacing in a TOC
On Mon, May 18, 2015 at 6:38 PM, Hans Hagen pra...@wxs.nl wrote: On 5/18/2015 3:08 PM, Mari Voipio wrote: just wrap the list: \start ... all kind of settings ... \placelist[...] \stop Wow, that was easy. A bit of experimenting with \setuplinespace and my TOC looks exactly like I want it. Thank you! Mari ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Controlling linespacing in a TOC
On 05/19/2015 08:31 AM, Mari Voipio wrote: On Mon, May 18, 2015 at 6:38 PM, Hans Hagen pra...@wxs.nl wrote: On 5/18/2015 3:08 PM, Mari Voipio wrote: just wrap the list: \start ... all kind of settings ... \placelist[...] \stop Wow, that was easy. A bit of experimenting with \setuplinespace and my TOC looks exactly like I want it. Thank you! Hi Mari, if I’m not getting it wrong, another way to do it would be: \setuplist[chapter][before=, after=,] \starttext \completecontent \dorecurse{10}{\chapter{Chapter}} \stoptext Just in case it might help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Controlling linespacing in a TOC
On 5/18/2015 3:08 PM, Mari Voipio wrote: Hello all! This is probably a stupid question, but how do I control the linespacing in a table of contents? I found that space can be added with e.g. \setuplist[chapter][before={\blank[4*big]}] but how do I make the linespacing smaller than default? I've got \setupwhitespace[medium] does that affect the linespacing in a table of contents? Are there any other settings besides \setuplist and \setupwhitespace that affect the TOC spacing? I've got a fairly complicated file (or, rather, a group of files), so I'm wondering if there's something somewhere else that makes my TOC so airily laid out. (It looks nice, but I'd rather squish it into fewer pages...) just wrap the list: \start ... all kind of settings ... \placelist[...] \stop - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?
Hi Wolfgang, Thank you very much for your clarification! It just does the job very well, and this list completes my book (written in Dutch!) entirely typeset using ConTeXt! And this is of course mentioned in the colophon of the book. Regards, Gerard On 16-04-15 22:33, Wolfgang Schuster wrote: Am 15.04.2015 um 22:12 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi Wolfgang, Thank you very much for your suggestion! Can you explain a bit the trick behind this mechanism? I created only a new float environment which copies all values from the figure environment but it saves all caption entries in its own nofigure list and when you show only the figure entries in the list the others are hidden. \setupexternalfigures[location=default] \definefloat[nofigure][nofigures][figure] \starttext \subject{Figure entries} \placelist[figure] \subject{Figure and nofigure entries} \placelist[figure,nofigure] \blank[4*line] \startplacefloat[figure][title=A dutch cow] \externalfigure[cow][width=6cm] \stopplacefloat \startplacefloat[nofigure][title=A dutch mill] \externalfigure[mill][width=6cm] \stopplacefloat \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?
Am 15.04.2015 um 22:12 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi Wolfgang, Thank you very much for your suggestion! Can you explain a bit the trick behind this mechanism? I created only a new float environment which copies all values from the figure environment but it saves all caption entries in its own nofigure list and when you show only the figure entries in the list the others are hidden. \setupexternalfigures[location=default] \definefloat[nofigure][nofigures][figure] \starttext \subject{Figure entries} \placelist[figure] \subject{Figure and nofigure entries} \placelist[figure,nofigure] \blank[4*line] \startplacefloat[figure][title=A dutch cow] \externalfigure[cow][width=6cm] \stopplacefloat \startplacefloat[nofigure][title=A dutch mill] \externalfigure[mill][width=6cm] \stopplacefloat \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?
Hi Wolfgang, Thank you very much for your suggestion! Can you explain a bit the trick behind this mechanism? Regards, Gerard On 13-04-15 21:02, Wolfgang Schuster wrote: Am 12.04.2015 um 20:53 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi, I was wondering whether it is possible to exclude certain figures of a document using the \placelistoffigures command in ConTeXt? For example those that start having a reference like ['fig:figure:exclude‘]? You can create a new float environment which inherits all values (including the counter) from the figure environment. \setupexternalfigures[location=default] \definefloat[nofigure][nofigures][figure] \starttext \placelist[figure] \blank[4*line] \startplacefigure[title=A duth cow] \externalfigure[cow][width=6cm] \stopplacefigure \startplacenofigure[title=A duth mill] \externalfigure[mill][width=6cm] \stopplacenofigure \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to exclude certain figures from list of figures in ConTeXt?
Am 12.04.2015 um 20:53 schrieb Geert Verhaag verhaagg...@ziggo.nl: Hi, I was wondering whether it is possible to exclude certain figures of a document using the \placelistoffigures command in ConTeXt? For example those that start having a reference like ['fig:figure:exclude‘]? You can create a new float environment which inherits all values (including the counter) from the figure environment. \setupexternalfigures[location=default] \definefloat[nofigure][nofigures][figure] \starttext \placelist[figure] \blank[4*line] \startplacefigure[title=A duth cow] \externalfigure[cow][width=6cm] \stopplacefigure \startplacenofigure[title=A duth mill] \externalfigure[mill][width=6cm] \stopplacenofigure \stoptext 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] alphabetically ordered notes
On 04/08/2015 07:51 PM, Hans Hagen wrote: On 4/5/2015 8:32 PM, Pablo Rodriguez wrote: [...] BTW, it would be extremely useful to be able to place this kind of notes on each page and also with a \placenotes command. quite tricky due to synchronization issues Many thanks for your help, in next beta: \placelist[dict][order=title] (no language control yet .. no time now) Many thanks for this improvement, Hans. Is there a way to remove page number from the final list? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] alphabetically ordered notes
On 4/8/2015 8:36 PM, Pablo Rodriguez wrote: On 04/08/2015 07:51 PM, Hans Hagen wrote: On 4/5/2015 8:32 PM, Pablo Rodriguez wrote: [...] BTW, it would be extremely useful to be able to place this kind of notes on each page and also with a \placenotes command. quite tricky due to synchronization issues Many thanks for your help, in next beta: \placelist[dict][order=title] (no language control yet .. no time now) Many thanks for this improvement, Hans. Is there a way to remove page number from the final list? it's just a list so you can use all list variants and key/values - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] alphabetically ordered notes
On 4/5/2015 8:32 PM, Pablo Rodriguez wrote: Hans, as you told me to remind you latter, here you have the proposal for alphabetically ordered footnotes: \setuplanguage[en][patterns={en,agr}] \setuppapersize[A7] \setupbodyfont[dejavu, 12pt] \definenote[dict] \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em] \setupnotation[dict][width=broad, number=no] \starttext Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα, -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb}, ἔπειτα τί ἐστιν ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation} καὶ κατάφασις\dict{κατάφασις, εως, ἡ: affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις, -εως, ἡ: statement} καὶ λόγος. Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό: affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ. \page \title{Vocabulary} \placenotes[dict] \stoptext BTW, it would be extremely useful to be able to place this kind of notes on each page and also with a \placenotes command. quite tricky due to synchronization issues Many thanks for your help, in next beta: \placelist[dict][order=title] (no language control yet .. no time now) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] alphabetically ordered notes
On 04/08/2015 09:12 PM, Hans Hagen wrote: On 4/8/2015 8:36 PM, Pablo Rodriguez wrote: On 04/08/2015 07:51 PM, Hans Hagen wrote: On 4/5/2015 8:32 PM, Pablo Rodriguez wrote: [...] BTW, it would be extremely useful to be able to place this kind of notes on each page and also with a \placenotes command. quite tricky due to synchronization issues Many thanks for your help, in next beta: \placelist[dict][order=title] (no language control yet .. no time now) Many thanks for this improvement, Hans. Is there a way to remove page number from the final list? it's just a list so you can use all list variants and key/values Many thanks for the tip, Hans. Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with interaction and TOC
Am 22.03.2015 um 11:53 schrieb Pablo Rodriguez oi...@gmx.es: On 03/22/2015 12:27 AM, Hans Hagen wrote: On 3/21/2015 10:49 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \placelist[chapter] %~ \uppercasestring{context}\to\ascii %~ \chapter{\getvalue{\ascii}} \chapter{ConTeXt} \stoptext ConTeXt complains about an error in the first line. What am I doing wrong? (Sorry, but I wanted to test the commented lines, but I don’t know why the simplified example doesn’t work.) \uppercasestring{context}\to\ascii \chapter{\meaning\ascii} % \getvalue{\ascii}} \chapter{\WORD{ConTeXt}} so, \ascii is made undefined at some time Many thanks for your reply, Hans. I’m afraid that my ignorance prevents me for understanding your reply. What I was trying to solve was this: \startbuffer[demo] doc h1span label=contextConTeXt/a/h1 span label=contextConTeXt/a span label=texTeX/a span label=latexLaTeX/a /doc \stopbuffer You’re mixing tags, each span ends with /a. \setupinteraction[state=start] \startxmlsetups xml:initialize \xmlsetsetup{#1}{h1|span}{xml:*} \xmlsetsetup{#1}{span[@label]}{xml:logo} \xmlsetsetup{#1}{span[@label='context']}{xml:context} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:h1 \placecontent[criterium=all] \chapter{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:logo \uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii \ifx\ascii\empty\else\getvalue{\ascii}\fi \stopxmlsetups \startxmlsetups xml:context \ConTeXt \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo}{} \stoptext xml:logo doesn’t work when it has to be parsed in a heading. Is there a fix for xml:logo or is xml:context the proper fix? You need a expandable version for your logo tags. \startxmlsetups xml:logo \getvalue{\utfupper{\xmlatt{#1}{label}}} \stopxmlsetups You can also modify this and provide a text which appears when you try to show a logo which isn’t defined. \startxmlsetups xml:logo \executeifdefined{\utfupper{\xmlatt{#1}{label}}}{{\tttf ???}} \stopxmlsetups 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with interaction and TOC
On 03/22/2015 12:27 AM, Hans Hagen wrote: On 3/21/2015 10:49 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \placelist[chapter] %~ \uppercasestring{context}\to\ascii %~ \chapter{\getvalue{\ascii}} \chapter{ConTeXt} \stoptext ConTeXt complains about an error in the first line. What am I doing wrong? (Sorry, but I wanted to test the commented lines, but I don’t know why the simplified example doesn’t work.) \uppercasestring{context}\to\ascii \chapter{\meaning\ascii} % \getvalue{\ascii}} \chapter{\WORD{ConTeXt}} so, \ascii is made undefined at some time Many thanks for your reply, Hans. I’m afraid that my ignorance prevents me for understanding your reply. What I was trying to solve was this: \startbuffer[demo] doc h1span label=contextConTeXt/a/h1 span label=contextConTeXt/a span label=texTeX/a span label=latexLaTeX/a /doc \stopbuffer \setupinteraction[state=start] \startxmlsetups xml:initialize \xmlsetsetup{#1}{h1|span}{xml:*} \xmlsetsetup{#1}{span[@label]}{xml:logo} \xmlsetsetup{#1}{span[@label='context']}{xml:context} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:h1 \placecontent[criterium=all] \chapter{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:logo \uppercasestring\xmlatt{#1}{label}\xmlatt{#1}{name}\to\ascii \ifx\ascii\empty\else\getvalue{\ascii}\fi \stopxmlsetups \startxmlsetups xml:context \ConTeXt \stopxmlsetups \starttext \xmlprocessbuffer{main}{demo}{} \stoptext xml:logo doesn’t work when it has to be parsed in a heading. Is there a fix for xml:logo or is xml:context the proper fix? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___