\startquotation and citations
![](https://secure.gravatar.com/avatar/47e1945b93fb074906c53d23af41baca.jpg?s=120&d=mm&r=g)
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.htmlback 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? Cheers, Michael
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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.htmlback 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
![](https://secure.gravatar.com/avatar/068db233fa0021788b13712888735086.jpg?s=120&d=mm&r=g)
Thank you Wolfgang, Now is there a way to persuade the quotation marks to protrude? Cheers, Michael \startsetups[userdata:extendedquotation] \startnarrow[] “\getinlineuserdata”\userdataparameter{source} \stopnarrow \stopsetups \defineuserdataalternative [extendedquotation] [renderingsetup=userdata:extendedquotation] \defineuserdata [extendedquotation] [alternative=extendedquotation, before=\blank, after=\blank] \starttext \input tufte \blank \startquotation %% Quotation marks protrude \input tufte \stopquotation \startuserdata[extendedquotation][source=\footnote{See Tufte …}] %% Quotation marks do not protrude \input tufte \stopuserdata \stoptext On Thu, Mar 26, 2020 at 2:56 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
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.htmlback 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
___________________________________________________________________________________ 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
___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Michael Guravage schrieb am 26.03.2020 um 15:31:
Thank you Wolfgang,
Now is there a way to persuade the quotation marks to protrude?
You can either enable hanging punctuation for the bodyfont (which is done with \definefontfeature and \setupalign) or put the quotation mark in a box and move it to the left (which can be done with \llap) %\definefontfeature[default][default][protrusion=quality] \definefontfeature[default][default][protrusion=punctuation] \setupalign[hanging] \showframe[text][text] \starttext xxx “xxx” \dontleavehmode\llap{“}xxx” \stoptext Wolfgang
participants (3)
-
Michael Guravage
-
Michael Guravage
-
Wolfgang Schuster