With Ubuntu/16.04 Desktop.
sudo apt install texlive-lang-cjk texlive-formats-extra
sudo apt install texlive-fonts-recommended texlive-fonts-extra
install latexmk
sudo apt install latexmk
with ~/.latexmkrc
.
#!/usr/bin/env perl
$latex = 'uplatex -synctex=1 -halt-on-error';
$latex_silent = 'uplatex -synctex=1 -halt-on-error -interaction=batchmode';
$bibtex = 'upbibtex';
$biber = 'biber --bblencoding=utf8 -u -U --output_safechars';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'mendex %O -o %D %S';
$max_repeat = 5;
$pdf_mode = 3;
$pvc_view_file_via_temporary = 0;
$pdf_previewer = 'xdg-open';
wget http://sourceforge.jp/projects/mytexpert/downloads/26068/jlisting.sty.bz2/
bunzip2 jlisting.sty.bz2
sudo cp jlisting.sty /usr/share/texlive/texmf-dist/tex/latex/listings/
sudo mktexlsr
latexmk main.tex
Remain final output (pdf).
latexmk -c
Delete all outputs.
latexmk -C
See YaTeX - TeX Wiki.
install YaTeX and configure yatex in ~/.emacs.el
.
sudo apt install yatex
Set tex-command
to use latexmk
(and uplatex
).
Set tex-pdfview-command
to evince
to preview output(pdf).
Download fwdevince
(from Evince/fwdevince/Python - TeX Wiki)
Notice: Use Python3 with shebang line
#!/usr/bin/env python3
install
chmod +x fwdevince
sudo cp -p fwdevince /usr/local/bin
sudo ln -s /usr/local/bin/fwdevince /usr/local/bin/invevince
and edit .emacs.el
(see: うぶつん: SyncTeXの設定。 Emacs(YaTeX) + Evince)
Jump!
- forward search (from emacs to evince) :
C-c e
(M-x evince-forward-search
) - inverse search (from evince to emacs) : Control + Left-click
Install JRE.
sudo apt install default-jre
Download redpen-1.7.6.tar.gz
from
redpen github and
install it.
tar xvzf redpen-1.7.6.tar.gz
mv redpen-1.7.6/ redpen
mv redpen /usr/local
Add /usr/local/redpen/bin
to PATH
if necessary.