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.

This is template for the abstract as we received it from the org.committee. I cannot make line break in the title. I am very grateful in advance for help.

\documentclass[A4,10pt]{article}
\setlength\parindent{12pt}
\setlength\textwidth{30pc}
\setlength\textheight{48pc}%45 eil.
\advance\textheight by\topskip
\def\title#1{\centerline{\LARGE\bf #1}\vskip .5em}
\def\author#1{\noindent{#1}\vskip .5em}
\def\address#1{\noindent{\it #1}\vskip .5em}

%%%%%%%%%%%%%%%%%
%\usepackage{amsfonts,amssymb,eucal}
%%%%%%%%%%%%%%%%%

\begin{document}

\title{Markov-Modulated Linear Regression for Incomplete Observations}

\end{document}
share|improve this question

2 Answers 2

This "template" has all the appearance of being something of a hack. The problem is with \centerline (often a danger signal!) (as is \bf)

What about

\def\title#1{\begingroup
 \centering\LARGE\bfseries #1\par
 \vskip .5em%
 \endgroup}

This will allow the line to break "naturally", or by means of manual linebreaks (which a solution using longstack doesn't: it requires manual breaking, not that it probably matters much here).

(But of course it's often unacceptable to alter anything in a template, in which case the only real solution is to shorten your title!)

share|improve this answer
    
Dear Paul, thank you very much, it is working! –  Diana Mar 11 at 10:33

Incorporating a \Longstack into the definition of \title will now allow \\ style linebreaks.

\documentclass[A4,10pt]{article}
\usepackage[usestackEOL]{stackengine}
\setlength\parindent{12pt}
\setlength\textwidth{30pc}
\setlength\textheight{48pc}%45 eil.
\advance\textheight by\topskip
\def\title#1{\centerline{\LARGE\bf\Longstack{#1}}\vskip .5em}
\def\author#1{\noindent{#1}\vskip .5em}
\def\address#1{\noindent{\it #1}\vskip .5em}

%%%%%%%%%%%%%%%%%
%\usepackage{amsfonts,amssymb,eucal}
%%%%%%%%%%%%%%%%%

\begin{document}

\title{Markov-Modulated Linear Regression\\for Incomplete Observations}

\end{document}

enter image description here

share|improve this answer
    
Thank you Steven! –  Diana Mar 11 at 10:33

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.