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?

6
  • 4
    What's the real problem? With \title{First line\\\large Second line} I get what seems a good result.
    – egreg
    Jan 9, 2014 at 14:40
  • 3
    @egreg,I think the OP wonder wethear use the latex command like \subtitle ,however,the latex doesn't own that command.
    – abc
    Jan 9, 2014 at 14:50
  • 3
    @tangshutao There is no such command in the ctexart class.
    – egreg
    Jan 9, 2014 at 14:54
  • 2
    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, 2014 at 15:16
  • 3
    Also paper document class have a \subtitle{} command.
    – Fran
    Jan 12, 2014 at 0:04

2 Answers 2

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

7
  • 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, 2014 at 2:12
  • 2
    @cfr False friends!
    – egreg
    Dec 25, 2014 at 9:54
  • 1
    Nadolig llawen!
    – cfr
    Dec 25, 2014 at 15:38
  • 1
    For me it is giving error like, File `ctexart.cls' not found. \usepackage
    – David
    Nov 20, 2015 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, 2015 at 11:23
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

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