1

I am trying to type long expression by using parenthesis inserting some sentences, as an example I have a expression like product of

\documentclass{12 pt}{article}
\begin{document}
\begin{multline}
(product of (A\times_{c} B) by C)\times_{c} D) by E.
\end{multline}
\end{document} 

I am using multline environment but I have problem with breaking into different lines. Is there any easy way to break the lines?

Werner
  • 603,163
Rajesh
  • 373
  • 2
    Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Torbjørn T. Apr 23 '13 at 05:43
  • 1
    Without knowing anything about what you're doing, I predict that the problem is that your parentheses are paired using \left( and \right). These cannot be broken across lines; if you need both large parentheses and line breaks, you will need to select their sizes manually. See this answer, for example, for a list of sizes. – Ryan Reich Apr 23 '13 at 05:49
  • Thank you – Torbjørn T. I have a expression like product of (product of (A\times_{c} B) by C)\times_{c} D) by E. – Rajesh Apr 23 '13 at 05:54
  • Does that answer your question? I can make it an answer instead of a comment. But, please, edit your question with a minimal example showing what you intend. – Ryan Reich Apr 23 '13 at 06:20
  • @ Ryan, I will edit the question now. Still, i am not getting the exact answer but I was looking exactly what you are writing in your comment. – Rajesh Apr 23 '13 at 06:25
  • 2
    TeX code would be preferable. Read the link that @TorbjørnT provided. – Ryan Reich Apr 23 '13 at 06:32
  • @RyanReich You wrote "you will need to select their sizes manually". What if the OP used \left(...\right. \\ \left. ... \right)? That would work, wouldn't it? – jub0bs Apr 23 '13 at 08:38
  • Do your formulae really span that much vertical space? Because for the MWE you provided, i would (especially together with the sentence) rather use inline math, i.e. \bigl(product of (A\times_{c} B) by C\bigr)\times_{c} D by E. (where i deleted your unbalanced paranthesis after D) and used the slightly bigger braces from amsmath which still fit into one line. – Ronny Apr 23 '13 at 08:38
  • 1
    @Jubobs That works but only gives brackets of matching sizes if each ... expression has the same height/depth. – Andrew Swann Apr 23 '13 at 10:46
  • @AndrewSwann I would personally favour using brackets of matching size anyway; I think it allows readers to identify pairs of opening/closing brackets more easily. – jub0bs Apr 23 '13 at 11:05
  • @Jubobs So would I - I was just commenting on your "That would work" – Andrew Swann Apr 23 '13 at 11:23

2 Answers2

3

The mathmode document by Herbert Voß provides an example how to use the multiline environment on page 51. The easy way to break lines is adding \\ at the position where you want the line break to occur.

adrianN
  • 220
3

It is quite hard to answer your question as the example code supplied doesn't give many clues. However [12pt] needs to be in square brackets, and you need to mark up text in math specially (I'm using \text from the amsmath package). Then line breaks can be marked with \\

enter image description here

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{multline}
(\text{product of} \\
  (A\times_{c} B) \text{ by } C \\
  )\times_{c} D)\text{ by } E \text{.}.
\end{multline}
\end{document} 
David Carlisle
  • 757,742