开发者

How To Write a Section/Part/Chapter Title with Words from Multiple Languages in LaTeX [closed]

开发者 https://www.devze.com 2023-01-26 13:57 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

I have been looking for an answer to this for a while. To clarify what I want just in case my question title might seem ambiguous:

\section{Привет and Xin Chào!}
Some text...

I am using the babel package to use different languages in my paragraphs and I thought I could use the commands inside \section{} but it didn't work. Commands such as these:

\selectlanguage{language}
\begin{otherlanguage}{language} text \end{otherlanguage}

I also tried declaring a variable for the particular section title like this:

\newcommand{\multiLangSectionTitle}{
 \selectlanguage{russian}
  Привет 
     \begin{otherlanguage}{vietnam} 
      and Xin Chào 
     \end{otherlanguage}
}

Thinking that it will act like as a unit w开发者_Go百科hen I do \section{\multiLangSectionTitle} but it didn't work either.

Any ideas welcome. Many thanks for your help! LD


Use xetex and write everything in utf-8. See http://en.wikipedia.org/wiki/XeTeX Works perfect for me, combining the three japanese alphabets and swedish.

0

精彩评论

暂无评论...
验证码 换一张
取 消