gsalzer / subfiles

class and package for multi-file projects in LaTeX
LaTeX Project Public License v1.3c
25 stars 1 forks source link

End of tabular in a subfile not correctly defined. #17

Closed sebistoecklin closed 3 years ago

sebistoecklin commented 3 years ago

Hey there, related to the issue Cannot compile tabular #16, there still seems to be some sort of interference between tabular and subfiles v2.1: The end of a tabular environment is not correctly defined.

For example, a left-hand vertical line in a table exceeds the table by one additional line:

Error description

The shown table distortion is obtained from the combination of the subfile chapter1.tex

\documentclass[thesis.tex]{subfiles}

\begin{document}

\section{Introduction}

\begin{tabular}{|c c c|}  
    \hline
    a & b & c \\
    \hline
    a & b & c \\
    \hline
\end{tabular}

\end{document}

and the main file thesis.tex:

\documentclass{article}
\usepackage{subfiles}

\begin{document}

\subfile{chapter1.tex}

\end{document}

When coloring the table, the first cell of this additional line is also colored.

sebistoecklin commented 3 years ago

My bad, it is perfectly fixed when manually installing v2.2 to C:\Users\[Username]\AppData\Roaming\MiKTeX\tex\latex\subfiles.

gsalzer commented 3 years ago

Great that the problem is solved. Thanks a lot for reporting the issue! Even though it was already solved this time, the next time you may be the first and trigger the bug fix.