Publication

Windows tools to automate conversion of documents written in markdown to a latex-rendered PDF

Category

Other

License

Free to use (MIT)

File

tex/main.tex

main.texRead-only preview
\documentclass{article}
\usepackage[margin=1.0in]{geometry} % set margins and general document geometries
\usepackage[T1]{fontenc} 			% looks better than default font encoding
\usepackage{lmodern} 				% need a newer font to work with T1 font encoding
\usepackage{graphicx} 				% for including images
\usepackage{enumitem} 				% for adjusting lists
\usepackage{setspace}				% for double spacing	
\usepackage{pgffor}					% needed for the for-loop
\usepackage{calc,array}             % needed for internal calculations
\usepackage{float}
\usepackage[
	backend=bibtex8,
	style=numeric,
	sorting=none
]{biblatex}							% for using the bibliography
\usepackage{textcomp}    			% for using copyright and registered signs

\usepackage{lineno}                 % adds line numbers
\linenumbers

%%%%% PANDOC REQUIRED %%%%%%%%%%%%%%%%%
%% pandoc-tablenos: required package
\usepackage{caption}
\usepackage{longtable}
\usepackage{booktabs,siunitx}

% DO NOT USE THE hyperref PACKAGE!
% \usepackage{hyperref} 
% for citing using the hyperlink command
\newcommand{\href}{\cite}
\newcommand{\hyperlink}{\ref}
\newcommand{\hypertarget}[1]{\ignorespaces}
\def\tightlist{}

\newenvironment{tablenos:no-prefix-table-caption}{}{}
\newenvironment{fignos:no-prefix-figure-caption}{}{}
%%%%% END PANDOC REQUIRED %%%%%%%%%%%%%

\DeclareGraphicsExtensions{.jpg,.png}
\graphicspath{{./media/}}
\addbibresource{./references/bibliography.bib}
\doublespacing

\title{A SUPER AWESOME PAPER}
\author{Author J. Author \and Author M. Author}
\date{\today}

\errorcontextlines 10000

\begin{document}

% PARITAL DOCUMENT BODY SECTION
% If you would like to only compile one file from your document,
% comment out the section below and uncomment the line below 
% and specify the section by the prefix you
% have specified in the content folder (e.g. 15-Section-Name.md would
% be section15).

% \input{section15}

% DOCUMENT BODY SECTION
% This is the code for the entire document based on the .tex source
% files in the ./tex/ folder.

\maketitle
\begin{abstract}
\input{./content/00-abstract.md}
\end{abstract}

\foreach \i in {10,...,99} {%
    \edef\FileName{./tex/section\i}%     The % here are necessary to eliminate any
    \IfFileExists{\FileName}{%  spurious spaces that may get inserted
       \input{\FileName}%       at these points
    }
}

% REFERENCES SECTION

\newpage

\printbibliography

\end{document}
Preview
Publication preview
Publication LaTeX Template | Bibby | Bibby AI