[NTG-context] Anyone managed a tabulated table of contents

2020-05-25 Thread Bruce Horrocks
[A4] [A4] \setupinteraction [state=start] \setuplist [chapter] [ alternative=command, %interactive command=\myTOCrow, before=\myTOCbefore, after=\myTOCafter ] % #1 == Section number; #2 == text; #3 == page number \define[3]\myTOCrow{\NC #2 \NC dummy \NC John Doe \NC #3 \NC\NR

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread context
to each (sub)title to download appropriate manuals as .zip, so to get: " Up-to-date Documentation (title) [download-all-up-to-date-manuals-in-this-section-inc-subsections (hlink)] ... Graphics and Colors (subtitle) [download-all-graphics-and-colors-manuals-inc-subsections (hlink)] ... &

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Hans Hagen
U+0031:1 : 4 document>1 section>1 sectioncaption>1 sectionnumber>1 backend > tags > U+0053:S => U+0074:t : 5 document>1 section>1 sectioncaption>1 sectiontitle>1 backend > tags > U+0054:T => U+0068:h : 7 document>1 section>

[NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
This is a paragraph \stopparagraph \startmycommand This is mycommand \stopmycommand \stopsection \stoptext ``` If I compile using `context --trackers=structures.tags filename`, I get ``` backend > tags > U+0031:1 => U+0031:1 : 4 document>1 section>1 s

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-17 Thread Henning Hraban Ramm
without hyperlinks >>> >>> alternative=interactive : Custom TOC with hyperlinks >> >> Thank you! Wikified: https://wiki.contextgarden.net/Command/setuplist > > Thank-you Wolfgang for the quick reply and also Hraban for beating me to it > on the Wiki - I

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-16 Thread Henning Hraban Ramm
\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

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-16 Thread Wolfgang Schuster
[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

Re: [NTG-context] Custom list layout with PDF bookmarks

2020-05-16 Thread Henning Hraban Ramm
etupinteraction[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 o

[NTG-context] Custom list layout with PDF bookmarks

2020-05-15 Thread Bruce Horrocks
{\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

Re: [NTG-context] Shift tabulate into margin and center

2020-05-05 Thread Tim Steenvoorden
r=0pc, > height=49pc, > footer=0pc, > bottomdistance=2.5pc, > bottom=1pc, > location=middle] > > \define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)} > > \section{First} > \subsection{First first} > > \input tufte > > \setupnarrower[left=

[NTG-context] Shift tabulate into margin and center

2020-05-04 Thread Tim Steenvoorden
=middle] \define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)} \section{First} \subsection{First first} \input tufte \setupnarrower[left=-9pc] \startnarrower[left] \startframedtext[frame=off,topframe=on,bottomframe=on,align=middle,width=\fullwidth] The whole frame should

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread ntg
> On 2 May 2020, at 17:08, Wolfgang Schuster > wrote: [comprehensive answer snipped] Thank-you, very helpful. > I attached a slightly modified version of your project structure to show a > different way to organize documents. What I would change is to use a better > sectio

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread Wolfgang Schuster
does this by itself in most cases but it can fail). \definebodyfontenvironment [14pt] I attached a slightly modified version of your project structure to show a different way to organize documents. What I would change is to use a better section name for each article, e.g. \Article

Re: [NTG-context] Unicode normalization and Hebrew in ConTeXt

2020-04-30 Thread Joey McCollum
Okay! I have not figured out how to add a new page to the wiki, but I was able to add a section to the end of the "Arabic and Hebrew" page ( https://www.contextgarden.net/Arabic_and_Hebrew) discussing the issue, providing a test, and briefly describing the fix. Joey On Thu, Apr 30, 202

Re: [NTG-context] two additional pagenumber series

2020-04-29 Thread Pablo Rodriguez
pagenumber series using \definecounter? > > While I think there are better solutions to your problem (e.g. adding > the section number as prefix) you can increment a counter with each page. Many thanks for your reply, Wolfgang. The text structure is more complex. The document uses sections as

Re: [NTG-context] two additional pagenumber series

2020-04-29 Thread Wolfgang Schuster
counter. Although method is page, this seems to be related to a different issue. My question is: how could I get new pagenumber series using \definecounter? While I think there are better solutions to your problem (e.g. adding the section number as prefix) you can increment a counter with each

Re: [NTG-context] Typesetting Markdown - Part 8

2020-04-28 Thread Henning Hraban Ramm
>> cd $HOME/dev/writing/book >> ./build -V -c -y -i jekyll-hyde -d standard-ebooks/jekyll-hyde \ >> -b robert-louis-stevenson_the-strange-case-of-dr-jekyll-and-mr-hyde >> >> This is noted at the bottom of the preamble section. >> >> Enjoy! >> &g

Re: [NTG-context] Typesetting Markdown - Part 8

2020-04-28 Thread Henning Hraban Ramm
d themes.zip archives, you can > build a book using: > > cd $HOME/dev/writing/book > ./build -V -c -y -i jekyll-hyde -d standard-ebooks/jekyll-hyde \ > -b robert-louis-stevenson_the-strange-case-of-dr-jekyll-and-mr-hyde > > This is noted at the bottom of the preamble section. >

Re: [NTG-context] Typesetting Markdown - Part 8

2020-04-28 Thread Jan-Erik Hägglöf
cd $HOME/dev/writing/book > ./build -V -c -y -i jekyll-hyde -d standard-ebooks/jekyll-hyde \ > -b robert-louis-stevenson_the-strange-case-of-dr-jekyll-and-mr-hyde > > This is noted at the bottom of the preamble section. > > Enjoy! > > On Tue, Apr

Re: [NTG-context] Typesetting Markdown - Part 8

2020-04-28 Thread Thangalin
-jekyll-and-mr-hyde This is noted at the bottom of the preamble section. Enjoy! On Tue, Apr 28, 2020 at 7:12 AM Jan-Erik Hägglöf wrote: > > Is there a running example ? I’m not sure how to fill in the commandline > > > > 28 apr. 2020 kl. 09:33 skrev Henning Hraban Ramm : &

Re: [NTG-context] TOC- removing Contents 0

2020-04-22 Thread Pablo Rodriguez
ts  0 > > In fact the ToC appears on page 1, but regardless of the page it is > appearing on, is there a way I can prevent that line from being produced > as part of the ToC? I assume it would be something I need to do in the > following setup: > > \setupcombinedlist >

Re: [NTG-context] TOC- removing Contents 0

2020-04-22 Thread Henning Hraban Ramm
t; \setupcombinedlist > [content] > [list={chapter,section,title,subject,subsection}] > \setuplist[chapter][style=normal,alternative=b, before=] > > Grateful for any help with this, Usually the unnnumbered headers aren’t part of any ToC, but since you include title, you also get the T

[NTG-context] TOC- removing Contents 0

2020-04-21 Thread jbf
of the page it is appearing on, is there a way I can prevent that line from being produced as part of the ToC? I assume it would be something I need to do in the following setup: \setupcombinedlist   [content]   [list={chapter,section,title,subject,subsection}] \setuplist[chapter][style=normal

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
section and access the value of this macro with the > beforesection-key. You should ensure the content if this temporary macro > is cleared when your conditional is false. > > \setuphead >[section] >[beforesection=\getvariable{xml}{beforesection}] > > \startxmlsetups

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 20.04.2020 um 18:55: Dear list, I have the following sample: \startbuffer[demo] first second \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|section}{xml:*} \stopxmlsetups

[NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] first second \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|section}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc

Re: [NTG-context] New installation setup

2020-04-19 Thread Hans Hagen
health crisis, time has slowed down anyway.) Sounds good. Is documentation part of (3) or can it be another section? It's part of (1) as it is now but of course we can have an additional one (5) for extra documentation. While I want to install "everything" on my work machine, it

Re: [NTG-context] New installation setup (was: Cannot build plain format)

2020-04-19 Thread Henning Hraban Ramm
ons etc. But then, due to the current health > crisis, time has slowed down anyway.) Sounds good. Is documentation part of (3) or can it be another section? While I want to install "everything" on my work machine, it would make sense to restrict a server installation (or a be

Re: [NTG-context] \placelist[chapter][counter=realpage] not working

2020-04-11 Thread Wolfgang Schuster
w instance which uses the counter of another instance, e.g. you create two enumerations but both of them share one counter. Another problem is that you assume counter refers to the page value while it would make more sense to link it to the section value (or float number for figures or tab

Re: [NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes

2020-04-08 Thread Christoph Hintermüller
nal macros. > What i'm not able to figure are the following things: > 1) How can i set/modify the display attribute of the resulting > div.myclass section in the generated *_templates.css file. > Per default the display attribute is set to "inline" while i need > "block&q

[NTG-context] xhtml export internal command \dostarttaging modify display and other XML/XHTML attributes

2020-04-05 Thread Christoph Hintermüller
attribute of the resulting div.myclass section in the generated *_templates.css file. Per default the display attribute is set to "inline" while i need "block" or "flex" (not jet decided" which). 2) How can i predefine the white-space css attribute to pre-wrap

Re: [NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-03 Thread Benjamin Buchmuller
Thank you, Wolfgang, this works; apparently, the chapter has to be set with \startchapter … \stopchapter and footnotes after \chapter won’t be flushed unless \startchapter \footnote{something} \stopchapter. This makes sense to me. I guess, internally \head (e.g. \section, \chapter etc

Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread T. Kurt Bond
Yes, that did the trick! Thanks! On Mon, Mar 23, 2020 at 3:15 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > T. Kurt Bond schrieb am 23.03.2020 um 16:50: > > It turns out that the extra whitespace before and after the section > > headers in the bo

Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread Wolfgang Schuster
T. Kurt Bond schrieb am 23.03.2020 um 16:50: It turns out that the extra whitespace before and after the section headers in the body appears when I put \startcolumns[n=2] before the body text and \stopcolumns after it.  Here's the MWE, just slightly modified from your example: begin

Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread T. Kurt Bond
It turns out that the extra whitespace before and after the section headers in the body appears when I put \startcolumns[n=2] before the body text and \stopcolumns after it. Here's the MWE, just slightly modified from your example: begin example \setuphead [chapter,section,subsection

Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-22 Thread Wolfgang Schuster
unwanted whitespace between the entries in the Table of Contents. * It has unwanted whitespace before and after section headings, despite me having "before={},after={}" in the \setuphead commands for all the levels of sections. * And it had a large unwanted white sp

[NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-22 Thread T. Kurt Bond
ed whitespace before and after section headings, despite me having "before={},after={}" in the \setuphead commands for all the levels of sections. - And it had a large unwanted white space between paragraphs until I \setupwhitespace[none]. I'd prefer a little bit of white spac

Re: [NTG-context] Indenting entries in the table of contents?

2020-03-21 Thread Richard Mahoney | Indica et Buddhica
This is what I'm using at the moment: % Tables of Contents \setuplist[part][textstyle={\sl},pagestyle={\tf}] \setuplist[chapter][textstyle={\sl},pagestyle={\tf},label=yes,width=fi t,stopper=~~] \setuplist[section][width=42pt,margin=10pt,style={\tf}] \setuplist[subsection][width=42pt,margin

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
gt;> > correction at the end of the file. I'm running out of time, does anyone >>> > have a model to share ? >>> >>> Hi Fabrice, >>> >>> I don’t have a model, but the following sample could give you a hint: >>> >>> \setupintera

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
gt;> > correction at the end of the file. I'm running out of time, does anyone >>> > have a model to share ? >>> >>> Hi Fabrice, >>> >>> I don’t have a model, but the following sample could give you a hint: >>> >>> \setupinteraction[state=start, fo

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
>> > have a model to share ? >> >> Hi Fabrice, >> >> I don’t have a model, but the following sample could give you a hint: >> >> \setupinteraction[state=start, focus=standard] >> \starttext >> \startbodymatter >> \chapter[lesson-1]{Lesson 1} >

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
\setupinteraction[state=start, focus=standard] > \starttext > \startbodymatter > \chapter[lesson-1]{Lesson 1} > \section[exercises-1]{Exercises 1} > These are the exercises. > > Here you have their key (\about[key-1]). > \stopbodymatter > \startappendices

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Pablo Rodriguez
ve a model to share ? Hi Fabrice, I don’t have a model, but the following sample could give you a hint: \setupinteraction[state=start, focus=standard] \starttext \startbodymatter \chapter[lesson-1]{Lesson 1} \section[exercises-1]{Exercises 1} These are the exercises. Here you hav

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 15.03.2020 um 20:32: Hi Hans, here you have the sample: \setuppapersize[A6] \setupinteraction[state=start] \enabledirectives[references.border] \setupbodyfont[pagella] \starttext \placelist[section] [alternative=d

[NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Pablo Rodriguez
Hi Hans, here you have the sample: \setuppapersize[A6] \setupinteraction[state=start] \enabledirectives[references.border] \setupbodyfont[pagella] \starttext \placelist[section] [alternative=d, style=\it] \section{Section 1} \section

Re: [NTG-context] Only-black emojis in LMTX

2020-03-10 Thread Henri Menke
On 3/11/20 11:35 AM, Alejo Barrio Blaya wrote: > I'm trying to get emojis working. The examples that do, are only printing > plain black emojis. Not colors, nor greyscales. > I'm using the latest beta of LMTX. See section 5.2.13 Color in the fonts manual. http://www.pragma-ade.nl/genera

Re: [NTG-context] How do I set TeXShop to use mtxrun on a .tex file?

2020-02-29 Thread Otared Kavian
Hi Gerben, There is a dedicated page for this: https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS Please have a look to the section Running LMTX from TeXShop Best regards: OK > On 29 Feb 2020, at 12:34, Gerben Wierda wrote: > > I’d like to use Te

[NTG-context] Chapters, sections, usw

2020-02-24 Thread Jean-Pierre Delange
}] \setupfooter[style={\itxx}] \setupheadertexts[ Cours de Philosophie][][][{\getmarking[section]}] \setupfootertexts[][][][© J.-P. Delange, 2018-2020 — Texte composé avec ConTeXt - Reproduction soumise à autorisation.] \setupsymbolset[text] \starttext \startchapter[title ={Introduction

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Fabrice Couvreur
en. 14 févr. 2020 à 16:43, Fabrice L a > écrit : > >> Hi, >> >> Le 13 févr. 2020 à 16:45, Fabrice Couvreur >> a écrit : >> >> >> How to have the color defined by {yellow!60!black} with Metapost

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
it : > Hi, > > Le 13 févr. 2020 à 16:45, Fabrice Couvreur > a écrit : > > > How to have the color defined by {yellow!60!black} with Metapost ? > > > color MyColor ; MyColor := .6[yellow,black] ; > > See metafun manual, section 1.13. >

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice L
Hi, > Le 13 févr. 2020 à 16:45, Fabrice Couvreur a > écrit : > How to have the color defined by {yellow!60!black} with Metapost ? color MyColor ; MyColor := .6[yellow,black] ; See metafun manual, section 1.13. > Thank you. > Fabrice Fabri

Re: [NTG-context] line numbering within frame

2020-01-25 Thread Wolfgang Schuster
amed{Framed text!} \placeframed[customframe]{Framed text!} \stoptext end example When you can combine this with the previous section which explained grouping and overwrite values within the group. After the group has ended the new values are forgotten and the instance uses what was set befor

Re: [NTG-context] another columnset issue (solved)

2020-01-19 Thread Henning Hraban Ramm
] \starttext \dorecurse{3}{ \startchapter{\fakewords{2}{5}} \dorecurse{3}{ \section{\fakewords{3}{10}} \fakewords{10}{50}\par \fakewords{10}{50}\par } \stopchapter } \stoptext ___ If your question is of interest to others

Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm
> Am 2020-01-20 um 05:57 schrieb Wolfgang Schuster > : >> I already learned that \setuplayout[grid=strut] makes more problems than it >> solves while fontfeature dimensions=strut is good;I should avoid frames in >> section titles (not necessarily, but it’s more co

Re: [NTG-context] alignment parameters

2020-01-19 Thread Wolfgang Schuster
On Sun, 19 Jan 2020 22:44:02 +0100 Henning Hraban Ramm wrote: > > > Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster > > : > >>> > >>>> Hi, for my section titles I’m looking for the alignment parameters that > >>>> give me: > >

Re: [NTG-context] columnset issues

2020-01-19 Thread Henning Hraban Ramm
> Am 2020-01-19 um 23:38 schrieb Henning Hraban Ramm : > – Sometimes the multi-line section title is moved into the previous paragraph. > These issues get fixed with grid=yes. BTW: If you use grid=strut, the section title is always moved up into the previous paragraph, i.e. it’s alway

[NTG-context] columnset issues

2020-01-19 Thread Henning Hraban Ramm
Hi again. I use columnsets and wanted to setup my section titles to have one blank line before and none after them. If I use before={\blank[line]}, I sometimes don’t get that blank line. If I use \blank in my section command, I get it always, but also if the section starts on top of a column

Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm
> Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster > : >>> >>>> Hi, for my section titles I’m looking for the alignment parameters that >>>> give me: >>>> - left aligned >>>> - no hyphenation (or only where I set breakpoints manu

Re: [NTG-context] alignment parameters

2020-01-19 Thread Wolfgang Schuster
On Sun, 19 Jan 2020 20:56:53 +0100 Henning Hraban Ramm wrote: > > > Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster > > : > > > > On Sun, 19 Jan 2020 13:59:15 +0100 > > Henning Hraban Ramm wrote: > > > >> Hi, for my section titles I’m looking

Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm
> Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster > : > > On Sun, 19 Jan 2020 13:59:15 +0100 > Henning Hraban Ramm wrote: > >> Hi, for my section titles I’m looking for the alignment parameters that give >> me: >> - left aligned >> - no hyphenation

Re: [NTG-context] alignment parameters

2020-01-19 Thread Wolfgang Schuster
On Sun, 19 Jan 2020 13:59:15 +0100 Henning Hraban Ramm wrote: > Hi, for my section titles I’m looking for the alignment parameters that give > me: > - left aligned > - no hyphenation (or only where I set breakpoints manually) > - no overfull hboxes > > At the moment I ha

[NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm
Hi, for my section titles I’m looking for the alignment parameters that give me: - left aligned - no hyphenation (or only where I set breakpoints manually) - no overfull hboxes At the moment I have align={flushleft,extremestretch,nothyphenated} (would use also hz and hanging, if they don’t

Re: [NTG-context] Quotation dash issues with semantic markup

2020-01-17 Thread Wolfgang Schuster
~Speech should always have a dash at the start, but none at the end of a paragraph. \quotedash~Dialog asides should not duplicate dashes,~\endash\ he said.~\quotedash\ Also, this doesn't reflect the spacing mentioned in section \in[extra].  \quotedash~nor, as above, add ones at the end

[NTG-context] Impacts Project: Two-Page Spread

2020-01-14 Thread Thangalin
indicator line based on section heading numeric text value * Lua converts annotated Markdown to an inline image ConTeXt macro * Clipped background images for pixel-perfect two-page spread * Custom global counter to enumerate illustrations in TeX Annotations will be explained in Part 8 of the Typeset

Re: [NTG-context] fancy chapter setup

2020-01-13 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 13.01.2020 um 19:21: Am 2020-01-12 um 16:07 schrieb Henning Hraban Ramm : Since the structureuservariables of a section aren’t defined in that section’s "before", I would need a macro or buffer to define the contents of that epigraph page, like thi

Re: [NTG-context] fancy chapter setup

2020-01-13 Thread Henning Hraban Ramm
> Am 2020-01-12 um 16:07 schrieb Henning Hraban Ramm : > > Since the structureuservariables of a section aren’t defined in that > section’s "before", I would need a macro or buffer to define the contents of > that epigraph page, like this: > > That’s possible

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
Since the structureuservariables of a section aren’t defined in that section’s "before", I would need a macro or buffer to define the contents of that epigraph page, like this: \def\PreImg{Dummy} \startsetups FancyChapter \setupheadertexts[][][][] \doifelsebu

Re: [NTG-context] fancy chapter setup

2020-01-12 Thread Henning Hraban Ramm
> Am 2020-01-11 um 19:49 schrieb Rik Kabel : > 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 > s

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Henning Hraban Ramm
> Am 2020-01-11 um 19:49 schrieb Rik Kabel : > 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 > s

Re: [NTG-context] force line spacing (was: uppercase section titles: no line breaking?)

2020-01-11 Thread Henning Hraban Ramm
[8mm] \def\Blindtext{Ein Anfänger der Gitarre habe Eifer. Mönsch ärgere düch nïcht! Über Állen Wípfeln ìst Ŕüh. O Tannenbaum, wie blau sind deine Nadeln.} \starttext \Blindtext \WORD{\Blindtext} {\TitleFont\Blindtext \WORD{\Blindtext}} \stoptext In my actual use case, my usual line spacin

Re: [NTG-context] uppercase section titles: no line breaking?

2020-01-11 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 11.01.2020 um 19:38: Thank you very much! I tried a \framed to no avail. \framed needs a align setting to allow line breaks. And I thought I needed my own command since I also set color and font, but style={\MyDefinedFont\WORD} actually works. Use

Re: [NTG-context] fancy chapter setup

2020-01-11 Thread Rik Kabel
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 %% \defi

Re: [NTG-context] uppercase section titles: no line breaking?

2020-01-11 Thread Henning Hraban Ramm
What’s the matter? > > ConTeXt uses a horizontal box to place the section title which doesn't matter > when you use one of the predefined layouts because they add a vertical box > for the text to allow long texts. > > When you use the command key to create your own layout you have

Re: [NTG-context] uppercase section titles: no line breaking?

2020-01-11 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 11.01.2020 um 18:53: Hi again, I’m trying to get uppercase titles with \WORD, but they aren’t broken into lines; while \WORD works in normal text. What’s the matter? ConTeXt uses a horizontal box to place the section title which doesn't matter when you use one

[NTG-context] uppercase section titles: no line breaking?

2020-01-11 Thread Henning Hraban Ramm
Hi again, I’m trying to get uppercase titles with \WORD, but they aren’t broken into lines; while \WORD works in normal text. What’s the matter? Best, Hraban % \define[2]\MyChapter{ \WORD{#2} } \setuphead[chapter][ command=\MyChapter ] \starttext \chapter{ \input tufte } \WORD{ \input

[NTG-context] fancy chapter setup

2020-01-11 Thread Henning Hraban Ramm
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 t

Re: [NTG-context] Quotation dash issues with semantic markup

2019-12-30 Thread Hans Hagen
always have a dash at the start, but none at the end of a paragraph. \quotedash~Dialog asides should not duplicate dashes,~\endash\ he said.~\quotedash\ Also, this doesn't reflect the spacing mentioned in section \in[extra]. \quotedash~nor, as above, add ones at the end of paragraphs. \endash~he

Re: [NTG-context] \setupitemgroup[itemize],/setupitemize

2019-12-23 Thread Willi Egger
t; - In the real itemlist I have of course \startitemize (sorry for the >> ommission in the MWE >> - I misinterpreted the Wiki. There is no mentioning in the red section that >> n is possible. However the n in the green section must be used as the symbol >> with n=123 or symbol=2. >

Re: [NTG-context] \setupitemgroup[itemize],/setupitemize

2019-12-18 Thread Wolfgang Schuster
Willi Egger schrieb am 18.12.2019 um 19:58: Wolfgans, Hraban, thank you very much for this instruction! - In the real itemlist I have of course \startitemize (sorry for the ommission in the MWE - I misinterpreted the Wiki. There is no mentioning in the red section that n is possible. However

Re: [NTG-context] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Wolfgang Schuster
6in] \setupcolumnset[BookColumns:4][width=3.46in] \setuphead[section][ page=yes, Remove the page break at the begin of each section because the break happens after you start the columnset environment. The value of the beforesection key is inserted before the values from other keys are used. page=

[NTG-context] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Thangalin
th=11.75in] \setupcolumnset[BookColumns:2][width=3.46in] \setupcolumnset[BookColumns:3][width=3.46in] \setupcolumnset[BookColumns:4][width=3.46in] \setuphead[section][ page=yes, beforesection={\startcolumnset[BookColumns]}, aftersection={\stopcolumnset}, ] \setuphead[subsection][ afte

[NTG-context] Some questions regarding math typesetting

2019-12-06 Thread TeXnician
thanks for an answer. \starttext \section{One} \startitemize \item \type{\displaystyle}: $\displaystyle\sum\lim$ \item \type{\textstyle}: $\sum\lim$ \item \type{\scriptstyle}: $\scriptstyle\sum\lim$ \stopitemize \section{Two} $\underbrace{xyz}_{n}$ \section{Three} also posted at https

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-04 Thread Daniel Haid
\setupreferenceformat [chapter] [default] [prefixsegments=...] \setupreferenceformat [section] [default] [prefixsegments=...] That seems to define the segmets when refering to a chapter or section, but I need a dynamic way: I want to go back to the last common ancestor,for example to refer

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-04 Thread Wolfgang Schuster
[chapter] [default] [prefixsegments=...] \setupreferenceformat [section] [default] [prefixsegments=...] ... Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-04 Thread Daniel Haid
setupreferencestructureprefix everywhere? Something like \in[x:y][foo]. 2) Can this somehow be automated? Something like \in[auto][foo] should automatically choose y as the level of foo and x as the first level where foo and the current section differ. Best wishes, D. -- \usemodule[subsub

[NTG-context] Indenting number in TOC, particular numbering scheme, and other questions

2019-12-02 Thread Daniel Haid
module. I have looked into m-subsub.mkiv and saw no difference at all between the different levels defined there. 3. Is it possible to indent not only the section name but also the number in the TOC? Moreover, I would like to have a dot after the first three levels, but not the other ones

[NTG-context] Fwd: Re: Spurious newlines at beginning of startstop pair

2019-11-28 Thread denis . maier . lists
rtstop [cslreferences] [ > before={% > \setupnarrower[left=\cslhangindent] > \startnarrower[left]% > \setupindenting[-\leftskip,yes,first]% > \indentation% >}, >after=\stopnarrower, > ] > > \starttext >

Re: [NTG-context] Spurious newlines at beginning of startstop pair

2019-11-27 Thread Hans Hagen
[left]%         \setupindenting[-\leftskip,yes,first]%         \indentation%       },       after=\stopnarrower,     ] \starttext \section{Some title} \input ward \section{References} \startcslreferences \dorecurse{10}{\dorecurse{10}{This is a Test. }\par} \stopcslreferences \stoptext

[NTG-context] Spurious newlines at beginning of startstop pair

2019-11-27 Thread Denis Maier
,first]%         \indentation%       },       after=\stopnarrower,     ] \starttext \section{Some title} \input ward \section{References} \startcslreferences \dorecurse{10}{\dorecurse{10}{This is a Test. }\par} \stopcslreferences \stoptext

Re: [NTG-context] ConTeXt as a service

2019-11-23 Thread Henning Hraban Ramm
Fs Oh, IMO that wishlist is very demanding. I’d say it’s more or less impossible with any HTML editor. My demands were much less and well controllable: - no math, no tables - no images (they were handled differently and attached to the articles) - only simple markup (bold or italics) - not e

Re: [NTG-context] context command line interface documentation?

2019-11-18 Thread Philipp A.
> Thank you! I see it’s in the “experts” section in mtx-context.xml. I added it to the wiki, as it seems the most immediately useful (and non-experty) among those options. I think it would be best if the help would just be generated from that file to reduce the sources of truth in existence. > c

[NTG-context] \beginBLOCKS and \endBLOCKS do not work in \dorecurse

2019-11-11 Thread Romain Diss
define them \dorecurse{2}{ \beginquestion[first] To be, or not to be? \endquestion \section{Let's see what blocks we've got.} \useblocks[question] \section{We've seen what blocks we've got. Let's take another look at that first question.} \useblocks[question][first

Re: [NTG-context] Help wanted: index with chapter and section numbers

2019-11-10 Thread Wolfgang Schuster
Otared Kavian schrieb am 10.11.2019 um 10:38: Hi, In a math text book, I would like to create an index of some material where chapter and section numbers are given instead of a page number. For instance if the result « 3.2.5 Banach Fixed Point Theorem » is stated in section 2 of chapter 3

[NTG-context] Help wanted: index with chapter and section numbers

2019-11-10 Thread Otared Kavian
Hi, In a math text book, I would like to create an index of some material where chapter and section numbers are given instead of a page number. For instance if the result « 3.2.5 Banach Fixed Point Theorem » is stated in section 2 of chapter 3, and is the fifth numbered statement

[NTG-context] Formatting in the toc

2019-11-09 Thread Calum MacLeod
line as well. Not only does it format the section heading (\addsec) to have bold and italics (without bold), it formats the corresponding entry in the toc in exactly the same way. How can I make a similar command for ConTeXt, please

Re: [NTG-context] How to sort list of sections?

2019-11-08 Thread Rik Kabel
On 11/7/2019 16:22, jdh wrote: I get no difference using criterium=previous versus criterium=local. Try this extended example to see the difference:  \setuphead[section][number=no]  \starttext  \startchapter[title=foo]   \placelist[section][criterium=local,order=title

Re: [NTG-context] How to sort list of sections?

2019-11-08 Thread Hans Hagen
On 11/7/2019 9:45 PM, Kerry Sainsbury wrote: Thanks Hans. For the sake of any future users who may have stumbled across this post I want to point out that if you want the list of sections to appear at the /end /of your document you need to use "criterium=previous" \placeli

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread jdh
nt > you need to use > "criterium=previous" > > \placelist[section][criterium=previous,order=title] > > On Fri, 8 Nov 2019 at 04:52, Hans Hagen wrote: > > On 11/7/2019 12:13 AM, Kerry Sainsbury wrote: > > Hi Folks, > > > > If sec

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Kerry Sainsbury
Thanks Hans. For the sake of any future users who may have stumbled across this post I want to point out that if you want the list of sections to appear at the *end *of your document you need to use "criterium=previous" \placelist[section][criterium=previous,order=title] On Fri,

Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Hans Hagen
On 11/7/2019 12:13 AM, Kerry Sainsbury wrote: Hi Folks, If sections are just lists, and lists can be sorted, how can I sort a list of sections? My actual goal is to generate an 'index' that is made up of section headings. Here's my attempt that does not work. here's one that does

<    4   5   6   7   8   9   10   11   12   13   >