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

pnas_article() doesn't work with certain latest LaTeX packages #241

Open
yihui opened this issue Aug 20, 2019 · 2 comments

Comments

@yihui
Copy link
Member

commented Aug 20, 2019

Today pnas_article() started to fail on Travis, with an obscure error message

! LaTeX Error: Missing \begin{document}.

I could reproduce the issue locally after I update all LaTeX packages via

remotes::install_github('yihui/tinytex')
tinytex::tlmgr_update()

Even the following minimal LaTeX example fails with the same error message:

\documentclass{pnas-new}
\begin{document}
a
\end{document}

I spent a few hours on this issue but couldn't figure out why it was broken. I wonder if it is time to consider updating pnas-new.cls now.

Cc @cboettig (author of pnas_article() #72).

@yihui yihui added the bug label Aug 20, 2019

yihui added a commit that referenced this issue Aug 20, 2019
@eddelbuettel

This comment has been minimized.

Copy link

commented Sep 8, 2019

I wonder if it is time to consider updating pnas-new.cls now.

That's what we did as our PNAS derivative pinp failed at CRAN: eddelbuettel/pinp#77

I got some rather decent debugging help from Kurt pointing to, in this case, issues with titlesec so we filed jbezos/titlesec#16 -- as we initially missed the newer pnas-new.cls that Debian's texlive maintainer then pointed out me us.

We have a PR pending that integrates it into pinp, currently waiting on coauthor @coatless to review.

@eddelbuettel

This comment has been minimized.

Copy link

commented Sep 8, 2019

I spoke too soon. "Just" newer PNAS does not do the trick, we also need an older titlesec. Investigation ongoing while stop-gap release made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.