
Estoy escribiendo un informe escolar y no puedo centrar el látex de abajo ni siquiera alinearlo a la izquierda (lo ideal sería que estuviera normalmente centrado). Mi preámbulo no contiene nada sobre alineación y el resto del texto que queda se alinea normalmente.
\subsection{Maths}
\begin{align*}
F = BIl \\
F = m \cdot 10^{-3} \cdot g \\
l = 1.92cm = 0.0192m \\
gradient = \frac{m}{I} = 0.791 \\
B = \frac{F}{Il} = \frac{m \cdot 10^{-3} \cdot g}{Il} = gradient \cdot \frac{10^{-3} \cdot g}{l} \\
gradient = \pgfplotstableregressiona \\
B = 0.791 \cdot \frac{10^{-3} \cdot 9.81}{0.0192}=0.40042 = 0.400 \mbox{ to 3s.f.}
\end{align*}
Respuesta1
align
es para ecuaciones alineadas con un punto de alineación marcado con &
, como no tiene, &
solo tiene lados izquierdos sin lado derecho, por lo que el bloque parece alineado a la derecha. Úselo gather
para un grupo de ecuaciones no alineadas.
\documentclass{article}
\usepackage{amsmath}
\newcommand\pgfplotstableregressiona{?}
\begin{document}
align
\begin{align*}
F &= BIl \\
F &= m \cdot 10^{-3} \cdot g \\
l &= 1.92cm = 0.0192m \\
\mathrm{gradient} &= \frac{m}{I} = 0.791 \\
B &= \frac{F}{Il} = \frac{m \cdot 10^{-3} \cdot g}{Il} = \mathrm{gradient} \cdot \frac{10^{-3} \cdot g}{l} \\
\mathrm{gradient} &= \pgfplotstableregressiona \\
B &= 0.791 \cdot \frac{10^{-3} \cdot 9.81}{0.0192}=0.40042 = 0.400 \mbox{ to 3s.f.}
\end{align*}
gather
\begin{gather*}
F = BIl \\
F = m \cdot 10^{-3} \cdot g \\
l = 1.92cm = 0.0192m \\
\mathrm{gradient} = \frac{m}{I} = 0.791 \\
B = \frac{F}{Il} = \frac{m \cdot 10^{-3} \cdot g}{Il} = \mathrm{gradient} \cdot \frac{10^{-3} \cdot g}{l} \\
\mathrm{gradient} = \pgfplotstableregressiona \\
B = 0.791 \cdot \frac{10^{-3} \cdot 9.81}{0.0192}=0.40042 = 0.400 \mbox{ to 3s.f.}
\end{gather*}
\end{document}