A A via ntg-context schrieb am 15.11.2021 um 17:15:
Dear All,

I'm trying to run one of the examples in the ConTeXt wiki page https://wiki.contextgarden.net/Titles

Here's the code:
*
*
*\setuppapersize[A5]

\section[sec:old]{Old Section}

This is an old-style \ConTeXt\ section.

\startsection
[
    title={New Section}
    reference=sec:new,
  ]
This is a new-style section.
\stopsection*
*
*
However, my compiled pdf looks nothing like the example on the wiki. What am I doing wrong? Is there anything wrong with my ConTeXt settings?

1. You need \starttext at the begin and \stoptext at the end of your document.

2. You forgot a comma after the title entry.

\starttext

\section[sec:old]{Old Section}

This is an old-style \ConTeXt\ section.

\startsection
  [title={New Section},
   reference=sec:new]

This is a new-style section.

\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to