ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* footnotes in poetry
@ 2000-08-22 11:40 Hans Hagen
  0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2000-08-22 11:40 UTC (permalink / raw)


For Frans, 

If you change in core-not.tex

\def\dostartfootnote%
  {\bgroup
   \ignorelines % makes footnotes work in \startlines ... \stoplines
   \unskip\unskip
   ...

and regenerate the format, 

\startlines
test test
test test\footnote{test
test
test}
test test
\stoplines

will work ok. 

For those who really want footnotes in verbatim:

\def\xx{\footnote{oeps oeps oeps}}

\setuptyping[option=commands]

\starttyping
test test test/xx test
\stoptyping

will do the trick. And yes, there are other obscure ways too. If you change
a few lines in core-ver.tex: 

\def\setupcommandsintype#1%
  {\setupgroupedtype
   \edef\\{\getvalue{#1\c!escape}}%
   \letvalue{\\}=\\% for instance \/=/
   \@EA\catcode\@EA`\\=\@@escape
   \def\BTEX##1\ETEX##2% ##2 gobbles active space
     {\naturaltextext##1\unskip\relax}}

you can say: 

\setuptyping[option=commands]

\starttyping
test//test test/BTEX \footnote{test test test}/ETEX test
test//test test/BTEX \footnote{test test test}/ETEX  test
test test test/BTEX \bf(nota bene)/ETEX test
test test test /BTEX \bf(nota bene)/ETEX  test
\stoptyping

and gets verbatim mixed with normal tex. This feature only works reliable
in etex (pdfetex) mode.  

Hans 

[i'll add this to the next release]
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-22 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-22 11:40 footnotes in poetry Hans Hagen

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