quarto-journals / acm

Quarto template for the Association of Computing Machinery
https://quarto-journals.github.io/acm/
MIT License
16 stars 9 forks source link

acmart-option: sigconf not working correctly #33

Open checkdgt opened 9 months ago

checkdgt commented 9 months ago

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 (https://github.com/quarto-dev/quarto-cli/discussions/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 commented 8 months ago

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`: ```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: ```yaml include-in-header: - table_workaround.tex ```

wjones127 commented 8 months ago

I was not able to fix that existing workaround, but I found another workaround that does work for me: https://github.com/jgm/pandoc/issues/1023#issuecomment-579866888

checkdgt commented 8 months ago

@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.