![Latex 中不同语言的使用及其如何改变图形标签/标题语言](https://linux22.com/image/469010/Latex%20%E4%B8%AD%E4%B8%8D%E5%90%8C%E8%AF%AD%E8%A8%80%E7%9A%84%E4%BD%BF%E7%94%A8%E5%8F%8A%E5%85%B6%E5%A6%82%E4%BD%95%E6%94%B9%E5%8F%98%E5%9B%BE%E5%BD%A2%E6%A0%87%E7%AD%BE%2F%E6%A0%87%E9%A2%98%E8%AF%AD%E8%A8%80.png)
答案1
如果你的主要语言是英语,你应该babel
拨打
\usepackage[russian,english]{babel}
因为最后的指定语言将是主要语言。或者您可以指定main=
\usepackage[main=english,russian]{babel}
在这种情况下,顺序无关紧要。
如果你想插入一些俄语短语,你不应该走这条路\selectlanguage{russian}
。有和\foreignlanguage
。otherlanguage*
在下面的例子中,quote
只是举例说明。
\documentclass{article}
\usepackage[T2A,T1]{fontenc}
\usepackage[main=english,russian]{babel}
\begin{document}
The Russian phrase \foreignlanguage{russian}{Привет, мир} means
`Hello, world' in English.
If you have longer passages in Russian, such as a quotation,
you can do as follows
\begin{otherlanguage*}{russian}
\begin{quote}
Все счастливые семьи похожи друг на друга, каждая
несчастливая семья несчастлива по-своему.
\end{quote}
\end{otherlanguage*}
\begin{figure}[htp]
\centering
\fbox{\rule{0pt}{30pt}\rule{30pt}{0pt}}
\caption{A figure}
\end{figure}
\end{document}