50

Recently, I have been translating a foreign paper that has main title and subtitle.

My trial:

\documentclass[UTF8]{ctexart}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{inputenc}
\usepackage{geometry} 
\geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm}
\begin{document}
\title{
 Simulatin Modelling Practice and Theoty \\ 
\begin{large} 
  Common Simulation of a SCARA robot with PD and learning controller
\end{large} }

\end{document}

However, it failed to achieve that effect. The main title is Simulatin Modelling Practice and Theory, subtitle is »Simulation of a SCARA robot with PD and learning controller«. So my question is how to alter it?

  • 3
    What's the real problem? With \title{First line\\\large Second line} I get what seems a good result. – egreg Jan 9 '14 at 14:40
  • 2
    @egreg,I think the OP wonder wethear use the latex command like \subtitle ,however,the latex doesn't own that command. – abc Jan 9 '14 at 14:50
  • 2
    @tangshutao There is no such command in the ctexart class. – egreg Jan 9 '14 at 14:54
  • 1
    You don’t say whether you have to keep using ctex for the translated article. In a similar, previous answer KOMA Script classes are recommended, which I second. – Crissov Jan 9 '14 at 15:16
  • 1
    Also paper document class have a \subtitle{} command. – Fran Jan 12 '14 at 0:04
61

I have no problem if I use \large instead of the non existent large environment.

\documentclass[UTF8]{ctexart}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{inputenc}
\usepackage{geometry}
\geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm}
\begin{document}

\title{%
  Simulating Modelling Practice and Theory \\
  \large Common Simulation of a SCARA robot \\
    with PD and learning controller}

\author{Shutao Tang}

\maketitle

\end{document}

enter image description here

|improve this answer|||||
  • 3
    This usage of 'inexistent' is possibly deprecated (OED), and the word is now used with another meaning. I think you want 'non-existent'? ['Inexistent' apparently means 'Existing or having its being in something else; inherent.' 'Inexistent' was, it seems, used to mean 'non-existent' in the seventeenth and eighteenth centuries. OED have '? Obs' which I assume means that they aren't certain this usage is deprecated, but they think it probably is.] – cfr Dec 25 '14 at 2:12
  • 1
    @cfr False friends! – egreg Dec 25 '14 at 9:54
  • Nadolig llawen! – cfr Dec 25 '14 at 15:38
  • For me it is giving error like, File `ctexart.cls' not found. \usepackage – David Nov 20 '15 at 10:53
  • @David You have an incomplete TeX installation. Note that the answer is not specific for the ctexart class. – egreg Nov 20 '15 at 11:23
7

I tried with the class article..it is giving nicely..

The codes are here..

\documentclass[UTF8]{article}
\begin{document}

\title{%
  Simulating Modelling Practice and Theory \\
  \large Common Simulation of a SCARA robot \\
    with PD and learning controller}

\author{Shutao Tang}

\maketitle

\end{document}

enter image description here

|improve this answer|||||

Not the answer you're looking for? Browse other questions tagged or ask your own question.