Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there any feature in LaTeX to recolor a figure which is included in a LaTeX .tex file automatically like the feature which exists in programs like Word? It is a good feature, for instance the person has to bring different logos in his presentation slides and each are in different colors, by this feature he will be able to automatically recolor the logos to suite his presentation theme.

Before Recolor
enter image description here

After Recolor
enter image description here

share|improve this question
    
You mean change the color of an external image? Or the color of some words written in LaTeX? –  Manuel Aug 14 at 12:30
    
Recolor of an external image. –  Enthusiastic Student Aug 14 at 12:30
1  
1  
Look at my answer to Coloring a black and white PDF graphic. –  Paul Gaborit Aug 14 at 14:30
1  
Since TikZ/pgf 3.0, there is also a solution via blend mode... –  Paul Gaborit Aug 14 at 14:32

2 Answers 2

Here is a possible solution for simple cases using blend mode (logo.png is your first B&W logo):

enter image description here

enter image description here

enter image description here

\documentclass[tikz]{standalone}

\begin{document}
\begin{tikzpicture}
  \node{\includegraphics{logo}};
\end{tikzpicture}

\begin{tikzpicture}
  \begin{scope}[blend group=lighten];
    \begin{scope}[blend group=difference]
      \node[inner sep=0,line width=0] (logo) {\includegraphics{logo}};
      \fill[black] (logo.south west) rectangle (logo.north east);
    \end{scope}
    \fill[orange] (logo.south west) rectangle (logo.north east);
  \end{scope}
\end{tikzpicture}
\begin{tikzpicture}
  \begin{scope}[blend group=lighten];
    \begin{scope}[blend group=difference]
      \node[inner sep=0,line width=0] (logo) {\includegraphics{logo}};
      \fill[black] (logo.south west) rectangle (logo.north east);
    \end{scope}
    \fill[blue!70] (logo.south west) rectangle (logo.north east);
  \end{scope}
\end{tikzpicture}
\end{document}
share|improve this answer

No, it's not possible.

If you want to create a nice logo. You can use PowerPoint and have all its great capabilities. Save single slide as PDF and include the graphic with:

\begin{figure}[htb]
        \centering
        \includegraphics[width=\textwidth, trim=0cm 4cm 0cm 4cm,clip=true]{images/mylogo.pdf}
        \label{fig:mylogo}
\end{figure}

With the option trim you can easily crop the logo and delete white spaces. PDF is a great format, because you keep the lossless resize feature of PowerPoint.

PS: I am using MS Office, but LibreOffice should be just as well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.