LoginSignup
6
6

More than 5 years have passed since last update.

LaTeX作成環境(TeX Live + Atom)を構築する(Ubuntu編)

Last updated at Posted at 2018-05-13

謝辞

LaTeX の書き方が手抜きですが、ご了承お願い致します。

環境

Ubuntu MATE 18.04

Ubuntu_version
$ cat /etc/issue
Ubuntu 18.04 LTS \n \l

TeX live のインストール

texliveのインストール
$ sudo apt install texlive-full

Atom

Atom のインストール

Atom.io から atom-***.debをダウンロードし、インストールする。
***amd64 など)

atomのインストール
$ sudo dpkg -i atom-***.deb

Atom の拡張機能のインストール

apm
$ apm install latex language-latex latexer pdf-view

sudo をつけない点と、aptと打ち間違えないようする点に注意

なお、Packageの詳細な説明は以下のサイトから引用する。
AtomエディタにLaTeXの日本語環境を構築することによる文書作成の効率化【Windows】

latex: AtomからLaTeXの文書スクリプトをコンパイルするのに必要
language-latex: Atom内でLaTeXのシンタックスハイライトのために必要
latexer: AtomでLaTeX周りの自動補完を行うために必要
pdf-view: pdf-view: AtomのためのPDFビューアー

Atom package の LaTeX のセッティング

  • Settings - Install から latex を検索し、 Settings をクリックする
    AtomSetting.png

  • pLaTeXでコンパイルするようにする。

    • Engine にて pLaTeX を選択
  • コンパイル時、PDFファイルを自動で開かないようにする

    • Open Results after Successful BuildOpen Results in Background のチェックを外す

Input method 関連の設定

Input method として Fcitx を使用する場合の追加の設定

Virtual Keyboard を無効にする

TeXファイルのコンパイルのショートカットキーである Ctrl + Alt + b により、Virtual Keyboard が表示されてしまう。これを防ぐため、Virtual Keyboardを無効にする。

方法

Input Method Configration - Addon で、Advancedにチェックを入れた後、Virtual Keyboard のチェックを外す。
InputMethodConfig.png

Fcitx-mozc

日本語入力時、空白文字# を半角入力されるようにする。

空白文字

  • Mozc Setting - GeneralSpace input styleHalfwidth にする。
    • なお、この設定をすると、 Shift + Space 時には全角の空白文字が入力されるようになる。

MozcGeneral.png

#(シャープ)

  • Mozc Setting - Advanced#%&@$^_|`\CompentionHalfwidth にする。
    • なお、日本語入力時でも、数字やアルファベットを半角で入力したい場合も、この項目(Advanced)で設定すればよい。

MozcAdvanced.png

参考文献

UbuntuにTeX環境をインストールするための覚書
AtomエディタにLaTeXの日本語環境を構築することによる文書作成の効率化【Windows】
奥村晴彦・黒木祐介 (2018)『[改訂第7版] LaTeX2e 美文書作成入門』技術評論社

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6