aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:17:45 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:17:45 +0000
commit3f53d6f27045576665a6241693fdd4071842806f (patch)
tree9ea68b0c5baca90b5bfae29e05c1036de2ddc3e9 /templates
parentcc6294c4f271206609e41559d401288ad46e387e (diff)
downloadpandoc-3f53d6f27045576665a6241693fdd4071842806f.tar.gz
Updated texinfo writer to use new templates.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1735 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates')
-rw-r--r--templates/texinfo.template83
1 files changed, 46 insertions, 37 deletions
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