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

Get two longtables with the same width #14

Open
maieul opened this issue May 30, 2018 · 1 comment
Open

Get two longtables with the same width #14

maieul opened this issue May 30, 2018 · 1 comment

Comments

@maieul
Copy link

maieul commented May 30, 2018

On
https://tex.stackexchange.com/questions/63535/align-columns-in-multiple-tables/63544#63544
you show us a solution to get two longtables with the same width.

  1. Should it be possible to include this feature directly in longtable.
  2. Should it be possible to make it compatible with arydshln?

For the point 2, cf this problematic MWE.

\documentclass[]{article}
\usepackage[margin=0.5cm,landscape,a4paper]{geometry}
\usepackage{longtable}

\usepackage{arydshln}
\makeatletter
\def\dontchopLT{\let\LT@entry@chop\relax}
\def\resumeLT{%
\let\zzz\stepcounter
\def\yyy{LT@tables}
\def\stepcounter##1{%
  \def\xxx{##1}%
  \ifx\xxx\yyy\else\zzz{##1}\fi}}
\makeatother

\begin{document}
\centering





{\dontchopLT
\begin{longtable}{|c|c*{26}{|c}|}
  \hline
  ms&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s\\
  \hline
\end{longtable}}





{\resumeLT
\begin{longtable}{|c|c*{26}{|c}|}
  \hline
  ms&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s&s\\
  \hline
\end{longtable}}

\end{document}
@davidcarlisle
Copy link
Owner

davidcarlisle commented May 30, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants