{"id":174,"date":"2007-01-24T08:32:43","date_gmt":"2007-01-23T23:32:43","guid":{"rendered":"https:\/\/fugutabetai.com\/blog\/2007\/01\/24\/getting-japanese-input-in-utf8-to-work-in-latex-on-osx\/"},"modified":"2007-01-24T08:32:43","modified_gmt":"2007-01-23T23:32:43","slug":"getting-japanese-input-in-utf8-to-work-in-latex-on-osx","status":"publish","type":"post","link":"https:\/\/fugutabetai.com\/blog\/2007\/01\/24\/getting-japanese-input-in-utf8-to-work-in-latex-on-osx\/","title":{"rendered":"Getting Japanese input in UTF8 to work in LaTeX on OSX"},"content":{"rendered":"<p>I have installed LaTeX via fink, and when writing a paper, came across the problem that Japanese just does not work in my environment.  This is a bit of a problem as I&#8217;m writing about some analysis of English, Japanese, and Chinese data.  So I&#8217;m going to try to get Japanese input working in my LaTeX distribution.  <\/p>\n<p><!-- readmore --><\/p>\n<p>latex -version gives me:<\/p>\n<p><PRE><br \/>\n$ latex -version<br \/>\npdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)<br \/>\nkpathsea version 3.5.4<br \/>\nCopyright (C) 1997-2004 Peter Breitenlohner (eTeX)\/Han The Thanh (pdfTeX).<br \/>\nKpathsea is copyright (C) 1997-2004 Free Software Foundation, Inc.<br \/>\n<\/PRE><\/p>\n<p>Following along from http:\/\/www.physics.wustl.edu\/~alford\/tex\/japanese_latex.html<\/p>\n<p>I downloaded both http:\/\/cjk.ffii.org\/cjk-4.7.0.tar.gz and http:\/\/cjk.ffii.org\/cjk-4.7.0-doc.tar.gz locally and the font from http:\/\/www.tex.ac.uk\/tex-archive\/help\/Catalogue\/entries\/cjk-fonts.html<br \/>\n.<\/p>\n<p>I had a really hard time trying to figure out where my latex search paths are.  I actually have two; within emacs it is <code>\/usr\/local\/teTeX\/share\/texmf.tetex\/<\/code> and in the terminal it is <code>\/sw\/share\/texmf-dist\/<\/code> and this is probably because I likely have multiple copies of LaTeX installed.  One is from fink for sure, the other, well, who knows.  Anyway, I also found these directions: <\/p>\n<p>http:\/\/www.ece.uci.edu\/~chou\/unicode-tex.html<\/p>\n<p>Which look a bit better.  I spent about an hour fooling around with kpsewhich and all sorts of crap.  In the end I copied the CJK\/texinputs directory to both of the MAIN (not local, like I am supposed to) repositories, and I get pretty far.  Now I have complaints about fonts:  LaTeX Font Warning: Font shape `C70\/cyberbit\/m\/n&#8217; undefined<\/p>\n<p>So I will try to install the fonts. This was a major pain.  Again, I just installed things in the main directories where they should not go.<\/p>\n<p>I can get past what looks like the main CJK compiling problems, but not when I \\usepackage[english]{babel} I get this horrible error message:  <code>ERROR: Use of \\@citex doesn't match its definition<\/code>.  I don&#8217;t know why babel would break citing.  A search shows that this is due to a conflict between the ACM style file and babel.  They suggest removing the babel package &#8211; which is not an option for me.  http:\/\/www.acm.org\/sigs\/pubs\/proceed\/sigfaq.htm <\/p>\n<p>Switching to a regular \\documentclass[twocolumn]{article} makes things work (after removing the other things particular to the ACM style.)  Unfortunately, I get a lot of messages about not being able to generate the cyberbit font files, which doesn&#8217;t surprise me because my paths are just crazy.  I think I&#8217;m giving up.  Maybe I&#8217;ll write the Japanese in romaji.  How disappointing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have installed LaTeX via fink, and when writing a paper, came across the problem that Japanese just does not work in my environment. This is a bit of a problem as I&#8217;m writing about some analysis of English, Japanese, and Chinese data. So I&#8217;m going to try to get Japanese input working in my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,5],"tags":[],"_links":{"self":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts\/174"}],"collection":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fugutabetai.com\/blog\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}