Created
April 17, 2015 02:53
-
-
Save MasWag/ec2494a1c1c66423f506 to your computer and use it in GitHub Desktop.
pandocでluatexを使わないtemplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{jsarticle} | |
| \usepackage{multicol} | |
| \setlength{\textheight}{232mm} | |
| \setlength{\topmargin}{4.6truemm} | |
| \usepackage{amssymb,amsmath} | |
| \usepackage{ifxetex,ifluatex} | |
| \usepackage{fixltx2e} % provides \textsubscript | |
| $if(graphics)$ | |
| \usepackage{graphicx} | |
| \makeatletter | |
| \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} | |
| \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} | |
| \makeatother | |
| % Scale images if necessary, so that they will not overflow the page | |
| % margins by default, and it is still possible to overwrite the defaults | |
| % using explicit options in \includegraphics[width, height, ...]{} | |
| \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} | |
| $endif$ | |
| $if(title)$ | |
| \title{$title$$if(subtitle)$\\\vspace{0.5em}{\large $subtitle$}$endif$} | |
| $endif$ | |
| $if(author)$ | |
| \author{$for(author)$$author$$sep$ \and $endfor$} | |
| $endif$ | |
| \date{$date$} | |
| $for(header-includes)$ | |
| $header-includes$ | |
| $endfor$ | |
| \begin{document} | |
| $if(title)$ | |
| \maketitle | |
| $endif$ | |
| $if(abstract)$ | |
| \begin{abstract} | |
| $abstract$ | |
| \end{abstract} | |
| $endif$ | |
| $for(include-before)$ | |
| $include-before$ | |
| $endfor$ | |
| $if(toc)$ | |
| { | |
| \hypersetup{linkcolor=black} | |
| \setcounter{tocdepth}{$toc-depth$} | |
| \tableofcontents | |
| } | |
| $endif$ | |
| $if(lot)$ | |
| \listoftables | |
| $endif$ | |
| $if(lof)$ | |
| \listoffigures | |
| $endif$ | |
| $body$ | |
| $if(natbib)$ | |
| $if(biblio-files)$ | |
| $if(biblio-title)$ | |
| $if(book-class)$ | |
| \renewcommand\bibname{$biblio-title$} | |
| $else$ | |
| \renewcommand\refname{$biblio-title$} | |
| $endif$ | |
| $endif$ | |
| \bibliography{$biblio-files$} | |
| $endif$ | |
| $endif$ | |
| $if(biblatex)$ | |
| \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ | |
| $endif$ | |
| $for(include-after)$ | |
| $include-after$ | |
| $endfor$ | |
| \end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment