LoginSignup
7
5

More than 5 years have passed since last update.

sharelatexで日本語を使う簡単な方法

Posted at

ShareLaTeX

オンラインでLaTeXを処理できるサービスのsharelatex
https://ja.sharelatex.com/

オンライン版で日本語を使う簡単な方法を見つけました。

XeLaTeXを使う

  1. ShareLaTeXのオプションでコンパイラをXeLaTeXにする
  2. documentclassを\documentclass[a4paper,xelatex,ja=standard]{bxjsarticle}にして,bxjsarticleを使えるようにする。
  3. あとは普通に日本語で書く

他の設定は特になくても,日本語が使えます。

ソースの例

\documentclass[a4paper,xelatex,ja=standard]{bxjsarticle}
%\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage{amsmath}

\title{test}
\date{March 2017}

\begin{document}

\maketitle
\tableofcontents

\section{Introduction}
\section{日本語}
\subsection{サブ}

\begin{align}
\int dx=x
\end{align}

\end{document}

XeLaTeX+bxjsarticle

XeLaTeXの使い方はこの辺を参考にしました。
https://texwiki.texjp.org/?BXjscls#x483b172

7
5
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
7
5