Re: [NTG-context] Text around a figure in a framedtext
Hi Otared, A small mistake on your part : do not write \input knuth.tex but \input knuth. Then I want the text in the first framedtext wrapped around the figure as in the second. Fabrice 2015-08-08 6:18 GMT+02:00 Otared Kavian ota...@gmail.com: Hi, You should use the same width if you want to obtain the same result (by the way, you have to say also \stopframedtext in your source file): \startframedtext[width=\textwidth]{ \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth.tex } \stopframedtext Best regards: OK On 08 Aug 2015, at 00:49, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: Hi, Why the text does not move in the first framedtext like the second framedtext ? Thank you. Fabrice \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=off, background=MyFrame, width=\textwidth, location=right] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [Définition] [headstyle=\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p := textext.rt(\white\Définition) ; p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ; b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA} ; fill b withcolor \MPcolor{MyColorB} ; draw p ; \stopuseMPgraphic \starttext \startMyText \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth \stopMyText \startframedtext{ \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth} \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 ___ ___ 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] Text around a figure in a framedtext
Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com 8. August 2015 00:49 Hi, Why the text does not move in the first framedtext like the second framedtext? You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte \stophanging \stopframedtext \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] issues with typeface selection
Pablo Rodriguez mailto:oi...@gmx.es 7. August 2015 18:52 Dear list, I have the following sample: \definefontfamily[timesnew][serif][FreeSerif] \definefontfamily[droidserif][serif][Droid Serif] \setupbodyfont[palatino, 12pt] \starttext I want to have \type{\timesnew\ttfx} and \type{\droidserif\ttfx} in each cell, but \type{foregroundstyle} doesn’t seem to work (compilation crashes). \startxtable \blank \startxrow \startxcell \ConTeXt\ is awesome!\stopxcell \startxcell \ConTeXt\ is awesome!\stopxcell \stopxrow \stopxtable \blank Typeface selection doesn’t seem to work even with paragraphs: \defineparagraphs[timesdroid][each][n=2, before=\blank] \defineparagraphs[timesdroid][1][style=\newtimes] \defineparagraphs[timesdroid][2][style=\droidserif] \starttimesdroid \ConTeXt\ is awesome! \timesdroid \ConTeXt\ is awesome! \stoptimesdroid \stoptext All I need is to be able to have a text with a given font family and a smaller font size on the left and the same text with the same font size but another font family on the right. I have failed with both xtables and paragraphs. Wnat am I missing in each case? There is no \ttfx font switch command, what ConTeXt has is \tfx (with one “t” in the name) which switches to a smaller size for the upright font and \tttfx (with three “t” in the name) which switches to a smaller size for the upright typewriter font. 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] issues with typeface selection
On 08/08/2015 11:44 AM, Wolfgang Schuster wrote: Pablo Rodriguez 7. August 2015 18:52: [...] Wnat am I missing in each case? There is no \ttfx font switch command, what ConTeXt has is \tfx (with one “t” in the name) which switches to a smaller size for the upright font and \tttfx (with three “t” in the name) which switches to a smaller size for the upright typewriter font. Many thanks for your help, Wolfgang. Of course, you are right. I know that, but I mistyped it. Although I still having problems with foregroundstyle, such as in: \definefontfamily[newtimes][serif][FreeSerif] \definefontfamily[droidserif][serif][Droid Serif] \setupbodyfont[palatino, 12pt] \setuphead[section][style=\newtimes\tfx] \starttext \section{Comparision} \startxtable \startxrow \startxcell[foregroundstyle=\newtimes\tfx] \ConTeXt\stopxcell \startxcell[foregroundstyle=\droidserif\tfx] \ConTeXt\stopxcell \stopxrow \stopxtable \stoptext Is there a way to add both commands to foregroundstyle? Or how can I get both commands in the xcell? Many thanks for your help again, Pablo -- http://www.ousia.tk ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Finding the correct name of font to use with \definefontamily
I am trying to use the font family Novecento Wide, but cannot seem to get it to work. I suspect that it is in the name that I am attempting, although I have tried all the names that I can come up with: Novecento, Novecento Wide, Novecentowide Light, etc. MWE \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][ss][Novecentowide] \definefontfamily[mainface][mm][TeX Gyre Pagella Math] \setupbodyfont[mainface,9pt] \setupwhitespace[medium] \starttext \input lorem \ss\input lorem \stoptext Here is the relevant line from the output showing that Novecento is *not* loaded; mkiv lua stats loaded fonts: 2 files: texgyrepagella-math.otf, texgyrepagella-regular.otf Firstly, is the font name really the problem, or is it something else? Secondly, is there a way to pull the name of any font so that \definefontamily can retrieve it. Thanks. A number of the weights are freely available at: http://www.fontspring.com/fonts/synthview/novecento-sans Output from mtxrun --list --all and --info commands follow. $ mtxrun --script fonts --list --all --pattern=Novecento* resolvers | trees | analyzing 'home:texmf' resolvers | caching | skipping 'files' for 'home:texmf' from '/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9' (version mismatch) novecentowide novecentowidenormal /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Normal.otf novecentowidebold novecentowidebold /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Bold.otf novecentowidebook novecentowidebook /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Book.otf novecentowidedemibold novecentowidedemibold /home/pavneet/.fonts/opentype/Novacento/Novecentowide-DemiBold.otf novecentowidelight novecentowidelight /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Light.otf novecentowidemedium novecentowidemedium /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Medium.otf novecentowidenormal novecentowidenormal /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Normal.otf novecentowideregularnovecentowidenormal /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Normal.otf $ mtxrun --script fonts --list --info --pattern=novecentowidelight resolvers | trees | analyzing 'home:texmf' resolvers | caching | skipping 'files' for 'home:texmf' from '/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9' (version mismatch) mtx-fonts | mtx-fonts | mapping : novecentowidelight mtx-fonts | fontname: novecentowidelight mtx-fonts | fullname: novecentowidelight mtx-fonts | filename: /home/pavneet/.fonts/opentype/Novacento/Novecentowide-Light.otf mtx-fonts | family : novecentowide mtx-fonts | weight : light mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | subfont : mtx-fonts | fweight : mtx-fonts | mtx-fonts | gpos features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | kern dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | mtx-fonts | aalt dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | case dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | dnom dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | frac dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | locl latn plk rom mtx-fonts | numr dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | pnum dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | salt dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | ss01 dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | ss02 dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | ss03 dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | ss04 dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | ss05 dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | sups dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | tnum dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | zero dflt dflt mtx-fonts | latn dflt plk rom mtx-fonts | -- Pavneet Arora m: 647.406.6843
[NTG-context] Template for handling editorial content in a large book project
I am working on a large book project. What I need done in ConTeXt is something similar to what Boris presented at TUG 2015: http://tug.org/tug2015/abstracts/veytsman-access.txt In other words, the output should address different audiences. In my case, I want the full project to continue to contain editorial comments, or notes by the author. I am thinking of using both margin notes, and specially styled paragraphs (narrower, font change, etc.). Then depending on the target audience, reader or editor, the editorial comment could be included or not. Is there a recommended design pattern that I could use for this type of work? advTHANKSance. -- Pavneet Arora m: 647.406.6843 Waroc Informatikt: 416.937.9276 ___ 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] margindata does not work in latest beta
Hi, margindata have stopped to work in the latest beta. Simple test \setuplayout [leftmargin=2cm] \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large-scale \inleft{100}user; the designer should also write the first user manual. \stoptext works with 2015.07.24 13:58, no output in margin with 2015.08.04 01:25 All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] margindata does not work in latest beta
Hi Thomas, Your file gives the expected result here, with ConTeXt ver: 2015.08.05 16:35 MKIV beta fmt: 2015.8.7 int: english/english Please see the attached output. Best regards: OK margindata.pdf Description: Adobe PDF document On 08 Aug 2015, at 14:26, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: Hi, margindata have stopped to work in the latest beta. Simple test \setuplayout [leftmargin=2cm] \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large-scale \inleft{100}user; the designer should also write the first user manual. \stoptext works with 2015.07.24 13:58, no output in margin with 2015.08.04 01:25 All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Template for handling editorial content in a large book project
On Sat, 8 Aug 2015, Pavneet Arora wrote: I am working on a large book project. What I need done in ConTeXt is something similar to what Boris presented at TUG 2015: http://tug.org/tug2015/abstracts/veytsman-access.txt In other words, the output should address different audiences. In my case, I want the full project to continue to contain editorial comments, or notes by the author. I am thinking of using both margin notes, and specially styled paragraphs (narrower, font change, etc.). Then depending on the target audience, reader or editor, the editorial comment could be included or not. Is there a recommended design pattern that I could use for this type of work? I am not sure I completely understand your question, but have a look at modes: http://wiki.contextgarden.net/Modes Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)
Dear Wolfgang, You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte \stophanging \stopframedtext \stoptext Wolfgang Thank you for letting me know the command “starthanging”. I tried the command “\startfiguretext … \stopfiguretext”, and found that there is no text below the square. \startframedtext[width=\textwidth]{ \startfiguretext[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth \stopfiguretext} \stopframedtext Your example worked fine, but if we replace tufte by knuth, then text is written over the square while the tufte’s text was witten surround the square. Is it expected result? Thank you again. Best regards, Dalyoung ___ 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] Text around a figure in a framedtext (Wolfgang Schuster)
Hi Jeong, You are right, but probably this is due to the way the source file knuth.tex is encoded: if you replace \input knuth by the text itself, that is by the following Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large--scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt TEX significantly. If I had not participated fully in all these activities, literally hundreds of improve- ments would never have been made, because I would never have thought of them or perceived why they were important. But a system cannot be successful if it is too strongly influenced by a single person. Once the initial design is complete and fairly robust, the real test begins as people with many different viewpoints undertake their own experiments. then the text is wrapped around the figure when using \starthanging. Best regards: OK On 08 Aug 2015, at 15:49, Jeong Dal hak...@me.com wrote: Dear Wolfgang, You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte \stophanging \stopframedtext \stoptext Wolfgang Thank you for letting me know the command “starthanging”. I tried the command “\startfiguretext … \stopfiguretext”, and found that there is no text below the square. \startframedtext[width=\textwidth]{ \startfiguretext[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth \stopfiguretext} \stopframedtext Your example worked fine, but if we replace tufte by knuth, then text is written over the square while the tufte’s text was witten surround the square. Is it expected result? Thank you again. Best regards, Dalyoung ___ 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] issues with typeface selection
Pablo Rodriguez mailto:oi...@gmx.es 8. August 2015 13:22 Many thanks for your help, Wolfgang. Of course, you are right. I know that, but I mistyped it. Although I still having problems with foregroundstyle, such as in: \definefontfamily[newtimes][serif][FreeSerif] \definefontfamily[droidserif][serif][Droid Serif] \setupbodyfont[palatino, 12pt] \setuphead[section][style=\newtimes\tfx] \starttext \section{Comparision} \startxtable \startxrow \startxcell[foregroundstyle=\newtimes\tfx] \ConTeXt\stopxcell \startxcell[foregroundstyle=\droidserif\tfx] \ConTeXt\stopxcell \stopxrow \stopxtable \stoptext Is there a way to add both commands to foregroundstyle? Or how can I get both commands in the xcell? All I can tell at the moment is that the problem is related to the “x” font size. \starttext \startxtable \startxrow \startxcell[foregroundstyle=\txx] % this fails: foregroundstyle=\tx \CONTEXT \stopxcell \stopxrow \stopxtable \stoptext BTW: Can you avoid using fonts which aren’t available on all systems. 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] Text around a figure in a framedtext (Wolfgang Schuster)
Jeong Dal mailto:hak...@me.com 8. August 2015 15:49 Dear Wolfgang, Thank you for letting me know the command “starthanging”. I tried the command “\startfiguretext … \stopfiguretext”, and found that there is no text below the square. \startframedtext[width=\textwidth]{ \startfiguretext[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth \stopfiguretext} \stopframedtext Your example worked fine, but if we replace tufte by knuth, then text is written over the square while the tufte’s text was witten surround the square. Is it expected result? The \starthangaround environment reserves space for the image etc. only for the first paragraph while \placefigure includes more paragraphs if necessary. 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] Template for handling editorial content in a large book project
Perfect. I think that modes will work nicely. To further explain my use case: I have a manuscript, which I would like to continue to evolve with editorial comments, suggestions, ideas for further development (some generated by the author, others by reviewers). At any given time the text of the document is lagging the editorial input. Revisions of the project are under mercurial source code control. The primary view of the document is to be a publication ready version, but in its draft form, the author's version should include the work-in-progress. Eventually, the editorial comments may diminish or be left for another day, and the work-in-progress will get incorporated into the main text. The publication view is useful if you have multiple people reviewing the book, and you don't want to proliferate the union of all editorial comments into the review copy. I wanted to capture this author-editor workflow under ConTeXt. I think modes will be just what I need. Thanks. On 08Aug15, Aditya Mahajan wrote: On Sat, 8 Aug 2015, Pavneet Arora wrote: I am working on a large book project. What I need done in ConTeXt is something similar to what Boris presented at TUG 2015: http://tug.org/tug2015/abstracts/veytsman-access.txt In other words, the output should address different audiences. In my case, I want the full project to continue to contain editorial comments, or notes by the author. I am thinking of using both margin notes, and specially styled paragraphs (narrower, font change, etc.). Then depending on the target audience, reader or editor, the editorial comment could be included or not. Is there a recommended design pattern that I could use for this type of work? I am not sure I completely understand your question, but have a look at modes: http://wiki.contextgarden.net/Modes Aditya -- Pavneet Arora m: 647.406.6843 Waroc Informatikt: 416.937.9276 ___ 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] The `\somewhere`-macro
The wiki states on page http://wiki.contextgarden.net/Latex_Packages#varioref that the macro `\somewhere` can be used to get same behaviour as varioref gives in LaTeX: varioref Context provides similar functionality using \somewhere Some more searching around made me find http://wiki.contextgarden.net/Command/somewhere There I can see, that I have to provide 2 text-arguments in curly braces and the references name in squarebrackets. So I did exactly that in an experiment. \somewhere{Foo}{Bar}[foo:bar] This does create a clickable “Foo” when the reference exists somewhere in the document, independent off the fact that this reference is on the same page or anywhere else. When the reference does not exists, “foo:bar” is typeset. I am using: ```plain $ context --version mtx-context | ConTeXt Process Management 0.61 mtx-context | mtx-context | main context file: /usr/local/texlive/2015/texmf-dist/tex/context/base/context.mkiv mtx-context | current version: 2015.05.18 12:26 ``` Example: ```tex \setupinteraction[state=start] \starttext \startsection[title={Foo-Bar},reference={foo:bar}] Blubberblubb, \somewhere{Foo}{Bar}[foo:bar]. \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \somewhere{Foo}{Bar}[foo:bar]. \stopsection \startsection[title={Bar},reference={bar:foo}] \somewhere{Foo}{Bar}[foo:bar]. \stopsection \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 ___
[NTG-context] Can \getmarking take more than one argument?
Hello, I currently use the following to define my even and odd page headers. — \startsetups[header] {\doifoddpageelse {\getmarking[section]} {\getmarking[chapter]} } \doiftextelse {\getmarking[chapter]} \stopsetups — The problem is that some of my ‘section’s are not sections, but ‘subject’s (because I don’t want that section heading to appear in the TOC). As a result, my header is blank on the ‘subject’ pages. Is it possible to define getmarking to take either a section or a subject, somehow? Listing them both separated by a coma (\getmarking[section,subject]) produced no result. I also tried: — {\doifoddpageelse {\getmarking[section]} {\getmarking[subject]} {\getmarking[chapter]} — …but that caused the subject and the chapter to both be printed in the header. Many thanks for any help. Talal ___ 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 ___