Ok, the comment from samcarter allowed me to find what I needed on the internet. The standalone
document class is the one. This page has everything : How to make a standalone document with one equation?.
Thank you
Even though the one in the link seems awfully similar to mine, I wont erase my question since to find the one in the link you have to know the standalone
class (Unless asked otherwise of course). Good day to all.
edit:
As requested, here is the result
from
\documentclass{standalone}
\begin{document}
$
\displaystyle
\int_a^x f(t)dt = \lim_{n \rightarrow +\infty} \sum_{k=0}^n \frac{x - a}{n} f\left(k \frac{x - a}{n} + a\right)
$
\end{document}
Notice the use of $ \displaystyle ... $
instead of $$ ... $$
; it is because the standalone
class doesn't accept $$
by default for being in crop mode. Going into preview mode only wrap the text vertically and not horizontally which is even better for me. If that is no problem for you however, just replace the line \documentclass{standalone}
by \documentclass[preview]{standalone}
from which the class allow the use of $$
.
standalone
documentclass. Can you post the code for your equation?