Hello all,
I am trying to make shortcut macros for commonly used expressions in
my documents, and in some of them I need one or more CJK characters.
Unfortunately, the CJK chars are ignored completely. I am not sure
whether this is an incorrect setup on my system, or I need to take
more care in dealing with CJK chars? It seems that I don't understand
enough about the TeX macro expansion yet and how CJK package affects
it, perhaps?
Below is a minimal example, showing that the style of text set by the
macro is quite different from that of the text set directly in the
document. Adding a CJK environment to the inside of the macro did not
change anything (neither removing the picture environment). My
uneducated guess is that the encoding needs to be set differently.
\documentclass[12pt]{article}
%% CJK package using HG Gyoshotai
\usepackage{CJK}
\usepackage[T1]{fontenc}
\renewcommand\rmdefault{goth}
%%%%%%%%%%%%%%%%%%
\newcommand{\Gadd}[1]{%
\put(40,85){〒\textnormal{#1}}% #1 = Zip code
}%
%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{CJK}{UTF8}{goth}%
\setlength{\unitlength}{1mm}%
\noindent\begin{picture}(160,118)(0,0)%
\put(40,95){\large 〒\textnormal{181-0002}}%
\Gadd{181-0002}
\end{picture}%
\end{CJK}%
\end{document}
Any pointers would be much appreciated.
_______________________________________________
Cjk maillist - [email protected]
https://lists.ffii.org/mailman/listinfo/cjk