How to make an equation span an entire page / line in LaTeX?

I have this equation, and it is quite large (mostly FDM), but it aligns with the text, and then continues on the right side to nothing. I tried things like \begin{center}and \hspace*{-2.5cm}but to no avail. I want her to use the entire string not only from the field on the left and right.

How do I do this, and do I need to install some special package for it?

I use \[instead of displaymath, like this

\[
  Equation arrays here
\]

Code

\[
 \left(
   \begin{array}{cccccc}
      -(2\kappa+\frac{hV\rho}{2}) & (\frac{hV\rho}{2}-\kappa) & 0 & \cdots  & 0 \\
      -\kappa & -(2\kappa+\frac{hV\rho}{2}) & (\frac{hV\rho}{2}-\kappa) & 0 & \cdots \\  
      0 & -\kappa & -(2\kappa+\frac{hV\rho}{2}) & (\frac{hV\rho}{2}-\kappa) & 0 & \cdots \\  
      \vdots  & 0  & \ddots & \vdots  \\
      \vdots & \vdots  & \vdots  & -\kappa & -(2\kappa+\frac{hV\rho}{2}) & (\frac{hV\rho}{2}-\kappa) \\  
      0 & \vdots  & \vdots  & 0 & \kappa - \frac{2h\kappa_{v}}{\kappa}(\frac{hv\rho}{2} - \kappa) & -2\kappa \\  
   \end{array} 
 \right)
 \left(
   \begin{array}{c}
      T_{1} \\
      T_{2} \\
      \vdots \\
      T_{n} \\
   \end{array} 
 \right)
 =  
 \left(
   \begin{array}{c}
      Q(0) + \kappa T_{0} \\
      Q(h) \\
      Q(2h) \\
      \vdots \\
      Q((n-1)h) \\
      2\frac{\kappa_{v}}{\kappa_{v}}T_{out} \\
   \end{array} 
 \right)  
\]
+3
source share
4 answers

\[ \] . LaTeX eqnarray multline amsmath. eqnarray \\ , , , \nonumber , , . multline , .

EDIT: , , , , , , :

\newenvironment{widefig}[1][1in]{%
  \begin{list}{}{\setlength{\itemindent}{-#1}%
      \setlength{\leftmargin}{0pt}%
      \setlength{\rightmargin}{0pt}}\item
  }{%
  \end{list}
}

, , , .

, \begin{widefig}[1.5in] - \end{widefig},

\relpenalty=10000
\binoppenalty=10000

\begin{widefig}, \[\] \(\), widefig , . , \begin, .

, , , , . , ; , , , , , . , ( ).

+5

, , - : (untested)

\centerline{$\displaystyle <long equation here>$}
+1

You can use the eqnarray environment to break equations into multiple lines.

0
source

Source: https://habr.com/ru/post/1719777/


All Articles