ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Guravage <guravage@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \startquotation and citations
Date: Thu, 26 Mar 2020 15:31:16 +0100	[thread overview]
Message-ID: <CAAVAL1p=hh5R1DGG83JaSbxaFAG6oCGuW=MqzPPfMwmqbikd+g@mail.gmail.com> (raw)
In-Reply-To: <9170562c-557c-5e06-bc26-a4cbe0b7b6ed@gmail.com>


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

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

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

[-- Attachment #2: user.pdf --]
[-- Type: application/pdf, Size: 14140 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
___________________________________________________________________________________

  reply	other threads:[~2020-03-26 14:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26 13:29 Michael Guravage
2020-03-26 13:56 ` Wolfgang Schuster
2020-03-26 14:31   ` Michael Guravage [this message]
2020-03-26 15:02     ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2011-05-23 13:39 Oliver Buerschaper
2011-05-23 15:18 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAVAL1p=hh5R1DGG83JaSbxaFAG6oCGuW=MqzPPfMwmqbikd+g@mail.gmail.com' \
    --to=guravage@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).