0

I am trying to submit latex manuscript on ScholarOne. In the latex file, I have used \psfrag to make text replacement on .eps file. On my PC I can use auto-pst-pdf package and compile the .tex file using

pdflatex --shell-escape myDocument.tex

But when I submit it on ScholarOne, it can create a PDF file correctly except the \psfrag replacements. \psfrag replacements appear at random locations on the document. By looking at the log file, I can see that the shell-escape is not enabled, which might be causing the issue. It is possible to make \psfrag replacements without using shell-escape option.

  • 1
    Welcome to TeX.Stackexchange! Maybe you could use the following workaround: load the .eps in a standalone document, do your text replacements there and include the result as graphic in your main document – user36296 Dec 23 '18 at 21:20
  • psfrag if usedwith pdftex just runs latex in teh background making a pdf to include, so you can include that file directly without using psfrag at all once it is made. – David Carlisle Dec 23 '18 at 21:48
  • @samcarter that's basically what psfrag does anyway with pdftex. – David Carlisle Dec 23 '18 at 21:48
  • @DavidCarlisle Oh, that makes it even easier. – user36296 Dec 23 '18 at 23:07
  • Can you show an example command to convert eps files to standalone graphic files including psfrag replacements? I found that auto-pst-pdf does generate a filename-pics.pdf file with proper psfrag replacements for all eps files. After generation of this file, I can compile without shell-escape by turning off auto-pst-pdf. Even then, the ScholarOne submission system is not able to recognize filename-pics.pdf. It needs each graphics file separately. I figured, If I can make a separate standalone .pdf for each eps file, I can use them inside \includegraphics and avoid shell-escape. – Ameer Hamza Dec 24 '18 at 6:27

Your Answer

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

Browse other questions tagged or ask your own question.