2008/1/20 Gernot Hassenpflug <[EMAIL PROTECTED]>:
> I have a solution for ASCII text that does not seem to want to fill
> the right spacing:
>
> \makebox[0pt][l]{Compare: }\mbox{\hphantom{一二三四五}}
>
> I know this is not very nice, but it does allow me at least to typeset
> what I want manually. I don't know how to count characters with
> LaTeX/TeX yet, nor how to find the width of a character of the current
> CJK font. I hope to find out soon though, and then write something
> like:
>
> \makebox[0pt][l]{Compare:
> }\mbox{\hphantom{\HalfASCIIchars\WidthCJKchar}} where \HalfASCIIchars
> is calculated using the argument of the previous \makebox, with
> rounding upward.

And using settowidth:

in preamble: \newlength{\widthCJKtxt}

in document:
\settowidth{\widthCJKtxt}{一二三四五}
\makebox[\widthCJKtxt][l]{Compare: }

Now I am looking for how to count characters and divide this number.
Then I could use the width of a single character as a base and then
number of characters from the argument and roll a new command.

Regards, Gernot

_______________________________________________
Cjk maillist  -  [email protected]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to