[NTG-context] Putting citations in an e-book

Cecil Westerhof cldwesterhof at gmail.com
Tue Mar 8 20:44:21 CET 2011

2011/3/8 Wolfgang Schuster <schuster.wolfgang at googlemail.com>

> \define[2]\epigraph
>   {\blank
>>    \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]%
>>    \color[darkgreen]{#2}\endgraf
>>    \rightaligned{\it #1}%
>>    \stopframedtext
>>    \blank}
> I want to do something like:
> \epigraph{Elbert Hubbard}{
> Many people fail in life, not for lack of ability or brains or even
> courage,
> but simply because they have never organized their energies around a
> goal.}
> Because I want to have the but on the second line, with the rest of the
> text. But this gives:
> Runaway argument?
> With the definition of \define in MkII the argument of the command can’t
> contain a paragraph, a workaround is to define the \epigraph macro with
> \long\def\epigraph#1#2{...}
> or to use MkIV.

My workaround works, but I should upgrade to MkIV, then I would have more
clear code. I have looked at the upgrade to MkIV, but it seemed much work.
I'll try to make time for it in the weekend.

Cecil Westerhof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110308/76c39f84/attachment.html>

More information about the ntg-context mailing list