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

acmart-option: sigconf not working correctly #33

Open
checkdgt opened this issue Dec 7, 2023 · 4 comments
Open

acmart-option: sigconf not working correctly #33

checkdgt opened this issue Dec 7, 2023 · 4 comments

Comments

@checkdgt
Copy link

checkdgt commented Dec 7, 2023

When I apply the option:
acmart-option: sigconf

Then the page switched to two column and shows an error with longtable.

I've applied the 'workaround' from here (quarto-dev/quarto-cli#2786) which seems to have rectified it, but mentioned this as an issue so it can hopefully be fixed for future users.

quarto version: 1.3.353

@wjones127
Copy link

I've attempted the fix described in that discussion, but when rendering the template ended up with tables sitting in the center of the columns:

Screenshot 2023-12-19 at 12 42 00 PM

@checkdgt Are you seeing the tables being rendered within the columns?

Workaround implementation

Create a file table_workaround.tex:

% Workaround for longtable in two-column mode
% https://github.com/quarto-journals/acm/issues/33
% https://github.com/quarto-dev/quarto-cli/discussions/2786
\usepackage{float}
\makeatletter
\let\oldlt\longtable
\let\endoldlt\endlongtable
\def\longtable{\@ifnextchar[\longtable@i \longtable@ii}
\def\longtable@i[#1]{\begin{figure}[H]
\onecolumn
\begin{minipage}{0.5\textwidth}
\oldlt[#1]
}
\def\longtable@ii{\begin{figure}[H]
\onecolumn
\begin{minipage}{0.5\textwidth}
\oldlt
}
\def\endlongtable{\endoldlt
\end{minipage}
\twocolumn
\end{figure}}
\makeatother

In yaml frontmatter, add:

include-in-header:
  - table_workaround.tex

@wjones127
Copy link

I was not able to fix that existing workaround, but I found another workaround that does work for me: jgm/pandoc#1023 (comment)

@checkdgt
Copy link
Author

checkdgt commented Jan 1, 2024

@wjones127 thanks for pointing this out, I just double checked and I also have the funky tables in the layout. Thanks for the new workaround, I'll apply this locally and see how it pans out.

@SichangHe
Copy link

Using a Pandoc filter that produces plain tabular and it seems to work for me: jgm/pandoc#1023 (comment)

To use this, copy the Lua file and put this in the preemble:

filters:
    - table_workaround_filter.lua

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

3 participants