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.

Document class

I use the following document class: sig-alternate.cls

The document class can be found at: http://www.acm.org/sigs/publications/proceedings-templates

Problem:

I have the following code:

\conferenceinfo{Text 1 here}{Text 2 here}

and I wish the output would be:

Text 1 here
Text 2 here

Right now both text sentences align after each other.

I have tried to look at double \ and also at \newline but haven't been successful so far.

share|improve this question
    
It would help those trying to help you if you provided an MWE starting with \documentclass and demonstrating the issue. –  Steven B. Segletes Feb 26 at 13:24
    
'\newcommand\conferenceinfo[2]{\noindent#1\par\noindent#2}`? (I'm assuming you don't want to indent the first argument.) –  Marc van Dongen Feb 26 at 13:25
    
@StevenB.Segletes Sorry about that, I will update the description. –  kexxcream Feb 26 at 13:26
    
@MarcvanDongen I tried your suggestion but both text sentences disappeared. I have updated the problem description that I use the ACM template. –  kexxcream Feb 26 at 13:30
    
Please provide a minimum working example, including a \documentclass command and a document environment. –  Marc van Dongen Feb 26 at 13:44
add comment

2 Answers 2

up vote 5 down vote accepted

You need to insert a paragraph break, but the usual \par command will not work here. Rather you need to use \endgraf:

Sample output snippet

\documentclass{sig-alternate}

\begin{document}
\conferenceinfo{Text 1 here}{\endgraf Text 2 here.\endgraf More.}

\title{My title}
\author{Me}
\maketitle
\end{document}

The \conferenceinfo macro is defined in a way that does not allow paragraph breaks in its arguments; \endgraf is the replacement command available in such situations (a relic from plain TeX).

share|improve this answer
    
Thank you very much for this, highly appreciated! –  kexxcream Feb 26 at 15:40
add comment

This seems to work flawlessly:

\documentclass{sig-alternate}
\usepackage{lipsum} % just for the example

\begin{document}
\conferenceinfo{Text 1 here}{\\ Text 2 here.}

\title{My title}
\author{Me}
\maketitle

\section{A}
\lipsum[1-20]

\end{document}

enter image description here

Magnified view

enter image description here

share|improve this answer
add comment

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.