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

Can not download pdf #34

Open
IMAI-Yuji opened this issue Jul 28, 2018 · 4 comments
Open

Can not download pdf #34

IMAI-Yuji opened this issue Jul 28, 2018 · 4 comments

Comments

@IMAI-Yuji
Copy link
Contributor

What did you do?

Can not down load pdf via LaTeX

What did you expect to happen?

Get PDF of opened notebooks.

What happened instead?

Error page appearted.

500 : Internal Server Error
The error was:

nbconvert failed: xelatex not found on PATH, if you have not installed xelatex you may need to do so. Find further instructions at https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex.

Steps to reproduce the behaviour

  • Start docker container

    % sudo docker run -it --rm -p 8888:8888 niicloudoperation/notebook
    
  • Open the sample notebook
    http://localhost:8888/notebooks/02_AWS%E6%93%8D%E4%BD%9C%E7%94%A8%E3%83%84%E3%83%BC%E3%83%AB%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB.ipynb#

  • File -> Download as -> PDF via LaTeX

Configuration (MUST fill this out):

Nothing

Hash

1c325a2

@IMAI-Yuji
Copy link
Contributor Author

jupyter/docker-stacks#354 may be related issue.

I just have added a similar line , build a image and run a container.
I have gotten a PDF. However, Japanese fonts did not appeared.

02_AWS操作用ツールのインストール.pdf

@NLPD
Copy link

NLPD commented Jul 30, 2018

Similar issue here.

@yacchin1205
Copy link
Contributor

yacchin1205 commented Aug 1, 2018

@IMAI-Yuji Thank you for your report! I have confirmed the error and the issue about the japanese fonts.

To use japanese fonts in a PDF, I assume that we should set a custom template to specify suitable fonts (like https://tex.stackexchange.com/questions/301690/japanese-font-with-good-kanji-coverage-for-xelatex-on-linux ) to the configuration file.

We will try to fix the problems... Please let me know if you have any solutions to the japanese fonts 😃

@IMAI-Yuji
Copy link
Contributor Author

Hi.

Just sharing my status trying to fix.

I expected this would solve the issue, https://qiita.com/masa-ita/items/8d5ebe8afe0d580af184
But I got an error page. Here I attach the screenshot and the error message.

I'm going to check it works on Ubuntu or not.

Any suggestions?

err

nbconvert failed: PDF creating failed, captured latex output:
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/dev/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(/notebooks/notebook.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 11 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex
(/usr/share/texlive/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3unicode-data.def)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-patches.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/euenc/eu1lmr.fd)kpathsea:make_tex: Invalid fontname `[lmroman10-regular]', contains '['

! Font EU1/lmr/m/n/10=[lmroman10-regular]:mapping=tex-text at 10.0pt not loadab
le: Metric (TFM) file or installed font not found.
<to be read again> 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont
                                              
? 
! Emergency stop.
<to be read again> 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont
                                              
No pages of output.
Transcript written on notebook.log.

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

3 participants