Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify table layout of pdf tex template #16173

Merged
merged 4 commits into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions templates/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
\usepackage{setspace}
\setstretch{$linestretch$}
$endif$
\usepackage{etoolbox}
\usepackage{xstring}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
Expand Down Expand Up @@ -92,6 +94,14 @@
$endif$
$if(tables)$
\usepackage{longtable,booktabs}
% set table to left-aligned
\setlength\LTleft{0pt}
\setlength\LTright{0pt}
% fill the columns to page width
\makeatletter
\patchcmd\LT@array{\tabskip\z@}{\extracolsep{\fill}}
\makeatletter

$endif$
$if(graphics)$
\usepackage{graphicx,grffile}
Expand All @@ -113,8 +123,8 @@
\fi
\hypersetup{breaklinks=true,
bookmarks=true,
pdfauthor={$author-meta$},
pdftitle={$title-meta$},
pdfauthor={$author$},
pdftitle={$title$},
colorlinks=true,
citecolor=$if(citecolor)$$citecolor$$else$blue$endif$,
urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$,
Expand Down Expand Up @@ -326,4 +336,4 @@
$include-after$

$endfor$
\end{document}
\end{document}