TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have multiple authors emails on my paper with the same domain and i need to divide the line below on two lines as it is too long, any help?

\documentclass{llncs}

\begin{document}
\title{any title}
\author{John kamdreen,John kamdreen,John kamdreen,John kamdreen,%
  John kamdreen,John kamdreen,John kamdreen}
\institute{Center John kamdreen John kamdreen Research\\
  $\left\{John.kamdreen,John.kamdreen,John.kamdreen,John.kamdreen,%
  John.kamdreen,Jo‌​hn.kamdreen,John.kamdreen\right\}$@dalton.edu.au}
\maketitle
\end{document} 

The document class is available from the publisher.

share|improve this question
    
I don't know other way to do it – SMH Aug 28 '13 at 5:57
    
Based on your comments on the existing answer, we probably need to see the document class, etc. Could you make a minimal working example (MWE). – Joseph Wright Aug 28 '13 at 6:00
    
@JosephWright the link to the .sty file got posted as a comment on my answer, below. I should have asked for it here, which would have been more useful. Anyway, here – Adam Liter Aug 28 '13 at 6:02
1  
It would be helpful to clarify if you want the functionality of \left and \right or not. Also, if you're following the llncs format, if you look at their documentation, they actually have an \email{} macro that is supposed to go inside \institute{}. – Adam Liter Aug 28 '13 at 6:28
up vote 2 down vote accepted

As @JosephWright has pointed out in his answer, if you all you want are the braces (i.e., { and }), then you do not need to use \left and \right. However, if you want the behavior of the delimiters then:

When using delimiters (i.e., \left\{ and \right\}), you cannot put line breaks inside of them. One way around this it to embed the text between the delimiters inside of a varwidth environment. (minipage works, too, but varwidth automatically sets the width of the environment to the width of the content, i.e., setting the width to 12cm will still only set the width of the varwidth environment to the width of the longest line, "John.kamdreen,John.kamdreen,John.kamdreen,John.kamdreen"; see the varwidth documentation.)

If you put such an environment inside the delimiters, then you can use manual line breaks inside of that environment:

\documentclass{llncs}

\usepackage{varwidth}

\title{any title}
\author{John kamdreen,John kamdreen,John kamdreen,John kamdreen,John kamdreen,John kamdreen,John kamdreen}
\institute{Center John kamdreen John kamdreen Research\\ $\left\{\begin{varwidth}{12cm}\centering John.kamdreen,John.kamdreen,John.kamdreen,\\John.kamdreen,John.kamdreen,John.kamdreen,John.kamdreen\end{varwidth}\right\}$@dalton.edu.au} 

\begin{document}

\maketitle

\end{document}

enter image description here

Note that I've added \centering to center the first line of email addresses. You could remove this if you wish to do so.

share|improve this answer
    
but i have to follow the llncs springer format so i can't do it in your shape, can you do it in the llncs format? – SMH Aug 28 '13 at 5:51
    
@sherifHaggag What is the llncs format? Can you provide a link to it, if it is a custom .sty file? Better yet, can you please post a minimal working example (MWE)? – Adam Liter Aug 28 '13 at 5:54
    
    
\begin{document} \title{any title} \author{John kamdreen,John kamdreen,John kamdreen,John kamdreen,John kamdreen,John kamdreen,John kamdreen} \institute{Center John kamdreen John kamdreen Research\ $\left\{John.kamdreen,John.kamdreen,John.kamdreen,John.kamdreen,John.kamdreen,Jo‌​hn.kamdreen,John.kamdreen\right\}$@dalton.edu.au} \end{document} – SMH Aug 28 '13 at 6:01

If all that is required is to have braces around material, you do not need math mode:

\documentclass{llncs}

\begin{document}
\title{any title}
\author{John kamdreen,John kamdreen,John kamdreen,John kamdreen,%
  John kamdreen,John kamdreen,John kamdreen}
\institute{Center John kamdreen John kamdreen Research\\
  \{John.kamdreen,John.kamdreen,John.kamdreen,John.kamdreen,%
  John.kamdreen,\\ Jo‌​hn.kamdreen,John.kamdreen\}@dalton.edu.au}
\maketitle
\end{document} 

Note that as you don't have spaces between the e-mail addresses, I've manually added a line break.

share|improve this answer

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.
http://tex.stackexchange.com/questions/130422/multiple-authors-emails-problem
tex.stackexchange.com
crawl=CC-MAIN-2016-30
87021
application/http; msgtype=response
sha1:CY54CAT6MIQQUA4DKKKH7XKXTL3CF54A
<urn:uuid:cbbfce06-7916-45a8-8219-502e79428308>
2016-07-28T18:26:37Z
151.101.1.69
sha1:G3WCAH3SQQ4WPVOZIUIM2EKAKBTVZKF6
<urn:uuid:212f7e78-30b9-4e21-8131-9a086b196707>
http://tex.stackexchange.com/questions/130422/multiple-authors-emails-problem
response
<urn:uuid:c0cd9e1f-7b3b-4f92-867f-e51704647ba9>
robots: classic
hostname: ip-10-185-27-174.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-30
operator: CommonCrawl Admin
description: Wide crawl of the web for July 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf