From 3f53d6f27045576665a6241693fdd4071842806f Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 31 Dec 2009 01:17:45 +0000 Subject: Updated texinfo writer to use new templates. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1735 788f1e2b-df1e-0410-8736-df70ead52e1b --- templates/texinfo.template | 83 +++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 37 deletions(-) (limited to 'templates') diff --git a/templates/texinfo.template b/templates/texinfo.template index 553395a3b..c910badfb 100644 --- a/templates/texinfo.template +++ b/templates/texinfo.template @@ -1,51 +1,60 @@ +$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 @math{title} -@author $authors$ +@title $title$ +$for(author)$ +@author $author$ +$endfor$ +$if(date)$ $date$ +$endif$ @end titlepage -@contents - -@node Top -@top @math{title} -@menu -* section oen:: -@end menu - -@node section oen -@chapter section oen -@enumerate -@item -one -@enumerate a -@item -two -@enumerate 3 -@item -three -@end enumerate - -@end enumerate - -@end enumerate - -@verbatim -hi -@end verbatim - -footnote@footnote{with code -@verbatim -code -@end verbatim -} +$endif$ +$if(toc)$ +@contents +$endif$ +$body$ @bye -- cgit v1.2.3