Press esc to command mode
Enter: Edit cell L: Line number display. Press again to hide M: Markdown mode Y: Code mode C: Copy of cell V: Paste the copied cell K: Move to the upper cell J: Move to cell below A: Select cell above B: Select cell below DD: Delete cell Space: Scroll down Shift + Space: Scroll up When in cell edit mode
Shift + Enter: Execute cell, move to next cell ctrl + Enter: cell execution only
If you use Japanese, you cannot use Export as PDF on the menu bar.
Because the documentclass of \ documentclass [a4paper, dvipdfmx] {jsarticle}
is generated in English.
jsarticle.tplx
in the place where the environment variable of tex passes (such as where platex.exe is).jupyter-nbconvert --to latex% 1 --template jsarticle.tplx
, which automatically converts to jsarticle, into the terminal. % 1 is the file name and% 2 is the file base name.jsarticle.tplx
% Default to the notebook output style
((* if not cell_style is defined *))
((* set cell_style = 'style_ipython.tplx' *))
((* endif *))
% Inherit from the specified cell style.
((* extends cell_style *))
%===============================================================================
% Latex Article
%===============================================================================
((* block docclass *))
\documentclass[a4paper,dvipdfmx]{jsarticle}
((* endblock docclass *))
Jupyter2PDF.sublime-build
{
"cmd":["Jupyter2PDF.bat","$file","$file_base_name"],
}
Jupyter2PDF.bat
@echo off
jupyter-nbconvert --to latex %1 --template jsarticle.tplx
extractbb %2_files/*.png
platex% 2.tex
.sty file isn't there, but keep pressing Enter to continue.dvipdfmx% 2.dvi
SumatraPDF -reuse-instance% 2.pdf
! LaTeX Error: File `ucs.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
body...
! LaTeX Error: Unknown option `mathletters' for package `ucs'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.54 \usepackage
[utf8x]{inputenc} % Allow utf-8 characters in the tex do...
?
! LaTeX Error: File `utf8x.def' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)
Enter file name:
! Missing $ inserted.
<inserted text>
$
l.1047 \(\newpage
\)
?
Below are about 20 errors related to \ newpage
.
I want to create a PDF with just Build, but it stops at platex. Can't I because I don't have ucs.sty? Please let me know.
<img src ='image path'>
\ includegraphics {image path}
I tried various things such as [clip, width = \ columnwidth], [clip, width = 4cm], [clip], [width = 4cm], but it seems that the image cannot be pasted when [] is attached.
Recommended Posts