-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Comments
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. |
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. |
Thanks @jkitchin for prompt response.
Can you share me your Mine says:
I have appended in
Could this be a conflict?
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:
But I cannot figure it out where from it is trying to fetch?!
I tried to export the org to LaTeX (C-c C-e l l), but I get "JSON readtable error: 76" |
The reason I dared to ask you! ;-) That means there maybe some glitches to my
Is in the path:
Or did I miss something? Thanks again. |
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.
|
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). :( |
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.
|
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. |
My code snippet looks exactly like you proposed:
Tried with
And Thanks again. |
It looks like you do not have some latex packages you need, e.g.' ! Undefined control sequence. 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. |
I have installed all the LaTeX packages including xcolor as evident from:
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 |
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. |
Hi,
I am trying to export https://github.com/gouvinb/cv-sample without making any changes in scimax, but I get:
pdfx.sty
is only available intexlive-latexextra
package which is already installed, but there is no pointer topdfx.sty
in texlive 2021 (nor anytexlive-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.
The text was updated successfully, but these errors were encountered: