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

Style linenumbers not compatible tabularx #150

Open
Nicholaswogan opened this issue Apr 12, 2023 · 1 comment
Open

Style linenumbers not compatible tabularx #150

Nicholaswogan opened this issue Apr 12, 2023 · 1 comment
Labels
bug bug; something to be fixed in AASTeX linenumbers package collision when aastex6+ and a random other package collide

Comments

@Nicholaswogan
Copy link

Nicholaswogan commented Apr 12, 2023

The following code does not compile

\documentclass[linenumbers]{aastex63}
\usepackage{tabularx} 

\begin{document}
 
\begin{table}
\centering
\begin{tabularx}{0.8\textwidth} {p{0.3\linewidth} | p{0.1\linewidth} | p{0.3\linewidth}}
 \hline
 item 11 & item 12 & item 13 \\
 item 21  & item 22  & item 23  \\
\hline
\end{tabularx}
\end{table}

\end{document}

However, the code does compile if I use \documentclass[preprint]{aastex63}, or instead I use the default article style:

\documentclass{article}
\usepackage{tabularx} 
\usepackage{lineno}
\linenumbers

\begin{document}

\begin{table}
\centering
\begin{tabularx}{0.8\textwidth} {p{0.3\linewidth} | p{0.1\linewidth} | p{0.3\linewidth}}
 \hline
 item 11 & item 12 & item 13 \\
 item 21  & item 22  & item 23  \\
\hline
\end{tabularx}
\end{table}

\end{document}
@augustfly
Copy link
Member

Right, but the problem is not the one you think it is. The conflict is not with tabularx.

The problem is related to #149 -- latex's new implementation of array.sty breaks when you use p{} styles and AASTeX (the conflict is actually with revtex4-1.

It is interesting (and very useful) that you've shown that the problem is related to the lineno package and not to some other issue. This means that when we don't need linenumbers we don't need the new array.sty inorder to use p{} column formats.

The solution is in #149 -- use the old version of array.sty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug; something to be fixed in AASTeX linenumbers package collision when aastex6+ and a random other package collide
Projects
None yet
Development

No branches or pull requests

2 participants