pandoc/templates/texinfo.template
fiddlosopher 3b9be92492 Use template variables for include-before/after.
* These options now imply -s; previously they worked also
  in fragment mode.
* Users can now adjust position of include-before and
  include-after text in the templates.
* Default position of include-before moved back (as it
  originally was) before table of contents.
* Resolves Issue #217.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1883 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-03-13 04:11:24 +00:00

68 lines
814 B
Text

$if(legacy-header)$
$legacy-header$
$else$
\input texinfo
@documentencoding utf-8
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$if(strikeout)$
@macro textstrikeout{text}
~~\text\~~
@end macro
$endif$
$if(subscript)$
@macro textsubscript{text}
@iftex
@textsubscript{\text\}
@end iftex
@ifnottex
_@{\text\@}
@end ifnottex
@end macro
$endif$
$if(superscript)$
@macro textsuperscript{text}
@iftex
@textsuperscript{\text\}
@end iftex
@ifnottex
^@{\text\@}
@end ifnottex
@end macro
$endif$
@ifnottex
@paragraphindent 0
@end ifnottex
$if(titlepage)$
@titlepage
@title $title$
$for(author)$
@author $author$
$endfor$
$if(date)$
$date$
$endif$
@end titlepage
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
@contents
$endif$
$body$
$for(include-after)$
$include-after$
$endfor$
@bye