Quantcast
Channel: Active questions tagged mathtools - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 122

Line spacing between lines containing inline math

$
0
0

Honestly I give up on this. I searched for a solution to this for so long, but nothing seemed to work (well) for me.

I just want my equations to no longer look squashed together, referring to how small the spacing is between two lines, but also to how small fractions look by default, for example (hence also the desperate \displaystyle\frac declaration).

Too lazy to make an example snippet. Here's a MWE made with a text snippet right out of my actual doc.

\documentclass{article}\usepackage{mathtools}% Replace multiplication symbol\let\oldtimes\times\let\times\cdot% Use the second \epsilon variant\let\oldepsilon\epsilon\let\epsilon\varepsilon% Display fractions nicely\let\oldfrac\frac\renewcommand{\frac}{\displaystyle\oldfrac}\begin{document} \subsubsection{Determinarea condiției de funcționare cinematice a mecanismului} $V_{Tg_1} = V_{Tg_2}$. Se cunoaște că $V_{Tg} = \omega \times R_d$, rezultă $\omega_1 \times R_{d_1} = \omega_2 \times R_{d_2}$, unde \\ $R_{d_1} = \frac{m \times z_1}{2} =$ raza de divizare. $\omega_1 \times \frac{m \times z_1}{2} = \omega_2 \times \frac{m \times z_2}{2}$ rezultă \\ $\frac{m \times z_1}{2} = \frac{\omega_2}{\omega_1} \times \frac{m \times z_2}{2} \Leftrightarrow \frac{\omega_2}{\omega_1} = \frac{z_1}{z_2}$. \subsubsection{Determinarea expresiei raportului de transmitere al mecanismului} $\frac{\omega_2}{\omega_1} = \frac{z_1}{z_2}$ rezultă că $i_{\text{angrenaj\_cilindric}} = \frac{\omega_3}{\omega_1} = \frac{z_1}{z_2}$\end{document}

You can see my problem.

enter image description here

Equations are basically going one into another.

If I use the package setspace and wrap the math into a spacing environment, I get closer to what I want, but it still is ugly.

[...] \begin{spacing}{1.8}  $V_{Tg_1} = V_{Tg_2}$. Se cunoaște că  $V_{Tg} = \omega \times R_d$, rezultă  $\omega_1 \times R_{d_1} = \omega_2 \times R_{d_2}$, unde \\  $R_{d_1} = \frac{m \times z_1}{2} =$ raza de divizare.  $\omega_1 \times \frac{m \times z_1}{2} = \omega_2 \times \frac{m \times z_2}{2}$ rezultă \\  $\frac{m \times z_1}{2} = \frac{\omega_2}{\omega_1} \times \frac{m \times z_2}{2}  \Leftrightarrow \frac{\omega_2}{\omega_1} = \frac{z_1}{z_2}$. \end{spacing} \subsubsection{Determinarea expresiei raportului de transmitere al mecanismului} \begin{spacing}{1.8}  $\frac{\omega_2}{\omega_1} = \frac{z_1}{z_2}$ rezultă că  $i_{\text{angrenaj\_cilindric}} = \frac{\omega_3}{\omega_1} = \frac{z_1}{z_2}$ \end{spacing}[...]

enter image description here

  1. There's a lot of spacing between the math and the sections (especially at the end of an equation and the beginning of a section). This can be fixed by using \vspace-s with negative values, but I'm asking if there's a better way to do it

  2. It seems like the spacing between the lines is not done between the bottom edge of the previous line and the top edge of the current line (as can be seen where there are fractions), but between the text on the same line as the equations (I can kind of live with this, at least things aren't mashed together anymore).

What can I do?


Viewing all articles
Browse latest Browse all 122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>