ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: pararaph indent in footnote
Date: Thu, 23 Jun 2005 10:59:53 +0200	[thread overview]
Message-ID: <42BA7A09.1010709@seznam.cz> (raw)
In-Reply-To: <BFFCA447-DB5D-4E47-8C81-0F4CF1A374B2@Princeton.EDU>

Alan Bowen wrote:
> Peter—
> 
> On further testing, I see that while I now have indented paragraphs  in 
> my footnotes, I no longer have the ability to name and cross- reference 
> them. \footnote{footnote text} works well, but \footnote [name]{footnote 
> text} now seems broken.
> 
> Alan
> 
>> On Wed, 22 Jun 2005, Alan Bowen wrote:
>>
>>
>>
>>> My immediate problem, however, is the paragraph indent in
>>> footnotes that have more than one paragraph.
>>>
>>>
>>
>> I don't know better, but this works:
>>
>> \setupindenting[small]
>> \let\footnoteO\footnote
>> \long\def\footnote#1{\footnoteO{\setupindenting[small]#1}}
>> %% or
>> %\long\def\footnote#1{\footnoteO{\setupindenting[small]\indent#1}}
>> \def\SomePars{\dorecurse5{\dorecurse{50}{bla }\par}}
>> \starttext
>> \SomePars bla\footnote{\SomePars}
>> \stoptext

Try:

-------------------------------------
\setupindenting[small]

\let\footnoteO\footnote
\def\footnote{\dosingleempty\mydofootnote}
\long\def\mydofootnote[#1]#2{%
   \iffirstargument
     \footnoteO[#1]{\setupindenting[small]#2}%
   \else
     \footnoteO{\setupindenting[small]#2}%
   \fi
}
\def\SomePars{\dorecurse5{\dorecurse{50}{bla }\par}}
\starttext
   \SomePars bla\footnote{\SomePars}
\stoptext
--------------------------------------

cheers
vit


-- 
=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

database publishing              databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189     www: http://typokvitek.com
=======================================================

  reply	other threads:[~2005-06-23  8:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22 11:58 Alan Bowen
2005-06-22 15:40 ` Steve Grathwohl
2005-06-22 16:11   ` Alan Bowen
2005-06-22 17:09     ` Peter Münster
2005-06-22 21:58       ` Alan Bowen
2005-06-22 22:48       ` Alan Bowen
2005-06-23  8:59         ` Vit Zyka [this message]
2005-06-23 15:28           ` Alan Bowen
2005-07-22  2:11           ` pararaph indent in footnote (again) Alan Bowen
2005-07-22  8:10             ` Hans Hagen
2005-07-22 10:26               ` Alan Bowen

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=42BA7A09.1010709@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --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).