Skip to content

Instantly share code, notes, and snippets.

@sphardy
Created October 19, 2017 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sphardy/16288e38ba52abe46db090bd41139827 to your computer and use it in GitHub Desktop.
Save sphardy/16288e38ba52abe46db090bd41139827 to your computer and use it in GitHub Desktop.
Long Table with Markdown Conditional Header
\begin{longtable}[]{@{\extracolsep{\fill}}lccl@{}}
\toprule
Col1 & Col2 & Col3 & Col4\tabularnewline
\midrule
\ifdefined\MARKDOWN
\endhead
\else
\endfirsthead
\multicolumn{4}{c}{{(Continued from previous page)}} \\
\toprule
Col1 & Col2 & Col3 & Col4\tabularnewline
\midrule
\endhead
\midrule \multicolumn{4}{c}{{\tablename\ \thetable{} continued on next page\ldots}} \\
\endfoot
\endlastfoot
\fi
& & & \\
\bottomrule
\caption{}
\label{tab:}
\end{longtable}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment