[NTG-context] \startquotation and citations
Wolfgang Schuster
wolfgang.schuster.lists at gmail.com
Thu Mar 26 14:56:37 CET 2020
Michael Guravage schrieb am 26.03.2020 um 14:29:
> Greetings,
>
> I would like to add a citation to a block quotation. Wolfgang proposed a
> solution
> <https://www.mail-archive.com/ntg-context@ntg.nl/msg55956.html>back in
> May 2011. With \star-stopquotation, the left quotation mark protrudes to
> the left of the text. With Wolfgang's solution, the quotation marks are
> aligned with the text. For consistency's sake, I need cited and
> non-cited quotations to appear alike.
>
> A lot has changed in the last nine years. Is there a newer way to
> achieve this behavior?
You can use the userdata environment to create a custom environment with
optional arguments.
\startsetups[userdata:extendedquotation]
\startnarrow[middle=4em]
“\getinlineuserdata”\userdataparameter{source}
\stopnarrow
\stopsetups
\defineuserdataalternative
[extendedquotation]
[renderingsetup=userdata:extendedquotation]
\defineuserdata
[extendedquotation]
[alternative=extendedquotation,
before=\blank,
after=\blank]
\starttext
\input tufte
\startuserdata[extendedquotation][source=\footnote{See Tufte …}]
\input tufte
\stopuserdata
\input tufte
\stoptext
Wolfgang
More information about the ntg-context
mailing list