[NTG-context] Re: crossreferences
There are not enough information to provide you with a useful solution but you can use debugging information for further inspection. Put everything before \starttext of the following example to your document to find clues for the missing references. begin example \setupinteraction[state=start] \enabletrackers[nodes.references.show,nodes.references] \enabletrackers[nodes.destinations.show,nodes.destinations] \enabletrackers[structures.referencing,structures.referencing.*] \starttext See \pagereference[one]reference two at \at{page}[two]. \page See \pagereference[two]reference one at \at{page}[one]. \stoptext end example Wolfgang Thanks for the hint and the code. While your example runs nicely, if I run 15 pages from my book it produces log file entries not unlike in your example, but then crashes with the errors given below. Since apart from this the book works just fine, and I can always add the references by hand in the end, there is no need to pursue this too long. I am sure I have messed up a few definitions by copying from examples I did not fully understand. Best Jürgen ... structures > bookmark: The Text and its Critics structure > sectioning > section @ level 3 : 0.1.3 -> The Text and its Critics references > identifying > type '1a', reference 'internal(0)', index 1, prefix '', special 'internal', kind 'special operation' references > internal(0)={ { ["kind"]="special operation", ["operation"]="0", ["reference"]="internal(0)", ["special"]="internal", }, ["n"]=15, ["prefix"]="", ["reference"]="internal(0)", } backend > references > resolving attribute 12 backend > references > unable to resolve annotation 12 backend > references > resolving attribute 13 backend > references > unable to resolve annotation 13 backend > destinations > resolving attribute 22 backend > destinations > resolving attribute 21 backend > destinations > resolving attribute 23 pages > flushing realpage 16, userpage 16, subpage 16 tex memory > bumping category 'input' succeeded, details: all=64 | ini=-1 | max=10 | mem=2 | min=1 | ptr=10001 | set=10 | stp=1 | top=10001 tex memory > bumping category 'input' succeeded, details: all=96 | ini=-1 | max=10 | mem=3 | min=1 | ptr=20001 | set=10 | stp=1 | top=20001 tex memory > bumping category 'input' succeeded, details: all=128 | ini=-1 | max=10 | mem=4 | min=1 | ptr=30001 | set=10 | stp=1 | top=30001 tex memory > bumping category 'input' succeeded, details: all=160 | ini=-1 | max=10 | mem=5 | min=1 | ptr=40001 | set=10 | stp=1 | top=40001 tex memory > bumping category 'input' succeeded, details: all=192 | ini=-1 | max=10 | mem=6 | min=1 | ptr=50001 | set=10 | stp=1 | top=50001 tex memory > bumping category 'input' succeeded, details: all=224 | ini=-1 | max=10 | mem=7 | min=1 | ptr=60001 | set=10 | stp=1 | top=60001 tex memory > bumping category 'input' succeeded, details: all=256 | ini=-1 | max=10 | mem=8 | min=1 | ptr=70001 | set=10 | stp=1 | top=70001 tex memory > bumping category 'input' succeeded, details: all=288 | ini=-1 | max=10 | mem=9 | min=1 | ptr=80001 | set=10 | stp=1 | top=80001 tex memory > bumping category 'token' succeeded, details: all=800 | ini=553139 | max=1000 | mem=100 | min=100 | ptr=1272890 | set=1000 | stp=25 | top=100 tex memory > bumping category 'input' succeeded, details: all=320 | ini=-1 | max=10 | mem=10 | min=1 | ptr=90001 | set=10 | stp=1 | top=90001 tex memory > bumping category 'input' failed, details: all=320 | ini=-1 | max=10 | mem=10 | min=1 | ptr=11 | set=10 | stp=1 | top=11 tex error > tex error on line 452 in file Introduction.tex: TeX capacity exceeded, sorry [input=10] --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel. 0049-6421-28-24930 hanne...@staff.uni-marburg.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: contextwiki what is going on?
The setting is controlled via Safari -> Preferences -> Websites -> Downloads I'm not aware of any way to inadvertantly reset or change the setting for a site. > On 16 Jun 2024, at 21:17, Hans van der Meer via ntg-context > wrote: > > Mysterious: loading once explicitely of the full URL > https://wiki.contextgarden.net/Main_Page remedied the bookmark. One of the > riddles of computing, I fear. > > yours sincerely > dr. Hans van der Meer > > > >> On 16 Jun 2024, at 22:00, Hans van der Meer via ntg-context >> wrote: >> >> Today I find on my Mac the following alert when browsing >> wiki.contextgarden.net >> >> Do you want to allow downloads on “wiki.contextgarden.net”? >> >> instead of the home page. >> >> Since I changed nothing in my system, no preferences changes, no system >> update, no security settings, this behaviour deviates from the previously >> prompt loading of the home page. >> >> What is happening? Is the site hacked? Or was there a change on the server? >> I do not want to allow downloads just to lookup something in the garden. >> >> yours sincerely >> dr. Hans van der Meer — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: contextwiki what is going on?
Mysterious: loading once explicitely of the full URL https://wiki.contextgarden.net/Main_Page remedied the bookmark. One of the riddles of computing, I fear. yours sincerely dr. Hans van der Meer > On 16 Jun 2024, at 22:00, Hans van der Meer via ntg-context > wrote: > > Today I find on my Mac the following alert when browsing > wiki.contextgarden.net <http://wiki.contextgarden.net/> > > Do you want to allow downloads on “wiki.contextgarden.net”? > > instead of the home page. > > Since I changed nothing in my system, no preferences changes, no system > update, no security settings, this behaviour deviates from the previously > prompt loading of the home page. > > What is happening? Is the site hacked? Or was there a change on the server? > I do not want to allow downloads just to lookup something in the garden. > > yours sincerely > dr. Hans van der Meer > > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] start/end pages in ToC
Our journal is currently in the process of moving to continuous publication of items in a given volume as they are ready. This entails re-jigging the ToC so that it now includes the start and end page numbers of each item. So far, I have everything pretty much in the right place, but for the page numbers I am getting only “??”. I am not sure why this is happening and would be grateful if someone could tell me why or point me to documentation that explains the problem and how to solve it. Many thanks in advance. My minimalish working example: \definehead[SourceTitle][chapter] \setuphead[SourceTitle][page=yes, footer={ItemData}] \definehead[StudyTitle][chapter] \setuphead[StudyTitle][page=yes, footer={ItemData}] \definetext[ItemData][footer][ {\at[\Reference]– \at[\namedstructureuservariable{}{authorInitials}endPage]} ] \setuplist[SourceTitle][ state=start, textcolor=black, alternative=startendpages, criterium=all, headnumber=no, interaction=page, numberalign=flushright, before={\blank[2.2ex, fixed]}, inbetween=\endgraf, ] \setuplist[StudyTitle][ state=start, textcolor=black, alternative=startendpages, criterium=all, headnumber=no, interaction=all, numberalign=flushright, before={\blank[2.2ex, fixed]}, inbetween=\endgraf, ] \define\ToCEntry{% \structurelistuservariable{author}\crlf \structurelistuservariable{title}\hfill% \at[\structurelistuservariable{reference}]–% \at[\structurelistuservariable{authorInitials}endPage] } \definelistalternative[startendpages] [renderingsetup=list:startendpages] \startsetups[list:startendpages] {\ToCEntry} \vglue1pc \stopsetups \starttext {\tfa\bf Contents} \blank[line, fixed] \WORD{Sources} \blank[halfline, fixed] \placelist[SourceTitle][criterium=all] \blank[line, fixed] \WORD{Studies} \blank[halfline, fixed] \placelist[StudyTitle][criterium=all] \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo01} \startSourceTitle[reference={\Reference}, bookmark=Source01, title={}][ title=Source01, author=Author01, authorInitials=ABC, reference={\Reference}, ] \input knuth \page \dorecurse{25}{\input ward\par} \reference[ABCendPage]{} \stopSourceTitle \page[makeup] \setnumber[userpage][1] \def\Reference{RefSo02} \startSourceTitle[reference={\Reference}, bookmark=Source02, title={}][ author=Author02, title=Source02, authorInitials=PQR, reference={\Reference}, ] \input knuth \page \dorecurse{10}{\input ward\par} \reference[PQRendPage]{} \stopSourceTitle \page[makeup] \setnumber[userpage][1] \def\Reference{RefSt01} \startStudyTitle[reference={\Reference}, bookmark=Study01, title={}][ author=Author03, title=Study01, authorInitials=XYZ, reference={\Reference}, ] \input knuth \blank[big] \page \dorecurse{15}{\input ward\par} \reference[XYZendPage]{} \stopStudyTitle \page[makeup] \stoptext Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Strange error at lxml-mms.lmt:749
Apologies, I sent the wrong file, this is the relevant log portion after compiling with the change: pages > flushing realpage 133, userpage 133, subpage 133 𝑡 0.975 ∗ 𝑡 0.025 ∗ pages > flushing realpage 134, userpage 134, subpage 134 pages > flushing realpage 135, userpage 135, subpage 135 structures > bookmark: Prueba de homogeneidad structure > sectioning > section @ level 3 : 0.7.2 -> Prueba de homogeneidad structures > bookmark: Hipótesis structure > sectioning > subsubsection @ level 5 : 0.7.2.0.1 -> Hipótesis structures > bookmark: Estadístico de prueba structure > sectioning > subsubsection @ level 5 : 0.7.2.0.2 -> Estadístico de prueba structures > bookmark: Aplicación de la homogeneidad structure > sectioning > subsection @ level 4 : 0.7.2.1 -> Aplicación de la homogeneidad pages > flushing realpage 136, userpage 136, subpage 136 floatblocks > order disturbed floatblocks > '51' placed (force) pages > flushing realpage 137, userpage 137, subpage 137 floatblocks > order disturbed floatblocks > '52' placed (force) pages > flushing realpage 138, userpage 138, subpage 138 close source> level 2, order 29, name 'include/content/Aplicación-prueba-ji-cuadrado.tex' pages > flushing realpage 139, userpage 139, subpage 139 ∑ tex error > tex error on line 85 in file ./IntroEstadísticaNP.tex: lua error: registered function call [250]: ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: attempt to index a nil value (local 'a2') stack traceback: ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: in upvalue 'expandone' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:284: in upvalue 'expandfenced' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:585: in upvalue 'expandone' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:798: in upvalue 'expandone' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:350: in upvalue 'expandone' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:952: in upvalue 'expand' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:808: in upvalue 'expandone' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:605: in upvalue 'expandone' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:952: in upvalue 'expand' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:899: in upvalue 'expandone' ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:1019: in field 'verbose' ...mtx/tex/texmf-context/tex/context/base/mkxl/math-tag.lmt:985: in field 'gettextblob' ...mtx/tex/texmf-context/tex/context/base/mkxl/lpdf-tag.lmt:391: in upvalue 'makeelement' ...mtx/tex/texmf-context/tex/context/base/mkxl/lpdf-tag.lmt:715: in upvalue 'structures_tags_handler' [string "local tonut = nodes.tonut..."]:21: in function <[string "local tonut = nodes.tonut..."]:12> (...tail calls...) ...mtx/tex/texmf-context/tex/context/base/mkxl/node-shp.lmt:38: in function <...mtx/tex/texmf-context/tex/context/base/mkxl/node-shp.lmt:37> (...tail calls...) El dom, 25 feb 2024 a las 16:41, Andres Conrado Montoya (< andresconr...@gmail.com>) escribió: > IntroEstadisticaNP-error.log: > > return { > ["filename"]="./IntroEstadísticaNP.tex", > ["lastcontext"]="", > ["lastluaerror"]="registered function call [250]: > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:490: attempt to > index a nil value (local 'a2')\nstack traceback:\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:490: in upvalue > 'expandone'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:261: in upvalue > 'expandfenced'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:373: in upvalue > 'expandone'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:532: in upvalue > 'expandone'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:383: in upvalue > 'expandone'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:669: in upvalue > 'expand'\n ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:544: > in upvalue 'expandone'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:383: in upvalue > 'expandon
[NTG-context] Re: disable header for endnotes
On 8/16/2023 5:02 AM, jbf wrote: I wonder if someone might be able to help me with this. I have a book in three parts and the author wants endnotes. No problem. I can produce those with \setupfootnotes[location=text] and then \placefootnotes. However, I would like the header to read 'Notes' on the recto page (or indeed be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title}\hfill}][] [\setups{middle}][] How do I deal with the \placefootnotes command so that it ignores this and either gives me no header, or perhaps a new header with 'Notes' in place of [section] (which is achieved in centered position with setups[middle])? Julian I use the following for a notes chapter at the end of a book. It produces headings that indicate the pages for which the notes apply. Perhaps you can adapt it to your needs: In the environment file: \definemarking [notePage] \startsetups noteHeadingsText {\em Notes for page \doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]} { \getmarking[notePage][top]} {s \getmarking[notePage][top]–\getmarking[notePage][bottom]}} \stopsetups \startsetups noteHeadings:on \setupheadertexts[][\setups{noteHeadingsText}] [\setups{noteHeadingsText}][] \stopsetups In the text: \startbackmatter \startchapter[reference={cha:notes}, list={Notes}, % toc bookmark={Notes}, % pdf bookmark title={Notes}] % chapter head [Lettrine=no] \setups{noteHeadings:on} \placenotes[endnote] \stopchapter -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: An error which is not in .log file
On 8/15/2023 4:50 PM, Xavier B. wrote: After trying to compile a long file with LMTX (previously with MKIV all compiles perfectly), I get an error structures > bookmark: Referències structure > sectioning > chapter @ level 2 : 0.1 -> Referències publications> list > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage 297, userpage 295, subpage 297 structures > end of sectionblock 'backpart' close source> level 1, order 147, name './ng-exercicis.conTeXt' (\end occurred inside a group at level 8) 8:0: semisimple group entered at line 276: \begingroup so check what starts at line 276 and see what should match - 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] An error which is not in .log file
After trying to compile a long file with LMTX (previously with MKIV all compiles perfectly), I get an error structures > bookmark: Referències structure > sectioning > chapter @ level 2 : 0.1 -> Referències publications> list > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage 297, userpage 295, subpage 297 structures > end of sectionblock 'backpart' close source> level 1, order 147, name './ng-exercicis.conTeXt' (\end occurred inside a group at level 8) 8:0: semisimple group entered at line 276: \begingroup 7:0: semisimple group entered at line 5: \begingroup 6:0: semisimple group entered at line 5: \begingroup 5:0: semisimple group entered at line 114: \begingroup 4:0: semisimple group entered at line 114: \begingroup 3:0: semisimple group entered at line 5: \begingroup 2:0: semisimple group entered at line 5: \begingroup 1:0: semisimple group entered at line 27: \begingroup 0:0: bottomlevel mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /home/xan/bin/context-current/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.004 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 240 found files, scanned paths: mkiv lua stats > stored bytecode data: 512 modules (0.181 sec), 105 tables (0.010 sec), 617 chunks (0.191 sec) mkiv lua stats > traced context: maxstack: 1715, freed: 2, unreachable: 1713 mkiv lua stats > cleaned up reserved nodes: 85 nodes, 11 lists of 671 mkiv lua stats > node memory usage: 291 attribute, 62 dir, 91 glue, 3281 gluespec, 1 glyph, 1 hlist, 1 kern, 2 math, 645 mathspec, 4 penalty, 18 rule, 2 temp, 66305 whatsit mkiv lua stats > node list callback tasks: 16 unique task lists, 18 instances (re)created, 119367 calls mkiv lua stats > h-node processing time: 0.653 seconds including kernel mkiv lua stats > attribute processing time: 0.119 seconds front- and backend mkiv lua stats > driver time: 0.693 seconds mkiv lua stats > used backend: pdf mkiv lua stats > jobdata time: 0.054 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: file: 69204, saved: 309548, direct: 957, function: 244605, value: 7598, message: 0, bytecode: 617, late 0, total: 632529 (0 per page) mkiv lua stats > randomizer: initialized with value 0.45060333164985 mkiv lua stats > v-node processing time: 0.259 seconds mkiv lua stats > loaded tex modules: 4 requested, 1 found (*-tikz), 3 missing (*-pgfmat *-pgfmath *-pgfrcs) mkiv lua stats > loaded patterns: ca::65 en::1, load time: 0.000 mkiv lua stats > interactive elements: 74 references, 950 destinations mkiv lua stats > loaded fonts: 13 files: latinmodern-math.otf, lmmono10-regular.otf, lmroman10-bold.otf, lmroman10-italic.otf, lmroman10-regular.otf, lmromancaps10-regular.otf, lmromanslant10-regular.otf, lmsans10-bold.otf, lmsans10-boldoblique.otf, lmsans10-regular.otf, texgyreschola-bold.otf, texgyreschola-math.otf, texgyreschola-regular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 68 instances, 51 shared in backend, 8 common vectors, 43 common hashes, load time 1.181 seconds mkiv lua stats > body font sizes: defined: 10pt 11pt 12pt 14.4pt 17.3pt 20.7pt 4pt 5pt 6pt 7pt 8pt 9pt, undefined: 11.2pt 12.8pt 14pt 16.8pt 16pt 19.2pt 24pt 30pt 36pt mkiv lua stats > metapost: 0.000 seconds, loading: 0.033, execution: 0.000, n: 3, average: 0.011, instances: 1, luacalls: 14196 (file: 13784, text: 0, script: 393, log: 19), memory: 3.881 M mkiv lua stats > math tweaking time: 0.474 seconds, 84 math goodie tables mkiv lua stats > math processing time: 0.292 seconds mkiv lua stats > graphics processing time: 1.768 seconds including tex, 268 processed images, 57 unique asked, 27 bad names mkiv lua stats > publications load time: 0.005 seconds, 2963 bytes, 11 definitions, 0 shortcuts mkiv lua stats > pdf annotations: 74 links (74 unique), 0 special mkiv lua stats > font embedding time: 0.018 seconds, 13 fonts mkiv lua stats > result saved in file: ng-exercicis.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 311 collected, 0 deltas, 307 shared partials, 133 partial entries mkiv lua stats > cross referencing: 713 identified, 269 unknown mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > used engine: luametatex version: 2.10.10, functionality level: 20230803, format id: 697, compiler: gcc mkiv lua stats > tex properties: 806417 hash slot
Re: [NTG-context] upload
On 12/21/22 17:20, Hans Hagen via ntg-context wrote: > [...] > Some other possible speedups are on-hold till I have better test cases. Many thanks for the improvements in the new release, Hans. I have some documents, but I should be reluctant to send longs, because I’m almost confident that my code is poorly written (to say the least). The attachment contains a log for a 72 page document with just text (from XML sources [XHTML generated by pandoc from Markdown file]). [Since attachments over 100KB aren’t allowed, only the last two runs are included in the log file.] With current latest from today, I get: mkiv lua stats > runtime: 2.167 seconds, 72 processed pages, 72 shipped pages, 33.225 pages/second mtx-context | purged files: xml-context.log, xml-context.tuc system | total runtime: 8.779 seconds of 8.818 seconds Exactly the same sources with previous latest (from 2022.12.15): mkiv lua stats > runtime: 2.410 seconds, 72 processed pages, 72 shipped pages, 29.877 pages/second mtx-context | purged files: xml-context.log, xml-context.tuc system | total runtime: 9.310 seconds of 9.350 seconds So, the improvement is clear in current latest. Many thanks again for the improvement, Pabloresolvers | formats | executing runner 'run luametatex format': ~/context/tex/texmf-linux-64/bin/luametatex --jobname="./xml-context.xml" --fmt=~/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=~/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui --c:currentrun=3 --c:environment="xml-context.tex" --c:fulljobname="./xml-context.xml" --c:input="./xml-context.xml" --c:kindofrun=2 --c:maxnofruns=9 --c:purgeall --c:texmfbinpath="~/context/tex/texmf-linux-64/bin" structure > lists > out of order sectionsblocks, maybe use \setsectionblock structure > lists > out of order sectionsblocks, maybe use \setsectionblock structure > lists > out of order sectionsblocks, maybe use \setsectionblock structure > lists > out of order sectionsblocks, maybe use \setsectionblock system > system > ConTeXt ver: 2022.12.21 17:13 LMTX fmt: 2022.12.21 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name '~/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name '~/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > 'cont-loc.mkxl' loaded open source > level 1, order 2, name '~/context/tex/texmf-local/cont-loc.mkxl' close source> level 1, order 2, name '~/context/tex/texmf-local/cont-loc.mkxl' system > files > jobname './xml-context', input './xml-context.xml', result './xml-context' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 3, name 'xml-context.tex' open source > level 2, order 4, name '~/from-pandoc-to-context/pandoc-xhtml.tex' close source> level 2, order 4, name '~/from-pandoc-to-context/pandoc-xhtml.tex' colors > 'rgb' color space is supported colors > 'cmyk' color space is supported fonts > checks > registering extra script 'auto' fonts > bodyfont '15pt' is defined (can better be done global) fonts > bodyfont '18pt' is defined (can better be done global) close source> level 1, order 4, name 'xml-context.tex' system > processing as xml: ./xml-context.xml xml > core > ignoring public entities 'html' as '-//W3C//DTD XHTML 1.0 Transitional//EN' from 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd' structures > begin of sectionblock 'whatcomesfirst' structures > bookmark: [Portada] structure > sectioning > hiddentitle @ level 2 : 0.0 -> [Portada] fonts > bodyfont '25pt' is defined (can better be done global) fonts > bodyfont '30pt' is defined (can better be done global) fonts > bodyfont '20pt' is defined (can better be done global) backend > xmp > using file '~/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 2, subpage 2 structures > bookmark: [Título] structure > sectioni
Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads
Of course it works, it's the order. For me TeX wouldn't be the same without you. Thank you very much Hans. Hans Hagen via ntg-context schrieb am Mo., 25. Juli 2022, 09:20: > On 7/24/2022 11:35 PM, cryo shock via ntg-context wrote: > > Hey there, > > > > I am having trouble understanding some basic blank page behavior. I hope > > that somebody of you can point me in the right direction. > > > > My primary goal is to create application documents consisting of various > > .tex components and with external PDF pages inserted as well. The second > > part of that goal is to use multiple-level bookmarking as well. > > Bookmarking should look like this: > > > > - Letter > > - Resume > > - Testimonies > > -- Testimony A > > -- Testimony B > > -- Testimony C > > > > In the following MWE you can see my progress along with some notes to > > help understanding. > > > > There are two questions, I'd wish could be answered: > > > > 1. Why does TeX insert a blank page before a pagefigure I enclose within > > a (hidden) head? > > > > 2. Can the \bookmark[list]{text} command be somehow used for multi-level > > bookmarking? > > > > While the first question would make up for a more consistent solution, > > the second question would do the job as well. > > > > I hope some of you can enlighten me. > > > > Cheers, k > > > > > > %%% START of MWE > > > > \definehead[VisiSection][section] > > \setuphead[VisiSection][number=no] > > > > \definehead[InvisiSection][VisiSection] > > \setuphead[InvisiSection][placehead=no] > > > > \definelist[CustomBMarks] > > > > \setupinteraction[state=start] > > \placebookmarks[VisiSection,InvisiSection,CustomBMarks] > > > > \startcomponent * % not a product, no > >\startVisiSection[title={Custom Section A}] > > Text of Custom Section A > >\stopVisiSection > >\page > >\startVisiSection[title={Custom Section B}] > > Text of Custom Section B > >\stopVisiSection > >\startInvisiSection[title={Hidden Custom Section A}] > > Text of Hidden Custom Section A > >\stopInvisiSection > >\page > >\startInvisiSection[title={Hidden Custom Section B}] > > Text of Hidden Custom Section B > >\stopInvisiSection > >\page > >TEST\bookmark[CustomBMarks]{Start of Teststack} \dorecurse{800}{TEST > > }NEEDLE\bookmark[CustomBMarks]{Needle in the Teststack} > > \dorecurse{400}{TEST }TEST.\bookmark[CustomBMarks]{End of Teststack} > >%%% > >%%% So far no problems. > >%%% The following combination does the job, but I see no possibility > >%%% to arrange the "CustomBMarks"-list in multi-levels. > >%%% > >\page > >\startstandardmakeup > > \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure} > >\stopstandardmakeup > >%%% > >%%% So the following method would be the best choice to work with > >%%% multi-level bookmarks. But as soon as I start working with > >%%% (custom) heads together with pagefigures, CTX places a blank > >%%% page before every figure... > >%%% Note: you don't need a dummy file. The last (unnumbered) page is > >%%% the wanted external PDF. The numbered page before is the unwanted > > one. > >%%% > >\startInvisiSection[title={External Testpage A}] > > \startstandardmakeup > >\filterpages[{test.pdf}][1] > > \stopstandardmakeup > >\stopInvisiSection > > \stopcomponent > because even a hidden head is something (anchor on page), you can try this: > > \startstandardmakeup >\startInvisiSection[title={External Testpage A}] >\filterpages[{test.pdf}][1] >\stopInvisiSection > \stopstandardmakeup > > - >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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] bibliography problem
Hi, Denis’ article in the CG journal uses the publications module with a .bib database. With ConTeXt LMTX 2022.05.11 all was well, with the current version (2022.07.27) it can’t find the entries of the database: open source > level 2, order 20, name 'dm-ligatures/dm-ligatures.tex' publications> adding bib data to set 'dmlig' from source 'dm-ligatures/references.bib' interface > macros > processed mkvi file '/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi', delta 94 interface > macros > processed mkvi file '/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi', delta 0 open source > level 3, order 21, name '/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi' close source> level 3, order 21, name '/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi' structures > bookmark: Automatic suppression of unwanted ligatures — Denis Maier structure > sectioning > part @ level 1 : 1 -> Automatic suppression of unwanted ligatures\doifsomething {Denis Maier}{ —\ }\IndexAuthor Denis Maier structures > bookmark: Introduction structure > sectioning > section @ level 3 : 1.0.1 -> Introduction fonts > defining > unable to define 'IBMPlexSansHebrew-regular' as 'dummy--5' publications> analyzing previous publication run for 'dmlig' publications> no entry 'taraborelli:beauty' found in dataset 'dmlig' publications> no entry 'knuth:texbook' found in dataset 'dmlig' publications> no entry 'duden' found in dataset 'dmlig' publications> no entry 'detailtypografie' found in dataset 'dmlig' publications> no entry 'butterick:practical-typography-ligatures' found in dataset 'dmlig' publications> no entry 'bringhurst:style' found in dataset 'dmlig' publications> no entry 'rafaeli:book-typography' found in dataset 'dmlig' But the entries do exist in the bib file, and a minimal example works. In both cases, the setup looks like: \usebtxdataset[dmlig][dm-ligatures/references.bib] \setupbtx[dataset=dmlig] \usebtxdefinitions[apa] \setupbtx[apa:cite][alternative=num] I don’t know what to look for. Any hints? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads
On 7/24/2022 11:35 PM, cryo shock via ntg-context wrote: Hey there, I am having trouble understanding some basic blank page behavior. I hope that somebody of you can point me in the right direction. My primary goal is to create application documents consisting of various .tex components and with external PDF pages inserted as well. The second part of that goal is to use multiple-level bookmarking as well. Bookmarking should look like this: - Letter - Resume - Testimonies -- Testimony A -- Testimony B -- Testimony C In the following MWE you can see my progress along with some notes to help understanding. There are two questions, I'd wish could be answered: 1. Why does TeX insert a blank page before a pagefigure I enclose within a (hidden) head? 2. Can the \bookmark[list]{text} command be somehow used for multi-level bookmarking? While the first question would make up for a more consistent solution, the second question would do the job as well. I hope some of you can enlighten me. Cheers, k %%% START of MWE \definehead[VisiSection][section] \setuphead[VisiSection][number=no] \definehead[InvisiSection][VisiSection] \setuphead[InvisiSection][placehead=no] \definelist[CustomBMarks] \setupinteraction[state=start] \placebookmarks[VisiSection,InvisiSection,CustomBMarks] \startcomponent * % not a product, no \startVisiSection[title={Custom Section A}] Text of Custom Section A \stopVisiSection \page \startVisiSection[title={Custom Section B}] Text of Custom Section B \stopVisiSection \startInvisiSection[title={Hidden Custom Section A}] Text of Hidden Custom Section A \stopInvisiSection \page \startInvisiSection[title={Hidden Custom Section B}] Text of Hidden Custom Section B \stopInvisiSection \page TEST\bookmark[CustomBMarks]{Start of Teststack} \dorecurse{800}{TEST }NEEDLE\bookmark[CustomBMarks]{Needle in the Teststack} \dorecurse{400}{TEST }TEST.\bookmark[CustomBMarks]{End of Teststack} %%% %%% So far no problems. %%% The following combination does the job, but I see no possibility %%% to arrange the "CustomBMarks"-list in multi-levels. %%% \page \startstandardmakeup \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure} \stopstandardmakeup %%% %%% So the following method would be the best choice to work with %%% multi-level bookmarks. But as soon as I start working with %%% (custom) heads together with pagefigures, CTX places a blank %%% page before every figure... %%% Note: you don't need a dummy file. The last (unnumbered) page is %%% the wanted external PDF. The numbered page before is the unwanted one. %%% \startInvisiSection[title={External Testpage A}] \startstandardmakeup \filterpages[{test.pdf}][1] \stopstandardmakeup \stopInvisiSection \stopcomponent because even a hidden head is something (anchor on page), you can try this: \startstandardmakeup \startInvisiSection[title={External Testpage A}] \filterpages[{test.pdf}][1] \stopInvisiSection \stopstandardmakeup - 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads
Hey there, I am having trouble understanding some basic blank page behavior. I hope that somebody of you can point me in the right direction. My primary goal is to create application documents consisting of various .tex components and with external PDF pages inserted as well. The second part of that goal is to use multiple-level bookmarking as well. Bookmarking should look like this: - Letter - Resume - Testimonies -- Testimony A -- Testimony B -- Testimony C In the following MWE you can see my progress along with some notes to help understanding. There are two questions, I'd wish could be answered: 1. Why does TeX insert a blank page before a pagefigure I enclose within a (hidden) head? 2. Can the \bookmark[list]{text} command be somehow used for multi-level bookmarking? While the first question would make up for a more consistent solution, the second question would do the job as well. I hope some of you can enlighten me. Cheers, k %%% START of MWE \definehead[VisiSection][section] \setuphead[VisiSection][number=no] \definehead[InvisiSection][VisiSection] \setuphead[InvisiSection][placehead=no] \definelist[CustomBMarks] \setupinteraction[state=start] \placebookmarks[VisiSection,InvisiSection,CustomBMarks] \startcomponent * % not a product, no \startVisiSection[title={Custom Section A}] Text of Custom Section A \stopVisiSection \page \startVisiSection[title={Custom Section B}] Text of Custom Section B \stopVisiSection \startInvisiSection[title={Hidden Custom Section A}] Text of Hidden Custom Section A \stopInvisiSection \page \startInvisiSection[title={Hidden Custom Section B}] Text of Hidden Custom Section B \stopInvisiSection \page TEST\bookmark[CustomBMarks]{Start of Teststack} \dorecurse{800}{TEST }NEEDLE\bookmark[CustomBMarks]{Needle in the Teststack} \dorecurse{400}{TEST }TEST.\bookmark[CustomBMarks]{End of Teststack} %%% %%% So far no problems. %%% The following combination does the job, but I see no possibility %%% to arrange the "CustomBMarks"-list in multi-levels. %%% \page \startstandardmakeup \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure} \stopstandardmakeup %%% %%% So the following method would be the best choice to work with %%% multi-level bookmarks. But as soon as I start working with %%% (custom) heads together with pagefigures, CTX places a blank %%% page before every figure... %%% Note: you don't need a dummy file. The last (unnumbered) page is %%% the wanted external PDF. The numbered page before is the unwanted one. %%% \startInvisiSection[title={External Testpage A}] \startstandardmakeup \filterpages[{test.pdf}][1] \stopstandardmakeup \stopInvisiSection \stopcomponent %%% END of MWE ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] error with sbl bibliography on latest LMTX
acelistofpublications%[numbering=yes] \stoptext ``` I realize that the above "fix" does not truly solve the problem, but to make the default footnote style citation of SBL style work, I need to understand what is going on between the footnote environment and the setup containing it. I asked a similar question last year in the "Why are endnotes not working with ConTeXt-SBL?" thread ( https://www.mail-archive.com/ntg-context@ntg.nl/msg100920.html), but no one ever got back to me on it. The issues may be related. One final note: ideally, I would just define footnote citations to follow the inline style, similar to how publ-imp-chicago.mkvi defines footnote citations to follow the entry style. The definition to do this is already in place in publ-imp-sbl.mkvi: ``` \definebtx [sbl:\s!cite:footnote] [sbl:\s!cite:inline] ``` Unfortunately, this definition does nothing, since the btx:cite:footnote setup in publ-imp-cite.mkvi is hardcoded to use the "entry" setup: ``` \startsetups \s!btx:\s!cite:footnote \startfootnote \fastsetup{btx:cite:entry} \stopfootnote \stopsetups ``` This is why I needed to override the footnote citation style in publ-imp-sbl.mkvi. Unfortunately, as we've already seen, work still needs to be done to make this work more robustly, and I need help figuring it out. Joey On Sat, Jul 9, 2022 at 1:17 AM Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > Hi Joel (et al.), > > I tried the SBL bibliography setup with the latest LMTX; the example and > bib database are from Dennis’ article on ligatures in the upcoming CG > journal: > > """ > \usebtxdataset[default][references.bib] > \setupbtx[dataset=default] > \usebtxdefinitions[sbl] > \setupinteraction[state=start] > > \starttext > > superior typographic output \cite[lefttext={e.g.}][taraborelli:beauty]. > > Therefore, the {\TEX}book mentions that the word > \quotation{shel\noligature{ff}ul} should indeed be rendered without the > ff-ligature \cite[righttext={p.~19}][knuth:texbook]. > > \placelistofpublications%[numbering=yes] > > \stoptext > """ > > Unfortunately, I get some errors, while it works with APS and APA: > > -- invalid parent sbl:list:title:unpublished for sbl:list:title:thesis, > sbl:list:title:unpublished defined too (best check it) > -- Undefined control sequence \currentbtxloctext > > I installed your files in TEXMFHOME, and apparently, ConTeXt can find > them. Here’s the shortened log: > > system > ConTeXt ver: 2022.05.11 11:36 LMTX fmt: 2022.7.4 > int: english/english > ... > open source > level 1, order 2, name './bibtest.tex' > publications> adding bib data to set 'default' from source > 'references.bib' > open source > level 2, order 3, name > '/Users/hraban/texmf/context/context-sbl/tex/publ-imp-sbl.mkvi' > system > error: invalid parent sbl:list:title:unpublished for > sbl:list:title:thesis, sbl:list:title:unpublished defined too (best > check it) > close source> level 2, order 3, name > '/Users/hraban/texmf/context/context-sbl/tex/publ-imp-sbl.mkvi' > ... > publications> analyzing previous publication run for 'default' > tex error > tex error on line 34 in file ./bibtest.tex: Undefined > control sequence \currentbtxloctext > > \22>:btx:sbl:cite:inline > #1->\fastsetup {\s!btx :\s!cite :concat}\fastsetup > {btx:sbl:cite:lefttext}\begingroup \letbtxparameter {punct}\empty \def > \currentbtxcitealternative {inline}\def \currentbtxcategory {\btxfield > {category}}\def \currentbtxloctext > {\btxparameter {loctex > \normalexpanded > \Word {\fastsetup {btx:sbl:cite:inline} > }\doif {\btxparameter {righttext}}{\empty } {\btxperiod } > \strc_constructions_register_yes > ...constructionparameter \c!referencetext }\iflocation \ifempty > \currentconstructionbookmark \begingroup \simplifycommands \xdef > \currentconstructionbookmark {\detokenize \expandafter {\normalexpanded > {\constructionparameter \c!title > }}}\endgroup ... > \strc_notations_start_reference_indeed > [#1]#*#2->\strc_constructions_register [][\c!label > ={\descriptionparameter \c!text },\c!reference ={#1},\c!title > ={#2},\c!bookmark =,\c!list =,\c!referencetext =] > \strc_notations_wrapup > \22>:btx:sbl:cite:footnote > ...ct}}\begingroup \letbtxparameter {punct}\empty \let > \doifendswithpunctelse \btx_sbl_doifendswithpunctelse \startfootnote > \Word {\fastsetup {btx:sbl:cite:inline}}\doif {\btxparameter > {righttext}}{\empty } {\btxperiod }\stopfootnote > \endgroup \do ... > > ... > > > superior typograph
[NTG-context] error with sbl bibliography on latest LMTX
Hi Joel (et al.), I tried the SBL bibliography setup with the latest LMTX; the example and bib database are from Dennis’ article on ligatures in the upcoming CG journal: """ \usebtxdataset[default][references.bib] \setupbtx[dataset=default] \usebtxdefinitions[sbl] \setupinteraction[state=start] \starttext superior typographic output \cite[lefttext={e.g.}][taraborelli:beauty]. Therefore, the {\TEX}book mentions that the word \quotation{shel\noligature{ff}ul} should indeed be rendered without the ff-ligature \cite[righttext={p.~19}][knuth:texbook]. \placelistofpublications%[numbering=yes] \stoptext """ Unfortunately, I get some errors, while it works with APS and APA: -- invalid parent sbl:list:title:unpublished for sbl:list:title:thesis, sbl:list:title:unpublished defined too (best check it) -- Undefined control sequence \currentbtxloctext I installed your files in TEXMFHOME, and apparently, ConTeXt can find them. Here’s the shortened log: system > ConTeXt ver: 2022.05.11 11:36 LMTX fmt: 2022.7.4 int: english/english ... open source > level 1, order 2, name './bibtest.tex' publications> adding bib data to set 'default' from source 'references.bib' open source > level 2, order 3, name '/Users/hraban/texmf/context/context-sbl/tex/publ-imp-sbl.mkvi' system > error: invalid parent sbl:list:title:unpublished for sbl:list:title:thesis, sbl:list:title:unpublished defined too (best check it) close source> level 2, order 3, name '/Users/hraban/texmf/context/context-sbl/tex/publ-imp-sbl.mkvi' ... publications> analyzing previous publication run for 'default' tex error > tex error on line 34 in file ./bibtest.tex: Undefined control sequence \currentbtxloctext \22>:btx:sbl:cite:inline #1->\fastsetup {\s!btx :\s!cite :concat}\fastsetup {btx:sbl:cite:lefttext}\begingroup \letbtxparameter {punct}\empty \def \currentbtxcitealternative {inline}\def \currentbtxcategory {\btxfield {category}}\def \currentbtxloctext {\btxparameter {loctex \normalexpanded \Word {\fastsetup {btx:sbl:cite:inline} }\doif {\btxparameter {righttext}}{\empty } {\btxperiod } \strc_constructions_register_yes ...constructionparameter \c!referencetext }\iflocation \ifempty \currentconstructionbookmark \begingroup \simplifycommands \xdef \currentconstructionbookmark {\detokenize \expandafter {\normalexpanded {\constructionparameter \c!title }}}\endgroup ... \strc_notations_start_reference_indeed [#1]#*#2->\strc_constructions_register [][\c!label ={\descriptionparameter \c!text },\c!reference ={#1},\c!title ={#2},\c!bookmark =,\c!list =,\c!referencetext =] \strc_notations_wrapup \22>:btx:sbl:cite:footnote ...ct}}\begingroup \letbtxparameter {punct}\empty \let \doifendswithpunctelse \btx_sbl_doifendswithpunctelse \startfootnote \Word {\fastsetup {btx:sbl:cite:inline}}\doif {\btxparameter {righttext}}{\empty } {\btxperiod }\stopfootnote \endgroup \do ... ... superior typographic output \cite[lefttext={e.g.}][taraborelli:beauty] . The control sequence at the end of the top line of your error message was never \def'ed. You can just continue as I'll forget about whatever was undefined. mtx-context | fatal error: return code: 1 Did I do something wrong, is the database not suitable for SBL, or is it a bug? Hraban references.bib Description: application/bibtex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Confusing interaction between \writetolist and bookmarks (bug?)
On Mon, Nov 22, 2021 at 6:28 PM Hans Hagen via ntg-context < ntg-context@ntg.nl> wrote: > On 11/22/2021 10:49 AM, musa furber via ntg-context wrote: > > I am relatively new to ConTeXt and have encountered something that does > > not work as I expected it to based on various documentation and examples. > > > > My book design requires the front matter to contain an abridged table of > > contents just for chapters, and a detailed table of contents in the back > > matter. > > > > Everything worked fine -- including the PDF bookmarks and table of > > contents -- until I started using \writetolist to manually inject > > additional sections and subsections into their respective lists. The > > manually injected entries do show up (as I expected), but their > > corresponding PDF bookmarks get repeated (not what I expected). > you can probably best use > > \startsection[title={...},list={...},bookmark={...}] > ... > \stopsection > Thank you, Hans. This pointer is exactly what I needed. ___ 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] Confusing interaction between \writetolist and bookmarks (bug?)
On 22 November 2021 at 18:28:44, Hans Hagen via ntg-context ( ntg-context@ntg.nl) wrote: On 11/22/2021 10:49 AM, musa furber via ntg-context wrote: > I am relatively new to ConTeXt and have encountered something that does > not work as I expected it to based on various documentation and examples. > > My book design requires the front matter to contain an abridged table of > contents just for chapters, and a detailed table of contents in the back > matter. > > Everything worked fine -- including the PDF bookmarks and table of > contents -- until I started using \writetolist to manually inject > additional sections and subsections into their respective lists. The > manually injected entries do show up (as I expected), but their > corresponding PDF bookmarks get repeated (not what I expected). you can probably best use \startsection[title={...},list={...},bookmark={...}] ... \stopsection I do not think that is an option for me. The book is bilingual, with Arabic and English. There are places where I want the chapter, section, and subsection titles to be bilingual as well, with English on the left and Arabic on the right. I accomplish this using the following… \defineparagraphs[BilingualTitle][n=3,before={\blank[2*line]},after=,] \setupparagraphs[BilingualTitle][1][width=.4\textwidth] \setupparagraphs[BilingualTitle][2][width=.12\textwidth] \setupparagraphs[BilingualTitle][3][width=.4\textwidth] \define[2]\BilingualChapter {\expanded{\writetolist[chapter]{}{#1}} \startBilingualTitle \noindentation\setlatin{}\tfd\setupinterlinespace\feature[+][smallcaps]\word{#1}\feature[<] \nextBilingualTitle \hfill\nextBilingualTitle \noindentation\setarabic{}\tfd\setupinterlinespace{#2} \stopBilingualTitle } …with variants for section, subsection, and subsection. Regards, Musa ___ 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] Confusing interaction between \writetolist and bookmarks (bug?)
On 11/22/2021 10:49 AM, musa furber via ntg-context wrote: I am relatively new to ConTeXt and have encountered something that does not work as I expected it to based on various documentation and examples. My book design requires the front matter to contain an abridged table of contents just for chapters, and a detailed table of contents in the back matter. Everything worked fine -- including the PDF bookmarks and table of contents -- until I started using \writetolist to manually inject additional sections and subsections into their respective lists. The manually injected entries do show up (as I expected), but their corresponding PDF bookmarks get repeated (not what I expected). you can probably best use \startsection[title={...},list={...},bookmark={...}] ... \stopsection - 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] Confusing interaction between \writetolist and bookmarks (bug?)
I am relatively new to ConTeXt and have encountered something that does not work as I expected it to based on various documentation and examples. My book design requires the front matter to contain an abridged table of contents just for chapters, and a detailed table of contents in the back matter. Everything worked fine -- including the PDF bookmarks and table of contents -- until I started using \writetolist to manually inject additional sections and subsections into their respective lists. The manually injected entries do show up (as I expected), but their corresponding PDF bookmarks get repeated (not what I expected). Here is a M(not)WD: ###begin \setupinteraction[state=start] \placebookmarks[chapter, section][chapter, section] \setupinteractionscreen[option=bookmark] \starttext \startfrontmatter \title{Contents} \placelist[chapter] \stopfrontmatter \startbodymatter \chapter{Chapter ONE} \section{Section ONE} \writetolist[section]{}{Section via writetolist ONE} \chapter{Chapter TWO} \stopbodymatter \startbackmatter \chapter{Detailed Table of Contents} \placecontent[criterium=all] \stopbackmatter \stoptext ###end The repetitions go away when any one of the following is done: -- commenting out the front/body/back commands -- commenting out both contents at front and back -- commenting out just back contents -- commenting out the \writetolist Have I misunderstood something? Many thanks, Musa ___ 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] conditional formatting, checking the context (SOLVED)
Hi, in the example below I’m using a custom highlighting macro in titles. Now I don’t want this highlighting in the ToC or in bookmarks (in my real world example the changes affect bookmarks, not in the MWE). I know I can use the list= and bookmark= keys of \startchapter, but since the text is always the same for all, I’d like to check within the \SPECIAL macro if we’re within the chapter title or within a list or bookmarks. In preparing the MWE and this message I found a solution with the *chapter system mode. Wanted to share anyway ;) Hraban \define[1]\SPECIAL{\doifmodeelse{*chapter}{{\bf #1}}{#1}} \setupinteraction[state=start] \placebookmarks[chapter,title] \starttext \startchapter[title={This \SPECIAL{and} That}] \input knuth \stopchapter \startchapter[title={Something \SPECIAL{Other}}] \input tufte \stopchapter \completecontent[criterium=all] \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] Placing extra bookmarks?
> On 2 Dec 2020, at 18:42, Hans Hagen wrote: > > On 12/2/2020 12:10 AM, Bruce Horrocks wrote: >> On 1 Dec 2020, at 16:37, Henning Hraban Ramm wrote: >>> >>>> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks : >>>> >>>> I have \placebookmarks[chapter] in my doc and all is fine except that I'd >>>> like to force an extra bookmark at the top of the list that jumps to the >>>> cover page. However there is no chapter title, or other built in style on >>>> the cover. >>>> >>>> I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no >>>> error, no bookmark. >>>> >>>> Any suggestions please? There's no need to bookmark to a specific point - >>>> just going to page 1 would be enough. >>> >>> Did you enable interactions? \setupinteractions[state=start] >>> >>> But when I recently tried to manually set some bookmarks instead of visible >>> chapter titles, I also didn’t get any; didn’t investigate further yet. > there are some examples in the test suite (sections/bookmarks-*.tex) > > You can specify bookmarks when you use \startsection etc an dalso add them > any place to named lists. Thanks Hans - I never thought to look in the test cases (d'oh!). For the benefit of those searching the archives in the future, here is an MWE adapted from one of the test cases that places one bookmark via a chapter heading and one manually that is not linked to any document section. \enabletrackers[references.bookmarks,backend.resources] % For debug only \setupinteraction [state=start] \setupinteractionscreen [option=bookmark] \definelist [mylist] \placebookmarks[chapter,mylist] \starttext \input zapf \bookmark[mylist]{Bookmark not linked to a section heading} \input zapf \page[yes] \startchapter[title=Tufte] \input tufte \stopchapter \stoptext I shall add it to the Wiki. -- Bruce Horrocks Hampshire, UK ___ 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] Placing extra bookmarks?
On 12/2/2020 12:10 AM, Bruce Horrocks wrote: On 1 Dec 2020, at 16:37, Henning Hraban Ramm wrote: Am 01.12.2020 um 15:36 schrieb Bruce Horrocks : I have \placebookmarks[chapter] in my doc and all is fine except that I'd like to force an extra bookmark at the top of the list that jumps to the cover page. However there is no chapter title, or other built in style on the cover. I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no error, no bookmark. Any suggestions please? There's no need to bookmark to a specific point - just going to page 1 would be enough. Did you enable interactions? \setupinteractions[state=start] But when I recently tried to manually set some bookmarks instead of visible chapter titles, I also didn’t get any; didn’t investigate further yet. there are some examples in the test suite (sections/bookmarks-*.tex) You can specify bookmarks when you use \startsection etc an dalso add them any place to named lists. 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 ___
Re: [NTG-context] Placing extra bookmarks?
On 1 Dec 2020, at 16:37, Henning Hraban Ramm wrote: > >> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks : >> >> I have \placebookmarks[chapter] in my doc and all is fine except that I'd >> like to force an extra bookmark at the top of the list that jumps to the >> cover page. However there is no chapter title, or other built in style on >> the cover. >> >> I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no >> error, no bookmark. >> >> Any suggestions please? There's no need to bookmark to a specific point - >> just going to page 1 would be enough. > > Did you enable interactions? \setupinteractions[state=start] > > But when I recently tried to manually set some bookmarks instead of visible > chapter titles, I also didn’t get any; didn’t investigate further yet. Thanks for the suggestion, but I already had \setupinteraction[state=start] set. (Note 'interaction' - no 's') I eventually found a previous thread on the mailing list archive. <https://www.mail-archive.com/ntg-context@ntg.nl/msg86919.html> From that I was able to add the following to my document setup: \definehead [Bookmark] [title] [ placehead=empty, before={}, after={}, ] \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \placebookmarks[chapter,heading,Bookmark][chapter][force=yes] And then in the text where I want each extra bookmark to appear I use: \Bookmark[title={The text of the bookmark}] This works but is a bit of a kludge because it assumes that you aren't using 'title' sections in your document already. If you are then they will all appear in the PDF bookmarks. Also note that the bookmark is inserted at the chapter/title level. If you want a sub-bookmark then you need to add another custom heading, viz: \definehead [SubBookmark] [subject] [ placehead=empty, before={}, after={}, ] and add it into the \placebookmarks list: \placebookmarks[chapter,heading,Bookmark,SubBookmark][chapter][force=yes] and invoke it using: \SubBookmark[title={A sub-bookmark}] In the PDF, this will be nested under the previous higher-level bookmark. Given that this is a kludge, and that the \bookmark command doesn't seem to work at all, perhaps it can be resurrected into a new form, something like: \bookmark[n][focus]{Text} - n is the level 1, 2, 3 etc - (optional) focus overrides \setupinteraction (assuming PDF allows it) - text is the text to show and have this insert a bookmark at that point, regardless of whatever the heading mechanism is doing? Regards, -- Bruce Horrocks Hampshire, UK ___ 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] Placing extra bookmarks?
> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks : > > I have \placebookmarks[chapter] in my doc and all is fine except that I'd > like to force an extra bookmark at the top of the list that jumps to the > cover page. However there is no chapter title, or other built in style on the > cover. > > I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no > error, no bookmark. > > Any suggestions please? There's no need to bookmark to a specific point - > just going to page 1 would be enough. Did you enable interactions? \setupinteractions[state=start] But when I recently tried to manually set some bookmarks instead of visible chapter titles, I also didn’t get any; didn’t investigate further yet. Hraban ___ 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] Placing extra bookmarks?
I have \placebookmarks[chapter] in my doc and all is fine except that I'd like to force an extra bookmark at the top of the list that jumps to the cover page. However there is no chapter title, or other built in style on the cover. I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no error, no bookmark. Any suggestions please? There's no need to bookmark to a specific point - just going to page 1 would be enough. (I have looked through the mailing list archives but can't find quite the same scenario.) -- Bruce Horrocks Hampshire, UK ___ 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 interaction questions
Follow up, I'm trying to also ignore commands when setting PDF metadata: The wiki gives these examples: \appendtoks \def\CONTEXT{ConTeXt} \to \simplifiedcommands And: \appendtoks \let\quad\space \to \simplifiedcommands So, I just added this to my environment file: \appendtoks \def\em{\space} \to \simplifiedcommands But, the \em still shows up in the PDF metadata. Is this still the recommended way to do this? Or is there an easier way? I guess, even if this would remove the \em, that would still leave the braces in place. (I'd prefer to remove them as well, but I've no idea how that could work.) Best, Denis Am 13.10.2020 um 16:14 schrieb Pablo Rodriguez: On 10/13/20 11:40 AM, Denis Maier wrote: Hi, I have a few more question regarding interaction/PDF bookmarks and PDF links: - How can you ignore Commands in bookmarks? Like when instead of "The concept of {\em bookmarks}", I'd prefer to just have "The concept of bookmarks". I know I can just use something like \startchapter[title=The concept of {\em bookmarks}, bookmark=The concept of bookmarks] But is there an setting for that? Hi Denis, I think this is what you want: \enabledirectives[references.bookmarks.preroll] - When clicking on a link, the focus switches to the target page. Is it possible to go to the line of the target? (Would be nice for switching between notes and text. Otherwise linking between notes and note markers would be quite pointless.) "focus=standard" in \setupinteraction. With a minimal sample: \setupinteraction[state=start, focus=standard] \enabledirectives[references.bookmarks.preroll] \placebookmarks[chapter] \starttext \completecontent \chapter{The concept of {\em bookmarks}} \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://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 interaction questions
Thanks. Both suggestions were very helpful. Best, Denis Am 13.10.2020 um 16:14 schrieb Pablo Rodriguez: On 10/13/20 11:40 AM, Denis Maier wrote: Hi, I have a few more question regarding interaction/PDF bookmarks and PDF links: - How can you ignore Commands in bookmarks? Like when instead of "The concept of {\em bookmarks}", I'd prefer to just have "The concept of bookmarks". I know I can just use something like \startchapter[title=The concept of {\em bookmarks}, bookmark=The concept of bookmarks] But is there an setting for that? Hi Denis, I think this is what you want: \enabledirectives[references.bookmarks.preroll] - When clicking on a link, the focus switches to the target page. Is it possible to go to the line of the target? (Would be nice for switching between notes and text. Otherwise linking between notes and note markers would be quite pointless.) "focus=standard" in \setupinteraction. With a minimal sample: \setupinteraction[state=start, focus=standard] \enabledirectives[references.bookmarks.preroll] \placebookmarks[chapter] \starttext \completecontent \chapter{The concept of {\em bookmarks}} \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://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 interaction questions
On 10/13/20 11:40 AM, Denis Maier wrote: > Hi, > > I have a few more question regarding interaction/PDF bookmarks and PDF > links: > > - How can you ignore Commands in bookmarks? Like when instead of "The > concept of {\em bookmarks}", I'd prefer to just have "The concept of > bookmarks". I know I can just use something like > \startchapter[title=The concept of {\em bookmarks}, > bookmark=The concept of bookmarks] > But is there an setting for that? Hi Denis, I think this is what you want: \enabledirectives[references.bookmarks.preroll] > - When clicking on a link, the focus switches to the target page. Is it > possible to go to the line of the target? (Would be nice for switching > between notes and text. Otherwise linking between notes and note markers > would be quite pointless.) "focus=standard" in \setupinteraction. With a minimal sample: \setupinteraction[state=start, focus=standard] \enabledirectives[references.bookmarks.preroll] \placebookmarks[chapter] \starttext \completecontent \chapter{The concept of {\em bookmarks}} \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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Some interaction questions
Hi, I have a few more question regarding interaction/PDF bookmarks and PDF links: - How can you ignore Commands in bookmarks? Like when instead of "The concept of {\em bookmarks}", I'd prefer to just have "The concept of bookmarks". I know I can just use something like \startchapter[title=The concept of {\em bookmarks}, bookmark=The concept of bookmarks] But is there an setting for that? - When clicking on a link, the focus switches to the target page. Is it possible to go to the line of the target? (Would be nice for switching between notes and text. Otherwise linking between notes and note markers would be quite pointless.) Best, Denis ___ 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] \title with extra content in toc
I do not recommend against the start/stop variant, but in this case I think you can also do \chapter[title=..., list=..., bookmark=...] /Mikael Den ons 12 aug. 2020 05:46jbf skrev: > That is clear enough and works (of course!) and reminds me that I'm > better off using the \starttitle...\stoptitle format than just \title as > I have been. > > J > > On 12/8/20 1:23 pm, Aditya Mahajan wrote: > > > [ > > title={Title of chapter}, > > list={What appears in TOC}, > > bookmark={What appears in bookmarks}, > > ] > > ___ > 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] \title with extra content in toc
That is clear enough and works (of course!) and reminds me that I'm better off using the \starttitle...\stoptitle format than just \title as I have been. J On 12/8/20 1:23 pm, Aditya Mahajan wrote: [ title={Title of chapter}, list={What appears in TOC}, bookmark={What appears in bookmarks}, ] ___ 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] \title with extra content in toc
On Wed, 12 Aug 2020, jbf wrote: Still dealing with \title, but am creating a separate thread because the question is different. As well as using \title within frontmatter (my previous question was about the header not appearing on final page if it is an odd/recto page) I am also using it in the main body for 'chapters' that I don't want numbered, and of course, have ensured that such \title items can appear in the TOC. But I want to add a one-word comment in brackets to the title that appears in the TOC, so that I get: Chapter title (comment).. 5 or whatever the page number is. Is there are way I can add extra content to an item that appears in the TOC? \startchapter [ title={Title of chapter}, list={What appears in TOC}, bookmark={What appears in bookmarks}, ] \stopchapter 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Custom list layout with PDF bookmarks
> Am 16.05.2020 um 08:30 schrieb Wolfgang Schuster > : > > Bruce Horrocks schrieb am 16.05.2020 um 00:47: >> When I customise the table of contents layout I lose the automatic >> hyperlinks. Is there a simple configuration option that I have missed or do >> I need to create my own links somehow? >> >> Example: >> >> \setupinteraction[state=start] >> \setupinteractionscreen[option=bookmark] >> >> \define[3]\SectionListEntry >> {\par \leftaligned\bgroup >> \hbox to 2em{#3}% >> \hskip 1em >> \vtop{\hsize\dimexpr\textwidth-3em\relax#2} >> \egroup \par} >> >> % Comment out this next line to regain section hyperlinks in the ToC >> \setuplist[section][alternative=command,command=\SectionListEntry] > > alternative=command : Cutsom TOC without hyperlinks > > alternative=interactive : Custom TOC with hyperlinks Thank you! Wikified: https://wiki.contextgarden.net/Command/setuplist Hraban ___ 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] Custom list layout with PDF bookmarks
Bruce Horrocks schrieb am 16.05.2020 um 00:47: When I customise the table of contents layout I lose the automatic hyperlinks. Is there a simple configuration option that I have missed or do I need to create my own links somehow? Example: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \define[3]\SectionListEntry {\par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par} % Comment out this next line to regain section hyperlinks in the ToC \setuplist[section][alternative=command,command=\SectionListEntry] alternative=command : Cutsom TOC without hyperlinks alternative=interactive : Custom TOC with hyperlinks begin example \define[3]\SectionListEntry {\hbox\bgroup \hbox to 2em{#1}% \hfill \vtop{\hsize\dimexpr\textwidth-3em\relax#2}% \egroup} \setuplist [section] [alternative=interactive, command=\SectionListEntry, before=\endgraf, after=\endgraf] end example 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] Custom list layout with PDF bookmarks
> Am 16.05.2020 um 00:47 schrieb Bruce Horrocks : > > When I customise the table of contents layout I lose the automatic > hyperlinks. Is there a simple configuration option that I have missed or do I > need to create my own links somehow? > > Example: > > \setupinteraction[state=start] > \setupinteractionscreen[option=bookmark] > > \define[3]\SectionListEntry > {\par \leftaligned\bgroup > \hbox to 2em{#3}% > \hskip 1em > \vtop{\hsize\dimexpr\textwidth-3em\relax#2} > \egroup \par} > > % Comment out this next line to regain section hyperlinks in the ToC > \setuplist[section][alternative=command,command=\SectionListEntry] > > \starttext > Table of Contents > \placecontent[criterium=all] > \placebookmarks[chapter,subject] Should be \placebookmarks[chapter,section]. Move it in front of \starttext. But that still doesn’t set chapter bookmarks - strange. Hraban ___ 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] Custom list layout with PDF bookmarks
When I customise the table of contents layout I lose the automatic hyperlinks. Is there a simple configuration option that I have missed or do I need to create my own links somehow? Example: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \define[3]\SectionListEntry {\par \leftaligned\bgroup \hbox to 2em{#3}% \hskip 1em \vtop{\hsize\dimexpr\textwidth-3em\relax#2} \egroup \par} % Comment out this next line to regain section hyperlinks in the ToC \setuplist[section][alternative=command,command=\SectionListEntry] \starttext Table of Contents \placecontent[criterium=all] \placebookmarks[chapter,subject] \chapter{Tufte} \section{Section 1} \input tufte \page \section{Section 2} \input tufte \page \section{Section 3} \input tufte \page \stoptext Thanks in advance. -- Bruce Horrocks Hampshire, UK ___ 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] attachments working again (issue with /EmbeddedFiles)
On 2/14/20 3:43 AM, Rik Kabel wrote: > [...] > The further I look into bookmark, annotation, and attachment handling by > a number of viewers, the more confusing things appear. Hi Rik, this is why following the prescription (the PDF spec) is better in order to check the standard than gathering information in different viewers. > And Acrobat still shows attachments twice under some circumstances, > with the helpful flyover for one entry giving the location as the > associated page number, and for the other giving it as the > attachments tab. That practice is explictly discouraged by the PDF Association, citing the behaviour of some viewers (but not naming Acrobat). See https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf#search=usability. > What is more troublesome on the ConTeXt side is the validation issue > with the appearance dictionary for visible attachments. This is my (educated?) guess: appearance dictionaries are required to print annotation icons. This isn’t especially directed to attachments, but to all annotation types (excepting popups and links). > The difference between validators when looking at the hidden attachment > in my example hinges on the handling of the attachment mime type. I have > filed a defect report with VeraPDF, which appears to be rejecting valid > mime type that includes a charset clause. If this is a bug, they should fix it. They may have missed a valid MIME type. 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] attachments working again (issue with /EmbeddedFiles)
On 2/13/2020 03:56, Hans Hagen wrote: On 2/13/2020 12:45 AM, Rik Kabel wrote: Perhaps there is something in the difference between annotations and attachments that results in different treatments by the various viewers. it has always been that messy; there's also the annotation symbol treatment that can differ; it doesn't help that acrobat changed behaviour a couple of times i think this is why the whole attachment handling was as it is: some comprimise that kind of made them show up ok on the average; but validatin spoiled this and now we're stick with these incompatible viewer behaviour .. not much we can do about it i fear (For instance, i remember that at some point acrobat showed attachments twice in some lists. Often these features ended up in specs without viewer support yet so probably not well tested for interferences either.) Hans The further I look into bookmark, annotation, and attachment handling by a number of viewers, the more confusing things appear. And Acrobat still shows attachments twice under some circumstances, with the helpful flyover for one entry giving the location as the associated page number, and for the other giving it as the attachments tab. What is more troublesome on the ConTeXt side is the validation issue with the appearance dictionary for visible attachments. The difference between validators when looking at the hidden attachment in my example hinges on the handling of the attachment mime type. I have filed a defect report with VeraPDF, which appears to be rejecting valid mime type that includes a charset clause. -- 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] attachments working again (issue with /EmbeddedFiles)
On 2/12/2020 14:20, Pablo Rodriguez wrote: On 2/8/20 10:13 PM, Rik Kabel wrote: Not quite ready yet. When the hidden method is used, it passes the online validator[1], but fails VeraPDF[2] for clause 6.8-1. When visible, it fails the online validator stating that the appearance dictionary doesn't contain an entry, and fails VeraPDF for clauses 6.8-1 and 6.3.3-1. Hi Rik, as for 6.8-1, did you set MIME type of the attached file (such as in "type={application/pdf}")? Oddly, the bookmarks do not appear either way under MkIV, and they do not appear when the attachment is visible under LMTX. The bookmarks do appear with a hidden attachment under LMTX. As far as I understand, only LMTX will receive regular updates now. (But Hans knows better 😅.) I get both visible attachments and bookmarks in LMTX (latest and previous latest [“latest” is the new beta]). Could you provide a minimal sample that shows the issue? Pablo -- http://www.ousia.tk Hello Pablo (and everyone else), Here is my test file. You can use "context --mode=hidden file.tex" to hide the pushpin, or leave out the mode to expose it. %% Test file for pdf3a compliance. %% %% So far, this fails when the attachment is included. Other than the %%handling of attachments, ConTeXt does a good job with the various %%PDF/A variants. %% %% Testing done locally with the VeraPDF validator (most recently with %%version 1.14.8) and online with the 3-Heights validator found at %%https://www.pdf-online.com/osa/validate.aspx (current 2020-01-20). %% %% This is not a minimal example. \definemode [hidden][keep] \setuplanguage [en] \setuppapersize [A6,landscape] \setuppagenumbering [location=] \setuptagging[state=start] \setupinteraction[state=start] %setupbackend[format={pdf/a-3u}, \setupbackend[format={pdf/a-3a}, level=0, profile={default_gray.icc}, intent={ISO coated v2 300\letterpercent\space (ECI)}] \setupstructure [state=start, method=auto] \setupcolors [pagecolormodel=auto, start=yes, rgb=no, cmyk=no] \setupbodyfont [palatino,18pt] \starttext This document was produced using version \contextversion\ of \ConTeXt\ \doifelse{\texenginename}{luametatex}{LMTX}{\contextmark} with the version \texengineversion\ of \texenginename. \attachment[file=./\jobname.tex, method={\doifmodeelse{hidden}{hidden}{normal}}, type={text/plain;charset=UTF-8}] The source code for this document is attached as a plain text file. It should show up in the pdf bookmarks for the document\doifmodeelse {hidden}{}{ and through the icon at the start of this paragraph}. \stoptext I have tested with LMTX 2020.02.11 16:41. *Mime type* * You can see that the mime type is set in the ConTeXt file and it appears in the resulting pdf, although not knowing enough about the pdf file structure I do not know if it appears correctly. *Validation* * With the pin hidden, VeraPDF 1.14.8 complains about two occurrences of clause 6.8 test 1 failure. With the pin exposed, it complains about one occurrence of clause 6.8 test 1 failure and one occurrence of clause 6.3.3 test 1 failure (appearance dictionary). * With the pin hidden, pdf-online.com declares the valid. With the pin exposed, pdf-online.com fails it because "[t]he appearance dictionary doesn't contain an entry." They are aware of the difference between their report and that of VeraPDF. *Viewing* * Acrobat Reader DC shows the pushpin, changes the pointer, and displays flyover text when appropriate and shows the bookmark for both variants. * SumatraPDF shows the pushpin, changes the pointer, and displays flyover text when appropriate. It does not show the bookmark when the pushpin is visible, but does show it when it is hidden. * MuPDF does not show the pushpin, instead leaving empty space, when it should be visible. It does not show bookmarks or any other indication that there is an attachment for either variant. (MuPDF can show bookmarks for some other documents.) * Firefox 73 does not show the pushpin when it should be visible, but does change the pointer and show the attachment name as a flyover. Firefox 73 does show the bookmark for both variants. * Chrome 80 does not show the pushpin when it should be visible, but does show the attachment name as a flyover. Chrome 80 does not show the bookmark for either variant. (Chrome 80 does show bookmarks for some other PDF document.) * The three viewers listed here that do not show the pushpin do reserve the appropriate space – changing the
Re: [NTG-context] fancy chapter setup
On 1/11/2020 10:04, Henning Hraban Ramm wrote: Hi all, I’m trying to setup a book layout where each chapter begins with a quote and an image on the left page, followed by title and text start on the right page. While the quote & image thing works, I can’t get the title on the right page, ConTeXt always puts it right of the image, even if that’s as wide as the text width. \page[right] doesn’t do anything. Where’s my mistake? There are also chapters without that intro, therefore I use \doifnot{\structureuservariable{subtitle}}, but those should also start on a right page. I could also use a different section name. But I don’t think that’s the problem. (The page number should appear on the right page; it wouldn’t hurt on the left page, but the chapter title should only appear on following pages.) Best, Hraban %% \define[2]\FancyChapter{% \doifnot{\structureuservariable{subtitle}}{}{% \startstandardmakeup \framed[ width=\textwidth,height=fit, offset=overlay, align=flushleft, ]{% \definedfont[SerifItalic at 16pt] \structureuservariable{subtitle}% } \framed[width=\textwidth]{% \externalfigure[dummy][width=\textwidth]% } %\hfill\vfill\strut % doesn’t help \stopstandardmakeup } \page[right] % \framed[ width=\textwidth, offset=overlay, align=flushleft, ]{% \definedfont[Sans at 32pt]%#2 \structurevariable{title}% }% } \setupheadertexts[][pagenumber][pagenumber][chapter] \setuphead[chapter][ page=left, number=no, header=high, command=\FancyChapter, ] \starttext \startchapter[title={My Normal Text}] \input knuth \stopchapter \startchapter[title={My Fancy Story}] [subtitle={\quotation{I thought that was real.}}] \input tufte \stopchapter \stoptext %% For what it is worth, here is how I address this. This lets me place epigraphs on the facing verso of a chapter, or under the section title, and set lettrines and first line treatment for chapters. I set page numbers in a separate overlay to better control the positioning. Perhaps a bit overthought, but it works for me ... \setupheadertexts [][{\it\getmarking[section]}] [{\it\getmarking[chapter]}][] \startsetups section:epigraph \doifelsebuffer{SectionEpigraph} {\getbuffer [SectionEpigraph] \resetbuffer[SectionEpigraph]} {\donothing} \stopsetups \startsetups chapter:epigraph \setupheadertexts [][][][] \doifelsebuffer{ChapterEpigraph} {\doifoddpageelse {\page[left]} {\donothing} \centerbox{\getbuffer[ChapterEpigraph]} \resetbuffer[ChapterEpigraph] } {\donothing} \page[right] \setupheadertexts [][{\it\getmarking[section]}] [{\it\getmarking[chapter]}][] \stopsetups \startsectionblockenvironment[bodypart] \setuphead [chapter][ style=\tfc\HeadFont, page=yes, separator=, numbercolor=darkgray, alternative=inmargin, before=\directsetup{chapter:epigraph}, after={\resetshownsynonyms[dictionary] \setupsynonyms[dictionary][alternative=first] \doifsomething{\structureuservariable{setFirst}} {\setfirstline[\structureuservariable{setFirst}]} \doif{\structureuservariable{Lettrine}} {yes}{\setinitial}}, ] \setuphead [section][ style=\tfb\HeadFont, insidesection=\setups{section:epigraph}, before={\blank[big]}, sectionseparatorset=reddot, numbercolor=darkgray, alternative=inmargin, ] \setuphead [subsection] [ style=\tfa\HeadFont, number=no, distance=0pt, insidesection=\setups{section:epigraph}, before={\blank[big]}, alternative=normal, after={\blank[halfline]}, numbercolor=, sectionseparatorset=, ] \stopsectionblockenvironment \definefirstline [5W][alternative=word, n=5,style=smallcaps]% and so on as you like \definefirstline [1L][alternative=line, style=smallcaps] ... \starttext ... \startbuffer[ChapterEpigraph] \startEpigraph% brings in its own formatting The stuff of the epigraph \stopEpigraph \stopbuffer \startchapter[reference={cha:blah}, list={blah}, % toc marking={blah}, % page heading bookmark={blah}, % pdf bookmark title={blah}] % cha
Re: [NTG-context] issues with attachments
On 12/26/2019 9:05 PM, Rik Kabel wrote: On 12/18/2019 11:32, Pablo Rodriguez wrote: Hi Hans, I accidentally discovered that file attachment generates two entries in Acrobat, such as this sample: \setuppapersize[A5] \showframe \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \starttext a\attachment[file=xml-mkiv.pdf, name={attached.pdf}] \stoptext This happens with latest beta (from 2019.12.17) in both MkIV and MkXL. https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf#search=usability warns about the use of both /EmbeddedFiles and /FileAttachment annotations. Acrobat seems to be the problematic software. I think it is fine to have /FileAttachment annotations for "method=normal" and /EmbeddedFiles for "method=hidden". Would be also possible that the entries in /Embeddedfiles use the value for "name" instead of "file" (when specified)? And for the /EmbeddedFile annotation, would it be possible to add the value for /Size entry (uncompressed size of the file in bytes, https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#page=112) in the /Params dictionary? This is the way to avoid that Acrobat displays no uncompressed size but real uncompressed size (I guess both values would be very similar, when not the same). Many thanks for your help, Pablo -- http://www.ousia.tk I second this request. The bookmark is taking on the file= name, and not that of name=. It would be better to take the name=, or to add a bookmark= key. Well, this is why before we didn't have an entry but validators then complain so we havbe a chicken - egg issue here. Personally I think it's an acrobat bug (maybe in the meantime turned feature) as it should check for atttachments registered at the document level and annotation level. There are similar contradictions wrt named icons and appearance streams. So ... I wait with changing something till Peter tells me what to do as he's in charge of validation issues. 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 ___
Re: [NTG-context] issues with attachments
On 12/18/2019 11:32, Pablo Rodriguez wrote: Hi Hans, I accidentally discovered that file attachment generates two entries in Acrobat, such as this sample: \setuppapersize[A5] \showframe \setupinteraction[state=start] \setupinteractionscreen[option=attachment] \starttext a\attachment[file=xml-mkiv.pdf, name={attached.pdf}] \stoptext This happens with latest beta (from 2019.12.17) in both MkIV and MkXL. https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf#search=usability warns about the use of both /EmbeddedFiles and /FileAttachment annotations. Acrobat seems to be the problematic software. I think it is fine to have /FileAttachment annotations for "method=normal" and /EmbeddedFiles for "method=hidden". Would be also possible that the entries in /Embeddedfiles use the value for "name" instead of "file" (when specified)? And for the /EmbeddedFile annotation, would it be possible to add the value for /Size entry (uncompressed size of the file in bytes, https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#page=112) in the /Params dictionary? This is the way to avoid that Acrobat displays no uncompressed size but real uncompressed size (I guess both values would be very similar, when not the same). Many thanks for your help, Pablo -- http://www.ousia.tk I second this request. The bookmark is taking on the file= name, and not that of name=. It would be better to take the name=, or to add a bookmark= key. -- 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] Unexpected behavior of subsection labels
Hi, 1. Try to make shorter example because your example contains too much stuff for a minimal example. 2. You forgot \starttext in your example. 3. Your fonts don't contain greek letters which explains the missing counter in the PDF. Did you check if the fallback fonts are loaded. \setuphead [section] [number=no] \setuphead [subsection] [number=yes, sectionsegments=subsection, conversion=g] \setupbodyfont[dejavu] \starttext \completecontent \chapter{yay} \section{wow} \subsection{Text} \stoptext Wolfgang Jairo A. del Rio schrieb am 06.10.2019 um 23:29: I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, force=yes] \definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, force=yes] \definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, force=yes] \definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean, force=yes] \definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, force=yes] \definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek, force=yes] \definefallbackfamily[mainface][tt][CMU Typewriter Text][preset=range:greek, force=yes] \definefontfamily[mainface][rm][Latin Modern Roman][sc=file:lmromancaps10regular] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,10pt] \setuplayout[backspace=2cm,topspace=2cm] \definepapersize[nice][width=180mm,height=250mm] \setuppapersize[nice][nice] \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section,subsection] \setupinteractionscreen[option=bookmark] \setupindenting[medium,yes] \definestructureconversionset [frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title=Text] Bye \stopsubsection \stopsection \stopchapter \stopbodymatter \stoptext What is puzzling to me is the absence of subsection labels. What I expect is: 1. Yay Wow α. Text However, what I've got is: 1. Yay Wow Text It's weird that bookmarks and TOC correctly show α before "Text". I don't know what is wrong. Thank you in advance. ___ 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] Unexpected behavior of subsection labels
I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish] \definefallbackfamily[mainface][rm][newgardiner][range=egyptianhieroglyphs, force=yes] \definefallbackfamily[mainface][rm][quivira][range={ancientgreeknumbers,phoenician}, force=yes] \definefallbackfamily[mainface][rm][notosanscuneiform][range={cuneiform,cuneiformnumbersandpunctuation}, force=yes] \definefallbackfamily[mainface][rm][Noto Serif CJK KR][preset=range:korean, force=yes] \definefallbackfamily[mainface][rm][quivira][range={greekandcoptic,greekextended}, force=yes] \definefallbackfamily[mainface][ss][CMU Sans Serif][preset=range:greek, force=yes] \definefallbackfamily[mainface][tt][CMU Typewriter Text][preset=range:greek, force=yes] \definefontfamily[mainface][rm][Latin Modern Roman][sc=file:lmromancaps10regular] \definefontfamily[mainface][ss][Latin Modern Sans] \definefontfamily[mainface][tt][Latin Modern Typewriter] \definefontfamily[mainface][mm][Latin Modern Math] \setupbodyfont[mainface,10pt] \setuplayout[backspace=2cm,topspace=2cm] \definepapersize[nice][width=180mm,height=250mm] \setuppapersize[nice][nice] \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section,subsection] \setupinteractionscreen[option=bookmark] \setupindenting[medium,yes] \definestructureconversionset [frontpart:pagenumber] [] [romannumerals] \startsectionblockenvironment [bodypart] \setcounter [userpage] [1] \stopsectionblockenvironment \setuppagenumbering[location=,alternative=doublesided] \setupheadertexts[\setups{text right}][][][\setups{text left}] \startsetups[text right] \rlap{} \hfill \sc \getmarking[section] \hfill \llap{\userpagenumber} \stopsetups \startsetups[text left] \rlap{\userpagenumber} \hfill \sc \getmarking[chapter] \hfill \llap{} \stopsetups \startfrontmatter Hello \completecontent \stopfrontmatter \startbodymatter \startchapter[title=yay] \startsection[title=wow] \startsubsection[title=Text] Bye \stopsubsection \stopsection \stopchapter \stopbodymatter \stoptext What is puzzling to me is the absence of subsection labels. What I expect is: 1. Yay Wow α. Text However, what I've got is: 1. Yay Wow Text It's weird that bookmarks and TOC correctly show α before "Text". I don't know what is wrong. Thank you in advance. ___ 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] odd processing error with latest standalone
Hi, OK— I removed texmf-cache/luatex-cache and reinstalled LMTX. The problem persists, sad to say. It also fails when I run LuaTeX, Version 1.10.1 (TeX Live 2019), ConTeXt ver: 2019.09.10., even after removing texmf-cache and reinstalling. Thanks for the tip, though. All best, Alan On Thu, Sep 19, 2019 at 12:54 AM Otared Kavian wrote: > Hi Alan, > > I had an analogous issue and after cleaning the luatex-cache and > re-installing it was solved (working under MacOS 10.14). > > Maybe you can try that too? > > Best regards: OK > > On 18 Sep 2019, at 21:41, Alan Bowen wrote: > > In processing a book that I have edited, there is no problem using > LuaMetaTeX, Version 2.00.0, 2019.07.31 > > But with LuaMetaTeX, Version 2.00.0, ConTeXt ver: 2019.09.10, > the process stops in a specific chapter and quits with a fatal error: > > tex error > tex error on line 26 in file c_12-01_Greenbaum.tex: ! > Undefined control sequence > > \referencerealpage ->\clf_referencerealpage > > > \scrn_button_make_yes ...unter \referencerealpage > \relax \ifcase > \scratchcou... > \scrn_button_make ...ke_yes \scrn_button_make_nop > #1#2#3#4 {#5}\endgroup > \scrn_button_direct_indeed ...onparameter {#2}{#3} > \egroup \endgroup > l.26 ] > > > l.37 ] > > > ... > l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{ > } > 16 > 17 \def\ChapterSubTitle{The Hellenistic Horoscope} > 18 \def\SubChapterNo{12.1} > 19 \relax > 20 \startBrillChapter[reference=Ch12, > 21 title={\vglue6pc{\ChapterNo}~\\ > 22 \ChapterTitle}, > 23 bookmark={12 Astral Divination and Natal Astrology}] > 24 > 25 \startBrillSubChapter[reference=DGG12-01, > 26 >> title={{\SubChapterNo}~\\ > 27 \ChapterSubTitle}, > 28 bookmark={12.1 The Hellenistic Horoscope}] > 29 \byline > 30 \startLevelBnHead[reference=12.1.1, > 31 title=Introduction] > > What puzzles me is that the relevant coding for this chapter is the same > as for several other chapters that process with no problems. It would be > good to know if this is a problem in the chapter itself that I can fix or > if there is a problem in the latest standalone. > > The error-log reads: > > return { > ["filename"]="c_12-01_Greenbaum.tex", > ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n > \n\\scrn_button_make_yes ->\\scratchcounter > \\referencerealpage \n\\relax > \\ifcase \\scratchcounter \\expa...\n\\scrn_button_make > ...\\scrn_button_make_yes \\scrn_button_make_nop \n > #1#2#3#4 {#5}\\endgroup > \n\\scrn_button_direct_indeed ...buttonparameter \\setbuttonparameter > {#2}{#3}\n \\egroup > \\endgroup \nl.26 ]\n \nl.37 ]\n \n...\nl.249 > ...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n >} ", > ["lastluaerror"]="?", > ["lasttexerror"]="! Undefined control sequence", > ["lasttexhelp"]="The control sequence at the end of the top line of your > error message was never\n\\def'ed. You can just continue as I'll forget > about whatever was undefined.", > ["linenumber"]=26, > ["offset"]=10, > } > > 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] odd processing error with latest standalone
Hi Alan, I had an analogous issue and after cleaning the luatex-cache and re-installing it was solved (working under MacOS 10.14). Maybe you can try that too? Best regards: OK > On 18 Sep 2019, at 21:41, Alan Bowen wrote: > > In processing a book that I have edited, there is no problem using > LuaMetaTeX, Version 2.00.0, 2019.07.31 > > But with LuaMetaTeX, Version 2.00.0, ConTeXt ver: 2019.09.10, > the process stops in a specific chapter and quits with a fatal error: > > tex error > tex error on line 26 in file c_12-01_Greenbaum.tex: ! > Undefined control sequence > > \referencerealpage ->\clf_referencerealpage > > \scrn_button_make_yes ...unter \referencerealpage > \relax \ifcase > \scratchcou... > \scrn_button_make ...ke_yes \scrn_button_make_nop > #1#2#3#4 {#5}\endgroup > \scrn_button_direct_indeed ...onparameter {#2}{#3} > \egroup \endgroup > l.26 ] > > l.37 ] > > ... > l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{ > } > 16 > 17 \def\ChapterSubTitle{The Hellenistic Horoscope} > 18 \def\SubChapterNo{12.1} > 19 \relax > 20 \startBrillChapter[reference=Ch12, > 21 title={\vglue6pc{\ChapterNo}~\\ > 22\ChapterTitle}, > 23bookmark={12 Astral Divination and Natal Astrology}] > 24 > 25 \startBrillSubChapter[reference=DGG12-01, > 26 >> title={{\SubChapterNo}~\\ > 27\ChapterSubTitle}, > 28bookmark={12.1 The Hellenistic Horoscope}] > 29 \byline > 30 \startLevelBnHead[reference=12.1.1, > 31title=Introduction] > > What puzzles me is that the relevant coding for this chapter is the same as > for several other chapters that process with no problems. It would be good to > know if this is a problem in the chapter itself that I can fix or if there is > a problem in the latest standalone. > > The error-log reads: > > return { > ["filename"]="c_12-01_Greenbaum.tex", > ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n > \n\\scrn_button_make_yes ->\\scratchcounter > \\referencerealpage \n\\relax > \\ifcase \\scratchcounter \\expa...\n\\scrn_button_make > ...\\scrn_button_make_yes \\scrn_button_make_nop \n >#1#2#3#4 {#5}\\endgroup \n\\scrn_button_direct_indeed > ...buttonparameter \\setbuttonparameter {#2}{#3}\n > \\egroup \\endgroup \nl.26 ]\n \nl.37 ]\n > \n...\nl.249 ...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n > } ", > ["lastluaerror"]="?", > ["lasttexerror"]="! Undefined control sequence", > ["lasttexhelp"]="The control sequence at the end of the top line of your > error message was never\n\\def'ed. You can just continue as I'll forget about > whatever was undefined.", > ["linenumber"]=26, > ["offset"]=10, > } > > 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 ___
[NTG-context] odd processing error with latest standalone
In processing a book that I have edited, there is no problem using LuaMetaTeX, Version 2.00.0, 2019.07.31 But with LuaMetaTeX, Version 2.00.0, ConTeXt ver: 2019.09.10, the process stops in a specific chapter and quits with a fatal error: tex error > tex error on line 26 in file c_12-01_Greenbaum.tex: ! Undefined control sequence \referencerealpage ->\clf_referencerealpage \scrn_button_make_yes ...unter \referencerealpage \relax \ifcase \scratchcou... \scrn_button_make ...ke_yes \scrn_button_make_nop #1#2#3#4 {#5}\endgroup \scrn_button_direct_indeed ...onparameter {#2}{#3} \egroup \endgroup l.26 ] l.37 ] ... l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{ } 16 17 \def\ChapterSubTitle{The Hellenistic Horoscope} 18 \def\SubChapterNo{12.1} 19 \relax 20 \startBrillChapter[reference=Ch12, 21 title={\vglue6pc{\ChapterNo}~\\ 22 \ChapterTitle}, 23 bookmark={12 Astral Divination and Natal Astrology}] 24 25 \startBrillSubChapter[reference=DGG12-01, 26 >> title={{\SubChapterNo}~\\ 27 \ChapterSubTitle}, 28 bookmark={12.1 The Hellenistic Horoscope}] 29 \byline 30 \startLevelBnHead[reference=12.1.1, 31 title=Introduction] What puzzles me is that the relevant coding for this chapter is the same as for several other chapters that process with no problems. It would be good to know if this is a problem in the chapter itself that I can fix or if there is a problem in the latest standalone. The error-log reads: return { ["filename"]="c_12-01_Greenbaum.tex", ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n \n\\scrn_button_make_yes ->\\scratchcounter \\referencerealpage \n\\relax \\ifcase \\scratchcounter \\expa...\n\\scrn_button_make ...\\scrn_button_make_yes \\scrn_button_make_nop \n #1#2#3#4 {#5}\\endgroup \n\\scrn_button_direct_indeed ...buttonparameter \\setbuttonparameter {#2}{#3}\n \\egroup \\endgroup \nl.26 ]\n \nl.37 ]\n \n...\nl.249 ...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n } ", ["lastluaerror"]="?", ["lasttexerror"]="! Undefined control sequence", ["lasttexhelp"]="The control sequence at the end of the top line of your error message was never\n\\def'ed. You can just continue as I'll forget about whatever was undefined.", ["linenumber"]=26, ["offset"]=10, } 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 ___
Re: [NTG-context] bookmark expansion again
On 5/27/19 8:46 PM, Wolfgang Schuster wrote: > [...] > You can try > \setuphead[section][expansion=yes] Many thanks for your reply, Wolfgang. This is exactly what I needed. I promise I checked it (with "expansion=xml" mainly) and I saw no real expansion. But I missed something, since it works perfectly fine now. > or (for documents which use XML as input format) > \setuphead[section][expansion=xml] With "expansion=xml" I don’t get titles in text and bookmarks are wrong. "expansion=xml" must be needed for something different (I wonder what could be). 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] bookmark expansion again
Pablo Rodriguez schrieb am 27.05.2019 um 20:33: Hi Hans, I have the following sample: \def\eap{expansion} \def\MyContent{Expanded \eap} %~ \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start, title={\MyContent}] \placebookmarks[section] \starttext \section{\MyContent} \startsection[title=\MyContent, bookmark=\MyContent] \stopsection \stoptext I see that now PDF contents are prerolled by default (which I think it is a great idea [I hope it isn’t a bug]). But bookmarks alone (when aren’t prerolled. From strc-sec.mkiv, I see that prerolling is only applied to \currentstructuretitle when \currentstructurebookmark is empty. Would it be possible that \currentstructurebookmark could have prerolling when it is different from \currentstructuretitle? Sorry for insisting, but I need this to avoid having "main:345{/h2}" as bookmark for some chapters. You can try \setuphead[section][expansion=yes] or (for documents which use XML as input format) \setuphead[section][expansion=xml] 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] bookmark expansion again
Hi Hans, I have the following sample: \def\eap{expansion} \def\MyContent{Expanded \eap} %~ \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start, title={\MyContent}] \placebookmarks[section] \starttext \section{\MyContent} \startsection[title=\MyContent, bookmark=\MyContent] \stopsection \stoptext I see that now PDF contents are prerolled by default (which I think it is a great idea [I hope it isn’t a bug]). But bookmarks alone (when aren’t prerolled. From strc-sec.mkiv, I see that prerolling is only applied to \currentstructuretitle when \currentstructurebookmark is empty. Would it be possible that \currentstructurebookmark could have prerolling when it is different from \currentstructuretitle? Sorry for insisting, but I need this to avoid having "main:345{/h2}" as bookmark for some chapters. 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] no bookmark prerollling in bookmark option
Dear list, I have the following sample: \def\MyContent{This is expanded content} \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start, title={\MyContent}] \placebookmarks[section] \starttext \section{\MyContent} \startsection[title=\MyContent] \stopsection \startsection[title=\MyContent, bookmark=\MyContent] \stopsection \stoptext Bookmarks aren’t prerolled when the bookmark option from \startSECTION is used. I think it may be a bug. Could anyone confirm 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 ___
Re: [NTG-context] structures.lists.ordered empty in latest beta
Here is your minimal example. \starttext \dorecurse{20}{\section[sec:#1]{Section #1}} Section \in[sec:16] appears on page \at[sec:16]. Section \in[sec:17] appears on page \at[sec:17]. \stoptext Wolfgang Joseph Canedo schrieb am 17.08.18 um 23:08: The latelua functions seems fixed with 2018-08-16 beta but in some occurrences the realpage information for some sections is wrong, being set to page before the actual page the section title appears in pdf. This seems to happen when the title of section is first at top of page. If needed I can try working on a MWE. Thanks Joseph From .tuc file. { ["metadata"]=129, ["numberdata"]=133, ["references"]={ ["block"]="bodypart", ["internal"]=5, ["realpage"]=3, -- this should be 4 ["section"]=5, ["used"]="width", }, ["titledata"]={ ["bookmark"]="Chapitre .iiij.", ["label"]="subsection", ["marking"]="Chapitre", ["title"]="Chapitre \\LeftDot \\RM {4}.", }, ["userdata"]={ ["blank_after_chapter"]="none", ["blank_before_chapter"]="none", }, *De : *Joseph Canedo <mailto:josephcan...@gmail.com> *Envoyé le :*mercredi 15 août 2018 23:46 *À : *mailing list for ConTeXt users <mailto:ntg-context@ntg.nl> *Objet :*RE: [NTG-context] structures.lists.ordered empty in latest beta I also noticed that (at least some) latelua functions do not seem called (They output stuff in the log and these are no longer present). *De : *Hans Hagen <mailto:j.ha...@xs4all.nl> *Envoyé le :*mercredi 15 août 2018 23:32 *À : *ntg-context@ntg.nl >> mailing list for ConTeXt users <mailto:ntg-context@ntg.nl> *Objet :*Re: [NTG-context] structures.lists.ordered empty in latest beta On 8/15/2018 10:37 PM, Joseph Canedo wrote: > Hi, > > I use the global lua table ConTeXt provides called : > structures.lists.ordered to perform some manipulations with sections > (using structures.lists.ordered.section which is itself a lua table), > but from latest beta it seems that that variable (a lua table) is now > completely empty. Is this expected ? afaik nothing changed - 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 ___ ___ 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] structures.lists.ordered empty in latest beta
The latelua functions seems fixed with 2018-08-16 beta but in some occurrences the realpage information for some sections is wrong, being set to page before the actual page the section title appears in pdf. This seems to happen when the title of section is first at top of page. If needed I can try working on a MWE. Thanks Joseph >From .tuc file. { ["metadata"]=129, ["numberdata"]=133, ["references"]={ ["block"]="bodypart", ["internal"]=5, ["realpage"]=3, -- this should be 4 ["section"]=5, ["used"]="width", }, ["titledata"]={ ["bookmark"]="Chapitre .iiij.", ["label"]="subsection", ["marking"]="Chapitre", ["title"]="Chapitre \\LeftDot \\RM {4}.", }, ["userdata"]={ ["blank_after_chapter"]="none", ["blank_before_chapter"]="none", }, De : Joseph Canedo Envoyé le :mercredi 15 août 2018 23:46 À : mailing list for ConTeXt users Objet :RE: [NTG-context] structures.lists.ordered empty in latest beta I also noticed that (at least some) latelua functions do not seem called (They output stuff in the log and these are no longer present). De : Hans Hagen Envoyé le :mercredi 15 août 2018 23:32 À : ntg-context@ntg.nl >> mailing list for ConTeXt users Objet :Re: [NTG-context] structures.lists.ordered empty in latest beta On 8/15/2018 10:37 PM, Joseph Canedo wrote: > Hi, > > I use the global lua table ConTeXt provides called : > structures.lists.ordered to perform some manipulations with sections > (using structures.lists.ordered.section which is itself a lua table), > but from latest beta it seems that that variable (a lua table) is now > completely empty. Is this expected ? afaik nothing changed - 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] Confusing level change message, why?
On 6/17/2018 2:48 PM, Rik Kabel wrote: On 6/17/2018 04:35, Pablo Rodriguez wrote: On 06/15/2018 11:03 PM, Rik Kabel wrote: The example below is taken from the wiki article "Titles <http://wiki.contextgarden.net/Titles>," with pdf bookmark apparatus prepended and a second chapter added to the bodymatter. In the log, this produces the lines: backend > bookmarks > confusing level change at level 3 around '1 body' backend > bookmarks > confusing level change at level 3 around 'A appendix' backend > bookmarks > confusing level change at level 3 around 'back' That is, one message for each *matter change. What is the meaning of the message, and how can it be removed (short of disabling pdf bookmarks)? Hi Rik, if you disable bookmarks (by commenting "\setupinteraction[state=start]"), you won’t get the message. But I wonder what is the problem besides the log message. From your sample, I get a PDF document with all the expected content. What I am missing from your explanation? Or why are these log messages so relevant if you get the intended output? Pablo Indeed, Pablo, there is no visible defect in the document. I wonder if the message should cause concern because I do not know if there is some other issue that it reflects, perhaps something that is not visible in the viewed document, but that might impede PDF standards compliance. If there is no fault or typesetting problem indicated by the message, I wonder why it is reported. Again, if there is no problem, I can add it to my log filtering routines, but I want to see it if there is something I should do to eliminate it. it's just part of the check .. if you use for instance \section{foo} instead of \startsecction there is some guesswork 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 ___
Re: [NTG-context] Confusing level change message, why?
On 6/17/2018 04:35, Pablo Rodriguez wrote: On 06/15/2018 11:03 PM, Rik Kabel wrote: The example below is taken from the wiki article "Titles <http://wiki.contextgarden.net/Titles>," with pdf bookmark apparatus prepended and a second chapter added to the bodymatter. In the log, this produces the lines: backend > bookmarks > confusing level change at level 3 around '1 body' backend > bookmarks > confusing level change at level 3 around 'A appendix' backend > bookmarks > confusing level change at level 3 around 'back' That is, one message for each *matter change. What is the meaning of the message, and how can it be removed (short of disabling pdf bookmarks)? Hi Rik, if you disable bookmarks (by commenting "\setupinteraction[state=start]"), you won’t get the message. But I wonder what is the problem besides the log message. From your sample, I get a PDF document with all the expected content. What I am missing from your explanation? Or why are these log messages so relevant if you get the intended output? Pablo Indeed, Pablo, there is no visible defect in the document. I wonder if the message should cause concern because I do not know if there is some other issue that it reflects, perhaps something that is not visible in the viewed document, but that might impede PDF standards compliance. If there is no fault or typesetting problem indicated by the message, I wonder why it is reported. Again, if there is no problem, I can add it to my log filtering routines, but I want to see it if there is something I should do to eliminate it. -- 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] Confusing level change message, why?
On 06/15/2018 11:03 PM, Rik Kabel wrote: > The example below is taken from the wiki article "Titles > <http://wiki.contextgarden.net/Titles>," with pdf bookmark apparatus > prepended and a second chapter added to the bodymatter. > > In the log, this produces the lines: > > backend > bookmarks > confusing level change at level 3 > around '1 body' > backend > bookmarks > confusing level change at level 3 > around 'A appendix' > backend > bookmarks > confusing level change at level 3 > around 'back' > > That is, one message for each *matter change. > > What is the meaning of the message, and how can it be removed (short of > disabling pdf bookmarks)? Hi Rik, if you disable bookmarks (by commenting "\setupinteraction[state=start]"), you won’t get the message. But I wonder what is the problem besides the log message. From your sample, I get a PDF document with all the expected content. What I am missing from your explanation? Or why are these log messages so relevant if you get the intended output? 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] Confusing level change message, why?
The example below is taken from the wiki article "Titles <http://wiki.contextgarden.net/Titles>," with pdf bookmark apparatus prepended and a second chapter added to the bodymatter. In the log, this produces the lines: backend > bookmarks > confusing level change at level 3 around '1 body' backend > bookmarks > confusing level change at level 3 around 'A appendix' backend > bookmarks > confusing level change at level 3 around 'back' That is, one message for each *matter change. What is the meaning of the message, and how can it be removed (short of disabling pdf bookmarks)? \setupinteraction[state=start] \placebookmarks[chapter, section, subsection, subsubsection] [chapter,section] \setupsectionblock[frontpart][page=] \setupsectionblock[bodypart] [page=] \setupsectionblock[backpart] [page=] \setupsectionblock[appendix] [page=] \definepagebreak[firstpagebreak][yes,header,footer,right] \setuphead[chapter][page=firstpagebreak] \setuppagenumbering[alternative=doublesided] \starttext \startfrontmatter \chapter{front} \stopfrontmatter \startbodymatter \chapter{body} \chapter{body} \stopbodymatter \startappendices \chapter{appendix} \stopappendices \startbackmatter \chapter{back} \stopbackmatter \stoptext -- 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] Correct usage of \placebookmarks
Am 2018-01-26 um 12:59 schrieb Lars : > Am 26/01/2018 um 06:10 schrieb Henri: >>> Am I being ignored personally here? >> Why so impatient? I was once bumping a thread for half a year with until >> Hans >> fixed it. > > Well, that's what I call patience. I don't want to be offensive, yet there > are several reasons which lead to my assumption, which I'd rather not discuss > at this point. I also sometimes get the impression that my requests are ignored until I become pushy. But I’m quite sure it’s mostly just the complexity of my questions (or maybe lack in clearness) that decreases the answering priority, nothing personal. Myself I’m usually only active on this mailing list while I work on ConTeXt projects myself (which is becoming more frequent again). >> It there any reason not to use a head? > > Yes there is. It's a multi-page letter in which I simply don't use heads. A > second scenario is the merging of several PDF documents into one, again > without using heads. So far I've been using third-party software to create > bookmarks. Yet I'd like to keep my working environment as minimaistic as > possible (editor, CTX). I'd love to believe that CTX is powerful enough to > achieve that goal. > >> >> \setupinteraction[state=start] >> \setupinteractionscreen[option=bookmark] >> \placebookmarks[Marks][Marks][force=yes] >> >> \definehead >> [Marks] >> [subject] >> [placehead=empty, >>before={}, >>after={}] >> >> \starttext >> >> \Marks[title={Bookmark one}] >> \input tufte >> \page >> \Marks[title={Bookmark two}] >> \input knuth >> >> \stoptext > > That's all I wanted, just some advice. Even a "it's not possible at this > time" would have been satisfing. I will test your code as soon as I'm home > and report on it. Often the command argument is a useful hack, like: \define[2]\MyChap{\relax} \setuphead[chapter][command=\MyChap] 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] Fwd: Correct usage of \placebookmarks
Am 26/01/2018 um 06:10 schrieb Henri: Am I being ignored personally here? Why so impatient? I was once bumping a thread for half a year with until Hans fixed it. Well, that's what I call patience. I don't want to be offensive, yet there are several reasons which lead to my assumption, which I'd rather not discuss at this point. It there any reason not to use a head? Yes there is. It's a multi-page letter in which I simply don't use heads. A second scenario is the merging of several PDF documents into one, again without using heads. So far I've been using third-party software to create bookmarks. Yet I'd like to keep my working environment as minimaistic as possible (editor, CTX). I'd love to believe that CTX is powerful enough to achieve that goal. \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \placebookmarks[Marks][Marks][force=yes] \definehead [Marks] [subject] [placehead=empty, before={}, after={}] \starttext \Marks[title={Bookmark one}] \input tufte \page \Marks[title={Bookmark two}] \input knuth \stoptext That's all I wanted, just some advice. Even a "it's not possible at this time" would have been satisfing. I will test your code as soon as I'm home and report on it. Thank you very much Henri. Cheers. On Fri, 2018-01-26 at 04:37 +0100, Lars wrote: Am I being ignored personally here? --- Hello there, I've stumbled upon a behaviour in CTX that I don't fully understand. My goal is to create a multipage document without heads (title, chapter, etc) but only text. Yet I would like to create bookmarks. So my MWE looks the following: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \stoptext Yet CTX doesn't create bookmarks in that case. I first have to add a blank predefined header like chapter or section anywhere in the text: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \startchapter[title={},marking={}] \stopchapter \stoptext Although I haven't added chapter key to \placebookmarks, so that it also doesn't show up in the bookmarks window, only then CTX seems to create bookmarks for the list which I created called Marks. Is there a way to circumvent this? I'd like boomarks only where I place them manually, without using headers. Thanks in advance, Lars. __ _ 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] Fwd: Correct usage of \placebookmarks
> Am I being ignored personally here? Why so impatient? I was once bumping a thread for half a year with until Hans fixed it. It there any reason not to use a head? \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \placebookmarks[Marks][Marks][force=yes] \definehead [Marks] [subject] [placehead=empty, before={}, after={}] \starttext \Marks[title={Bookmark one}] \input tufte \page \Marks[title={Bookmark two}] \input knuth \stoptext On Fri, 2018-01-26 at 04:37 +0100, Lars wrote: > Am I being ignored personally here? > > > --- > > Hello there, > I've stumbled upon a behaviour in CTX that I don't fully understand. My goal > is to create a multipage document without heads (title, chapter, etc) but only > text. Yet I would like to create bookmarks. So my MWE looks the following: > \setupinteraction[state=start] > \setupinteractionscreen[option=bookmark] > \definelist[Marks] > \placebookmarks[Marks][Marks][force=yes] > > \starttext > > \bookmark[Marks]{Bookmark one} > \input tufte > > \page > > \bookmark[Marks]{Bookmark two} > \input knuth > > \stoptext > Yet CTX doesn't create bookmarks in that case. I first have to add a blank > predefined header like chapter or section anywhere in the text: > \setupinteraction[state=start] > \setupinteractionscreen[option=bookmark] > \definelist[Marks] > \placebookmarks[Marks][Marks][force=yes] > > \starttext > > \bookmark[Marks]{Bookmark one} > \input tufte > > \page > > \bookmark[Marks]{Bookmark two} > \input knuth > > \startchapter[title={},marking={}] > \stopchapter > > \stoptext > Although I haven't added chapter key to \placebookmarks, so that it also > doesn't show up in the bookmarks window, only then CTX seems to create > bookmarks for the list which I created called Marks. > Is there a way to circumvent this? I'd like boomarks only where I place them > manually, without using headers. > Thanks in advance, Lars. > __ > _ > 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] Fwd: Correct usage of \placebookmarks
Am I being ignored personally here? --- Hello there, I've stumbled upon a behaviour in CTX that I don't fully understand. My goal is to create a multipage document *without* heads (title, chapter, etc) but only text. Yet I would like to create bookmarks. So my MWE looks the following: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \stoptext Yet CTX doesn't create bookmarks in that case. I first have to add a blank predefined header like chapter or section anywhere in the text: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \startchapter[title={},marking={}] \stopchapter \stoptext Although I haven't added chapter key to \placebookmarks, so that it also doesn't show up in the bookmarks window, only then CTX seems to create bookmarks for the list which I created called Marks. Is there a way to circumvent this? I'd like boomarks only where I place them manually, without using headers. Thanks in advance, Lars. ___ 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] Fwd: Correct usage of \placebookmarks
Bumb Weitergeleitete Nachricht Betreff:Correct usage of \placebookmarks Datum: Thu, 18 Jan 2018 21:03:41 +0100 Von:Lars An: ntg-context@ntg.nl Hello there, I've stumbled upon a behaviour in CTX that I don't fully understand. My goal is to create a multipage document *without* heads (title, chapter, etc) but only text. Yet I would like to create bookmarks. So my MWE looks the following: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \stoptext Yet CTX doesn't create bookmarks in that case. I first have to add a blank predefined header like chapter or section anywhere in the text: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \startchapter[title={},marking={}] \stopchapter \stoptext Although I haven't added chapter key to \placebookmarks, so that it also doesn't show up in the bookmarks window, only then CTX seems to create bookmarks for the list which I created called Marks. Is there a way to circumvent this? I'd like boomarks only where I place them manually, without using headers. Thanks in advance, Lars. ___ 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] Correct usage of \placebookmarks
Hello there, I've stumbled upon a behaviour in CTX that I don't fully understand. My goal is to create a multipage document *without* heads (title, chapter, etc) but only text. Yet I would like to create bookmarks. So my MWE looks the following: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \stoptext Yet CTX doesn't create bookmarks in that case. I first have to add a blank predefined header like chapter or section anywhere in the text: \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] \definelist[Marks] \placebookmarks[Marks][Marks][force=yes] \starttext \bookmark[Marks]{Bookmark one} \input tufte \page \bookmark[Marks]{Bookmark two} \input knuth \startchapter[title={},marking={}] \stopchapter \stoptext Although I haven't added chapter key to \placebookmarks, so that it also doesn't show up in the bookmarks window, only then CTX seems to create bookmarks for the list which I created called Marks. Is there a way to circumvent this? I'd like boomarks only where I place them manually, without using headers. Thanks in advance, Lars. ___ 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] Troubleshooting pdf bookmarks
On 09/28/2017 12:17 PM, Mari Voipio wrote: > On Tue, Sep 26, 2017 at 1:19 PM, Henning Hraban Ramm wrote: >> >> did you check you have >> >> \setupinteraction[state=start] >> \setupinteractionscreen[option=bookmark] % should not be necessary >> \placebookmarks[chapter,section,subsection][chapter,section] >> >> No trailing commas missing? > > Not possible - both files use the same environment file where the > above has been specified. If the problem was there, neither would > work. > > However, the mystery deepens: I opened the not-working file in Acrobat > Reader and it actually does have working bookmarks - of some reason > SumatraPDF doesn't show them, but they are there. Hi Mari, would it be possible that you provide us with a (minimal, if possible) sample of a PDF document with not-working bookmarks for Sumatra. > As most of my > customers are likely to use Acrobat Reader, I'm not really worried > about the bookmarks not showing up in other readers. Why SumatraPDF > shows bookmarks in test environment, but not in the proper one is an > enigma, but I'm no longer worried about it. Problem solved, at least > close enough. Does the latest version of MuPDF show the bookmarks? Just in case 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 ___
Re: [NTG-context] Troubleshooting pdf bookmarks
On Tue, Sep 26, 2017 at 1:19 PM, Henning Hraban Ramm wrote: > > did you check you have > > \setupinteraction[state=start] > \setupinteractionscreen[option=bookmark] % should not be necessary > \placebookmarks[chapter,section,subsection][chapter,section] > > No trailing commas missing? Not possible - both files use the same environment file where the above has been specified. If the problem was there, neither would work. However, the mystery deepens: I opened the not-working file in Acrobat Reader and it actually does have working bookmarks - of some reason SumatraPDF doesn't show them, but they are there. As most of my customers are likely to use Acrobat Reader, I'm not really worried about the bookmarks not showing up in other readers. Why SumatraPDF shows bookmarks in test environment, but not in the proper one is an enigma, but I'm no longer worried about it. Problem solved, at least close enough. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Troubleshooting pdf bookmarks
Am 2017-09-26 um 10:27 schrieb Mari Voipio : > Hello all, > > I've got a problem with pdf bookmarks and I don't know how to > troubleshoot it. I first made a test file in a test folder with all > the correct components and it ("bookmark_test") works perfectly with > all the enviroment files and component files. However, when I copied > the working product file to the product folder ("prd-serv"), fixed the > links and ran ConTeXt, I didn't get bookmarks. Reference links show up > in TOC and text, so there's some kind of interactivity, but no > bookmarks. > > I've tried to figure out from logs (attached) what eats my bookmarks > in the product folder, but without much success. I've also tried > excluding components and environment files in different combinations, > but that doesn't seem to help, so I haven't been able to isolate the > cause of the problem. Are there some commands that can be used to > troubleshoot interactivity/pdf bookmarks? \tracesomething, maybe? Hi Mari, did you check you have \setupinteraction[state=start] \setupinteractionscreen[option=bookmark] % should not be necessary \placebookmarks[chapter,section,subsection][chapter,section] No trailing commas missing? Just to make sure - I mostly overlook the most stupid mistakes... There was \tracebookmarks only in MkII. Maybe look through http://source.contextgarden.net/tex/context/base/mkiv/strc-bkm.mkiv (I didn’t find anything helpful though). 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] Odd numbering of pp. in PDF viewer
Actually SumatraPDF works pretty fine with the setting your proposed (see attached screens). Thanks. On 27/07/2017 23:37, Pablo Rodriguez wrote: On 07/27/2017 11:14 PM, Sebastian L. wrote: That's my product.tex: \environment env.tex \startstandardmakeup \stopstandardmakeup Here is your makeup (I removed unrequired lines). And that's from my env.tex: \setupinteraction[state=start, color=GBlue, contrastcolor=GBlue] % also in mkiv! % color: different page, contrastcolor: same page \setupinteractionscreen[option=bookmark] \setuppagenumbering[state=start, location={footer,right}] \placebookmarks[chapter,title,section,subsection][chapter,section] Add \setupmakeup[pagestate=start] in this document and page labels in the PDF document will be fine (SumatraPDF is buggy here, but other PDF viewers with page label support will be fine). Cheers, Pablo ___ 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] labeltext via lua
Am 2017-02-16 17:13, schrieb Hans Hagen: On 2/16/2017 3:06 PM, Andreas Schneider wrote: `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label: \setuplabeltext[en][test=Something] \startluacode context.startsectionlevel{title="\\labeltext[test]"} -- ... context.stopsectionlevel() \stopluacode The title correctly reads "Something", but the bookmark in the PDF viewer shows "test". also with this? \enabledirectives[references.bookmarks.preroll] Nope, that works :-) I certainly can live with that solution. Is there reason to not have this enabled by default? (I know, there is a slight performance penalty, but it seems strange that the bookmark defaults to the title, while the title gets expanded but the bookmark doesn't. In any case, I will try to figure out where in the wiki this information best belongs to.) Thank you very much! Andreas ___ 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] labeltext via lua
On 2/16/2017 3:06 PM, Andreas Schneider wrote: Am 2017-02-16 14:43, schrieb Hans Hagen: because additional ones live at the tex end why not use context.labeltext etc? Hans `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label: \setuplabeltext[en][test=Something] \startluacode context.startsectionlevel{title="\\labeltext[test]"} -- ... context.stopsectionlevel() \stopluacode The title correctly reads "Something", but the bookmark in the PDF viewer shows "test". also with this? \enabledirectives[references.bookmarks.preroll] - 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] labeltext via lua
Am 2017-02-16 14:43, schrieb Hans Hagen: because additional ones live at the tex end why not use context.labeltext etc? Hans `context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label: \setuplabeltext[en][test=Something] \startluacode context.startsectionlevel{title="\\labeltext[test]"} -- ... context.stopsectionlevel() \stopluacode The title correctly reads "Something", but the bookmark in the PDF viewer shows "test". Best regards, Andreas ___ 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] labeltext via lua
On 2/16/2017 11:36 AM, Andreas Schneider wrote: Hello, if I define a labeltext via \setuplabeltext[en][test=Something], how can I access that value via lua? (context.labeltext obviously prints the content, but doesn't allow me to use it in lua). languages.data.labels.texts.appendix.labels.en look into lang-txt.lua As a related side-request: how can I fix expansion in cases like this: \startsectionlevel[title=\labeltext{test}] ... this causes the bookmark to read "test" instead of "Something". \expandafter\startsectionlevel... didn't cut it. Best regards Andreas ___ 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 ___
[NTG-context] labeltext via lua
Hello, if I define a labeltext via \setuplabeltext[en][test=Something], how can I access that value via lua? (context.labeltext obviously prints the content, but doesn't allow me to use it in lua). As a related side-request: how can I fix expansion in cases like this: \startsectionlevel[title=\labeltext{test}] ... this causes the bookmark to read "test" instead of "Something". \expandafter\startsectionlevel... didn't cut it. Best regards Andreas ___ 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] Chapter-subtitle and a short version of a( long) chapter title to fit in the header
Dear all, Presently I’m restyling a PhD-dissertation to make it conform to the requirements of an external publisher. One of the items is the form of the chapter-heads. What would be needed on the first page of a chapter, Chapter 1 for instance, is: - Chapter 1 (midaligned, boldface, smallish size (\tfa)) - some vertical space - Chapter title (midaligned, SmallCaps, slanted, \tfc) - some vertical space - (for some chapters) Chapter subtitle, (midaligned, SmallCaps, slanted, \tfb or smaller) Furthermore I would need a header with the chapter-title on the even-numbered pages and the section-title on the odd-numbered pages. The problem here is that some of the chapter titles are too long for this and they overlap the pagenumbers in the header. That is why I would need a shorter form of the chapter title and in some cases a main title and a subtitle. As far as I know, in the command to start a chapter there is no possibility to introduce, in addition to the special version of the title for the ToC, another special, shorter, version of the title for the header. nor a subtitle. I use: \startchapter[bookmark=,list={Accompaniment in the 16th and 17th century and the development of BC},marking=,reference=ch:HistDevel,title={Accompaniment in the sixteenth and seventeenth century and the development of basso continuo}]%[a=a,b=b] For the headertexts I use what I found on http://wiki.contextgarden.net/Headers_and_Footers and it works quite well: %%% \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] \rlap{\sc \getmarking[section]} \hfill \llap{\pagenumber} \stopsetups \startsetups[text b] \rlap{\pagenumber} \hfill \llap{\sc \getmarking[chapter]} \stopsetups %%% So my main problem is that I need, in the command \startchapter, a third form for the chapter title to fit in the header and a compatible version of the setup for the headertexts. I did try to extract that from the ConTeXt wiki but I soon got lost. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] references.bookmarks.preroll and quotation
On 12/21/2016 8:28 AM, Christoph Reller wrote: Hi, I have the following MWE: \setupinteraction[state=start] \placebookmarks[chapter] \enabledirectives[references.bookmarks.preroll] \starttext \startchapter[title=B \quotation{C} D] \input ward \stopchapter \stoptext The generated bookmark has wrongly placed spaces: B“ C ” D Without the directive references.bookmarks.preroll, the bookmark is: B "C" D I need this directive because in titles I use macros that use \autoinsertnextspace. Is this a bug? Any feedback is welcome. fixed in next beta 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] references.bookmarks.preroll and quotation
Hi, I have the following MWE: \setupinteraction[state=start] \placebookmarks[chapter] \enabledirectives[references.bookmarks.preroll] \starttext \startchapter[title=B \quotation{C} D] \input ward \stopchapter \stoptext The generated bookmark has wrongly placed spaces: B“ C ” D Without the directive references.bookmarks.preroll, the bookmark is: B "C" D I need this directive because in titles I use macros that use \autoinsertnextspace. Is this a bug? Any feedback is welcome. Cheers, Christoph ___ 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] Wrong bookmark for TOC
On 09/04/2016 07:28 PM, Wolfgang Schuster wrote: >> Henri Menke <mailto:henrime...@gmail.com> >> 4. September 2016 um 13:28 >> Dear list, >> >> when I specify that titles should be added to the bookmarks, the text of the >> bookmark is somewhat wrong. The heading of the table of contents is >> »Contents«, so I expect this to appear as bookmark. Unfortunately, the >> bookmark read »content« (all lowercase and singular). MWE is below. How do I >> fix this? >> >> Cheers, Henri >> >> --- >> > \enabledirectives[references.bookmarks.preroll] Thank you Wolfgang, but hat enables expansion for all macros in bookmarks. For me it is okay but this is perhaps not the best way to deal with it. I think strings like »content« should be expanded by default in bookmarks (just like synonyms). Cheers, Henri >> \setupinteraction[state=start] >> \placebookmarks[chapter,title][force=yes] >> \starttext >> \completecontent >> \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] Wrong bookmark for TOC
Henri Menke <mailto:henrime...@gmail.com> 4. September 2016 um 13:28 Dear list, when I specify that titles should be added to the bookmarks, the text of the bookmark is somewhat wrong. The heading of the table of contents is »Contents«, so I expect this to appear as bookmark. Unfortunately, the bookmark read »content« (all lowercase and singular). MWE is below. How do I fix this? Cheers, Henri --- \enabledirectives[references.bookmarks.preroll] \setupinteraction[state=start] \placebookmarks[chapter,title][force=yes] \starttext \completecontent \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 ___
[NTG-context] Wrong bookmark for TOC
Dear list, when I specify that titles should be added to the bookmarks, the text of the bookmark is somewhat wrong. The heading of the table of contents is »Contents«, so I expect this to appear as bookmark. Unfortunately, the bookmark read »content« (all lowercase and singular). MWE is below. How do I fix this? Cheers, Henri --- \setupinteraction[state=start] \placebookmarks[chapter,title][force=yes] \starttext \completecontent \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 ___
Re: [NTG-context] ntg-context Digest, Vol 145, Issue 61
On 7/21/2016 8:01 PM, Robert Blackstone wrote: On 21 Jul 2016, at 19:21 , : Hans Hagen wrote> On 7/21/2016 3:53 PM, Robert Blackstone wrote: One my project files, that In previous versions of the standalone mkiv compiled without any problems, doesn't compile in the standalone I installed recently (version 2016.07.18 16;26). It gives me an error warning hat I don’t understand: + tex error > tex error on line 191 in file TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero .. l.191 \stopintro + The processed file starts with: ++ \definehead [intro] [chapter] \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] \startcomponent TD_Ch0-Intro.tex \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}] shouldn't that be \startintro then? Yes. Problem solved. Thank you. (It has been nice that the previous versions have been very forgiving for a fool like me.) being a bit more strict was a wish ... also has to do with slightly more robust nesting features - 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 ___
Re: [NTG-context] What is wrong with \stopintro?
On 21 Jul 2016, at 19:21 , : Hans Hagen wrote> > > On 7/21/2016 3:53 PM, Robert Blackstone wrote: >> One my project files, that In previous versions of the standalone mkiv >> compiled without any problems, doesn't compile in the standalone I installed >> recently (version 2016.07.18 16;26). >> It gives me an error warning hat I don’t understand: >> + >> tex error > tex error on line 191 in file >> TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero >> >> .. >> l.191 \stopintro >> + >> >> The processed file starts with: >> ++ >> \definehead [intro] [chapter] >> \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] >> >> \startcomponent TD_Ch0-Intro.tex >> \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}] > > shouldn't that be \startintro then? Yes. Problem solved. Thank you. (It has been nice that the previous versions have been very forgiving for a fool like me.) Best regards, Robert___ 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] ntg-context Digest, Vol 145, Issue 61
On 21 Jul 2016, at 19:21 , : Hans Hagen wrote> > > On 7/21/2016 3:53 PM, Robert Blackstone wrote: >> One my project files, that In previous versions of the standalone mkiv >> compiled without any problems, doesn't compile in the standalone I installed >> recently (version 2016.07.18 16;26). >> It gives me an error warning hat I don’t understand: >> + >> tex error > tex error on line 191 in file >> TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero >> >> .. >> l.191 \stopintro >> + >> >> The processed file starts with: >> ++ >> \definehead [intro] [chapter] >> \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] >> >> \startcomponent TD_Ch0-Intro.tex >> \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}] > > shouldn't that be \startintro then? Yes. Problem solved. Thank you. (It has been nice that the previous versions have been very forgiving for a fool like me.) Best regards, Robert ___ 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] What is wrong with \stopintro?
Dear all, One my project files, that In previous versions of the standalone mkiv compiled without any problems, doesn't compile in the standalone I installed recently (version 2016.07.18 16;26). It gives me an error warning hat I don’t understand: + tex error > tex error on line 191 in file TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero \23>>currentnamedsection \popmacro ...m_syst_helpers_push_macro \endcsname \global \advance \lastname... l.191 \stopintro + The processed file starts with: ++ \definehead [intro] [chapter] \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] \startcomponent TD_Ch0-Intro.tex \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}] +++ and ends on line 191 with the error-causing command: \stopintro I should add that this particular file is input in the projectfile that also uses many others, like setup-files and .bbl's. It is however this particular file, TD-Ch0-R1-index-UTF8-4CUP.tex, that gives me problems. What can I do about this (other than compiling with an older version of mkiv) ? 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] What is wrong with \stopintro?
On 7/21/2016 3:53 PM, Robert Blackstone wrote: Dear all, One my project files, that In previous versions of the standalone mkiv compiled without any problems, doesn't compile in the standalone I installed recently (version 2016.07.18 16;26). It gives me an error warning hat I don’t understand: + tex error > tex error on line 191 in file TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero \23>>currentnamedsection \popmacro ...m_syst_helpers_push_macro \endcsname \global \advance \lastname... l.191 \stopintro + The processed file starts with: ++ \definehead [intro] [chapter] \setuphead [intro] [number=no,alternative=middle,style=\tfa \bf] \startcomponent TD_Ch0-Intro.tex \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}] shouldn't that be \startintro then? +++ and ends on line 191 with the error-causing command: \stopintro I should add that this particular file is input in the projectfile that also uses many others, like setup-files and .bbl's. It is however this particular file, TD-Ch0-R1-index-UTF8-4CUP.tex, that gives me problems. What can I do about this (other than compiling with an older version of mkiv) ? 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 ___ -- - 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 ___
Re: [NTG-context] A new problem in old TOC
Am 15.07.2016 16:51, schrieb Wolfgang Schuster: Ursula Hermann 15. Juli 2016 um 16:27 High Wolfgang! Now i have tried this one: \mainlanguage[de] \setuppapersize[A4] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann \indenting[yes, next] Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \stoptext I need in the TOC: 1. The Author, below the title of the chapter. Do you want to show (title after author) Ursula Hermann Danksagung both in the header and the ToC or should each use a different layout. BTW: Points 1-3 from my last mail aren't fixed (look here https://mailman.ntg.nl/pipermail/ntg-context/2016/086184.html how your mail looks in other mail clients). 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 ___ Hello Wolfgang! Yes, I want it both title in header and in the TOC! Ursula Hermann Danksagung \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann\indenting[yes, next] Danksagung}] \stopchapter \stoptext Uschi ___ 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] A new problem in old TOC
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 15. Juli 2016 um 16:27 High Wolfgang! Now i have tried this one: \mainlanguage[de] \setuppapersize[A4] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann \indenting[yes, next] Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \stoptext I need in the TOC: 1. The Author, below the title of the chapter. Do you want to show (title after author) Ursula Hermann Danksagung both in the header and the ToC or should each use a different layout. BTW: Points 1--3 from my last mail aren't fixed (look here https://mailman.ntg.nl/pipermail/ntg-context/2016/086184.html how your mail looks in other mail clients). 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] A new problem in old TOC
High Wolfgang! Now i have tried this one: \mainlanguage[de] \setuppapersize[A4] \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann \indenting[yes, next] Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \stoptext I need in the TOC: 1. The Author, below the title of the chapter. Uschi Hermann Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 15. Juli 2016 12:54 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] A new problem in old TOC <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 15. Juli 2016 um 11:30 I have a problem with an old TOC. I tried to put in an Author, but the problem is, that there is so much distance between the forename and the surname, and than comes the title. Here my example: \mainlanguage[de] \setuppapersize[A4] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter][width=fit] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsect ion}] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann {Danksagung}}] \starttext \stoptext Could somebody help me? Do I need a special way? Not with your current example because 1. it contains 3 \starttext commands, 2. there are too many setups (e.g. \setupinteraction) which aren't necessary for your example, 3. I get lot of empty lines when I copy your exampe into my editor which I have to delete (not funny), 4. and I can't reproduce your problem when I fix points 1 and 3. 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] A new problem in old TOC
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 15. Juli 2016 um 11:30 I have a problem with an old TOC. I tried to put in an Author, but the problem is, that there is so much distance between the forename and the surname, and than comes the title. Here my example: \mainlanguage[de] \setuppapersize[A4] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter][width=fit] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann {Danksagung}}] \starttext \stoptext Could somebody help me? Do I need a special way? Not with your current example because 1. it contains 3 \starttext commands, 2. there are too many setups (e.g. \setupinteraction) which aren't necessary for your example, 3. I get lot of empty lines when I copy your exampe into my editor which I have to delete (not funny), 4. and I can't reproduce your problem when I fix points 1 and 3. 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] A new problem in old TOC
I have a problem with an old TOC. I tried to put in an Author, but the problem is, that there is so much distance between the forename and the surname, and than comes the title. Here my example: \mainlanguage[de] \setuppapersize[A4] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter][width=fit] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsect ion}] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Ursula Hermann {Danksagung}}] \starttext \stoptext Could somebody help me? Do I need a special way? Uschi ___ 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] TOC in bookmarks
Marcus Vinicius Mesquita <mailto:marcusvinicius.mesqu...@gmail.com> 11. Juli 2016 um 15:00 Dear list How can one make the page with the TOC also appear in the bookmarks using mkiv? \setupinteraction[state=start] \placebookmarks[title,chapter][force=yes] \starttext % Variant 1, shows the text which is set with \setupheadtext[][content=...] \completecontent % Variant 2, you can set your own text for the bookmark % \starttitle[title=\headtext{content},reference=content,bookmark=Table of content] % \placecontent % \stoptitle \dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}} \stoptext BTW: It isn't necessary to format the text of your question. 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] TOC in bookmarks
Thank you Marcus Vinicius On Mon, Jul 11, 2016, 10:33 Wolfgang Schuster wrote: > Marcus Vinicius Mesquita > 11. Juli 2016 um 15:00 > > Dear list > > How can one make the page with the TOC also appear in the bookmarks using > mkiv? > > > \setupinteraction[state=start] > > \placebookmarks[title,chapter][force=yes] > > \starttext > > % Variant 1, shows the text which is set with > \setupheadtext[][content=...] > \completecontent > > % Variant 2, you can set your own text for the bookmark > % \starttitle[title=\headtext{content},reference=content,bookmark=Table of > content] > % \placecontent > % \stoptitle > > \dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}} > > \stoptext > > BTW: It isn't necessary to format the text of your question. > > 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] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Otared! At least the example is this. Now it works perfekt: \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][2] \startchapter [title={Danksagung}] \stopchapter \startchapter [title={Bildbeschreibung der Cover-Grafik}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \startsection [title=Activité 2] \stopsection \startchapter [title={Cours-Méthodes}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \startchapter [title={S'entraîner}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \stoptext \definestructureconversionset [frontpart:pagenumber] [5] [numbers] \setupmakeup [standard] [pagestate=start, style=bigbodyfont, align=middle] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \startchapter [title=First chapter] \stopchapter \startchapter [title=Second chapter] \stopchapter \stopbodymatter \stoptext Thank‘s so much, for helping me . Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Otared Kavian Gesendet: Donnerstag, 30. Juni 2016 12:05 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hi again, Maybe what you want to achieve is resetting the page numbers at some point: in that case you can say: \page \resetuserpagenumber just before the chapter where you want your chapter with roman numerals beginning at number 1. Best regards: OK On 28 Jun 2016, at 14:15, Ursula Hermann wrote: Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann Gesendet: Dienstag, 28. Juni 2016 12:31 An: 'mailing list for ConTeXt users' Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hallo Wolfgang! Thanks for helping me. It was perfekt. Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 24. Juni 2016 18:34 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : <mailto:ntg-context@ntg.nl> ntg-context@ntg.nl / <http://www.ntg.nl/mailman/listinfo/ntg-context> http://www.ntg.nl/mailman/listinfo/ntg-context webpage : <http://www.pragma-ade.nl/> http://www.pragma-ade.nl / <http://tex.aanhet.net/> http://tex.aanhet.net archive : <http://foundry.supelec.fr/projects/contextrev/> http://foundry.supelec.fr/projects/contextrev/ wiki : <http://contextgarden.net/> http://contextgarden.net ___ ___ If your
Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Otared! I have it. I found an mail on the mailinglist . This works. It is: \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \setcounter[userpage][5] \startpart [title={Danksagung}] \stoppart \startchapter [title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \startpart [title={Danksagung}] \startchapter [title={Bildbeschreibung der Cover-Grafik}] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \startsection [title=Activité 2] \startchapter [title={Cours-Méthodes}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \startchapter [title={S'entraîner}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \stoptext And thanks for the other tip. Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Otared Kavian Gesendet: Donnerstag, 30. Juni 2016 12:05 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hi again, Maybe what you want to achieve is resetting the page numbers at some point: in that case you can say: \page \resetuserpagenumber just before the chapter where you want your chapter with roman numerals beginning at number 1. Best regards: OK On 28 Jun 2016, at 14:15, Ursula Hermann wrote: Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann Gesendet: Dienstag, 28. Juni 2016 12:31 An: 'mailing list for ConTeXt users' Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hallo Wolfgang! Thanks for helping me. It was perfekt. Uschi Von: ntg-context [ <mailto:ntg-context-boun...@ntg.nl> mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 24. Juni 2016 18:34 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : <mailto:ntg-context@ntg.nl> ntg-context@ntg.nl / <http://www.ntg.nl/mailman/listinfo/ntg-context> http://www.ntg.nl/mailman/listinfo/ntg-context webpage : <http://www.pragma-ade.nl/> http://www.pragma-ade.nl / <http://tex.aanhet.net/> http://tex.aanhet.net archive : <http://foundry.supelec.fr/projects/contextrev/> http://foundry.supelec.fr/projects/contextrev/ wiki : <http://contextgarden.net/> 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] Problems with Pagenumbers in TOC, romannumerals and numbers
Hi again, Maybe what you want to achieve is resetting the page numbers at some point: in that case you can say: \page \resetuserpagenumber just before the chapter where you want your chapter with roman numerals beginning at number 1. Best regards: OK > On 28 Jun 2016, at 14:15, Ursula Hermann wrote: > > Hello Wolfgang! > > I have now written as you told me. > \starttext > \placecontent > \setupuserpagenumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stoptext > > Ähm where do i set the counter. I mean when I set\setcounter? > > Uschi > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Ursula Hermann > Gesendet: Dienstag, 28. Juni 2016 12:31 > An: 'mailing list for ConTeXt users' > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > > Hallo Wolfgang! > > Thanks for helping me. It was perfekt. > > Uschi > > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Wolfgang Schuster > Gesendet: Freitag, 24. Juni 2016 18:34 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > >> Ursula Hermann <mailto:ursula.herm...@univie.ac.at> >> 24. Juni 2016 um 15:53 >> Hello evrybody! >> >> I need in a Toc pagenumberings with romannumrals and numbers. >> >> I have written this one: >> >> \mainlanguage[de] >> >> \setupinteraction[state=start] % don't forget this line! >> % make chapter, section bookmarks visible when opening document >> \placebookmarks[chapter,section,subsection][chapter,section] >> \setupinteractionscreen[option=bookmark]\starttext >> \setuplist[chapter] >> \setuplist[section][width=1em] >> \setuplist[subsection][width=1.5em, margin=0.6em] >> \setuplist[subject][margin=1.5em] >> \setuppagenumbering >> \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] > None of the above setups are needed for a minimal example, remove them next > time. > > \setupuserpagenumbering[conversion=romannumerals] > You’re looking for the \setupuserpagenumber command (but \setuppagenumber > would > also work because it’s a synonym for the command) and you have to use the > numbercommand > key to change the conversion. > > \setupuserpagenumber[numberconversion=romannumerals] > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / > http://www.ntg.nl/mailman/listinfo/ntg-context > <http://www.ntg.nl/mailman/listinfo/ntg-context> > webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / > http://tex.aanhet.net <http://tex.aanhet.net/> > archive : http://foundry.supelec.fr/projects/contextrev/ > <http://foundry.supelec.fr/projects/contextrev/> > wiki : http://contextgarden.net <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] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Ursula, I don’t know whether the example you sent is what you typeset, but you should pay attention to close each \startchpater by a corresponding \stopchapter. The same remark applies to other \startSOMETHING command, which should have a corresponding \stopSOMETHING. This is probably not related to the question you are asking, but nevertheless is important in many instances. Best regards: OK > On 28 Jun 2016, at 14:15, Ursula Hermann wrote: > > Hello Wolfgang! > > I have now written as you told me. > \starttext > \placecontent > \setupuserpagenumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stoptext > > Ähm where do i set the counter. I mean when I set\setcounter? > > Uschi > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Ursula Hermann > Gesendet: Dienstag, 28. Juni 2016 12:31 > An: 'mailing list for ConTeXt users' > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > > Hallo Wolfgang! > > Thanks for helping me. It was perfekt. > > Uschi > > Von: ntg-context [mailto:ntg-context-boun...@ntg.nl > <mailto:ntg-context-boun...@ntg.nl>] Im Auftrag von Wolfgang Schuster > Gesendet: Freitag, 24. Juni 2016 18:34 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals > and numbers > >> Ursula Hermann <mailto:ursula.herm...@univie.ac.at> >> 24. Juni 2016 um 15:53 >> Hello evrybody! >> >> I need in a Toc pagenumberings with romannumrals and numbers. >> >> I have written this one: >> >> \mainlanguage[de] >> >> \setupinteraction[state=start] % don't forget this line! >> % make chapter, section bookmarks visible when opening document >> \placebookmarks[chapter,section,subsection][chapter,section] >> \setupinteractionscreen[option=bookmark]\starttext >> \setuplist[chapter] >> \setuplist[section][width=1em] >> \setuplist[subsection][width=1.5em, margin=0.6em] >> \setuplist[subject][margin=1.5em] >> \setuppagenumbering >> \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] > None of the above setups are needed for a minimal example, remove them next > time. > > \setupuserpagenumbering[conversion=romannumerals] > You’re looking for the \setupuserpagenumber command (but \setuppagenumber > would > also work because it’s a synonym for the command) and you have to use the > numbercommand > key to change the conversion. > > \setupuserpagenumber[numberconversion=romannumerals] > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / > http://www.ntg.nl/mailman/listinfo/ntg-context > <http://www.ntg.nl/mailman/listinfo/ntg-context> > webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / > http://tex.aanhet.net <http://tex.aanhet.net/> > archive : http://foundry.supelec.fr/projects/contextrev/ > <http://foundry.supelec.fr/projects/contextrev/> > wiki : http://contextgarden.net <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] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Ursula Hermann Gesendet: Dienstag, 28. Juni 2016 12:31 An: 'mailing list for ConTeXt users' Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers Hallo Wolfgang! Thanks for helping me. It was perfekt. Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 24. Juni 2016 18:34 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] 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] Problems with Pagenumbers in TOC, romannumerals and numbers
Hallo Wolfgang! Thanks for helping me. It was perfekt. Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Freitag, 24. Juni 2016 18:34 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] 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] Problems with Pagenumbers in TOC, romannumerals and numbers
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsection}] None of the above setups are needed for a minimal example, remove them next time. \setupuserpagenumbering[conversion=romannumerals] You’re looking for the \setupuserpagenumber command (but \setuppagenumber would also work because it’s a synonym for the command) and you have to use the numbercommand key to change the conversion. \setupuserpagenumber[numberconversion=romannumerals] 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] Problems with Pagenumbers in TOC, romannumerals and numbers
Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section,subsection][chapter,section] \setupinteractionscreen[option=bookmark]\starttext \setuplist[chapter] \setuplist[section][width=1em] \setuplist[subsection][width=1.5em, margin=0.6em] \setuplist[subject][margin=1.5em] \setuppagenumbering \setupcombinedlist[content][list={part,chapter,section,subsection,subsubsect ion}] \setupuserpagenumbering[conversion=romannumerals] \setupinteraction [state=start, style=, color=, contrastcolor=] \setuplist [chapter] [after={\blank[line]}] \setupcombinedlist [content] [aligntitle=yes, alternative=c, interaction=all] \setuphead [part] [sectionresetset=, conversion=Romannumerals, placehead=yes, bodypartlabel=chapter] \setuphead [chapter] [sectionresetset=, conversion=, number=no, placehead=yes, bodypartlabel=part, sectionsegments=chater:chapter] \setuphead [section] [sectionsegments=section:section] \starttext \placecontent \startpart [title={Danksagung}] \startchapter [title={Bildbeschreibung der Cover-Grafik}] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \startsection [title=Activité 2] \startchapter [title={Cours-Méthodes}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \startchapter [title={S'entraîner}] \startsection [title={Coordonnées d'un point dans un repère}] \startsection [title={Coordonnées du milieu d'un segment}] \stoptext The mistake is ,that i have writen after compiling comes: error in line 13: \setupuserpagenumbering[conversion=romannumerals] Whats wrong here? Uschi ___ 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] What is wrong here?
On 6/20/2016 2:24 PM, Thomas A. Schmitz wrote: On 06/20/2016 02:11 PM, Ursula Hermann wrote: \starttext \input Sigmund Freud Band1.pdf \stoptext \input is used for including ConTeXt source files. If you want to include a pdf, you have to use \externalfigure. Difficult to give further advice as we don't know what you are trying to achieve - you won't be able to get any interaction or bookmarks by including an external pdf file. actually already there for years ... \externalfigure[...][...,interaction=yes,...] yes | all | {reference,bookmark,layer} 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] What is wrong here?
On Mon, Jun 20, 2016 at 2:11 PM, Ursula Hermann wrote: > Hello ! > > > > I have problem with an PDF-File. > > > > In the Editor i wrote: > > > > \setupinteraction[state=start]%don't forget this line > > % make chapter, section bookmarks visible when opening document > > \placebookmarks[title, chapter,section,subsection][title,chapter,section] > > \setupinteractionscreen[option=bookmark] > > > > \starttext > > \input Sigmund Freud Band1.pdf > > \stoptext > > > > Then i got this : > > > > Command Line: context.exe --synctex=-1 "Bookmarks1.tex" > > Startup Folder: D:\My Documents > > > > > > mtx-context | warning: synctex is enabled > > mtx-context | run 1: luatex > --fmt="C:/TeXlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en" > --jobname="Bookmarks1" > --lua="C:/TeXlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui" > --no-parse-first-line --synctex=-1 --c:currentrun=1 > --c:directives="system.synctex=-1" --c:fulljobname="./Bookmarks1.tex" > --c:input="./Bookmarks1.tex" --c:kindofrun=1 --c:maxnofruns=9 > --c:synctex="-1" "cont-yes.mkiv" > > This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/W32TeX) (rev 5238) > > \write18 enabled. > > > > system > synctex functionality is enabled (-1)! > > open source > 1 > 1 > > C:/TeXlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv > > > > ConTeXt ver: 2015.05.18 12:26 MKIV current fmt: 2015.7.21 int: > english/english > > > > system > 'cont-new.mkiv' loaded > > open source > 2 > 2 > > C:/TeXlive/2015/texmf-dist/tex/context/base/cont-new.mkiv > > close source> 2 > 2 > > C:/TeXlive/2015/texmf-dist/tex/context/base/cont-new.mkiv > > system > files > jobname 'Bookmarks1', input './Bookmarks1', > result 'Bookmarks1' > > fonts > latin modern fonts are not preloaded > > languages > language 'en' is active > > open source > 2 > 3 > D:/My Documents/Bookmarks1.tex > > fonts > preloading latin modern fonts (second stage) > > fonts > 'fallback modern-designsize rm 12pt' is loaded > > > > tex error > error on line 7 in file D:/My Documents/Bookmarks1.tex: > ! I can't find file `Sigmund'. > > > > l.7 \input Sigmund > > Freud Band1.pdf > > > > 1 \setupinteraction[state=start]%don't forget this line > > 2 % make chapter, section bookmarks visible when opening document > > 3 \placebookmarks[title, > chapter,section,subsection][title,chapter,section] > > 4 \setupinteractionscreen[option=bookmark] > > 5 > > 6 \starttext > > 7 >> \input Sigmund Freud Band1.pdf > > 8 \stoptext > > > \input "Sigmund Freud Band1.pdf" %% or \input {Sigmund Freud Band1.pdf} > Please type another input file name: > > > > I have first saved the files on my computer, then I put them together, > because I had loaded the files before. > > > > I don’t understand, what is wrong here. Can somebody help me? > > > (at least) one blank space in the filename that acts as separator between the filename (to load) and the rest of the text (Band1.pdf) to typeset. Context sees \input Sigmund and it tries to load a file named Sigmund, as the error message shows. Of course loading a pdf in this way is almost useless, if you are lucky you will see garbage, but on 99.99% of cases context will emit an error message like "invalid char" or so. The canonical way to load a pdf is \externalfigure[Sigmund Freud Band1.pdf] (no need to use {} or "" in this case) -- luigi ___ 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 ___