1

I have a typo legend in an image in my pdf file generated by LaTeX. There is an extra "t" at the end of the legend. Unfortunately, I cannot reproduce the correct image. How can I remove that "t" in my pdf?

enter image description here

BTW, I have the correct legend generated by MATLAB (see below). Can I somehow replace the wrong legend with correct one through LaTeX?

enter image description here

Mohammad
  • 161

1 Answers1

1

Adobe Acrobat (not the reader, but Pro) allows modifying elements in a pdf quite nicely. However it's a proprietary software.

For a LaTeX hack, I would have tried it this way:

\documentclass{standalone}
\usepackage{graphicx}
\begin{document}
    \includegraphics[width = 3in]{figure}%
    \hspace{-1.43in}%
    \raisebox{2.1in}{%
        \includegraphics[width = 1.31in]{legend}%
        \hspace{0.1in}}
\end{document}

...of course downloading your two images as png. This gives:

enter image description here

As you see the white space outside the new legend is a bit disturbing. So, there are several things you need to do to get things right for your pdf's.

  1. trim your new legend from just outside the box.
  2. change the lengths to suit your case.

It's a trial-and-error method-- somewhat tiresome... but works !

Partha D.
  • 2,250