5

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.

  • 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 '14 at 13:24
  • '\newcommand\conferenceinfo[2]{\noindent#1\par\noindent#2}`? (I'm assuming you don't want to indent the first argument.) – user10274 Feb 26 '14 at 13:25
  • @StevenB.Segletes Sorry about that, I will update the description. – kexxcream Feb 26 '14 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 '14 at 13:30
  • Please provide a minimum working example, including a \documentclass command and a document environment. – user10274 Feb 26 '14 at 13:44
5

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).

5

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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