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

Error producing latex tables related to standalone non-preview #883

Open
ropeladder opened this issue Jan 14, 2025 · 0 comments
Open

Error producing latex tables related to standalone non-preview #883

ropeladder opened this issue Jan 14, 2025 · 0 comments

Comments

@ropeladder
Copy link

Describe the bug
We are running into a compile error on latex tables generated with the non-preview standalone document class. (which appears to have been introduced in this commit, line 235: 0da5c69)

I suppose technically it's a problem with latex or the standalone document type. I'm seeing it using:

  • pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020)
  • pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018)
  • XeTeX 3.14159265-2.6-0.99999 (TeX Live 2018)

...running on an elderly Ubuntu machine. Obviously this could be a problem due our old versions of things.

To Reproduce
Minimal tex example: (This is a minimal example; in reality our table has actual content.)

\documentclass[border=1mm]{standalone}
\usepackage{threeparttable}
\begin{document}
\begin{table}
\begin{threeparttable}
\end{threeparttable}
\end{table}
\end{document}

Produces:

! LaTeX Error: Something's wrong--perhaps a missing \item.

Setting \documentclass[border=1mm, preview]{standalone} runs fine. Alternatively, if we don't use kable_style() then the additional \begin{table} line is not included, and that also runs fine.

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

1 participant