mszep / pandoc_resume

The Markdown Resume

Home Page:http://mszep.github.io/pandoc_resume/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure in the generation of PDF

kcallis opened this issue · comments

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

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.

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

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

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