My favorites | Sign in
Logo
                
Search
for
Updated Aug 05, 2008 by aureliojargas
FootNotes  
Comments for footnotes with txt2tags

Footnotes

Please add here your own comments, links and ideas about footnotes in txt2tags.


by Stefano Darchino

Put in txt2tagsrc these lines:

%%%% For Footnotes in Lout
%!postproc(lout): \(\( @FootNote {
%!postproc(lout): \)\) }
%%%% For manage Footnotes in HTML
%!postproc(html): \(\( <small>(
%!postproc(html): \)\) )</small>

I write the Footnote into the text as ((This is a note)) then with the command

txt2tags -t lout nameFile.t2t

and

lout -Z nameFile.lout > nemaFile.pdf

I have a pdf with Footnotes.

And with

txt2tags -t html nameFile.t2t

a HTML file with (notes) in small characters.


Comment by esclinux, May 02, 2009

I think the double parenthesis, like ((footnote)) could interfere with other syntax. I've personally used °°footnote°° instead.

For using with LaTeX, I've made this postproc rule:

%!postproc(tex): '°°(.*?)°°' '\\footnote{\1}'
%!postproc(xhtml): '°°(.*?)°°' ' (\1)'

You can see it in action, along with other cool features, here: http://anamnese.online.fr/site2/txt2tex/sample.html

Comment by esclinux, May 02, 2009

Sorry, the sample in English is there: http://anamnese.online.fr/site2/txt2tex/sample_eng.html

Comment by eforgeot, Aug 06, 2009

I reorganized this folder, now it's located at:

http://anamnese.online.fr/site2/txt2tex/samples/sample_en.html


Sign in to add a comment
Hosted by Google Code