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

Failed to convert a markdown with diacritical or CJK chars #29

Open
inutano opened this issue Jul 5, 2023 · 1 comment
Open

Failed to convert a markdown with diacritical or CJK chars #29

inutano opened this issue Jul 5, 2023 · 1 comment

Comments

@inutano
Copy link

inutano commented Jul 5, 2023

Failed to run command: ["/tmp/93847ba1-4359-4e4a-93ed-75d24d51b6be/bh23-pbo/paper", "BH23JP", "/app/public/papers/93847ba1-4359-4e4a-93ed-75d24d51b6be/paper.pdf", "https://github.com/biohackathon-japan/bh23-pbo"]
Generating /app/public/papers/93847ba1-4359-4e4a-93ed-75d24d51b6be/paper.pdf
Scanning directory "/tmp/93847ba1-4359-4e4a-93ed-75d24d51b6be/bh23-pbo/paper" for paper source
      
      -V journal_name='BioHackrXiv.org'
      -V journal_url='https://biohackrxiv.org/'
      -V logo_path='/bhxiv-gen-pdf/resources/biohackrxiv/logo.png'
      -V year='2023'
      -V submitted='05 Jul 2023'
      -V git_url='https://github.com/biohackathon-japan/bh23-pbo'
      -V event_title='DBCLS BioHackathon 2023'
      -V event_url='https://2023.biohackathon.org/'
      -V event_location='Kagawa, Japan, 2023'
      -V geometry:margin=1in
      --from markdown+autolink_bare_uris
      --template '/bhxiv-gen-pdf/resources/biohackrxiv/latex.template'
      --no-check-certificate
      --csl=/bhxiv-gen-pdf/resources/biohackrxiv/apa-new.csl
      --lua-filter='/bhxiv-gen-pdf/resources/biohackrxiv/filters/extract-cito.lua'
      --citeproc
      --lua-filter='/bhxiv-gen-pdf/resources/biohackrxiv/filters/insert-cito-in-ref.lua'
      -s
      --output='/app/public/papers/93847ba1-4359-4e4a-93ed-75d24d51b6be/paper.pdf'
      paper.md
Change into directory /tmp/93847ba1-4359-4e4a-93ed-75d24d51b6be/bh23-pbo/paper
Executing "pandoc  -V journal_name='BioHackrXiv.org' -V journal_url='https://biohackrxiv.org/' -V logo_path='/bhxiv-gen-pdf/resources/biohackrxiv/logo.png' -V year='2023' -V submitted='05 Jul 2023' -V git_url='https://github.com/biohackathon-japan/bh23-pbo' -V event_title='DBCLS BioHackathon 2023' -V event_url='https://2023.biohackathon.org/' -V event_location='Kagawa, Japan, 2023' -V geometry:margin=1in --from markdown+autolink_bare_uris --template '/bhxiv-gen-pdf/resources/biohackrxiv/latex.template' --no-check-certificate --csl=/bhxiv-gen-pdf/resources/biohackrxiv/apa-new.csl --lua-filter='/bhxiv-gen-pdf/resources/biohackrxiv/filters/extract-cito.lua' --citeproc --lua-filter='/bhxiv-gen-pdf/resources/biohackrxiv/filters/insert-cito-in-ref.lua' -s --output='/app/public/papers/93847ba1-4359-4e4a-93ed-75d24d51b6be/paper.pdf' paper.md"
Error producing PDF.
! Package inputenc Error: Unicode character 雑 (U+96D1)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.781 (JP): 雑

Try running pandoc with --pdf-engine=xelatex.
Failed to generate /app/public/papers/93847ba1-4359-4e4a-93ed-75d24d51b6be/paper.pdf!

So far I've tried adding --pdf-engine=xelatex or --pdf-engine=lualatex parameters to the pandoc command with several combinations of the engines and the templates, but it didn't work.

I assume I need to overwrite/add the font setting of the given latex template. Any idea? @pjotrp @egonw

@pjotrp
Copy link

pjotrp commented Jul 5, 2023

We need to add the latex font to the dependencies. Are you running this on your own machine? See also

https://tex.stackexchange.com/questions/480071/package-inputenc-error-unicode-character

@inutano inutano mentioned this issue Feb 26, 2024
Draft
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