LaTeX Equations – Handling Too Long Equation Without Splitting

equations

I am writing an equaition which is too long-wide. I don't want it to split. I tried to change the fontsize within the equation enviroment but it didn't work.
I am using

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsthm}
\begin{document}
\begin{equation}
{\footnotesize G=centroid\cdot \frac{range[V]}{\#\,channels}\cdot\frac{W_{pair}[eV]}    {E_{particle}[keV]}\cdot \frac{1}{(coarse\,gain)\cdot(fine\,gain)}\cdot \frac{10^6}   {X[mV]\cdot E_{cg}[eV]}}
\label{eq:Gain}
\end{equation}
\end{document}

Is there a way to achieve that?
My output is

Any ideas?

Best Answer

You could set the fractions in \textstyle:

enter image description here

\documentclass[11pt]{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\begin{equation}
  G=\textstyle\text{centroid}\cdot \frac{\text{range}[V]}{\text{\# channels}}\cdot
    \frac{W_{\text{pair}}[eV]}{E_{\text{particle}}[keV]}\cdot 
    \frac{1}{(\text{coarse gain})\cdot(\text{fine gain})}\cdot 
    \frac{10^6}{X[mV]\cdot E_{cg}[eV]}
\label{eq:Gain}
\end{equation}
\end{document}

(you may even consider using \small centroid as well) or scale it to fix using \resizebox from graphicx:

enter image description here

\documentclass[11pt]{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\begin{document}
\begin{equation}
  \resizebox{.9\textwidth}{!}{$\displaystyle
    G=\text{centroid}\cdot \frac{\text{range}[V]}{\text{\# channels}}\cdot
    \frac{W_{\text{pair}}[eV]}{E_{\text{particle}}[keV]}\cdot 
    \frac{1}{(\text{coarse gain})\cdot(\text{fine gain})}\cdot 
    \frac{10^6}{X[mV]\cdot E_{cg}[eV]}$}
\label{eq:Gain}
\end{equation}
\end{document}
Related Question