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

I'm unable to generate the PDF file with Archlinux #2454

Closed
brainplot opened this issue Nov 13, 2018 · 1 comment
Closed

I'm unable to generate the PDF file with Archlinux #2454

brainplot opened this issue Nov 13, 2018 · 1 comment
Assignees

Comments

@brainplot
Copy link

brainplot commented Nov 13, 2018

I'm running Archlinux and installed what's required to typeset the document via

# pacman -S texlive-latexextra

However, trying to generate the PDF file yields the following output:

~/.../draft/source ⑂master $ latexmk -pdf std       
Latexmk: This is Latexmk, John Collins, 7 August 2018, version: 4.59.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Non-existent destination files:
      'std.pdf'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -recorder  "std.tex"'
------------
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./std.tex
LaTeX2e <2018-04-01> patch level 5
(/usr/share/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2018/04/04 v3.7g configurable book, report, article docu
ment class
(/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-dist/tex/latex/ifetex/ifetex.sty
(/usr/share/texmf-dist/tex/plain/ifetex/ifetex.tex))
(/usr/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texmf-dist/tex/latex/memoir/mem10.clo))
(/usr/share/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texmf-dist/tex/generic/babel/switch.def)
(/usr/share/texmf-dist/tex/generic/babel-english/american.ldf
(/usr/share/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/share/texmf-dist/tex/generic/babel/babel.def
(/usr/share/texmf-dist/tex/generic/babel/txtbabel.def)))))
(/usr/share/texmf-dist/tex/latex/isodate/isodate.sty
(/usr/share/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/share/texmf-dist/tex/latex/substr/substr.sty)
(/usr/share/texmf-dist/tex/latex/isodate/english.idf
Define commands for American date format
)) (/usr/share/texmf-dist/tex/latex/listings/listings.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf-dist/tex/latex/listings/listings.cfg))
(/usr/share/texmf-dist/tex/latex/tools/longtable.sty)
(/usr/share/texmf-dist/tex/latex/caption/ltcaption.sty)
(/usr/share/texmf-dist/tex/latex/relsize/relsize.sty)
(/usr/share/texmf-dist/tex/latex/base/textcomp.sty
(/usr/share/texmf-dist/tex/latex/base/ts1enc.def
(/usr/share/texmf-dist/tex/latex/base/ts1enc.dfu)))
(/usr/share/texmf-dist/tex/latex/underscore/underscore.sty)
(/usr/share/texmf-dist/tex/generic/ulem/ulem.sty)
(/usr/share/texmf-dist/tex/latex/enumitem/enumitem.sty)
(/usr/share/texmf-dist/tex/latex/graphics/color.sty
(/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def))
(/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-dist/tex/latex/jknapltx/mathrsfs.sty)
(/usr/share/texmf-dist/tex/latex/microtype/microtype.sty
(/usr/share/texmf-dist/tex/latex/microtype/microtype-pdftex.def)
(/usr/share/texmf-dist/tex/latex/microtype/microtype.cfg))
(/usr/share/texmf-dist/tex/latex/tools/multicol.sty)
(/usr/share/texmf-dist/tex/latex/lm/lmodern.sty)
(/usr/share/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(/usr/share/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/share/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/share/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texmf-dist/tex/latex/url/url.sty))
(/usr/share/texmf-dist/tex/latex/memoir/memhfixc.sty)
(/usr/share/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/share/texmf-dist/tex/latex/extract/extract.sty
(/usr/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texmf-dist/tex/generic/xkeyval/xkvutils.tex))) (./std.xtr))
(./layout.tex

******************************************************
Stock height and width: 845.04684pt by 597.50787pt
Top and edge trims: 0pt and 0pt
Page height and width: 845.04684pt by 597.50787pt
Text height and width: 706pt by 469pt
Spine and edge margins: 63.8763pt and 63.8763pt
Upper and lower margins: 71.13188pt and 67.91496pt
Headheight and headsep: 12pt and 24pt
Footskip: 24pt
Columnsep and columnseprule: 10pt and 0pt
Marginparsep and marginparwidth: 7pt and 7pt
Sidecapsep and sidecapwidth: 7pt and 63pt
Sidebarhsep and sidebarwidth: 7pt and 63pt
Sidebarvsep and sidebartopsep: 12pt and 0pt
Sidebarheight: 596.39996pt
Sidefoothsep and sidefootwidth: 7pt and 63pt
Sidefootvsep and sidefootheight: 12pt and 596.39996pt
******************************************************

) (./styles.tex

***
*** This file requires listings.sty version 1.6.
*** You have version 1.7; exiting ...
***


=== TeX engine is 'pdfTeX'
Latexmk: Log file says no output from latex
Latexmk: For rule 'pdflatex', no output was made
Failure to make 'std.pdf'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: failed to create output file
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.

It seems like my version of listings.sty is too recent.

EDIT: I made the following changes to styles.tex:

 %%--------------------------------------------------
 %% override some functions from the listings package to avoid bad page breaks
-%% (copied verbatim from listings.sty version 1.6 except where commented)
+%% (copied verbatim from listings.sty version >= 1.5b except where commented)
 \makeatletter
 
-\lst@CheckVersion{1.6}{\lst@CheckVersion{1.5b}{
+\lst@CheckVersion{1.7}{\lst@CheckVersion{1.5b}{
  \typeout{^^J%
  ***^^J%
- *** This file requires listings.sty version 1.6.^^J%
+ *** This file requires listings.sty version >= 1.5b.^^J%
  *** You have version \lst@version; exiting ...^^J%
  ***^^J}%
  \batchmode \@@end}}

and I managed to get the PDF output. I don't know if it's correct as I don't know the Tex language (more specifically, I'm not sure if it checks for a range of versions or 1.5b and 1.7 only).
If my changes are okay, I can make a PR.

@jensmaurer
Copy link
Member

Your suggested change now excludes version 1.6; this is not a range check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants