<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Hello,</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Just an update regarding my previous question regarding <b>dvips.</b></div><div class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif">It seems that one additional command, </span><font face="monospace">eps2eps </font><font face="arial, sans-serif">converts a "bad" <b>*.eps</b> image into correct one.</font></div><div class="gmail_default" style="font-size:small"><font face="arial, sans-serif"><br></font></div><div class="gmail_default" style="font-size:small"><font face="arial, sans-serif">Best regards,</font></div><div class="gmail_default" style="font-size:small"><font face="arial, sans-serif">Srecko Nedeljkovic</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 5 Aug 2022 at 13:50, Срећко Недељковић <<a href="mailto:sreckojr@gmail.com">sreckojr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Hello,</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">I would like to ask a question (report bug if so) about an issue that I faced using the latest installed <b>texlive</b> version.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">I have a <b>*.cpp</b> program that utilizes the following sequence of commands:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_default" style="font-size:small"><font face="monospace">sprintf(cmd, "latex -interaction=batchmode -halt-on-error -file-line-error -output-directory TeX=pgfplot/plots %s.tex >/dev/null", fn);</font></div><div class="gmail_default" style="font-size:small"><font face="monospace">  system(cmd);</font></div><div class="gmail_default" style="font-size:small"><font face="monospace">       sprintf(cmd, "dvips -quiet %s.dvi -o %s.eps", fndvi, fneps);</font></div><div class="gmail_default" style="font-size:small"><font face="monospace">     system(cmd);</font></div><div class="gmail_default" style="font-size:small"><font face="monospace">       sprintf(cmd, "ps2pdf -dEPSCrop %s.eps %s.pdf", fneps, fnpdf);</font></div></blockquote><font face="monospace"><span class="gmail_default" style="font-size:small"><font face="arial, sans-serif">where </font>fneps<font face="arial, sans-serif"> etc. are previously declared chars:</font></span></font> <font face="monospace">char fneps[201];<span class="gmail_default" style="font-family:arial,sans-serif;font-size:small"> etc.</span></font><div><font face="monospace"><span class="gmail_default" style="font-family:arial,sans-serif;font-size:small"></span><br></font><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">This set of commands works flawlessly on my older <b>Ubuntu</b> distribution (16.04 LTS) alongside with the older <b>texlive</b> version (I believe <b>texlive2015</b>, and thus older <b>dvips</b>) and older <b>g++</b> compiler.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">A few days ago I installed on another machine the latest <b>Ubuntu</b> distribution (22.04 LTS) together with the latest <b>texlive</b> version (<b>texlive2022</b>, and thus latest <b>dvips</b>).</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Unfortunately, the resulting <b>*.eps</b> image is of unexpected size and orientation (like double flipped and very small). Additionally, it looks like it uses extra white space around the image but I am not quite sure.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Attached is the zipped folder, containing <b>*.eps</b> image produced on old setup (denoted with "old") and <b>*.eps</b> image produced with new setup which is not working correctly.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><span style="font-family:Arial,Helvetica,sans-serif">Is there a command I've been overlooking or anything I'm doing incorrectly?</span></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><span style="font-family:Arial,Helvetica,sans-serif">Any assistance would be greatly appreciated!</span></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Thank you for the response.<br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Sincerely,</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">Srecko Nedeljkovic</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small"><br></div></div></div>
</blockquote></div>