82

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?

Johannes_B
  • 24,235
  • 10
  • 93
  • 248
xyz
  • 1,083

2 Answers2

111

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

egreg
  • 1,121,712
  • 4
    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 02:12
  • 2
    @cfr False friends! – egreg Dec 25 '14 at 09:54
  • 1
    Nadolig llawen! – cfr Dec 25 '14 at 15:38
  • 1
    For me it is giving error like, File `ctexart.cls' not found. \usepackage – David Nov 20 '15 at 10:53
  • 1
    @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
  • 1
    How do you get the spacing between the title and the subtitle right? – layser Jun 29 '18 at 13:41
  • 1
    @layser Use \\[2ex] or whatever length you deem appropriate. – egreg Jun 29 '18 at 13:43
17

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

David
  • 1,964