Graphics, Figures & TablesAuto break long math equation

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ponilavarasu
Posts: 7
Joined: Thu Sep 19, 2019 2:23 pm

Auto break long math equation

Post by ponilavarasu »

Hi all, i am new to latex development. Is it possible to auto break a long math equation in latex.? Is there any suitable package/commands? Kindly share if any!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Auto break long math equation

Post by Stefan Kottwitz »

Welcome to the forum!

The breqn package can auto-break equations for you.

Stefan
LaTeX.org admin
ponilavarasu
Posts: 7
Joined: Thu Sep 19, 2019 2:23 pm

Auto break long math equation

Post by ponilavarasu »

Dear Stefan Kottwitz,
Thanks for your reply. I have tried it, and it never break down any equation. Here, we are using double column job and the following eqn not fit and auto break in single column. I simply wrote a math eqn for your reference.

\usepackage[]{breqn}
\begin{equation*}
CFA=\frac{\partial \left(CTh(D)\right)}{\partial z} \mathop{\int} \limits_{0}^{D} \left(\uplambda _{234} \times Def(z)\right)dz+\uplambda _{234} \times Def(D)\times CTh(D)
\end{equation*}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Auto break long math equation

Post by Stefan Kottwitz »

Take a look at the manual, it provides new environments dmath and dmath* for equation and equation*, simply replace:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\usepackage[hmargin=6cm]{geometry}
\usepackage{amsmath}
\usepackage{upgreek}
\usepackage{breqn}
\begin{document}
\begin{dmath*}
CFA=\frac{\partial \left(CTh(D)\right)}{\partial z} \mathop{\int} \limits_{0}^{D} \left(\uplambda _{234} \times Def(z)\right)dz+\uplambda _{234} \times Def(D)\times CTh(D)
\end{dmath*}
\end{document}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
equation.png
equation.png (13.41 KiB) Viewed 13055 times
Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Auto break long math equation

Post by Stefan Kottwitz »

By the way, math operators are usually written upright. I would use

Code: Select all

Code, edit and compile here:
\usepackage{amsmath}
\DeclareMathOperator{\Def}{Def}
\DeclareMathOperator{\CTh}{CTh}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
and then use \Def and \CTh in the equations.

Stefan
LaTeX.org admin
ponilavarasu
Posts: 7
Joined: Thu Sep 19, 2019 2:23 pm

Auto break long math equation

Post by ponilavarasu »

Thank you, working fine.
Post Reply