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.

I got a problem with displaying my mother language in one title of my paper. Here is the code i use

\documentclass[12pt,a4paper]{amsart}


%% Packages that could be used

\usepackage{amscd,amssymb,amsthm}
\usepackage[utf8]{vietnam}
\usepackage{graphicx}
\usepackage{jipam}

\usepackage[utf8]{inputenc}
\usepackage[vietnam]{babel}


%\DeclareInputText


%% My definition
\newcommand{\mvec}[1]{\mbox{\bfseries\itshape #1}}


\title[Triangle inequality]{2 bất đẳng thức liên quan đến góc Brocard}
\author{Nguyen Duy Khanh}
\address{Hanoi, Vietnam}
\email{nguyenduykhanh@toanly.org}
\urladdr{http://www.toanly.org}

%\author{Author 2}
%\address{Line 3\\ Line 4\\ Address 2}
%\email{person2@inst.com}

%\keywords{Triangle,Inequality,Brocard angle}
%\subjclass[2000]{26D15}

\begin{document}

\begin{abstract}
Tiếng việt trong tiêu đề không hiển thị chính xác-The Vietnamese did not display correctly in the title.
\end{abstract}
\maketitle
\end{document}

The title should be 2 bất đẳng thức liên quan đến góc Brocard but it appeared as 2 BT NG THC LIN QUAN N GÂC BROCARD

My question is, what is the missing package that can help me to display the correct words? Please help me solve my problem. I really need it for writing my paper. Thank you very much!

share|improve this question
    
Does this document actually compile without errors on your system? It doesn't on mine. –  Alan Munn May 12 '12 at 20:33
    
May be there are some packages in my computer that your system does not have :| –  Nguyễn Duy Khánh May 12 '12 at 20:59
    
Actually not. If you compare your document with egreg's answer, there are some problems with your document. Perhaps your editor forces through all the errors. –  Alan Munn May 12 '12 at 21:39
    
Dear @AlanMunn, I use Texmaker as my LaTex editor. –  Nguyễn Duy Khánh May 15 '12 at 17:35
add comment

1 Answer

up vote 4 down vote accepted

There's a bad interaction when amsart tries to capitalize the title. Fixing it seems to be quite hard, I'm afraid. But you can resort to a trick: defining the capitalized title in a macro and using that one in \title

\documentclass[12pt,a4paper]{amsart}

\usepackage[utf8]{vietnam}

%% Packages that could be used
\usepackage{amscd,amssymb,amsthm}
\usepackage{graphicx}
%\usepackage{jipam}

%% My definition
\newcommand{\mvec}[1]{\mbox{\bfseries\itshape #1}}

\newcommand{\mytitle}{2 BẤT ĐẲNG THỨC LIÊN QUAN ĐẾN GÓC BROCARD}

\begin{document}

\title[Triangle inequality]{\mytitle}
\author{Nguyen Duy Khanh}
\address{Hanoi, Vietnam}
\email{nguyenduykhanh@toanly.org}
\urladdr{http://www.toanly.org}

%\author{Author 2}
%\address{Line 3\\ Line 4\\ Address 2}
%\email{person2@inst.com}

%\keywords{Triangle,Inequality,Brocard angle}
%\subjclass[2000]{26D15}

\begin{abstract}
Tiếng việt trong tiêu đề không hiển thị chính xác.
Now the Vietnamese is displayed correctly in the title.
\end{abstract}
\maketitle

\end{document}

Don't load both vietnam and babel.

share|improve this answer
    
Thanks egreg. It works. Jipam.sty and amsart is simply so beautiful and that is why i want to use it for writing my paper. –  Nguyễn Duy Khánh May 12 '12 at 20:56
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.