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

Kable produces longtable that is not compatible with "\twocolumn" documentclass option #1348

Closed
junchenfeng opened this issue Jan 15, 2017 · 4 comments
Milestone

Comments

@junchenfeng
Copy link

I want to produce a table in a two-column article. However I tweaked it (such as result="asis"), knitr still reports the following error when converting to pdf.

 ! Package longtable Error: longtable not in 1-column mode.
@junchenfeng
Copy link
Author

Ok, I found this thread on the pandoc project. It is an issue with pandoc and there is no good workaround. I close this issue because it is unrelated to knitr

@yihui yihui added this to the v1.16 milestone Jan 16, 2017
@JosiahParry
Copy link

I just encountered this issue while setting classoption: - twocolumn in the YAML header. Has this been resolved?

@cderv
Copy link
Collaborator

cderv commented May 28, 2020

Have you look at the thread in pandoc linked from above #1348 (comment) ?

longtable and two column mode don't play well together in Latex. Pandoc use longtable for table environment. I don't think there is anything to do in knitr. Look at answers in Pandoc thread discussions. There is not generic answer but maybe some specific workaround that may work for you.

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants