0

The .eps file is created by Python matplotlib.text.usetex, where the characters in question are on the title and the legends of the chart in TeX text mode of matplotlib. The characters in question in the .eps file are placed properly as long as viewed by ghostscript. However, being included by \includegraphics{} of texlive latex, occasionally each TeX font character of the title and the legends of the chart is displayed as reversed upside down. “occasionally” means the characters in question are shown properly when the .eps file is included before \section{} after \begin{document}, however, it is failed when the same file is included after \section{}, i.e., the LaTeX source file is as follows.

\documentclass{article} 
\usepackage{graphicx}  
\begin{document}    
\includegraphics[width=15cm]{plot.eps} 
\section{Section 1} 
\includegraphics[width=15cm]{plot.eps} 
\end{document}

Only the second inclusion of the .eps file causes the problem when I view the latex compiled .ps file by Ghostscript.

The TeX related command versions are as follows.

pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX) (preloaded format=latex)
LaTeX2e <2020-10-01> patch level 4  L3 programming layer <2021-02-18>
dvips(k) 2020.1 Copyright 2020 Radical Eye Software (www.radicaleye.com)
4
  • can you make the eps available? – Ulrike Fischer Mar 21 at 16:15
  • Out of curiosity why are you running dvips? If it's just to include eps figures, perhaps the route discussed here might be more effective: tex.stackexchange.com/questions/383/… – Don Hosek Mar 21 at 18:05
  • That is because the .eps file is included by another latex document as a figure, and the whole latex document should be compiled to a .dvi file and a .ps file. – 20 Abbeyroad Mar 22 at 4:58
  • I have uploaded the original .eps file on link. The corresponding .ps file generated by the latex document including the .eps is link. Please find them. Note that P.1 of the .ps file is before \begin{document}, and P.2 is after it. Both include the same .eps file. – 20 Abbeyroad Mar 22 at 14:51
0

Actually, I wanted to attach the .eps and the .ps files here on this website, but I couldn’t find the way. How can I find the information on how to attach any files?

2
  • this is not an answer, use a comment for this. There you can also ping people with @name. Beside this: there is nothing here to attach such a file, you will have to upload it somewhere else and sent a link. – Ulrike Fischer Mar 22 at 7:41
  • Sorry, but I have just understood how to use it around here. – 20 Abbeyroad Mar 22 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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