Generalequation number alignment problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
psyder
Posts: 1
Joined: Mon Sep 22, 2008 3:46 pm

equation number alignment problem

Post by psyder »

hi,this is my first time writing on this and my first time using latex which im using
for my masters dissertation.

As Im very new to this my maths equations are probably very badly put together,
however all of them have come out looking fine, apart from one. In this one I have the equation
and a small sentence with it and for some reason the equation numbering is moved and
now unaligned. Ive tried lots to rectify it without success. If anyone could help me i would be
really grateful.

Code: Select all

\begin{equation}\label{e:h1h2corr}
\ 20log_1_0\left[\frac{F1^2}{\left(F1^2-f^2\right)}\right] \\

\mbox{Where \emph{f} is the frequency at which the particular harmonic is located.}
\
\end{equation}
Like i said the code is probably badly written but so have the other ones been and there
hasnt been a problem

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

equation number alignment problem

Post by Stefan Kottwitz »

Hi psyder,

welcome to the board!
Use the text outside of the equation environment, in that case you won't need \mbox. Try this:

Code: Select all

\begin{equation}\label{e:h1h2corr}
20\log_{10}\left[\frac{F1^2}{\left(F1^2-f^2\right)}\right]
\end{equation}
where $f$ is the frequency at which the particular harmonic is located.
where I've made some additional small modifications.

Stefan
LaTeX.org admin
Post Reply