Skip to content

Instantly share code, notes, and snippets.

@masa-ita
Last active August 8, 2018 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masa-ita/1a2846986ffbb8c938e2a3d0840a5f57 to your computer and use it in GitHub Desktop.
Save masa-ita/1a2846986ffbb8c938e2a3d0840a5f57 to your computer and use it in GitHub Desktop.
日本語のJupyter NotebookをPDFとしてダウンロードする ref: https://qiita.com/masa-ita/items/8d5ebe8afe0d580af184
((= Latex base template (must inherit)
This template builds upon the abstract template, adding common latex output
functions. Figures, data_text,
This template does not define a docclass, the inheriting class must define this.=))
((*- extends 'document_contents.tplx' -*))
%===============================================================================
% Abstract overrides
%===============================================================================
((* block header *))
((* block docclass *))((* endblock docclass *))
((* block packages *))
\usepackage[T1]{fontenc}
\usepackage{jalinebreak}
\setlength{\parindent}{0in}
...(以下略)
sudo texhash
kpsewhich jalinebreak.sty
\XeTeXlinebreaklocale "ja"
\XeTeXlinebreakskip=0pt plus 1pt
\XeTeXlinebreakpenalty=0
\def\<{\@ifstar{\zx@hwback\nobreak}{\zx@hwback\relax}}
\def\zx@hwback#1{\leavevmode#1\hskip-.5em\relax}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment