Re: [NTG-context] How to make a block of text narrower?
On 2022-11-15 21:49, Joel via ntg-context wrote: I need to make a section of text in my document narrower, about .\textwidth. Basically the text has normal alignment and everything, just instead of filling \textwidth, its compressed so there is a larger white space to the right. I've tried dozens of things, but cannot get a good solution, every solution has strange other effects. The best thing that has worked so far is |\setuplayout[width=3in] But the problem with this solution is then I cannot get it to return to the original settings afterward. --Joel | https://wiki.contextgarden.net/Command/startnarrower___ 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] How to break margin notes across page breaks?
How can I allow margin text to break across the page breaks? I have a document with many \inmargin code. The problem I'm finding is that sometimes I have a lot of items in the margin. I hope this margin details can break across the page and continue onto the next page. The problem is instead it just runs off the print boundaries of the page. See this sample code for an example: \starttext \input knuth \inmargin{\input knuth } \input knuth \input knuth \input knuth \input knuth \input knuth \input knuth \stoptext How can I allow margin notes to break across pages instead of running off the page boundaries? --Joel ___ 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] How to make a block of text narrower?
I need to make a section of text in my document narrower, about .\textwidth. Basically the text has normal alignment and everything, just instead of filling \textwidth, its compressed so there is a larger white space to the right. I've tried dozens of things, but cannot get a good solution, every solution has strange other effects. The best thing that has worked so far is \setuplayout[width=3in] But the problem with this solution is then I cannot get it to return to the original settings afterward. --Joel ___ 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] Do environment files add implicit \starttext ... \stopttext
On 11/15/22 13:22, Denis Maier via ntg-context wrote: > Hi, > > if I process an XML buffer, I’ve noticed I need to wrap the > \xmlprocessbuffer in a \starttext ... \stoptext pair. > [] > However, if I have the XML and the setups in dedicated files, there > seems to be no need for \starttext ... \stoptext. > [] > Therefore my question: > > Does the use –environment automatically wrap the processed file in > \starttext ... stoptext ? Hi Denis, try a source file with this contents: \ConTeXt\ is great. with the following environment: \setuppapersize[A6] \setupbodyfont[pagella] It looks like when --environment is used, ConTeXt assumes that the main source only contains text. Which makes sense (at least, to me). Just in case it might help, Pablo ___ 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] new upload
On 11/14/22 23:02, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded a new version. Hi Hans, many thanks for the new upload. Now it is updated fine in my rather weird Windows system (at work). Many thanks for the new version again, Pablo ___ 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] Do environment files add implicit \starttext ... \stopttext
Hi, if I process an XML buffer, I've noticed I need to wrap the \xmlprocessbuffer in a \starttext ... \stoptext pair. %%% \startbuffer[test] a paragraph of text another paragraph of text \stopbuffer \startxmlsetups xml:demo \xmlsetsetup{\xmldocument}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:demo} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\endgraf \stopxmlsetups \starttext \xmlprocessbuffer{test}{test}{} \stoptext %%% However, if I have the XML and the setups in dedicated files, there seems to be no need for \starttext ... \stoptext. %%% text.xml a paragraph of text another paragraph of text %%% %%% setups.tex \startxmlsetups xml:demo \xmlsetsetup{\xmldocument}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:demo} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\endgraf \stopxmlsetups %%% Running context text.xml -environment=setups.tex gives me a proper PDF without errors. Therefore my question: Does the use -environment automatically wrap the processed file in \starttext ... stoptext ? If not, what's the reason for this behaviour? Am I missing something? Best, Denis ___ 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 ___