Re: [NTG-context] How to add data from another PDF in index?
We are currently working on fixing cross-references as well as shared register information between products in a ConTeXt project structure. Much is possible, but not all is fully worked out. My current use is a multi-volume book, sharing Tables of Contents between the two volumes. As a teaser, \placelist [part,chapter,section,subsection] [criterium=product,reference=VolumeII] will include the TOC of VolumeII in product VolumeI. Once we have this figured-out, I will have to create a wiki page. Alan On Fri, 24 Feb 2023 05:43:01 + (UTC) Joel via ntg-context wrote: > I am making a textbook and workbook set. > I have this custom index using this code, in both the textbook and > workbook: % > \defineregister[learnedshort][compress=yes] > \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, > pagenumber=yes, indicator=no] % > \defineregister[learnedlong][compress=yes] > \setupregister[learnedlong][style=sansbold, textstyle=slanted, n=2, > pagenumber=yes, indicator=no] % > \define[1]\learnedis{% > \txt{} \getvalue{#1} > \learnedshort{#1} > \learnedlong{#1} > } > \define[1]\learned{% > \learnedshort{#1} > \learnedlong{\getvalue{#1}} > } > > \starttext > > \learnedis{blah blah} > > \input knuth > > \learnedis{some more} > > > \startchapter[title=Standards] > \placelearnedshort > \stopchapter > > \stoptext > > > My question is, can I have references to the Workbook page numbers in > the textbook? And visa-versa? > > For instance, the Textbook index currently looks like this: > - > Standards > blah blah 1 > some more 2 > -- > With the data in the Workbook it might look like this: > Standards > blah blah 1, WB: 1, 3-8 > > some more 2, WB: 8-9 > yet more WB: 10, 12 > > -- > Is this possible to merge index information like this? > --Joel -- Alan Braslau 816 West Mountain Avenue Fort Collins, CO 80521 USA mobile: (970) 237-0957 Conserve energy! ;-) ___ 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] structureuservariable as list
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Search the wiki. Look for "Comma Separated Lists." There is a variant with an author list as an example. You may need additional brace levels around the list entries. -- 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] structureuservariable as list
Hi, is it possible to pass a list in a variable? I'd like to pass a list of authors: \startchapter[title={Foo Bar}][authors={Alice, Bob}] % PSEUDOCODE % for author in \structureuservariable{authors} % do print(author + '\crlf') % done \stopchapter Thanks ___ 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] Curriculum example not working anymore (repost)
Dear List! I’ve managed to solve the issue with some modification, though it seems not possible to handle it within a frame. See example below Original settings in m-resume.tex \define[5]\EDUITEM{\framed[frame=off,align=right,width=broad] % The reason seems to be the frame command {{\bf #1}\inmargin{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} doesn’t work as expected. My modification \define[5]\EDUITEM{ \inleft{\bf #1} {{\it #2}\ (#3).\crlf {\bf #4}, #5.\blank[small]}} Then it seems to work as expected. > 23 feb. 2023 kl. 08:53 skrev Jan-Erik Hägglöf : > > Dear List! > > I discovered a flaw when I updated my personal cv built with inspiration from > the wiki example > > https://wiki.contextgarden.net/Curriculum_Vitae > > The margin text dissappear so it needs to be updated and modified in some way. > > I’m sending the output and files from wiki example > > My apologize for multiple posts in same issue due to size limit problems. > > Thanks in advance > > Jan-Erik > > > > > > > ___ 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] Math Formula Alignment
Thank you Hans! Alignment works again as expected and documented in the Wiki. Greetings Lutz Am 23.02.2023 um 14:53 schrieb Hans Hagen via ntg-context: On 2/18/2023 3:04 PM, Mikael Sundqvist via ntg-context wrote: Hi, On Sat, Feb 18, 2023 at 3:01 PM Lutz Haseloff via ntg-context wrote: Hi Hans, hi all, the alignment of formulas seems broken: \setuppapersize[A5] \starttext \setuplayout[textwidth=8cm] \setupformulas[align=left] \startformula c^2 = a^2 + b^2 \stopformula \setupformulas[align=middle] \startformula c^2 = a^2 + b^2 \stopformula \setupformulas[align=right] \startformula c^2 = a^2 + b^2 \stopformula \setupformulas[align=left] \placeformula \startformula c^2 = a^2 + b^2 \stopformula \setupformulas[align=middle] \placeformula \startformula c^2 = a^2 + b^2 \stopformula \setupformulas[align=right] \placeformula \startformula c^2 = a^2 + b^2 \stopformula \stoptext All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX Greetings Lutz Indeed, but align=flushleft and align=flushright seems to work. i'll add the aliases - 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 ___
Re: [NTG-context] update
Hi Hans, Thank you very much for the new update. Everything seem to work like a charm. In particular I played with the \underbrace and \overbrace when adding something under the \underbrace, or above the \overbrace, like in \startformula \overbrace{1+x^2+a}^{= -1} + \underbrace{ax^2 + bx + c}_{=2} = 1 \stopformula and it works great ! Best regards : Otared > On 23 Feb 2023, at 22:07, Hans Hagen via ntg-context > wrote: > > Hi, > > I uploaded a new version. We further improved Antykwa support, > > \switchtobodyfont[antykwa] > > \startTEXpage[offset=1dk] >\im{ >f' = f'' = f''' = f = >a + b + \ldots + c + >\overbar{x} + \overbar{S} + \bar{x} + \widebar{x} >} > >\im{ >\fenced[doublebar]{x} = >\fenced[doublebar][size=1]{x_1} = >\fenced[doublebar][size=2]{x_2} = >\fenced[doublebar][size=3]{x_3} = >\fenced[doublebar][size=4]{x_4} = >\fenced[doublebar]{\blackrule[width=1cm,height=1cm]} >} > >\im{ >\fenced[bar]{x} = >\fenced[bar][size=1]{x_1} = >\fenced[bar][size=2]{x_2} = >\fenced[bar][size=3]{x_3} = >\fenced[bar][size=4]{x_4} = >\fenced[bar]{\blackrule[width=1cm,height=1cm]} >} > >\im{ >\fenced[brace]{x} = >\fenced[brace][size=1]{x_1} = >\fenced[brace][size=2]{x_2} = >\fenced[brace][size=3]{x_3} = >\fenced[brace][size=4]{x_4} = >\fenced[brace]{\blackrule[width=1cm,height=1cm]} >} > >\im{ >\root[4]{1+x^2+a} + >\frac{1}{1+x^2+a} + >\overparent{1+x^2+a} + >\overbrace{1+x^2+a} + >\overparent{x} + >\overbrace{x} + >\overbrace{i} >} > > \stopTEXpage > > > This time with fancy radical bars, fraction bars, vertical bars, over and > underbars etc. > > 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 / > 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 > ___ Otared Kavian e-mail: ota...@gmail.com Phone: +33 6 88 26 70 95 ___ 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 ___