ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Michael Guravage <guravage@literatesolutions.com>
Subject: Re: \startquotation and citations
Date: Thu, 26 Mar 2020 14:56:37 +0100	[thread overview]
Message-ID: <9170562c-557c-5e06-bc26-a4cbe0b7b6ed@gmail.com> (raw)
In-Reply-To: <CAL-A5LZF=B58GNBrOxtzqPhTM8deknnc2xUHhqGGVHrx6sigmg@mail.gmail.com>

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
___________________________________________________________________________________

  reply	other threads:[~2020-03-26 13:56 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 [this message]
2020-03-26 14:31   ` Michael Guravage
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=9170562c-557c-5e06-bc26-a4cbe0b7b6ed@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=guravage@literatesolutions.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).