15

I use Texmaker 4.0.1 to write LaTeX code. I have written the following code:

\documentclass[12pt,onecolumn,oneside,a4paper]{article}
\begin{document}
\title{test}
some text
\end{document}

I saved it with the name test.tex and compiled it with pressing F6 -> F6 -> F2 -> F9 in succession. When I press F7 (View PDF) I see no title in the pdf but only "some text" that is, title does not appear.

Later, I have written the following code and saved it with name test1.tex:

\documentclass[12pt,oneside,onecolumn,a4paper]{article}
\begin{document}
\title{some title}
\end{document}

When I compile it pressing F6 -> F6 -> F2 -> F9 in succession, the following message appears,

test1.dvi -> test1.pdf ** ERROR ** Could not open specified DVI file: test1.dvi Output file removed.

And neither dvi or pdf file is made.

I use Miktex 2.9 on Windows 7.

1
  • 5
    to make a title you need \maketitle where you want the title to appear (\title, \author just save the information) Jan 23, 2014 at 13:42

1 Answer 1

18

To make a title you need \maketitle where you want the title to appear.(\title, \author just save the information for use by \maketitle)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .