Advertisement
muteboy

Latex generated by Pandoc from Markdown

May 6th, 2021
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 5.97 KB | None | 0 0
  1. % Options for packages loaded elsewhere
  2. \PassOptionsToPackage{unicode}{hyperref}
  3. \PassOptionsToPackage{hyphens}{url}
  4. \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
  5. %
  6. \documentclass[
  7.  10pt,
  8. ]{article}
  9. \usepackage{lmodern}
  10. \usepackage{amssymb,amsmath}
  11. \usepackage{ifxetex,ifluatex}
  12. \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  13.   \usepackage[T1]{fontenc}
  14.  \usepackage[utf8]{inputenc}
  15.  \usepackage{textcomp} % provide euro and other symbols
  16. \else % if luatex or xetex
  17.   \usepackage{unicode-math}
  18.  \defaultfontfeatures{Scale=MatchLowercase}
  19.  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
  20.  \setmainfont[]{Arial.ttf}
  21. \fi
  22. % Use upquote if available, for straight quotes in verbatim environments
  23. \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
  24. \IfFileExists{microtype.sty}{% use microtype if available
  25.   \usepackage[]{microtype}
  26.  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
  27. }{}
  28. \makeatletter
  29. \@ifundefined{KOMAClassName}{% if non-KOMA class
  30.   \IfFileExists{parskip.sty}{%
  31.     \usepackage{parskip}
  32.  }{% else
  33.     \setlength{\parindent}{0pt}
  34.    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
  35. }{% if KOMA class
  36.   \KOMAoptions{parskip=half}}
  37. \makeatother
  38. \usepackage{xcolor}
  39. \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
  40. \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
  41. \hypersetup{
  42.  pdftitle={Title of Document},
  43.  pdfauthor={Matthew Petty},
  44.  colorlinks=true,
  45.  linkcolor=Blue,
  46.  filecolor=Maroon,
  47.  citecolor=Blue,
  48.  urlcolor=Blue,
  49.  pdfcreator={LaTeX via pandoc}}
  50. \urlstyle{same} % disable monospaced font for URLs
  51. \usepackage[top=2cm,left=1cm,right=1cm,bottom=2cm]{geometry}
  52. \usepackage{longtable,booktabs}
  53. % Correct order of tables after \paragraph or \subparagraph
  54. \usepackage{etoolbox}
  55. \makeatletter
  56. \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
  57. \makeatother
  58. % Allow footnotes in longtable head/foot
  59. \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
  60. \makesavenoteenv{longtable}
  61. \setlength{\emergencystretch}{3em} % prevent overfull lines
  62. \providecommand{\tightlist}{%
  63.   \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  64. \setcounter{secnumdepth}{4}
  65. \newcommand{\projectNumberCode}{CODE }
  66. \newcommand{\projectName}{Project Name }
  67. \newcommand{\coreSystemName}{Core Name }
  68. \newcommand{\bt}[1]{\fcolorbox{gray}{lightgray}{#1}}
  69. \defaultfontfeatures{Extension = .otf}
  70. \usepackage{fontawesome}
  71. \usepackage{tocloft}
  72. \usepackage{graphicx}
  73. \usepackage{hyperref}
  74. \usepackage{float}
  75. \usepackage{glossaries}
  76. \setglossarystyle{altlistgroup}
  77. \usepackage{xparse}
  78. \usepackage{lscape}
  79. \makenoidxglossaries
  80.  
  81. \title{Title of Document}
  82. \usepackage{etoolbox}
  83. \makeatletter
  84. \providecommand{\subtitle}[1]{% add subtitle to \maketitle
  85.   \apptocmd{\@title}{\par {\large #1 \par}}{}{}
  86. }
  87. \makeatother
  88. \subtitle{Subtitle of Document}
  89. \author{Matthew Petty}
  90. \date{\today}
  91.  
  92. \begin{document}
  93. \maketitle
  94.  
  95. \pagebreak
  96.  
  97. \tableofcontents
  98.  
  99. \setcounter{table}{0}
  100.  
  101. \listoftables
  102.  
  103. \pagebreak
  104.  
  105. \hypertarget{introduction}{%
  106. \section{Introduction}\label{introduction}}
  107.  
  108. \hypertarget{purpose}{%
  109. \subsection{Purpose}\label{purpose}}
  110.  
  111. This document is testing how to format tables in Markdown/Latex
  112.  
  113. \begin{longtable}[]{@{}lll@{}}
  114. \caption{Test Table}\tabularnewline
  115. \toprule
  116. \begin{minipage}[b]{0.39\columnwidth}\raggedright
  117. Heading 1\strut
  118. \end{minipage} & \begin{minipage}[b]{0.06\columnwidth}\raggedright
  119. Heading 2\strut
  120. \end{minipage} & \begin{minipage}[b]{0.46\columnwidth}\raggedright
  121. Heading 3\strut
  122. \end{minipage}\tabularnewline
  123. \midrule
  124. \endfirsthead
  125. \toprule
  126. \begin{minipage}[b]{0.39\columnwidth}\raggedright
  127. Heading 1\strut
  128. \end{minipage} & \begin{minipage}[b]{0.06\columnwidth}\raggedright
  129. Heading 2\strut
  130. \end{minipage} & \begin{minipage}[b]{0.46\columnwidth}\raggedright
  131. Heading 3\strut
  132. \end{minipage}\tabularnewline
  133. \midrule
  134. \endhead
  135. \begin{minipage}[t]{0.39\columnwidth}\raggedright
  136. This is Contents 1. This is Contents 1. This is Contents 1. This is
  137. Contents 1. This is Contents 1. This is Contents 1.\strut
  138. \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
  139. This is Contents 2\strut
  140. \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
  141. This is Contents 3. This is Contents 3. This is Contents 3. This is
  142. Contents 3. This is Contents 3. This is Contents 3. This is Contents
  143. 3.\strut
  144. \end{minipage}\tabularnewline
  145. \begin{minipage}[t]{0.39\columnwidth}\raggedright
  146. This is Contents 1\strut
  147. \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
  148. This is Contents 2\strut
  149. \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
  150. This is Contents 3\strut
  151. \end{minipage}\tabularnewline
  152. \begin{minipage}[t]{0.39\columnwidth}\raggedright
  153. This is Contents 1\strut
  154. \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
  155. This is Contents 2\strut
  156. \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
  157. This is Contents 3\strut
  158. \end{minipage}\tabularnewline
  159. \begin{minipage}[t]{0.39\columnwidth}\raggedright
  160. This is Contents 1\strut
  161. \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
  162. This is Contents 2\strut
  163. \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
  164. This is Contents 3\strut
  165. \end{minipage}\tabularnewline
  166. \begin{minipage}[t]{0.39\columnwidth}\raggedright
  167. This is Contents 1\strut
  168. \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
  169. This is Contents 2\strut
  170. \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
  171. This is Contents 3\strut
  172. \end{minipage}\tabularnewline
  173. \begin{minipage}[t]{0.39\columnwidth}\raggedright
  174. This is Contents 1\strut
  175. \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
  176. This is Contents 2\strut
  177. \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
  178. This is Contents 3\strut
  179. \end{minipage}\tabularnewline
  180. \bottomrule
  181. \end{longtable}
  182.  
  183. \begin{center}END OF DOCUMENT\end{center}
  184.  
  185. \hrulefill
  186.  
  187. \end{document}
  188.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement