-
Notifications
You must be signed in to change notification settings - Fork 522
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
Copernicus Journal article - markdown file processing hangs #331
Comments
Thanks for the detailed report!
I don't think this is rticles and tinytex is just installing TeX Live infrastructure. To get to the bottom of it, one should try to see if the Copernicus template has been updated : https://publications.copernicus.org/for_authors/manuscript_preparation.html Maybe you already tried ? |
Unfortunately, I cannot reproduce the problem on my system (see below). I am only using TBH, the error messages to me do not look like there is any problem with the template, but as you point out, some problem with TexLive 2020 on Mac. Sorry, can't be of much help there, but happy to look at log files and see if something jumps out. > sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=de_DE.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=de_DE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tinytex_0.26.3 rticles_0.16
loaded via a namespace (and not attached):
[1] compiler_4.0.3 bookdown_0.20 htmltools_0.5.0 tools_4.0.3 yaml_2.2.1 rmarkdown_2.4 knitr_1.30
[8] xfun_0.18 digest_0.6.25 rlang_0.4.8 evaluate_0.14 |
Did you upgrade before trying ? Can you share the versions you are using ? > tinytex::tlmgr("--version")
tlmgr --version
tlmgr revision 56566 (2020-10-06 05:40:54 +0200)
tlmgr using installation: C:/Users/chris/AppData/Roaming/TinyTeX
TeX Live (https://tug.org/texlive) version 2020 and package versions> tinytex::tlmgr('info --list --only-installed --data "name,cat-version"')
tlmgr info --list --only-installed --data "name,cat-version"
ae,1.4
amscls,2.20.6
amsfonts,3.04
amsmath,
atbegshi,1.19
atveryend,1.11
auxhook,1.6
babel,3.50
babel-english,3.3r
bibtex,0.99d
bibtex.win32,
bigintcalc,1.5
bitset,1.3
booktabs,1.61803398
caption,
cleveref,0.21.4
cm,
comment,3.8
dehyph,
dvipdfmx,
dvipdfmx.win32,
dvips,
dvips.win32,
ec,1.0
epstopdf-pkg,2.11
etex,
etexcmds,1.7
etoolbox,2.5k
euenc,0.1h
fancyvrb,3.6
filehook,0.8a
float,1.3d
fontawesome,4.6.3.2
fontawesome5,5.13.0
fontspec,2.7i
framed,0.96
geometry,5.9
gettitlestring,1.6
glyphlist,
graphics,
graphics-cfg,
graphics-def,
grfext,1.3
grffile,2.1
helvetic,
hycolor,1.10
hyperref,7.00e
hyph-utf8,
hyphen-base,
iftex,1.0d
inconsolata,1.121
infwarerr,1.5
intcalc,1.3
knuth-lib,
kpathsea,
kpathsea.win32,
kvdefinekeys,1.6
kvoptions,3.14
kvsetkeys,1.18
l3backend,
l3kernel,
l3packages,
lastpage,1.2m
latex,2020-10-01-PL1
latex-amsmath-dev,2020-10-01 pre-release 2
latex-bin,
latex-bin.win32,
latex-fonts,
latex-tools-dev,2020-10-01 pre-release 5
latexconfig,
latexmk,4.70b
latexmk.win32,
letltxmacro,1.6
lineno,4.41
listings,1.8d
lm,2.004
lm-math,1.959
ltxcmds,1.25
lua-alt-getopt,0.7.0
luahbtex,
luahbtex.win32,
lualatex-math,1.9
lualibs,2.72
luaotfload,3.15
luaotfload.win32,
luatex,
luatex.win32,
mdwtools,1.05.4
metafont,2.7182818
metafont.win32,
mfware,
mfware.win32,
microtype,2.7d
modes,4.2
multirow,2.5
natbib,8.31b
oberdiek,
pdfescape,1.15
pdftex,
pdftex.win32,
pdftexcmds,0.33
plain,3.141592653
psnfss,9.3
refcount,3.6
rerunfilecheck,1.9
scheme-infraonly,
soul,2.4
stringenc,1.12
symbol,
tex,3.14159265
tex-ini-files,
tex.win32,
texlive-scripts,
texlive-scripts.win32,
texlive.infra,
texlive.infra.win32,
thmtools,72
threeparttable,
times,
tipa,1.3
tlgs.win32,
tlperl.win32,
tlpsv.win32,
tools,
ulem,
unicode-data,1.13
unicode-math,0.8q
uniquecounter,1.4
url,3.4
urlbst,0.8
urlbst.win32,
xcolor,2.12
xetex,
xetex.win32,
xetexconfig,
xkeyval,2.7a
xstring,1.83
xunicode,0.981
zapfding, |
Wow, thank you, @cderv, and @nuest for the quick replies. Regarding the question
Indeed, at least I tried a couple of Still, I admit that I do not fully understand what > tinytex::tlmgr("--version")
tlmgr --version
tlmgr revision 52931 (2019-11-27 00:04:18 +0100)
tlmgr using installation: /usr/local/texlive/2019
TeX Live (http://tug.org/texlive) version 2019 Furthermore:
Perhaps, as @nuest wrote, it is an odd Mac-only problem. I just hoped that there might be something we could modify in the Copernicus template because it does not appear to be a general problem with Anyway, if nothing can be done for the moment, perhaps we just keep an eye on it because I believe I will not be the last user with this particular problem (even it is not a real |
I reproduced it on Windows so it is not only MacOs.
You can ready more on the distribution here: https://yihui.org/tinytex/ and the R package here: https://yihui.org/tinytex/r/ Regarding TeX Live,
So if something wrong with a TeX Live update, it will be also the case with TinyTeX. Is copernicus bound to be used with
This may also comes from a TeX package and not tlmgr itself. |
I guess this issue bothered me more than I thought, so I dug deeper. The problem can be narrowed down to the following line:
If I remove the line, the problem goes away, and everything works again with Having said this: The problem seems to be related purely to LaTeX (I guess this was already clear) and the Copernicus template ( @nuest Perhaps you can get in touch with Copernicus? I guess the responsible person there would understand better what really happens and whether it needs to be reported as a bug to somebody else, or Copernicus has to modify their CLS-file? Additional information: I also found something reported recently in the TeXLive mailing list. I carefully read through it and concluded that this might be just a coincidence, but perhaps I have overlooked something. |
@RLumSK there is a contact in the Copernicus Journal page for Manuscript preparation: |
Oh ok. I just assumed @nuest wouldn't mind 😄 Hope I assumed well... 🙄 |
I already received a very quick and super friendly response from Copernicus, I may (partly) quote here:
I tried that and it works. Means, I could just modify the template by adding the line until we have a better Do you want me to create a PR or should we leave that to @nuest? In the case we leave it to @nuest: The line |
That is awesome!
You can definitly open a PR, and there can be several contributor to a template. As explained in the README, rticles format are mainly community contributed and we (as maintener of the package) can't keep track of all the details for all the templates, so we rely on the community to help on specific issues regarding template. We keep track of whom contributed for the purpose of pingging the right user if an issue arise on a specific template. And that is what we did with @nuest here 😄 It is indeed better to have several people, so feel free to send a PR for updating the template and we will add you as contributor too. @nuest would help us review the PR as he knows the template. Thanks a lot @RLumSK ! |
Ok, sure, give me a few moments I will create a PR also with the updated template. |
Thanks @RLumSK for investigating and providing the fix! |
@RLumSK Thanks for resolving this issue - it's great to have someone else help out with this template! Sorry I was late for the PR review, but all seems very much in order. |
@nuest Actually, thank you for all your work! I used this template already a lot and found that it is incredibly well prepared and documented. Besides, I just stepped in because I needed to have the template running up again for myself. But I will keep an eye on it also in the future. Having said that, Copernicus promised me a notification as soon as the new template with a real fix for the LaTeX issue becomes available; means we might have another update very soon. |
Awesome ! Keep us udpated then. And thank you !! |
Today at 06:50 h I received a new CLS-file for testing via email. It looks good (also for TeXLive 2019) and works again without the fix provided the last time. I suggest that we wait for the official release on the Copernicus website though (should happen very soon). |
The new template version was released today by Copernicus. @nuest perhaps you want to double-check(?). It basically includes only a new CLS-file. I removed the intermediate fix from the TEX-file. |
This includes a new CLS-file from Copernicus with a final fix for #331
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. |
Problem in brief
When trying to build the PDF using the Copernicus Journal template, the markdown process hangs and never completes.
A process running in the back at a 100 % is
pdftex
, no error message is shown. Other templates I have testedThe R Journal
and theElsevier
work though. The problem might be related topdftex
itself and not directly torticles
, see details below.How to reproduce
Prerequisites (more details in the background)
pandoc
version, but not the newest (I usedpandoc 2.10
,pandoc 2.12
will not work for other reasons)tinytex
and/orTeXLive 2020
Example
RStudio >> File >> New File >> R Markdown >> [From Template] >> [Select Copernicus Journal Article] >> [OK] >> [Hit the Knit button]
A reduced markdown example using the Copernicus template and showing the problem reads:
Background information
I bumped into that problem out of a sudden, while trying to rebuild a manuscript I am currently working on. I could not recall that I had changed something that might explain the behavior. After a couple of hours of digging and testing, I narrowed down the issue. Here the bullet points:
When I tried to rebuild the PDF from the TEX-file created during the non-successful build with an external
LaTeX
editor, in my caseTexShop
for macOS I encountered the same problem and the activity monitor showed me thatpdflatex
was going wild.After I switched from TeXLive 2020 to TeXLive 2019 I could build the PDF without any problem. However, in RStudio it still did not work until I completely removed
tinytex
viatinytex::uninstall_tinytex()
.tinytex::reinstall_tinytex()
with Tex Live 2019 did not do the trick.With
tinytex
removed the problem became highly reproducible, I just had to switch between the TeXLive 2020 (does not work) and TeXLive 2019 (does work).My problem must have started with some recent update of
tinytex
(although I don't understand fully what happened), because when I had switched already back toTeXLive 2019
,tinytex
was still usingTeXLive 2020
.My best guess is that the problem is related to the
pdftex
version shipped with TeXLive 2020; perhaps this problem occurs only on macOS? Updating packages fromTexLive
via the update tools does not help.However, I updated to TexLive 2020 (the MacTeX-2020 distribution) after it appeared somewhat in May 2020. Since then I regularly work with LaTeX (usually outside RStudio) with rather complex and large documents (a couple of hundred pages, multiple reference lists etc.): This is the first time I encounter this problem. It seems to occur only for the Copernicus template. Is there something particular in it?
Finally, I am not sure whether this is a real
rticles
problem (ortinytex
). Nevertheless, I decided to post it here because I encountered the bug when I used the Copernicus template fromrticles
withrticles
. So if other people bump into the same problem, it is likely that they will start from here.Unfortunately, the bug is not easy to fathom because no error message is shown. But perhaps my report helps to get to the bottom of it.
Session output
By filing an issue to this repo, I promise that
xfun::session_info('rticles')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles')
.I understand that my issue may be closed if I don't fulfil my promises.
The text was updated successfully, but these errors were encountered: