0

I am using CJK successfully on MacTeX thus:

\documentclass[12pt]{article}
\usepackage{CJKutf8}
\newenvironment{Japanese}{%
  \CJKfamily{min}%
  \CJKtilde
  \CJKnospace}{}
\begin{document}

\title{\begin{CJK}{UTF8}{}\begin{Japanese}講道館 柔道 \end{Japanese}\end{CJK}}
\author{}
\date{}
\maketitle


\end{document}

Unfortunately the output does not maintain the space between 講道館 and 柔道. What should I do to preserve it?

  • welcome to tex.sx. i can't answer your question, but have a question for you ... did you intentionally omit backslashes before your control sequences, or did you cut-and-paste from a text that used a different character than a backslash, or were backslashes removed "automatically" when this was posted? i'm asking, because there have been some problems on this site in the handling of backslashes. – barbara beeton Feb 12 '17 at 17:13
  • As it stands, the example cannot be run, please fix it. – egreg Feb 12 '17 at 17:27
1

Remove \CJKnospace:

\documentclass[12pt]{article}
\usepackage{CJKutf8}
\newenvironment{Japanese}{%
  \CJKfamily{min}%
  \CJKtilde
%  \CJKnospace
}{}
\begin{document}

\title{\begin{CJK}{UTF8}{}\begin{Japanese}講道館 柔道 \end{Japanese}\end{CJK}}
\author{}
\date{}
\maketitle

\end{document}

enter image description here

| improve this answer | |
  • that was embarrassingly easy – user1256923 Feb 12 '17 at 18:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.