Changes

Jump to navigation Jump to search
901 bytes added ,  13:02, 20 April 2013
wikify Wolfgang's solution on how to put stopper in heading but not reference
==Putting a separator in the heading but not the reference==
 
Sometimes you want to have a separator in the heading but not the reference. For example, you want section heading to look like "3. This is a new section" (with a dot after the section number), but references to the section should not have the dot (they should be like "In section 3 we found..."). Wolfgang Schuster gave a solution on the list:
 
<texcode>
\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
 
</texcode>
{{todo|Describe what the arguments of the commands do and how the commands work}}
{{Getting started navbox}}`
127

edits

Navigation menu