0

I tried to make a equation in Latex but the parentheses disappear near the edge of the page. How I put the equation in two lines?

enter image description here

$\left(\omega=\frac{d\theta}{dt}=\int_{0}^{\dot{\theta}}
d(\dot{\theta}) ; \omega^2=\int_{0}^{\dot{\theta}}d(\dot{\theta}^2)
\right)$ varia de 0 at\'{e} $\dot{\theta}:$
11
  • 2
    Please don't add code as an image, but rather include it in the question (copy-paste). Also, it is rather impossible for us to know how you have done things without you including and MWE. – sodd Mar 30 '16 at 10:28
  • @hooy I cannot add the image in this pc because the pc doesn't wanna send the image. I wanna put the links of the dropbox: – Carmen González Mar 30 '16 at 10:31
  • 3
    There are many examples of multiline equations on this site including many of the links in the "related" list on the right. Try the answers here for example tex.stackexchange.com/questions/267342/… – David Carlisle Mar 30 '16 at 10:31
  • 1
    @CarmenGonzález I'm sure you're able to write your current code in your original question. You should definitely take a look at the TeX.SX starter guide before posting more questions to this site. You should almost always provide a minimal working example (MWE)! Proper questions get proper answers :-) – Holene Mar 30 '16 at 10:42
5

Judging by the screenshots you've posted, the culprit is the ill-advised use of \left( and \right) in the inline math formula. Material inside a \left( ... \right) construct is never broken across lines. Never, ever. If you need to enlarge the opening and closing parentheses of the inline formula, use \Bigl( and \Bigr) instead.

As proof, consider the following screenshot and associated LaTeX code. It shows that zero line break possibilities are available if \left( ... \right) is used in the formula. In contrast, TeX finds four such possibilities if \Bigl( ... \Bigr) is used. I leave it to you to decide which method you should be using.

enter image description here

\documentclass{article}
\usepackage{mathpazo} % looks like you're using a Palatino font
\setlength\textwidth{1mm} % choose an extremely narrow measure
\setlength\parindent{0pt} % just for this example
\begin{document}

\mbox{\emph{With} \texttt{\string\left} and \texttt{\string\right}: 
\textbf{zero} linebreak possibilities in the formula}


\medskip
$\left(\omega=\frac{d\theta}{dt}=
\int_0^{\dot{\theta}} d(\dot{\theta});\allowbreak 
\omega^2=\int_{0}^{\dot{\theta}}d(\dot{\theta}^2) \right)$

\bigskip
\mbox{\emph{Without} \texttt{\string\left} and \texttt{\string\right}: 
\textbf{four} [!] linebreak possibilities}

\medskip
$\Bigl(\omega=\frac{d\theta}{dt}=
\int_0^{\dot{\theta}} d(\dot{\theta});\allowbreak 
\omega^2=\int_{0}^{\dot{\theta}}d(\dot{\theta}^2) \Bigr)$

\end{document}
3

The problematic text seems to be like a parenthetical remark rather than a single formula. I'd avoid enlarged parentheses (solution A), but it's possible to get them as shown in solution B.

My preferred way would be avoiding the parentheses altogether (thanks to Paulo Cereda for help with Portuguese).

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}

\usepackage[a4paper,margin=2cm]{geometry}

\usepackage{newpxtext,newpxmath}

\begin{document}

\subsection{A}

A qual pode ser integrada para ângulos de $\theta_0$ a 
$\theta$ enquanto a velocidade angular
($\omega=\frac{d\theta}{dt}=\int_{0}^{\dot{\theta}}d(\dot{\theta})$;
$\omega^2=\int_{0}^{\dot{\theta}}d(\dot{\theta}^{2})$)
varia de $0$ até $\theta$:

\subsection{B}

A qual pode ser integrada para ângulos de $\theta_0$ a 
$\theta$ enquanto a velocidade angular
$\Bigl(\omega=\frac{d\theta}{dt}=\int_{0}^{\dot{\theta}}d(\dot{\theta})$;
$\omega^2=\int_{0}^{\dot{\theta}}d(\dot{\theta}^{2})\Bigr)$
varia de $0$ até $\theta$:

\subsection{C}

A qual pode ser integrada para ângulos de $\theta_0$ a 
$\theta$ enquanto a velocidade angular, com
$\omega=\frac{d\theta}{dt}=\int_{0}^{\dot{\theta}}d(\dot{\theta})$ e
$\omega^2=\int_{0}^{\dot{\theta}}d(\dot{\theta}^{2})$,
varia de $0$ até $\theta$:

\end{document}

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.