[NTG-context] fancybreak module

Clyde Johnston clyde at johnston.name
Mon Jan 25 18:44:06 CET 2021


Hmm... That did not work for me.  The example on the garden
(https://wiki.contextgarden.net/Command/setupfancybreak) is not working
either.  I get a "tex error       > tex error on line 2 in file ./mwe.tex:
Undefined control sequence" on \setupfancybreak.

\usemodule[fancybreak]
\setupfancybreak[symbol=star]

\starttext
  Paragraph
  \fancybreak
  Paragraph
\stoptext

Thanks,
Clyde


-----Original Message-----
From: Wolfgang Schuster [mailto:wolfgang.schuster.lists at gmail.com] 
Sent: Monday, January 25, 2021 7:22 PM
To: mailing list for ConTeXt users
Cc: Clyde Johnston
Subject: Re: [NTG-context] fancybreak module



Clyde Johnston schrieb am 25.01.2021 um 17:55:
> I just realized that \starbreak was one of my own macros (defined ages 
> ago) so the MWE should be:
> 
> \usemodule[fancybreak]
> 
> \define\starbreak{
>      \fancybreak{
>
\strut\hfill\hfill\symbol[star]\hfill\symbol[star]\hfill\symbol[star]\hfill\
hfill\strut
>      }}

\definesymbol
   [starbreak]
   [\maxaligned\bgroup
      \hfill\hfill
      \strut\symbol{star}\hfill\symbol{star}\hfill\symbol{star}%
      \hfill\hfill
    \egroup]

\definefancybreak [starbreak] [symbol=starbreak]

Wolfgang



More information about the ntg-context mailing list