0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Overleafで日本語: platex使う

Last updated at Posted at 2021-01-27

Overleafで日本語文章を作る。

以前,こういう記事を書きました。
LaTeXで修論を書く(Overleaf使う)

毎年修論の時期が近づくとLGTMとかストックしてくれる人がいて,それなりに見られてるようです。
ここではXeLaTeX使って日本語を書くための設定を説明してました。

最近,Overleafの日本語の文章を書くための設定みたら,もっと楽な設定があったので紹介します。

設定

そんなに難しいことはないです。

まず,CompilerをLaTeXにします。

次にlatexmkrcというファイルを作ります。拡張子はなしです。以下の内容を書きます。

$latex = 'platex';
$bibtex = 'pbibtex';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'mendex %O -o %D %S';

documentclassはjsarticleにして,普通に文章書きます。これで大丈夫です。

\documentclass{jsarticle}
\usepackage[utf8]{inputenc}

\title{platex-test}
\date{January 2021}

\begin{document}

\maketitle

\section{はじめに}

日本語の設定。

\end{document}

他にもLuaLaTeX使う方法も紹介されてますが,jsarticle使うのが楽かなと思います。

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?