I would need your help to change the width of my inline todonote...
Indeed, it takes the whole width, and I didn't find any tip in other forums, websites and even in the documentation.
Package needed : todonote
Here's a MWE (a bit long, cause I kept the equations) :
Code: Select all
\documentclass[a4paper, 12pt, fleqn]{article}
\usepackage{todonotes}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[frenchb]{babel}
\usepackage[a4paper]{geometry}
\geometry{top=2cm, bottom=2cm, left=3cm, right=3cm}
\setlength{\marginparwidth}{2.5cm}
\begin{document}
\begin{tabular}{rcl}
$f\left(x + 2\pi\right)$&=&$ \dfrac {3\cos^2\left(x + 2\pi\right)+1}{\cos^3\left(x + 2\pi\right)+1}$\\\\
&$=$& $\dfrac {3\times \cos\left(x + 2\pi\right)\times \cos\left(x + 2\pi\right)+1}{\cos\left(x + 2\pi\right)\times \cos\left(x + 2\pi\right)\times \cos\left(x + 2\pi\right)+1}$ \\\\
&& \todo[inline]{Car $\cos\left(x + 2\pi\right)=\cos\left(x\right)$} \\
&$=$& $\dfrac {3\times \cos\left(x\right)\times \cos\left(x\right)+1}{\cos\left(x\right)\times \cos\left(x\right)\times \cos\left(x\right)+1}$\\\\
&$=$& $\dfrac {3\cos^2\left(x\right)+1}{\cos^3\left(x\right)+1}$
\end{tabular}\\
\noindent
Donc, $\forall x\in D, f\left(x+2\pi\right)=f\left(x\right)$\\
$f$ est donc $2\pi$ périodique.
\end{document}
Thanks for your future help!
