ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mike Bird <mgb-debian@yosemite.net>
Subject: Re: Footnote lost
Date: Wed, 10 Jan 2007 08:28:18 -0800	[thread overview]
Message-ID: <200701100828.20388.mgb-debian@yosemite.net> (raw)
In-Reply-To: <45A4ACA4.5040503@elvenkind.com>

On Wednesday 10 January 2007 01:06, Taco Hoekwater wrote:
> Can you look through the list archive a bit? There was a
> thread begin december last year about the exact same topic.

Hi Taco,

I assume you're referring to this thread:
http://archive.contextgarden.net/thread/20061206.202611.e8722446.en.html

However that was a more complicated test case because it involved
the bib module and cite.  Also it referred to problems with
footnotes in vertical mode whereas the new test case includes
the footnote in setupdelimitedtext/right where it appears to be in
horizontal mode.  In fact the new test case is similar to the
workaround actually suggested in:
http://archive.contextgarden.net/message/20061203.141335.f50b33ff.en.html

Changing just \MyMagic in the suggested workaround to avoid \cite gives:
  \definedelimitedtext
    [myquotation]
    [left={\symbol[leftquotation]},
     right={\symbol[rightquotation]\MyMagic},
     leftmargin=standard]
  \long\def\startcitedquotation[#1]#2\stopcitedquotation
    {\bgroup
     \def\MyMagic{~\footnote{#1}}
     \startmyquotation #2\stopmyquotation
     \egroup}
  \starttext
  \startcitedquotation[schmitz2006]
  overly beautiful pusillanimous sesquipedalian longwinded
  \stopcitedquotation
  \stoptext

- which also loses the footnote.

The thread included another possible workaround at:
http://archive.contextgarden.net/message/20061204.095032.227c83ef.en.html
- but that lost all the power of setupdelimitedtext.

Therefore I suggest that my simple test case is still worthy of
consideration:
  \starttext
  \setupquotation[right={''\footnote{First}}]
  \startquotation
  Loses footnote.
  \stopquotation

  \setupquotation[right={''}]
  \quotation{OK}\footnote{Second}
  \stoptext

For those who need footnoted or cited quotations, another workaround
is to \setupquotation[location=text].  This retains the power of
\setupdelimitedtext without running into the bug which I suspect lies
in or near \dostopdelimitedtexpar.  You may have to fiddle with \par
and/or \nospace to get the layout exactly as desired.

--Mike Bird

  reply	other threads:[~2007-01-10 16:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-09 11:57 Mike Bird
2007-01-10  9:06 ` Taco Hoekwater
2007-01-10 16:28   ` Mike Bird [this message]
2007-01-10 17:09     ` Aditya Mahajan
2007-01-11  9:51     ` Taco Hoekwater
2007-01-11 17:49       ` Mike Bird
2007-01-11 21:54         ` Aditya Mahajan
2007-01-12  9:21           ` Mike Bird

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=200701100828.20388.mgb-debian@yosemite.net \
    --to=mgb-debian@yosemite.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).