4

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

1 Answers1

5

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}

enter image description here


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}
AlexG
  • 54,894
  • Hi,I am afriad that I did not got you... – user121793 Feb 28 '17 at 13:43
  • What is Postscript route ? and figures are line art ? I use figures in file.png.. – user121793 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
  • Well, actually all my figures in format of file.png. and documentclass[a4paper]{report} - regarding to my thesis writing... – user121793 Feb 28 '17 at 13:49
  • 1
    Matlab, for sure, can export to vector graphics. – AlexG Feb 28 '17 at 14:00
  • 1
    @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
  • amcarter: how to tell Simulink to use vector graphics ? – user121793 Feb 28 '17 at 14:11
  • Hi,Is there any short or simple way to do it ? – user121793 Mar 01 '17 at 10:02
  • To convince Simulink to produce vector output? I have no idea, because I have no access to Matlab/Simulink, but maybe its Handbook tells something. I would search for "export formats" or so. – AlexG Mar 01 '17 at 10:09
  • @Tommt_tsa I searched a bit and found this user provided package: http://de.mathworks.com/matlabcentral/fileexchange/23629-export-fig . Indeed, Matlab doesn't seem to be able to write to EPS/PDF on its own. What a shame. – AlexG Mar 01 '17 at 10:24