Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In my document (due to combind both Chinese and English), all (, ), [, ], etc., are all too low. Is it posibble to raise all (, ), [, ], or any characters user defines to desire height? (for ex. If I want to raise all 'z' for 3pt?)

Thank you so much!

share|improve this question
    
Should the amount to raise a character depend on its size? If so, it would be best to express the desired dimension in ex. –  Christian Lindig Mar 20 '11 at 6:57
    
yes. For convenience, I just use pt instead of ex. But if I could do this (raise a specific char for n pt), then I can raise it in any measures as I wish. ps. In some way, I prefer to use pt than em/ex. In topography's book's discussing, most typesetting problem cannot be solved by scaling/proportional calculating. Before reading such books, I use em/ex, etc. But after reading some, I use pt now even though it is more complicated than by using em/ex. Thank you for your reply so much. Maybe using ex is a good idea in this kind of situation. :-) –  Kuang-Li Huang Mar 20 '11 at 7:45
    
If you use XeTeX, have a look at this question: tex.stackexchange.com/questions/10248/… . You can use similar trick to get parens raised. It would be a little difficult to let it work with xeCJK. I'm sorry I've no much time for this. See also bbs.ctex.org/… –  Leo Liu Mar 20 '11 at 8:21
add comment

1 Answer 1

As a suggestion, you can define a command to output the parens/brackets in your own format. This is inspired by csquotes package.

A demostration:

\documentclass{article}
\usepackage{xeCJK}
\setmainfont{Latin Modern Roman}
\setCJKmainfont{MingLiU}
\newcommand*\enbracket[2][0.1ex]{%
  \raisebox{#1}{[}#2\raisebox{#1}{]}}
\begin{document}
\Large [漢字] \enbracket{漢字}
\end{document}

enter image description here

share|improve this answer
    
yes, this is what I use now. But is it possible that doing this without setting any specific command? Sometimes, I can't tell whether the symbols are too high or too low (it depends on what font I use). Or, is it possible to alter the char's height by editing the font itself, or any metofont's command? Thank you –  Kuang-Li Huang Mar 20 '11 at 16:42
    
You can, certaily, edit the font yourself with fontforge etc., if it is allowed. However, it is not easy and not portable. I made a comment on using \XeTeXinterchartoks to solve this kind of questions, but it's not easy either. (And I've no time to write a complete example.) –  Leo Liu Mar 21 '11 at 4:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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