Friday, October 17, 2014

Writing Japanese using pLatex in Mac

This is how it is done!

First of all, the credit should go to Link and I am just copying from there.


  • Install Macports from here; follow any additional steps stated by them.
  • After installing Macports, type the following on the terminal
sudo port install pTeX +hiragino +otf +utf8 +motif +macosx
  • Install TeXShop if you do not already have it.
  • Open preferences in TeXShop and select "Set Default Values". In the drop down menu, choose Legacy pTeX (Shift JIS)
  • Save your tex file using Japanese SJIS encoding.
  • Press "Typeset" to build your file
  • If things are not working try the following.
    • modify the file “/Users/<your account>/Library/TeXShop/bin/platex2pdf-euc” to change path to “opt” instead of “usr”. That is 
from [export PATH=$PATH:/usr/local/bin:/usr/local/teTeX/bin
to [export PATH=$PATH:/opt/local/bin:/usr/local/teTeX/bin]
    • If fontspec is needed:
sudo tlmgr update –self
sudo tlmgr install fontspec

  • Here is a sample code
%\documentclass[twocolumn,11pt]{jarticle} %In case two column layout
\documentclass[a4j]{jarticle}
\usepackage{graphicx} %for including graphics
\usepackage{nidanfloat}
\usepackage{url}
\title{タイトル}
\author{ 僕の名前 }
\date{2010年}
\renewcommand{¥refname}{References}
\begin{document}
\maketitle
\section{テスト}
これはテストです。
\end{document}





No comments:

Post a Comment