Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Options for packages loaded elsewhere
- \PassOptionsToPackage{unicode}{hyperref}
- \PassOptionsToPackage{hyphens}{url}
- \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
- %
- \documentclass[
- 10pt,
- ]{article}
- \usepackage{lmodern}
- \usepackage{amssymb,amsmath}
- \usepackage{ifxetex,ifluatex}
- \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc}
- \usepackage{textcomp} % provide euro and other symbols
- \else % if luatex or xetex
- \usepackage{unicode-math}
- \defaultfontfeatures{Scale=MatchLowercase}
- \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
- \setmainfont[]{Arial.ttf}
- \fi
- % Use upquote if available, for straight quotes in verbatim environments
- \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
- \IfFileExists{microtype.sty}{% use microtype if available
- \usepackage[]{microtype}
- \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
- }{}
- \makeatletter
- \@ifundefined{KOMAClassName}{% if non-KOMA class
- \IfFileExists{parskip.sty}{%
- \usepackage{parskip}
- }{% else
- \setlength{\parindent}{0pt}
- \setlength{\parskip}{6pt plus 2pt minus 1pt}}
- }{% if KOMA class
- \KOMAoptions{parskip=half}}
- \makeatother
- \usepackage{xcolor}
- \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
- \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
- \hypersetup{
- pdftitle={Title of Document},
- pdfauthor={Matthew Petty},
- colorlinks=true,
- linkcolor=Blue,
- filecolor=Maroon,
- citecolor=Blue,
- urlcolor=Blue,
- pdfcreator={LaTeX via pandoc}}
- \urlstyle{same} % disable monospaced font for URLs
- \usepackage[top=2cm,left=1cm,right=1cm,bottom=2cm]{geometry}
- \usepackage{longtable,booktabs}
- % Correct order of tables after \paragraph or \subparagraph
- \usepackage{etoolbox}
- \makeatletter
- \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
- \makeatother
- % Allow footnotes in longtable head/foot
- \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
- \makesavenoteenv{longtable}
- \setlength{\emergencystretch}{3em} % prevent overfull lines
- \providecommand{\tightlist}{%
- \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
- \setcounter{secnumdepth}{4}
- \newcommand{\projectNumberCode}{CODE }
- \newcommand{\projectName}{Project Name }
- \newcommand{\coreSystemName}{Core Name }
- \newcommand{\bt}[1]{\fcolorbox{gray}{lightgray}{#1}}
- \defaultfontfeatures{Extension = .otf}
- \usepackage{fontawesome}
- \usepackage{tocloft}
- \usepackage{graphicx}
- \usepackage{hyperref}
- \usepackage{float}
- \usepackage{glossaries}
- \setglossarystyle{altlistgroup}
- \usepackage{xparse}
- \usepackage{lscape}
- \makenoidxglossaries
- \title{Title of Document}
- \usepackage{etoolbox}
- \makeatletter
- \providecommand{\subtitle}[1]{% add subtitle to \maketitle
- \apptocmd{\@title}{\par {\large #1 \par}}{}{}
- }
- \makeatother
- \subtitle{Subtitle of Document}
- \author{Matthew Petty}
- \date{\today}
- \begin{document}
- \maketitle
- \pagebreak
- \tableofcontents
- \setcounter{table}{0}
- \listoftables
- \pagebreak
- \hypertarget{introduction}{%
- \section{Introduction}\label{introduction}}
- \hypertarget{purpose}{%
- \subsection{Purpose}\label{purpose}}
- This document is testing how to format tables in Markdown/Latex
- \begin{longtable}[]{@{}lll@{}}
- \caption{Test Table}\tabularnewline
- \toprule
- \begin{minipage}[b]{0.39\columnwidth}\raggedright
- Heading 1\strut
- \end{minipage} & \begin{minipage}[b]{0.06\columnwidth}\raggedright
- Heading 2\strut
- \end{minipage} & \begin{minipage}[b]{0.46\columnwidth}\raggedright
- Heading 3\strut
- \end{minipage}\tabularnewline
- \midrule
- \endfirsthead
- \toprule
- \begin{minipage}[b]{0.39\columnwidth}\raggedright
- Heading 1\strut
- \end{minipage} & \begin{minipage}[b]{0.06\columnwidth}\raggedright
- Heading 2\strut
- \end{minipage} & \begin{minipage}[b]{0.46\columnwidth}\raggedright
- Heading 3\strut
- \end{minipage}\tabularnewline
- \midrule
- \endhead
- \begin{minipage}[t]{0.39\columnwidth}\raggedright
- This is Contents 1. This is Contents 1. This is Contents 1. This is
- Contents 1. This is Contents 1. This is Contents 1.\strut
- \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
- This is Contents 2\strut
- \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
- This is Contents 3. This is Contents 3. This is Contents 3. This is
- Contents 3. This is Contents 3. This is Contents 3. This is Contents
- 3.\strut
- \end{minipage}\tabularnewline
- \begin{minipage}[t]{0.39\columnwidth}\raggedright
- This is Contents 1\strut
- \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
- This is Contents 2\strut
- \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
- This is Contents 3\strut
- \end{minipage}\tabularnewline
- \begin{minipage}[t]{0.39\columnwidth}\raggedright
- This is Contents 1\strut
- \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
- This is Contents 2\strut
- \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
- This is Contents 3\strut
- \end{minipage}\tabularnewline
- \begin{minipage}[t]{0.39\columnwidth}\raggedright
- This is Contents 1\strut
- \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
- This is Contents 2\strut
- \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
- This is Contents 3\strut
- \end{minipage}\tabularnewline
- \begin{minipage}[t]{0.39\columnwidth}\raggedright
- This is Contents 1\strut
- \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
- This is Contents 2\strut
- \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
- This is Contents 3\strut
- \end{minipage}\tabularnewline
- \begin{minipage}[t]{0.39\columnwidth}\raggedright
- This is Contents 1\strut
- \end{minipage} & \begin{minipage}[t]{0.06\columnwidth}\raggedright
- This is Contents 2\strut
- \end{minipage} & \begin{minipage}[t]{0.46\columnwidth}\raggedright
- This is Contents 3\strut
- \end{minipage}\tabularnewline
- \bottomrule
- \end{longtable}
- \begin{center}END OF DOCUMENT\end{center}
- \hrulefill
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement