ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Can't replicate a simple example in the wikipage
@ 2021-11-15 16:15 A A via ntg-context
  2021-11-15 16:21 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: A A via ntg-context @ 2021-11-15 16:15 UTC (permalink / raw)
  To: ntg-context; +Cc: A A


[-- Attachment #1.1: Type: text/plain, Size: 495 bytes --]

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?

Regards,

Amine

[-- Attachment #1.2: Type: text/html, Size: 790 bytes --]

[-- Attachment #2: start_stop_sectioning.pdf --]
[-- Type: application/pdf, Size: 6861 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Can't replicate a simple example in the wikipage
  2021-11-15 16:15 Can't replicate a simple example in the wikipage A A via ntg-context
@ 2021-11-15 16:21 ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-11-15 16:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users, A A via ntg-context; +Cc: Wolfgang Schuster


[-- Attachment #1.1: Type: text/plain, Size: 933 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 1603 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-15 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 16:15 Can't replicate a simple example in the wikipage A A via ntg-context
2021-11-15 16:21 ` Wolfgang Schuster via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).