5

My aim is to put tone marks above Chinese characters in latex. I have tried \v{好}, but this puts the carron accent (3rd tone) in the space left of the character rather than above it.

I have also found that $\stackrel{\vee}{\textrm{你}}$ works well but cannot find equivelent symbols for the other tones. I have tried --, \diagup and \diagdown, but they look really out of place

The standard unicode symbols for the tones are 02C9, 02CA, 02C7, 02CB and 02D9, but think that these are the same as using \v ect.

Does anyone have any suggestions? Thank-you. The purpose of this is to have them automatically generated to help people learning chinese. I've written the software for that, so just need to output it in a nice format.

P.S. To use Chinese characters in Latex

\documentclass[12p]{article}
\usepackage{CJKutf8}

\begin{document}
\begin{CJK*}{UTF8}{gbsn}
你
\end{CJK*}
\end{document}
2
  • 1
    Just for reference: This question is duplicated from Stack Overflow. Aug 13, 2011 at 13:27
  • yep, I put a link to it in the answer
    – Twig
    Aug 15, 2011 at 17:51

2 Answers 2

7

I am pretty sure that the symbols are not the same ones as the \v etc. Have you tried just typing those symbols in text? I've never used CJKutf8, but I did use CJK with Big5 encoding, and was able to type even in Ruby/ZhuYin symbols.

What I did was to

\newcommand{\rubychinese}[2]{\begin{tabular*}{3em}{c} {\Large #1} \\ %
   {\tiny #2}\end{tabular*}}

which I used like

\rubychinese{<character goes here>}{<pronunciation guide goes here>}

(In my version the ZhuYin appears below the main word, but you can easily switch the order.) Since there is a Bopomofo block in unicode, perhaps you just need a font supporting it and an input method that allows you to type those symbols?

An example output:

2
  • Thank-you that looks most helpful, can you paste the symbols used for the tones from zhuyin, as we usually use pinyin and they are attached to the letters.
    – Twig
    Oct 23, 2010 at 12:33
  • 2
    The marks look more or less the same... bad news though, I just checked the unicode tables, and for the tone marks one is referred to the Pinyin tone marks. (See Chapter 10 of the unicode book.) Which is a shame, as in Big5 those marks are the same size as the normal characters (similar to how there's a full-size \prime in LaTeX). So you may need to play a bit with fonts/scaling/boxes to get the output right. You may also want to google the phrase "latex ruby characters", 'ruby' being the technical term for these kind of pronunciation guides attached to ideographs. Oct 23, 2010 at 14:11
5

I have found a solution for this

$\stackrel{\textrm{\raisebox{-0.5em}[0.25em][-0em]{\={}}}}{\textrm{你}}$
$\stackrel{\textrm{\raisebox{-0.5em}[0.25em][-0em]{\'{}}}}{\textrm{你}}$
$\stackrel{\textrm{\raisebox{-0.5em}[0.25em][-0em]{\v{}}}}{\textrm{你}}$
$\stackrel{\textrm{\raisebox{-0.5em}[0.25em][-0em]{\`{}}}}{\textrm{你}}$
$\stackrel{\textrm{\raisebox{-0.5em}[0.25em][-0em]{\.{}}}}{\textrm{你}}$

for tones 1→4 with a dot above the 5th.

(I mainly updated the question on https://stackoverflow.com/questions/4003524/latex-question-accents-on-characters)

2
  • What do you have to put in the preamble to make this work? May 29, 2017 at 13:56
  • @ColinMcLarty - You shouldn't need anything. It works if you put it in the CJK* block from the sample document in the question.
    – Twig
    May 30, 2017 at 17:35

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.