This is with ref to my previous question Package clash in multilingual report.
\documentclass[11pt,table,a4paper]{article}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage[english,russian]{babel}
\newenvironment{SChinese}{%
\CJKfamily{gbsn}%
\CJKtilde
\CJKnospace}{}
\begin{document}
\selectlanguage{russian}
Это мой первый многоязычный докладе.
Инфантильный гипертрофический стеноз привратника - это серьёзное
\selectlanguage{english}
This is my first multilingual report.
\begin{CJK}{UTF8}{}
\begin{SChinese}
这是我的第一个多语种的报告。
\end{SChinese}
\end{CJK}
\end{document}
when I try to compile it, I get following error message.
LaTeX Warning: Unused global option(s):
[table].
(./data.aux
(/usr/local/texlive/2011/texmf-dist/tex/latex/cyrillic/t2acmr.fd))
(/usr/local/texlive/2011/texmf-dist/tex/latex/lm/t1lmr.fd)
LaTeX Font Warning: Font shape `T2A/lmr/m/n' undefined (Font)
using `T2A/cmr/m/n' instead on input line 15.
! Package inputenc Error: Unicode char \u8: not set up for use with
LaTeX.
See the inputenc package documentation for explanation. Type H
<return> for immediate help. ...
l.18 ...�ный гипертрофический стеноз привра...
How can I avoid such error message.
fontenc
with\usepackage[T1,T2A]{fontenc}
. TheT2A
option is needed for Russian letters. Also note thatlmodern
doesn't load any cyrillic characters, hence the name "Latin Modern" (if you didn't already know this).\usepackage{lmodern}
might help?\DeclareUnicodeCharacter{00A0}{~}
to your preamble.