mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(pandoc): add templates
This commit is contained in:
64
pandoc/templates/default.texinfo
Normal file
64
pandoc/templates/default.texinfo
Normal file
@@ -0,0 +1,64 @@
|
||||
\input texinfo
|
||||
@documentencoding UTF-8
|
||||
$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
|
||||
Reference in New Issue
Block a user