Skip to content

Commit f8140bb

Browse files
Merge pull request #57 from lambda-feedback/b584-PDF-tables
update latex template for tables
2 parents 9a2203c + 1f12aaf commit f8140bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/template.latex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,15 @@ $for(header-includes)$
192192
$header-includes$
193193
$endfor$
194194

195+
% Add table-related LaTeX settings
196+
\usepackage{longtable,booktabs,array}
197+
\usepackage{calc}
198+
\renewcommand{\arraystretch}{1.2} % Adjust row height
199+
\setlength{\tabcolsep}{4pt} % Adjust column spacing
200+
201+
% Define new column types for wrapping text with fixed widths
202+
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1\textwidth}} % Left-aligned with wrapping
203+
195204
$if(title)$
196205
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
197206
$endif$

0 commit comments

Comments
 (0)