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

Failure in the generation of PDF #63

Open
kcallis opened this issue Oct 3, 2019 · 4 comments
Open

Failure in the generation of PDF #63

kcallis opened this issue Oct 3, 2019 · 4 comments

Comments

@kcallis
Copy link

kcallis commented Oct 3, 2019

Expected Behavior

Using the non-dockerized version of pandoc-resume. Previously, prior to the docker version, I never had an issue.

Actual Behavior

When doing a make, it seems that the html document is created, but hangs at creation of the pdf.

Steps to reproduce the behavior

[kcc@elite pandoc_resume]$ make
mkdir -p output
PANDOC_VERSION=`pandoc --version | head -1 | cut -d' ' -f2 | cut -d'.' -f1`; \
if [ "$PANDOC_VERSION" -eq "2" ]; then \
        SMART=-smart; \
else \
        SMART=--smart; \
fi \

for f in markdown/*.md; do \
        FILE_NAME=`basename $f | sed 's/.md//g'`; \
        echo $FILE_NAME.html; \
        pandoc --standalone --include-in-header styles/chmduquesne.css \
                --lua-filter=pdc-links-target-blank.lua \
                --from markdown --to html \
                --output output/$FILE_NAME.html $f; \
done
resume.html
[WARNING] This document format requires a nonempty <title> element.
  Please specify either 'title' or 'pagetitle' in the metadata,
  e.g. by using --metadata pagetitle="..." on the command line.
  Falling back to 'resume'
for f in markdown/*.md; do \
        FILE_NAME=`basename $f | sed 's/.md//g'`; \
        echo $FILE_NAME.pdf; \
        pandoc --standalone --template styles/chmduquesne.tex \
                --from markdown --to context \
                --variable papersize=Letter\
                --output output/$FILE_NAME.tex $f > /dev/null; \
        mtxrun --path=output --result=$FILE_NAME.pdf --script context $FILE_NAME.tex > output/context_$FILE_NAME.log 2>&1; \
done
resume.pdf

This is were the process hangs!

Versions

pandoc 2.7.3

mtx-context | ConTeXt Process Management 1.02
mtx-context |
mtx-context | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.03.21 21:39
Pandoc and context versions

NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling

@nitrocode
Copy link
Contributor

Try downgrading to pandoc 2.2.1 and/or context 1.02. Those are the versions that seem to work for me on ubuntu 18.04.

If you'd like the debug the issue, try running the commands in the Makefile manually. There should be a verbose option in both pandoc or context. If you can provide that, maybe the error will be more obvious.

@warm-bagel
Copy link

warm-bagel commented Feb 20, 2020

Same-ish problem here. I will try downgrading. But wanted to paste the error as it's slightly different.

    mtxrun --path=output --result=$FILE_NAME.pdf --script context $FILE_NAME.tex > output/context_$FILE_NAME.log 2>&1; \
    done
    resume.pdf
    Makefile:9: recipe for target 'pdf' failed
    make: *** [pdf] Error 1

@XavierDefontaine
Copy link

I managed to fix the issue by using Docker, and tick off the gRPC experimental feature in Docker's preferences settings.

@caleb-james-smith
Copy link

I am having a similar issue on macOS (Sonoma 14.1) using pandoc 3.2.
I have tried make, make all, or make pdf. In all cases, resume.pdf is not created.

make pdf

mkdir -p output
PANDOC_VERSION=`pandoc --version | head -1 | cut -d' ' -f2 | cut -d'.' -f1`; \
	if [ "$PANDOC_VERSION" -eq "2" ]; then \
		SMART=-smart; \
	else \
		SMART=--smart; \
	fi \

for f in markdown/*.md; do \
		FILE_NAME=`basename $f | sed 's/.md//g'`; \
		echo $FILE_NAME.pdf; \
		pandoc --standalone --template styles/chmduquesne.tex \
			--from markdown --to context \
			--variable papersize=A4 \
			--output output/$FILE_NAME.tex $f > /dev/null; \
		mtxrun --path=output --result=$FILE_NAME.pdf --script context $FILE_NAME.tex > output/context_$FILE_NAME.log 2>&1; \
	done
resume.pdf

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

5 participants