ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Quotation with footnote
Date: Fri, 4 Sep 2020 13:25:41 +0200	[thread overview]
Message-ID: <D0C34F7D-CDC3-4FCB-8B07-5B8560DA0E95@fiee.net> (raw)

My current book contains a lot of quotations with their sources marked as footnotes, e.g.


\definedelimitedtext[Zitat][
  %setups=Zitat, % doesn’t work!?
  left=»,
  right=«,
  leftmargin=2em,
  rightmargin=1.5em,
]

\startZitat
A rose is a rose is a rose.\footnote{Marx brothers}
\stopZitat


Now, since the quotations are whole sentences or paragraphs, the footnote marker needs to be placed _after_ the closing quotation mark. (German typography, I learned it’s different at least in US English.)

I tried several approaches e.g. with my own single start/stop macros that call \start/stopnarrower or \start/stopZitat – that always lead to unclosed environments.

* Only the delimitedtext approach gives a hanging opening quotation mark (which looks nice and I’d like to have).

* \stopnarrower within a macro doesn’t seem to work (all following text stays narrower).

* I can’t get rid of that space introduced by the CR before \stop – didn’t find a place where \gobblespacetokens works, maybe that’s the wrong command.


Most preferred would be a solution that checked if there’s a footnote in front of \stopZitat and would put the closing quotation mark in front instead of after. Without a footnote it would just place the mark.

Something like \stopZitat\footnote{...} would also be nice, but I guess that’s too far outside of TeX’s logic.

In the worst case I’d need to typeset the closing mark manually.

Some hints please?

Hraban
___________________________________________________________________________________
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-09-04 11:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04 11:25 Henning Hraban Ramm [this message]
2020-09-04 13:34 ` Henning Hraban Ramm
2020-09-04 14:20   ` Wolfgang Schuster
2020-09-04 15:03     ` Henning Hraban Ramm
2020-09-04 14:04 ` Taco Hoekwater
2020-09-04 15:01   ` Henning Hraban Ramm
2020-09-16  9:50   ` Henning Hraban Ramm

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=D0C34F7D-CDC3-4FCB-8B07-5B8560DA0E95@fiee.net \
    --to=texml@fiee.net \
    --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).