I've recently started to use LaTeX but I've just encountered a problem, I tried searching it, although apparently no-one asked it before.
I'd like to write using Japanese input, but when I typeset, there can happen 3 things:
- I get some error when compiling;
- I get question marks where Japanese stuff should appear;
- Nothing appears.
For example I had an example .tex file, compiled it and it worked, so I added some japanese in order to see "The author is [Japanese here]", but what I could see was "The author is [blank space]".
I've tried checking some guides, but I haven't found anything that could solve my problem (they are too old, or they don't talk about this at all).
Some minutes ago I tried compiling this:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage[romanian]{babel}
\usepackage[overlap, CJK]{ruby}
\usepackage{CJKulem}
\renewcommand{\rubysep}{-0.2ex}
\newenvironment{Japanese}{%
\CJKfamily{min}%
\CJKtilde
\CJKnospace}{}
\begin{document}
\parskip 3ex
\parindent 0pt
\begin{CJK}{UTF8}{}
\begin{Japanese}
ねこ
\end{Japanese}
\end{CJK}
\end{document}
It compiles fine but, still same problem, nothing appears when typeset, even if I should see "ねこ". There are many Linux guides, but I have a Mac and apparently, there aren't a lot around...
EDIT: A small add, if I get this to work, is the solution related to other asian languages such as Korean or Chinese?