Change tables environment for latex output #2786
-
Hi, I have created a cuarto document with this document class
when I tried to do a table I get the following error Package longtable Error: longtable not in 1-column mode. I know that this happens because I cannot put a longtable in 2-colum mode. I want to change the environment to supertabular or table*, but there is not an option in quarto to change the environment like figs with fig-env. So how I put the table? I don't want to use the multicols package (I have already tried but the only solution is to scape the table of the multicol), why quarto doesn't have a tbl-env option? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
We haven't yet create a We essentially just include this in the head when we detect a two column elseiver layout (using |
Beta Was this translation helpful? Give feedback.
-
Thanks, I don't really understand all the latex code but it works! also I have found that you can scape the two columns mode with the |
Beta Was this translation helpful? Give feedback.
-
Hmm - to qualify my comment above a bit more - pasting the code from the solution in the Elsevier template before the What did work was generating tables with calls to either
while a full-width table can be generated with
I do believe, though, that being able to set the table environment to |
Beta Was this translation helpful? Give feedback.
We haven't yet create a
table-env
option, though I agree that would be great. Here is a "workaround" I found and used in our Elsevier format, which redefines the longtable command and uses mini pages. Not 100% sure this will solve your problem, but though it might be useful:https://github.com/quarto-journals/elsevier/blob/main/_extensions/elsevier/partials/_two-column-longtable.tex
We essentially just include this in the head when we detect a two column elseiver layout (using
include-in-header
).