Every once in a while, I get asked about Japanese LaTeX typesetting on a Mac. I solved that problem a while back when I was trying to evangelize LaTeX in my research lab. I was pretty successful. Many jumped on the LaTeX bandwagon. ^^.
I was so successful that I even got a junior to make an instruction sheet for me, in English no less. ^^. So, without further ado, here we are.
¥documentclass{article}
¥begin{document}
¥section{LaTeX Installation Instruction}
¥subsection{pLaTeX package}
1. Access http://math.kyokyo-u.ac.jp/~kiriki/ptex/ .
2. Click “pTex package ダウンロード.”
3. Download “2005年度版.”
3. Open the package.
4. Run the software and install pLaTeX.
**note(1) skiriki in his はじめに post said that he found himself only using English LaTeX when writing papers. So he gave up on maintaining the pTeX package. However, he left the distribution of pTeX to his good friend 小川弘和. Get pTeX from his site. Direct link to download here. I haven’t tried using that package just yet, since I’ve got my setup nice and tight already. If you can try it and let me know how it went, that would be really cool. I will do my best to try if you couldn’t resolve it on your own after 25 hours of trying. ^^.
¥subsection{“a match in her pocket”}
1. Access http://www.teatimelogic.com/ .
2. Click “a match in her pocket.”
3. Click “Download” button and download it.
4. Open the folder.
5. Run “a match in her pocket.”
6. Click “configuration only” and follow directions.
¥subsection{TeXShop}
1. Access http://www.uoregon.edu/~koch/texshop/texshop.html .
2. Click “obtain” tub and download latest TeXShop.
3. Open TeXShop folder and move “TeXShop” application to your desktop.
4. Run “TeXShop”
¥subsection{TeXShop Setting}
1. Choose “Preferences…” from “TeXShop” in the upper menu.
2. Choose “Set Default Values” – “pTeX(sjis)” or “pTeX(euc).”
3. Click “OK.”
Now you finished installing LaTeX for MacOS.
¥end{document}
If LaTeX is your thing, consider downloading my free LaTeX Help app. Did I mention it was free? ^^. You can find a link to it on the top right of this page (look for alpha and omega). Thanks for the support.
ps. If you get font problems trying to view the TeX documents on Windoze PCs, try adding the command
\usepackage[T1]{fontenc}
Resulting pdf looks crap in Mac, but surprising, no more font problems in Windoze.
Related posts... maybe:
- Grapher
- Apple Magic Mouse Settings
- Japanese Inventions
- The real Japanese iPhone killer
- Early morning of Euro cup and color profiles
Related posts brought to you by Yet Another Related Posts Plugin.








How about using MacTeX and just rendering w/ XeTeX – then you have full unicode-support
Reply
k Reply:
June 6th, 2009 at 1:52 am
That’s ok too. I think skiriki did mention somewhere in his site too. I’ve yet to try it with XeTeX. Will schedule to try it out soon!
Reply
Sorry, not everyone is using Mac OS X — so just use XeTeX, nowadays it’s afaik available for all platforms:
http://en.wikipedia.org/wiki/Xetex
It just makes live so much easier
Reply
Will try this soon.
@niels: I am just curious about this Xetex though since most of the paper templates that are provided by conference committees in my field, computer graphics, seem to work only for latex.
Any idea if it’ll also work for Xetex ?
Reply
Hm, I installed ptex and texshop and everything seems to be working. But I got a problem with loading images. It asks for “picture.xbb”, while on Windows, the all the pics are loaded just fine.
Do you know how to handle this in mac ? Or maybe the way to load pictures is different ? This is the source code.
\begin{figure}[tbp]
\centering
\includegraphics[width=3in]{used_joints.png}
\caption{Used Joints}
\label{fig_used_joints}
\end{figure}
sin´s last blog post..Job Hunting (就職活動): Being Prayed (祈られた)
Reply
k Reply:
June 7th, 2009 at 12:41 am
yeah. use .eps figures when working with pTeX. something about bounding boxes.
Reply
While XeTex does the rendering of kana/kanji together with the fontspec package with no problems, the formatting looks a bit funky in my eyes. Are there any formatting packages to resolve that? I’ve searched for solutions and the only thing I found is
\XeTeXlinebreaklocale “ja” \XeTeXlinebreakskip=0em plus 0.1em minus 0.01em \XeTeXlinebreakpenalty=0
which I include before any Japanese text, since otherwise the formatting craps out on me. The problem is, for a block of text the formatting is still pretty bad and uneven. Tategaki seems nigh impossible.
Does anyone know of any watertight packages for Japanese? For short examples the above works ok but anything more than that, like a couple of lines, and things start to look bad. Linebreaks look random and the spacing is off etc.
I tried to typeset Rashomon off of Gutenberg and while it’s readable it doesn’t follow Japanese formatting standard such as “one character block” for indents in new paragraphs etc
Reply
Hmm found this. Will try it and see.
http://kuniyoshi.fastmail.fm/xetex/
Reply
Tried genzi.sty and got errors since I didn’t have the specified Kozuka font, but just make sure to change that in genzi.sty to whatever Japanese fonts you have installed and it seems to work! In my case the installed Kozuka fonts on my system were simply named differently than what the .sty specifies.
Reply
I see. I’ll try it, thanks.
sin´s last blog post..Job Hunting (就職活動): Being Prayed (祈られた)
Reply