# How to bold figures in Latex?

After sending my file to printer, I notice that some figures are very weak in print. Is there any way to make them bold ? I see that \boldmath do work on equations.

Is there any othere way to change figures to bold one as equations ?

Thanks, Tommy

• You mean figure the figure or figure the number? If your figure is generated by LaTeX (e.g. pstricks or pgfplots etc., there are some means) and for other occasions, just included from other figure generators those are reponsible, but if you include some .png or .jpg file you have to manipulate the image itself with gimp etc. – user31729 Feb 28 '17 at 13:15
• Increasing the size of the figure could also help to make the test more visible. – samcarter_is_at_topanswers.xyz Feb 28 '17 at 13:18
• Hi,I ment to figure - the picture it self.. – Tommt_tsa Feb 28 '17 at 13:32
• @samcarter: But the paper size may be too small in order to increase the figure as well? – user31729 Feb 28 '17 at 13:32
• a png image is just a picture like a photograph, you can not sensibly change it from tex, you need to adjust the plotting in matlab. – David Carlisle Feb 28 '17 at 13:52

## 1 Answer

It is possible to "bolden" figures under 2 conditions:

1. You are using the Postscript route (latex->dvips->ps2pdf)
2. Your figures are line art (vector graphics)

For other workflows (pdfLaTeX, XeLaTeX, LuaLaTeX), PDF vector image files can be treated one by one, but must be converted to Postscript first. See below.

Here, we enhance line widths of the second figure by factor 3:

\pdfoutput=0 %force dvi output

\documentclass{article}
\usepackage{mwe}
\usepackage{graphicx}

\begin{document}
\includegraphics{example-image}

\special{ps: userdict /setlinewidth {3 mul systemdict /setlinewidth get exec} put}
\includegraphics{example-image}
\special{ps: userdict /setlinewidth undef} %undo

\end{document}


For single vector graphics files, the following template can be used. PDF files must be converted to Postscript first. The result can be converted back to PDF for inclusion in the main document, if this one is to be processed with pdfLaTeX, LuaLaTeX or XeLaTeX.

Template to be processed with the latex->dvips->ps2pdf sequence of commands, using tiger.eps as an example file:

%%%%%%%%%%%% adjust this %%%%%%%%%%%%%
\def\graphicsFile{tiger.eps}
\def\enhanceFactor{3}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\pdfoutput=0 %force dvi output

\documentclass{article}
\usepackage[active,tightpage]{preview}
\usepackage{graphicx}

\begin{document}%
\begin{preview}%
\special{ps: userdict /setlinewidth {\enhanceFactor\space mul systemdict /setlinewidth get exec} put}%
\includegraphics{\graphicsFile}%
\end{preview}%
\end{document}

• Hi,I am afriad that I did not got you... – Tommt_tsa Feb 28 '17 at 13:43
• What is Postscript route ? and figures are line art ? I use figures in file.png.. – Tommt_tsa Feb 28 '17 at 13:44
• External graphics to be included are in Postscript (*.ps, *.eps) format and you process your document with latex, followed by dvips, followed by ps2pdf. – AlexG Feb 28 '17 at 13:46
• Matlab, for sure, can export to vector graphics. – AlexG Feb 28 '17 at 14:00
• @Tommt_tsa Using vector graphics will almost always give you a higher quality result -- especially if your images contain text. – samcarter_is_at_topanswers.xyz Feb 28 '17 at 14:05