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

pdfx.sty missing in texlive 2021 while exporting to pdf #435

Closed
zenny opened this issue Nov 10, 2021 · 14 comments
Closed

pdfx.sty missing in texlive 2021 while exporting to pdf #435

zenny opened this issue Nov 10, 2021 · 14 comments

Comments

@zenny
Copy link

zenny commented Nov 10, 2021

Hi,

I am trying to export https://github.com/gouvinb/cv-sample without making any changes in scimax, but I get:

This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021) (preloaded format=pdflatex 2021.10.22)  10 NOV 2021 07:39
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**./curriculum-vitae.tex
(./curriculum-vitae.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-10-18> (./altacv.cls
Document Class: altacv 2020/05/17 AltaCV v1.3.2, yet another alternative class 
for a resume/curriculum vitae.
(/opt/texlive/2021/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/02/12 v1.4n Standard LaTeX document class
(/opt/texlive/2021/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2021/02/12 v1.4n Standard LaTeX file (size option)
)
\c@part=\count182
\c@section=\count183
\c@subsection=\count184
\c@subsubsection=\count185
\c@paragraph=\count186
\c@subparagraph=\count187
\c@figure=\count188
\c@table=\count189
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)

! LaTeX Error: File `pdfx.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
         
l.41 \RequirePackage
                    [margin=2cm]{geometry}^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 252 strings out of 480030
 3048 string characters out of 5889895
 292176 words of memory out of 5000000
 18031 multiletter control sequences out of 15000+600000
 403430 words of font info for 27 fonts, out of 8000000 for 9000
 319 hyphenation exceptions out of 8191
 48i,0n,55p,165b,36s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!

pdfx.sty is only available in texlive-latexextra package which is already installed, but there is no pointer to pdfx.sty in texlive 2021 (nor any texlive-latexextra package is available!)

I have tried in vanilla sandbox emacs config as described gouvinb/cv-sample#5 (comment) using @alphapapa's https://github.com/alphapapa/with-emacs.sh, but it reports a different missing file, capt-of.sty! What exactly is going on?

Any input appreciated. Thanks in advance.

@jkitchin
Copy link
Owner

This doesn't seem like a scimax problem, I can build the cv fine. I guess this is a latex problem where either you paths are not complete, or pdfx is not installed (or on the path).

@zenny
Copy link
Author

zenny commented Nov 12, 2021

This doesn't seem like a scimax problem, I can build the cv fine. I guess this is a latex problem where either you paths are not complete, or pdfx is not installed (or on the path).

Thanks for the pointer. With scimax, I am getting "JSON readtable error: 76" even after after removing thedistro-based texlive packages and relied on tlmgr! :(

However, it produced a pdf with a sandboxed emacs config with https://github.com/alphapapa/with-emacs.sh, but the 4-page pdf is nowhere near the original as the first page is garbled whereas the remaining three pages followed the article template, I guess.

pic-selected-211112-1408-17
pic-selected-211112-1408-27
pic-selected-211112-1408-40
pic-selected-211112-1408-52

@jkitchin
Copy link
Owner

That could just mean you use different org-latex-pdf-process for these. What you show is related to LaTeX, and you can build those pdfs at the command line separate from emacs and scimax.

"JSON readtable error: 76" sounds weird, like something is downloading a file, and getting an error in download where it expected json and didn't get it. I would first try to export the org file to LaTeX, then go to a shell and run pdflatex manually. The output you are seeing on the first page is typical of when latex doesn't understand some commands because packages aren't installed or used, for example.

@zenny
Copy link
Author

zenny commented Nov 12, 2021

Thanks @jkitchin for prompt response.

That could just mean you use different org-latex-pdf-process for these.

Can you share me your org-latex-pdf-process variable?

Mine says:

org-latex-pdf-process is a variable defined in `ox-latex.el'.
Its value is ox-manuscript-latex-pdf-process

Original value was 

("%latex -interaction nonstopmode -output-directory %o %f" "%latex
-interaction nonstopmode -output-directory %o %f" "%latex -interaction
nonstopmode -output-directory %o %f")

I have appended in user.el in pursuant to https://www.reddit.com/r/emacs/comments/gqmvlr/latex_pdf_export_error/:

(setq org-latex-listings 'minted
      org-latex-packages-alist '(("" "xltxtra" nil ("xelatex"))
				 ("" "minted" t)
				 ("" "unicode-math" t ("xelatex" "lualatex")))
      org-latex-compiler "xelatex"
      org-latex-pdf-process
      '("%latex -8bit -interaction nonstopmode -shell-escape -output-directory %o %f"
	"bibtex %b"
	"%latex -8bit -interaction nonstopmode -shell-escape -output-directory %o %f"
	"%latex -8bit -interaction nonstopmode -shell-escape -output-directory %o %f"))

(setq-default TeX-engine 'xetex
	      TeX-PDF-mode t)

Could this be a conflict?

What you show is related to LaTeX, and you can build those pdfs at the command line separate from emacs and scimax.

Sorry for my confusion? Is there a tut or some pointers howto?

However, I have already tried the following by exporting the org file to LaTeX in a sandbox emacs:

$ latexmk -pdf -pv resume.tex
Rc files read:
  NONE
Latexmk: This is Latexmk, John Collins, 21 September 2021, version: 4.75.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'resume.aux'
      'resume.toc'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -recorder  "resume.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2021) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./resume.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-10-18>
(/opt/texlive/2021/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/02/12 v1.4n Standard LaTeX document class
(/opt/texlive/2021/texmf-dist/tex/latex/base/size11.clo))
(/opt/texlive/2021/texmf-dist/tex/latex/roboto/roboto.sty
(/opt/texlive/2021/texmf-dist/tex/generic/iftex/ifxetex.sty
(/opt/texlive/2021/texmf-dist/tex/generic/iftex/iftex.sty))
(/opt/texlive/2021/texmf-dist/tex/generic/iftex/ifluatex.sty)
(/opt/texlive/2021/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/opt/texlive/2021/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/opt/texlive/2021/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/opt/texlive/2021/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/opt/texlive/2021/texmf-dist/tex/latex/base/textcomp.sty)
(/opt/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty)
(/opt/texlive/2021/texmf-dist/tex/latex/fontaxes/fontaxes.sty))
(/opt/texlive/2021/texmf-dist/tex/latex/lato/lato.sty)
(/opt/texlive/2021/texmf-dist/tex/latex/paracol/paracol.sty)
! Undefined control sequence.
<recently read> \geometry

l.7 \geometry
             {
? R
OK, entering \nonstopmode...

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.8 l
     eft=1cm,
! Undefined control sequence.
l.17 \ifxetexorluatex

! Undefined control sequence.
l.19 \setmainfont
                 {Roboto Slab}
! Undefined control sequence.
l.20 \setsansfont
                 {Lato}
! Extra \else.
l.22 \else

! Extra \fi.
l.28 \fi

! Undefined control sequence.
l.29 \definecolor
                 {colorPrimary}{HTML}{3ddb84}
! Undefined control sequence.
l.30 \definecolor
                 {colorPrimaryVariant}{HTML}{052409}
! Undefined control sequence.
l.31 \definecolor
                 {colorOnPrimary}{HTML}{FFFFFF}
! Undefined control sequence.
l.32 \definecolor
                 {colorSecondary}{HTML}{4387f4}
! Undefined control sequence.
l.33 \definecolor
                 {colorSecondaryVariant}{HTML}{072f41}
! Undefined control sequence.
l.34 \definecolor
                 {colorOnSecondary}{HTML}{000000}
! Undefined control sequence.
l.35 \definecolor
                 {colorBackground}{HTML}{FFFFFF}
! Undefined control sequence.
l.36 \definecolor
                 {colorOnBackground}{HTML}{000000}
! Undefined control sequence.
l.37 \definecolor
                 {colorSurface}{HTML}{FFFFFF}
! Undefined control sequence.
l.38 \definecolor
                 {colorOnSurface}{HTML}{000000}
! Undefined control sequence.
l.39 \definecolor
                 {colorError}{HTML}{B00020}
! Undefined control sequence.
l.40 \definecolor
                 {colorOnError}{HTML}{FFFFFF}
! Undefined control sequence.
l.41 \colorlet
              {accent}{colorSecondary}
! Undefined control sequence.
l.42 \colorlet
              {emphasis}{colorPrimaryVariant}
! Undefined control sequence.
l.43 \colorlet
              {heading}{colorPrimary}
! Undefined control sequence.
l.44 \colorlet
              {headingrule}{colorPrimary}
! Undefined control sequence.
l.45 \colorlet
              {subheading}{colorPrimaryVariant}
! Undefined control sequence.
l.46 \colorlet
              {body}{colorOnSurface}
! Undefined control sequence.
l.47 \colorlet
              {name}{colorOnSurface}
! Undefined control sequence.
l.48 \colorlet
              {tagline}{colorSecondary}
! Undefined control sequence.
l.49 \hypersetup
                {

! LaTeX Error: Command \namefont undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.60 \renewcommand{\namefont}
                             {\Huge\rmfamily\bfseries}

! LaTeX Error: Command \personalinfofont undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.61 \renewcommand{\personalinfofont}
                                     {\footnotesize}

! LaTeX Error: Command \cvsectionfont undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.62 \renewcommand{\cvsectionfont}
                                  {\LARGE\rmfamily\bfseries}

! LaTeX Error: Command \cvsubsectionfont undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.63 \renewcommand{\cvsubsectionfont}
                                     {\large\bfseries}

! LaTeX Error: Command \itemmarker undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.66 \renewcommand{\itemmarker}
                               {{\small\textbullet}}

! LaTeX Error: Command \ratingmarker undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.67 \renewcommand{\ratingmarker}
                                 {\faCircle}
! Undefined control sequence.
l.68 \NewInfoField
                  {gitlab}{\faGitlab}[https://gitlab.com/]
! Undefined control sequence.
l.68 \NewInfoField{gitlab}{\faGitlab
                                    }[https://gitlab.com/]
! Undefined control sequence.
l.72 \hypersetup
                {
(/opt/texlive/2021/texmf-dist/tex/latex/lato/OT1lato-TLF.fd)
(/opt/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./resume.aux)
Overfull \hbox (35.3535pt too wide) in paragraph at lines 8--80
[]\OT1/cmr/m/n/10.95 left=1cm, right=8.5cm, margin-par-width=6.5cm, margin-pars
ep=1cm, top=1cm,

Overfull \hbox (32.6797pt too wide) in paragraph at lines 8--80
\OT1/cmr/m/n/10.95 HTML4387f4 col-orSec-ondary-Vari-antHTML072f41 col-orOn-Sec-
ondary-HTML000000

Overfull \hbox (4.87769pt too wide) in paragraph at lines 8--80
\OT1/cmr/m/n/10.95 col-or-Back-ground-HTMLFFFFFF col-orOn-Back-ground-HTML00000
0 col-or-Sur-

Overfull \hbox (7.06886pt too wide) in paragraph at lines 8--80
\OT1/cmr/m/n/10.95 ma-ry-Vari-ant body-col-orOn-Sur-face name-col-orOn-Sur-face
 tagline-col-orSec-ondary

Overfull \hbox (56.3743pt too wide) in paragraph at lines 8--80
\OT1/cmr/m/n/10.95 col-or-links=true, link-color=colorSecondaryVariant, an-chor
-color=colorSecondaryVariant,

Overfull \hbox (129.6481pt too wide) in paragraph at lines 8--80
\OT1/cmr/m/n/10.95 cite-color=colorSecondaryVariant, file-color=colorSecondaryV
ariant, menu-color=colorSecondaryVariant,
[1{/opt/texlive/2021/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./resume.toc [2])
Underfull \hbox (badness 10000) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/14.4 My

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/14.4 Life

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/14.4 Phi-

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/14.4 los-o-

Underfull \hbox (badness 10000) in paragraph at lines 140--140
[]

Overfull \hbox (51.08585pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 "Something

Overfull \hbox (22.85132pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 smart

Overfull \hbox (5.94456pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 or

Overfull \hbox (25.06322pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 heart-

Overfull \hbox (14.18439pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 felt,

Overfull \hbox (28.6438pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 prefer-

Overfull \hbox (15.55316pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 ably

Overfull \hbox (4.4882pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 in

Overfull \hbox (13.85045pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 one

Overfull \hbox (16.45105pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 sen-

Overfull \hbox (27.87189pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 tence."

Underfull \hbox (badness 10000) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/14.4 Most

Overfull \hbox (2.27913pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/14.4 Proud

Overfull \hbox (17.64989pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/12 Fantastic

Overfull \hbox (16.82195pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 Achieve-

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 and some

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 de-tails

Overfull \hbox (13.74992pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/12 Another

Overfull \hbox (14.73994pt too wide) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 achieve-

Underfull \hbox (badness 3417) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 about it of

Overfull \hbox (25.07425pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/14.4 Strengths
! Undefined control sequence.
<argument> ...\label {sec:org118d967} \par \cvtag
                                                  {Hard-working} \cvtag {Eye...
l.140 }

! Undefined control sequence.
<argument> ...} \par \cvtag {Hard-working} \cvtag
                                                  {Eye for detail}\\ \cvtag ...
l.140 }

! Undefined control sequence.
<recently read> \cvtag

l.140 }


Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 Hard-
! Undefined control sequence.
<argument> ...{Motivator \& Leader} \par \divider
                                                  \par \cvtag {C++} \cvtag {...
l.140 }

! Undefined control sequence.
<argument> ...& Leader} \par \divider \par \cvtag
                                                  {C++} \cvtag {Embedded Sys...
l.140 }

! Undefined control sequence.
<argument> ...r \divider \par \cvtag {C++} \cvtag
                                                  {Embedded Systems}\\ \cvta...
l.140 }

! Undefined control sequence.
<recently read> \cvtag

l.140 }


Underfull \hbox (badness 10000) in paragraph at lines 140--140
[]\OT1/lato-TLF/m/n/10.95 C++ Em-

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 bed-ded

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/m/n/10.95 Statistical

Overfull \hbox (31.18706pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/14.4 Languages
! Undefined control sequence.
<argument> ...abel {sec:org4623d96} \par \cvskill
                                                  {English}{5} \divider \par...
l.140 }

! Undefined control sequence.
<argument> ...\par \cvskill {English}{5} \divider
                                                  \par \cvskill {Spanish}{4}...
l.140 }

! Undefined control sequence.
<argument> ...{English}{5} \divider \par \cvskill
                                                  {Spanish}{4} \divider \par...
l.140 }

! Undefined control sequence.
<argument> ...\par \cvskill {Spanish}{4} \divider
                                                  \par \cvskill {German}{3.5...
l.140 }

! Undefined control sequence.
<argument> ...{Spanish}{4} \divider \par \cvskill
                                                  {German}{3.5} \par \sectio...
l.140 }


Overfull \hbox (27.62311pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/14.4 Education

Overfull \hbox (4.54593pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/12 Ph.D.$\OMS/cmsy/m/n/12 n$

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 in

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 Your

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 Dis-

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 ci-

Overfull \hbox (5.15796pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/12 M.Sc.$\OMS/cmsy/m/n/12 n$

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 in

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 Your

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 Dis-

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 ci-

Overfull \hbox (1.71996pt too wide) in paragraph at lines 140--140
[]\OT1/lato-TLF/b/n/12 B.Sc.$\OMS/cmsy/m/n/12 n$

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 in

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 Your

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 Dis-

Underfull \hbox (badness 10000) in paragraph at lines 140--140
\OT1/lato-TLF/b/n/12 ci-
(/opt/texlive/2021/texmf-dist/tex/latex/lato/TS1lato-TLF.fd)
! Undefined control sequence.
l.178 \wheelchart
                 {1.5cm}{0.5cm}{%

Overfull \hbox (54.72835pt too wide) in paragraph at lines 178--185
\OT1/lato-TLF/m/n/10.95 beautiful sleep, 3/8em/accent!40/Hopeful nov-el-ist by
night, 8/8em/accent!60/Daytime
[3]
Overfull \hbox (19.63826pt too wide) in paragraph at lines 202--202
[]\OT1/lato-TLF/b/n/14.4 Referees
! Undefined control sequence.
<argument> ...\label {sec:orgd209e76} \par \cvref
                                                  {Prof.\ Alpha Beta}{Instit...
l.202 }


Underfull \hbox (badness 7981) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 Prof. Al-pha

Underfull \hbox (badness 10000) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 Be-taIn-sti-

Overfull \hbox (66.37175pt too wide) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 tutea.beta@university.edu

Underfull \hbox (badness 10000) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 Ad-dress
! Undefined control sequence.
<argument> ...ne 1\\Address line 2} \par \divider
                                                  \par \cvref {Prof.\ Gamma ...
l.202 }

! Undefined control sequence.
<argument> ...s line 2} \par \divider \par \cvref
                                                  {Prof.\ Gamma Delta}{Insti...
l.202 }


Underfull \hbox (badness 10000) in paragraph at lines 202--202
[]\OT1/lato-TLF/m/n/10.95 Prof.

Underfull \hbox (badness 10000) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 Gamma

Underfull \hbox (badness 10000) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 DeltaIn-sti-

Overfull \hbox (69.24614pt too wide) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 tuteg.delta@university.edu

Underfull \hbox (badness 10000) in paragraph at lines 202--202
\OT1/lato-TLF/m/n/10.95 Ad-dress

LaTeX Warning: Marginpar on page 4 moved.

! Undefined control sequence.
<argument> \faBook
                   Books
l.207 \subsection{\faBook Books}

! Undefined control sequence.
<argument> ...hesubsection\endcsname }\fi \faBook
                                                  Books}{\thepage }{}\protec...
l.207 \subsection{\faBook Books}

! Undefined control sequence.
l.215 \divider

! Undefined control sequence.
<argument> \faFile
                   Journal Articles
l.217 \subsection{\faFile Journal Articles}

! Undefined control sequence.
<argument> ...hesubsection\endcsname }\fi \faFile
                                                  Journal Articles}{\thepage...
l.217 \subsection{\faFile Journal Articles}

! Undefined control sequence.
l.227 \divider

! Undefined control sequence.
<argument> \faUsers
                    Conference Proceedings
l.229 \subsection{\faUsers Conference Proceedings}

! Undefined control sequence.
<argument> ...esubsection\endcsname }\fi \faUsers
                                                  Conference Proceedings}{\t...
l.229 \subsection{\faUsers Conference Proceedings}

[4] (./resume.aux)

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 )
(see the transcript file for additional information){/opt/texlive/2021/texmf-di
st/fonts/enc/dvips/lato/a_vc7epu.enc}{/opt/texlive/2021/texmf-dist/fonts/enc/dv
ips/lato/a_rt66h3.enc}{/opt/texlive/2021/texmf-dist/fonts/enc/dvips/lato/a_y72t
7m.enc}</opt/texlive/2021/texmf-dist/fonts/type1/typoland/lato/Lato-Bold.pfb></
opt/texlive/2021/texmf-dist/fonts/type1/typoland/lato/Lato-Italic.pfb></opt/tex
live/2021/texmf-dist/fonts/type1/typoland/lato/Lato-Regular.pfb></opt/texlive/2
021/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></opt/texlive/2021/texm
f-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on resume.pdf (4 pages, 124568 bytes).
Transcript written on resume.log.
Latexmk: Examining 'resume.log'
=== TeX engine is 'pdfTeX'
Latexmk: References changed.
Latexmk: Log file says output to 'resume.pdf'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'resume.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.

"JSON readtable error: 76" sounds weird, like something is downloading a file, and getting an error in download where it expected json and didn't get it.

But I cannot figure it out where from it is trying to fetch?!

I would first try to export the org file to LaTeX, then go to a shell and run pdflatex manually. The output you are seeing on the first page is typical of when latex doesn't understand some commands because packages aren't installed or used, for example.

I tried to export the org to LaTeX (C-c C-e l l), but I get "JSON readtable error: 76"

@zenny
Copy link
Author

zenny commented Nov 12, 2021

This doesn't seem like a scimax problem, I can build the cv fine.

The reason I dared to ask you! ;-)

That means there maybe some glitches to my user.el? Do you use vanilla scimax as in gitrepo or you have customized user.el? If so , would you mind sharing your user.el - obviously anonymized?

I guess this is a latex problem where either you paths are not complete, or pdfx is not installed (or on the path).

pdfx is installed:

# tlmgr install pdfx
tlmgr: package repository https://ftp.acc.umu.se/mirror/CTAN/systems/texlive/tlnet (verified)
tlmgr install: package already present: pdfx

Is in the path:

$ fd pdfx /opt/*
/opt/texlive/2020/texmf-dist/tex/latex/lwarp/lwarp-pdfx.sty
/opt/texlive/2020/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf
/opt/texlive/2020/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx
/opt/texlive/2021/texmf-dist/tex/latex/pdfx
/opt/texlive/2021/texmf-dist/tex/latex/pdfx/pdfx.xmp
/opt/texlive/2021/texmf-dist/tex/latex/pdfx/pdfx.sty
/opt/texlive/2021/texmf-dist/tex/latex/lwarp/lwarp-pdfx.sty
/opt/texlive/2021/texmf-dist/doc/latex/pdfx
/opt/texlive/2021/texmf-dist/doc/latex/pdfx/pdfx.pdf
/opt/texlive/2021/texmf-dist/doc/latex/pdfx/small2e-pdfx.tex
/opt/texlive/2021/texmf-dist/doc/latex/pdfx/pdfx.xmpdata
/opt/texlive/2021/texmf-dist/doc/latex/pdfmanagement-testphase/l3pdfxform.pdf
/opt/texlive/2021/tlpkg/tlpobj/pdfx.tlpobj
/opt/texlive/2021/texmf-dist/source/latex/pdfx
/opt/texlive/2021/texmf-dist/source/latex/pdfx/pdfx.ins
/opt/texlive/2021/texmf-dist/source/latex/pdfx/pdfx.dtx
/opt/texlive/2021/texmf-dist/source/latex/pdfmanagement-testphase/l3pdfxform.dtx
$ echo $PATH
/opt/haxe/:/opt/neko-2.3.0-linux64/:/home/zenny/.cask/bin:/home/zenny/Downloads/adb-fastboot/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/share/apache-ant/bin:/opt/texlive/2021/bin/x86_64-linux:/home/zenny/.local/bin/cron:/home/zenny/.local/bin/i3cmds:/home/zenny/.local/bin/__pycache__:/home/zenny/.local/bin/statusbar:/home/zenny/.local/bin:/usr/share/apache-ant/bin:/opt/texlive/2021/bin/x86_64-linux:/usr/share/apache-ant/bin:/opt/texlive/2021/bin/x86_64-linux

Or did I miss something?

Thanks again.

@jkitchin
Copy link
Owner

I guess that you are getting errors from LaTeX. There is a symlink in the cv-sample folder that points to altacv.cls in the AltaCV folder, but it did not work for me. I had to copy AltaCV/altacv.cls into the cv-sample directory.

Then this block works to export the example resume.org file for me.

#+BEGIN_SRC emacs-lisp :exports none :result none :exec always
(add-to-list 'load-path (concat "org-cv"))
(require 'ox-altacv)

(setq org-export-with-section-numbers nil)

(let ((org-latex-default-packages-alist '()))
  (org-export-to-file 'altacv "resume-altacv.tex"))
(org-latex-compile "resume-altacv.tex")
(org-open-file "resume-altacv.pdf")
#+END_SRC

@zenny
Copy link
Author

zenny commented May 19, 2022

I guess that you are getting errors from LaTeX. There is a symlink in the cv-sample folder that points to altacv.cls in the AltaCV folder, but it did not work for me. I had to copy AltaCV/altacv.cls into the cv-sample directory.

Then this block works to export the example resume.org file for me.

#+BEGIN_SRC emacs-lisp :exports none :result none :exec always
(add-to-list 'load-path (concat "org-cv"))
(require 'ox-altacv)

(setq org-export-with-section-numbers nil)

(let ((org-latex-default-packages-alist '()))
  (org-export-to-file 'altacv "resume-altacv.tex"))
(org-latex-compile "resume-altacv.tex")
(org-open-file "resume-altacv.pdf")
#+END_SRC

Thanks for the code snippet.

But I could never render something eye-catching like https://github.com/gouvinb/cv-sample/blob/main/assets/demo.gif even after inserting the snippet. I always got garbled pdf output as reported earlier #435 (comment). :(

@jkitchin
Copy link
Owner

I just cloned the cv-sample repo again, and it looks like maybe you need to update a git submodule. This block seems able to export the pdf correctly for me.

#+BEGIN_SRC emacs-lisp :exports none :result none :exec always
(add-to-list 'load-path (concat "org-cv"))
(require 'ox-altacv)

(setq org-export-with-section-numbers nil)

(shell-command "git submodule init")
(shell-command "git submodule update")

(let ((org-latex-default-packages-alist '()))
  (org-export-to-file 'altacv "resume-altacv.tex"))
(org-latex-compile "resume-altacv.tex")
(org-open-file "resume-altacv.pdf")
#+END_SRC

@zenny
Copy link
Author

zenny commented May 19, 2022

(shell-command "git submodule init")
(shell-command "git submodule update")

Thanks for the helpful input. Yet updated #+NAME: onsaveblock to your code, still exporting to pdf gave me a single page output as below:
pic-selected-220519-1433-18

@jkitchin
Copy link
Owner

you should put that export code in a section tagged :noexport: so it doesn't show. Otherwise, it looks like it is working but maybe something is still wrong in LaTeX. Try building the tex file manually with latexmk and see if there are some errors.

@zenny
Copy link
Author

zenny commented May 19, 2022

you should put that export code in a section tagged :noexport: so it doesn't show.

My code snippet looks exactly like you proposed:

* Org-mode file config :noexport:

# Local Variables:
# org-confirm-babel-evaluate: nil
# eval: (add-hook 'before-save-hook (lambda () (org-babel-ref-resolve "onsaveblock")) nil t)
# End:

#+NAME: onsaveblock
;; https://github.com/jkitchin/scimax/issues/435#issuecomment-969356247
#+BEGIN_SRC emacs-lisp :exports none :result none :exec always
(add-to-list 'load-path (concat "org-cv"))
(require 'ox-altacv)

(setq org-export-with-section-numbers nil)

(shell-command "git submodule init")
(shell-command "git submodule update")

(let ((org-latex-default-packages-alist '()))
  (org-export-to-file 'altacv "resume-altacv.tex"))
(org-latex-compile "resume-altacv.tex")
(org-open-file "resume-altacv.pdf")
#+END_SRC

Otherwise, it looks like it is working but maybe something is still wrong in LaTeX. Try building the tex file manually with latexmk and see if there are some errors.

Tried with xelatex, but produced a four page standard output as earlier.

/opt/texlive/2022/bin/x86_64-linux/xelatex -synctex=1 -interaction=nonstopmode -output-driver='xdvipdfmx -z9' "resume".tex

And latexmk failed to build with multiple errors. The error log is posted at http://ix.io/3Y90

Thanks again.

@jkitchin
Copy link
Owner

It looks like you do not have some latex packages you need, e.g.'

! Undefined control sequence.
l.40 \definecolor

means you need to include xcolor in your latex packages.

I guess that ! LaTeX Error: Command \cvsectionfont undefined.

means you don't have the altacv.cls file installed correctly since that is where it is defined.

These are not scimax issues though, they are Latex/altacv issues. You should probably post these there.

@zenny
Copy link
Author

zenny commented May 19, 2022

It looks like you do not have some latex packages you need, e.g.'

! Undefined control sequence. l.40 \definecolor

means you need to include xcolor in your latex packages.

I have installed all the LaTeX packages including xcolor as evident from:

# tlmgr info xcolor
package:     xcolor
category:    Package
shortdesc:   Driver-independent color extensions for LaTeX and pdfLaTeX
longdesc:    The package starts from the basic facilities of the color package, and provides easy driver-independent access to several kinds of color tints, shades, tones, and mixes of arbitrary colors. It allows a user to select a document-wide target color model and offers complete tools for conversion between eight color models. Additionally, there is a command for alternating row colors plus repeated non-aligned material (like horizontal lines) in tables. Colors can be mixed like \color{red!30!green!40!blue}.
installed:   Yes
revision:    60925
sizes:       src: 341k, doc: 989k, run: 81k
relocatable: No
cat-version: 2.13
cat-license: lppl1.2
cat-topics:  colour
cat-contact-home: https://github.com/latex3/xcolor
cat-contact-bugs: https://github.com/latex3/xcolor/issues
collection:  collection-latexrecommended

# tlmgr install xcolor
tlmgr: package repository https://ftp.acc.umu.se/mirror/CTAN/systems/texlive/tlnet (verified)
tlmgr install: package already present: xcolor

I guess that ! LaTeX Error: Command \cvsectionfont undefined.

means you don't have the altacv.cls file installed correctly since that is where it is defined.

altacv.cls is in the root of the folder where report.org is

These are not scimax issues though, they are Latex/altacv issues. You should probably post these there.

To debug orgmode export to tex to pdf appears to be exhaustive it appears, so I am here. Anyway thanks for your always positive feedback! Cheers

@jkitchin
Copy link
Owner

you might have them installed, but that doesn't mean you have \usepackage{xcolor} in the tex file, for example, or in the case of altacv.cls that LaTeX is actually loading it. That is probably why you get those undefined errors.

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