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 use the code

\documentclass[a4paper]{article}

\usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm}
\usepackage{indentfirst}
\usepackage[mathscr]{eucal}
\usepackage[utf8]{vietnam}

\begin{document}
\title{Tại sao lý thuyết Maxwell lại khó hiểu?}     
\author{Dịch bởi: Nguyễn Duy Khánh}   
\date{18-12-2012}  

\maketitle

\section*{Khiêm tốn không phải lúc nào cũng là đức hạnh}
\end{document}

And here is the result, you can see the title is not bold and it is small, but the section is in bold and large

And here is the result:

Could you please show me which code I can use to have result like this : enter image description here

share|improve this question
2  
Hey, I changed the formatting of your code to be code instead of block quote :) –  Vivi Dec 18 '12 at 3:59
3  
1. Specify it directly \title{\Large\bfseries Tại …}, 2. use another class, e.g. scrartcl uses a better title formatting in my opinion, 3. custom designed titlepage environment (→ Use the values of \title, \author and \date on a custom title page) –  Qrrbrbirlbel Dec 18 '12 at 4:09
    
What about the section title ? How can I make the two lines as in the second picture ? –  Nguyễn Duy Khánh Dec 18 '12 at 17:28

1 Answer 1

up vote 2 down vote accepted

You can design your own title section using \@title, \@author and \@date; a little example (feel free to change the settings according to your particular needs):

\documentclass[a4paper]{article}
\usepackage[utf8]{vietnam}
\usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm}
\usepackage{indentfirst}
\usepackage[mathscr]{eucal}

\title{Tại sao lý thuyết Maxwell lại khó hiểu?}     
\author{Dịch bởi: Nguyễn Duy Khánh}   
\date{18-12-2012}  

\begin{document}

\makeatletter
\hfil\parbox[t]{0.7\textwidth}{\centering\LARGE\bfseries\@title}\par
\kern0.7cm \hrule\kern0.5cm
\hfil\parbox[t]{0.7\textwidth}{\centering\bfseries\@author\\[3ex]\@date}\par
\kern0.5cm \hrule\kern0.5cm
\makeatother

\section{Test Section}

\end{document}

Unfortunately I am unable to upload images right now; I'll do so as soon as I can.

share|improve this answer

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.