[NTG-context] stoppers in section heading without having stoppers in references?
Wolfgang Schuster
schuster.wolfgang at gmail.com
Fri Apr 19 06:46:43 CEST 2013
Am 19.04.2013 um 05:16 schrieb Sanjoy Mahajan <sanjoy at olin.edu>:
> In MkIV, is there a way to get a stopper (e.g. ".") in the section
> heading, along the lines of "1. First heading" but without a reference
> to it having the stopper? Thus, the reference should be just "In
> Chapter 1 we learn", not "In Chapter 1. we learn"?
>
> I have tried many variants of the following minimal example:
>
> \setuphead[chapter][sectionstopper=.]
> \definereferenceformat [inchapter] [text={Chapter~}]
>
> \starttext
> \chapter[one]{First heading}
>
> \input knuth
>
> \inchapter[one] we learn.
>
> \stoptext
\defineprocessor[dostopper][right=.]
\defineprocessor[nostopper][right=]
\defineconversionset[stopperconversionyes][][dostopper->n]
\defineconversionset[stopperconversionnop][][nostopper->n]
\setuphead[chapter][sectionconversionset=stopperconversionyes]
%\setupreferencestructureprefix[chapter][default][prefixconversionset=stopperconversionnop]
\setupreferencestructureprefix[default][prefixconversionset=stopperconversionnop]
\starttext
\chapter[one]{First heading}
\input knuth
In \in{Chapter}[one] we learn.
\stoptext
Wolfgang
More information about the ntg-context
mailing list