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

Problem adding \hline\noalign{\smallskip} to a tabular environment #71

Open
bersbersbers opened this issue Nov 30, 2016 · 0 comments
Open

Comments

@bersbersbers
Copy link

bersbersbers commented Nov 30, 2016

Comparing these two files (attached) creates something non-compilable with default settings:
a.txt
b.txt

\documentclass{article}
\begin{document}
	\begin{table}
		\begin{tabular}{l}
			X
		\end{tabular}
	\end{table}
\end{document}
\documentclass{article}
\begin{document}
	\begin{table}
		\begin{tabular}{l}
			\hline\noalign{\smallskip}
			Y
		\end{tabular}
	\end{table}
\end{document}

The output is this, and I think the problem is the deleted content in front of \hline\noalign{\smallskip}. In line with this, the error message is ! Misplaced \noalign. \hline ->\noalign

\begin{document}
	\begin{table}
		\begin{tabular}{l}
			\DIFdelbeginFL \DIFdelFL{X
		}\DIFdelendFL \DIFaddbeginFL \hline\noalign{\smallskip}
			\DIFaddFL{Y
		}\DIFaddendFL \end{tabular}
	\end{table}
\end{document}

\newcommand{\DIFdel}[1]{} fixes this, but with default settings, compilation fails.

@bersbersbers bersbersbers changed the title Problem adding \hline\noalign{\smallskip} to a tabulat environment Problem adding \hline\noalign{\smallskip} to a tabular environment Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants