Skip to content

Commit

Permalink
Update survival-pack.sty
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsejse authored Oct 28, 2023
1 parent 5608afd commit c135c58
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions setup/survival-pack.sty
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,20 @@
\NewDocumentCommand\mono{m}{\texttt{#1}} % deprecated
\NewDocumentCommand\email{m}{\texttt{\href{mailto:#1}{#1}}}

% Table shortcuts
\newcommand{\easytable}[3]{
\begin{table}[h]
\centering
\addtolength{\leftskip} {-2cm}
\addtolength{\rightskip}{-2cm}
\caption{#1}
\begin{tabular}{lccccccc}
\toprule
#2 \\ % This is the header
\midrule
#3 % This is the content
\bottomrule
\end{tabular}
\end{table}
}

0 comments on commit c135c58

Please sign in to comment.