Skip to main content

Questions tagged [psfrag]

Replace strings in encapsulated PostScript figures.

Filter by
Sorted by
Tagged with
1 vote
1 answer
57 views

psfrag using Overleaf and pdflatex compiler

I can't get psfrag to work using Overleaf and pdflatex as compiler. I'm using these packages: \usepackage{pstool} \usepackage{psfrag} And this is how I create my figure: \begin{figure}[H] \centering \...
floyd123's user avatar
0 votes
0 answers
24 views

Trouble generating large graph with auto-pst-pdf

I try to use latex packages auto-pst-pdf and psfrag to produce dot graphs that require latex labels. It works well with small examples (10 ~ 20 nodes). However, when the number of nodes gets larger (...
Hans's user avatar
  • 1
1 vote
1 answer
42 views

modify legend with psfrag in a eps image [closed]

I am trying to modify the legend of an eps image that I generated in matlab, there are several experiments where I put the reference in the legend, so this is why I prefer to set it up with psfrag. I ...
sofi's user avatar
  • 11
0 votes
1 answer
71 views

How can I use WinEdt to ensure successful using psfrag?

The following website provides an example of using the psfrag package to replace strings in EPS images. https://www.overleaf.com/latex/examples/psfrag-example/tggxhgzwrzhn However, with my setup of ...
licheng's user avatar
  • 795
0 votes
0 answers
64 views

PSfrag does not replace tags but inserts the replacement text

I want to replace a tag in a eps figure using the \psfrag command. Here is the code of the figure: \begin{figure}[H] \centering \psfrag{r}[cB][cB]{Radius} \includegraphics{02_Grundlagen/...
maurten's user avatar
1 vote
0 answers
38 views

Psfrag Error: File ended while scanning use of @psfragb

I have a problem with the psfrag package in MacTeX. I am trying to replace the text “Quantity” in an EPS graphic with “Menge”, but it is not working. Here is the code I am using: \documentclass{...
Eins_oder_Null's user avatar
0 votes
0 answers
96 views

Why is psfrag not substituting my text for a .eps graphic?

I am currently writing a document that contains a number of .eps files. Unfortunately it also contains a number of PNGs too. What i have done to get around the Latex/pdfLatex problem is to have two ...
ChrisD91's user avatar
  • 121
0 votes
1 answer
66 views

Converting strings in eps images to mathematical content with Lualatex and pstool

I saw a post about this problem, but I can't fix my problem with the suggested solution. Maybe I am doing something wrong or the packages have changed. Can someone help me? The code is: \documentclass{...
Fred's user avatar
  • 1
0 votes
0 answers
98 views

Package chemnum doesn't work for .eps files if hyperref is loaded

I wan't to use chemnum to number my chemicals in my document. The pictures are included as .eps files with temporary tags under the numbered structures. To acomplish that I use the auto-pst-pdf ...
Hugel's user avatar
  • 23
0 votes
0 answers
121 views

Psfrag in LaTeX using Overleaf pdflatex compiler

I can get psfrag to work in the Overleaf LaTeX compiler. And the code: \begin{figure}[H] \centering \psfrag{F}[c][c][1][0]{$F$} \includegraphics[width=0.9\textwidth]{root/Force.eps} \end{figure} ...
Per Johannessen's user avatar
2 votes
0 answers
107 views

chemnum: compound referencing in scheme not possible using EPSF-3.0

Using the chemscheme and chemnum packages, I would like to number compounds in a chemical scheme as described in: https://www.overleaf.com/latex/templates/automatically-numbering-compounds-in-chemical-...
user21101711's user avatar
1 vote
2 answers
54 views

Inclining text in a plot

Using PSFRAG+INKSCAPE and this code: % !TeX document-id = {e6a8e82d-b7ef-4afd-9d07-b0a5e7dd8c48} % !TeX program = txs:///dvi-ps-pdf-chain \documentclass[12pt]{article} \usepackage{graphicx} \...
Diego Andres Alvarez Marin's user avatar
0 votes
0 answers
58 views

psfrag prevents eps files (from Chemdraw) to be compiled with Latex->dvi

I am moving to a new PC with an update of all programs. Setup is Win11 with Miktex 22.10/Winedt 11/gsview 5.0/Ghostscript 10.0. Under the new setup, I suddenly have issues when compiling a document ...
ez_ekiel's user avatar
0 votes
0 answers
56 views

Misalignment of bounding boxes with `psfrag`

My problem The left side of the replacement text written by psfrag is horizontally shifted with respect to that of the tag I inserted in my PostScript file, although I use "l" (left) for ...
Michel Fioc's user avatar
  • 1,257
0 votes
0 answers
109 views

How to use /psfrag with pdf Foto

I am relatively new in latex and would write my bachelor thesis with it. I would edit photos with /psfrag in latex. The photos I use are saved as pdf files. My first script is \documentclass{article} \...
Gha's user avatar
  • 1
0 votes
1 answer
81 views

Inserting a background color behind a text changed with psfrag

I have just started to play with psfrag to change some tags into eps images. I am looking for a simple way to add a background color to a text inserted using psfrag. For example in: \begin{figure} \...
umby's user avatar
  • 144
2 votes
2 answers
146 views

Obtain a .eps image usable by psfrag from .pdf (or other format) files

I am trying to change some text inside some figures of extension .EPS using the package psfrag. Unfortunately, one of the software which I am using to prepare these figures, the cad CATIA, has not an ...
umby's user avatar
  • 144
1 vote
0 answers
145 views

Problem importing .eps files from ChemDraw 20 (MikTeX 4.6; TexMaker 5.1.2) and chemnum won't work

relative newbie writing my thesis using ChemDraw 20 for structures, including different chapter using \include. I can't seem to be able to import .eps files from chemdraw into my main file. Under the '...
Poo's user avatar
  • 11
0 votes
0 answers
147 views

How to use subfig, psfrag, and contour packages with LaTex

I'm trying to combine the aforementioned packages to produce a Figure in LaTex, but it isn't working correctly. The subfig and psfrag packages work correctly and the labels get replaced properly. ...
yoninno's user avatar
0 votes
0 answers
279 views

ps2pdf does not work at all

I am using Texmaker 5.0.3 with Miktex 2.9 and compiling from ps to pdf does not work. When I compile document with Latex+dvips+View PS I got expected output in PS, but when I use Latex+dvips+ps2pdf+...
iviviviviv's user avatar
4 votes
0 answers
211 views

Proper toolchain for pdfLaTeX and psfrag including hyperref

I am writing a comprehensive scientific thesis. In December 2020, my toolchain stopped working, which combined pdfLaTeX, pstool to apply psfrag, and hyperref. I reported the issue here pdfLaTeX fails ...
Tobias's user avatar
  • 101
0 votes
0 answers
127 views

psfragfig no longer working if eps files are in subdirectory

I've been using \psfragig replacements for years on MacOS quite successfully. My general workflow is to have my main .tex file in a directory and all of my image files (bar*.eps) along with the ...
user2501235's user avatar
1 vote
0 answers
95 views

Using psfrag with Adobe Illustrator

I'm trying to make psfrag work with EPS files created by Adobe Illustrator. It seems like no matter what option I use for Adobe Illustrator, my text always comes embedded inside the file. I've tried ...
Max Vladymyrov's user avatar
2 votes
1 answer
172 views

Why does the ```\vspace``` command not work with PSfrag?

When loading in eps graphs, I wanted to shift the positions of the axis labels, and I found I could achieve that with PSfrag (something like \psfrag{label}{\hspace{1em}label}). I've found that this ...
Garf's user avatar
  • 510
1 vote
1 answer
292 views

Creating figure files in pdf version from eps files with proper fonts using psfrag and psfragfig

Here is my code \documentclass[12pt]{article} \usepackage{pstool} \usepackage{amsmath} \begin{document} \psfragfig[height=83mm,keepaspectratio]{identical_distributions2}{% \psfrag{p}[t][]{...
Seyhmus Güngören's user avatar
1 vote
0 answers
101 views

auto-pst-pdf creates ghostscript error [duplicate]

I am using pdflatex (shell-escape is enabled) with auto-pst-pdf, psfrag and chemnum to replace tags in eps-files for auto-numbering molecules in my B.Sc. thesis. It went fine until this week, when I ...
Chris's user avatar
  • 31
3 votes
1 answer
208 views

chemnum - wrong numbering in text

This is a follow up question to this answer here. I am getting trouble with the numbering in text, when i combine the first scheme with a second scheme. If i include the text at position one, the ...
Solstafir's user avatar
0 votes
0 answers
289 views

psfrag package doesn't work in TexMaker

i am writing my report and i had a problem with psfrag. it is working with overleaf but it didn't with TexMaker. The picture "solution_conceptv8" is uploaded in the latex file but the words ...
Ghaya's user avatar
  • 11
0 votes
0 answers
30 views

psfrag values not shown after compiling code

\documentclass[10pt]{article} \usepackage{epsfig,rotating,times,psfrag,pstricks,tikz} \usepackage{xcolor,array,graphicx} \usepackage{amsmath,amssymb} \usepackage{pgfplots} \pagestyle{empty} \begin{...
babar's user avatar
  • 1
0 votes
0 answers
447 views

I would like to \includegraphics eps, but also jpeg, png and pdf

I would like to include graphics in one document that I have in the following formats: eps, jpeg, png, and pdf. My understanding is that compiling is limited depending on the approach: latex allows: ...
Matt.Vancouver's user avatar
3 votes
1 answer
145 views

Labelling E and Z stereoisomers with chemnum

I am currently writing my chemistry thesis, which is significantly focused on photoisomerisation. I am using chemnum for compound number. For example, here is azobenzene photoisomerisation: As far ...
Thomas MacDonald's user avatar
1 vote
1 answer
504 views

Generate standalone eps figures with tex labels substituted

Currently, I am using pstool and using psfragfig to include figures, which are eps format with labels in a separate tex file. \documentclass{article} \usepackage{graphicx} \usepackage{pstool} \begin{...
SKPS's user avatar
  • 421
0 votes
1 answer
367 views

filemoddate in xetex

I compile the below file: %my main file is named `document .tex`. \documentclass{article} \usepackage{graphicx,xcolor} \usepackage{float} \usepackage[crop=pdfcrop,process=all]{pstool} \usepackage{...
SH.Madadpour's user avatar
0 votes
0 answers
41 views

Converter from PSfrag to pinlabel?

A lot of legacy TeX files using PSfrag exists out there and more is being produced everyday by things like Xfig, Inkscape, ... I was wondering if anyone has set on a course to write a converter from a ...
Paulo Ney's user avatar
  • 2,450
3 votes
1 answer
101 views

Hide/Replace labels with foreach

I am trying to make a command that will take a list of labels and use psfrag to hide them. in my figure X3 is removed but X1, X2 and X7 are still there. OneDrive link to EPS file Is there something ...
Phildgg's user avatar
  • 39
0 votes
0 answers
270 views

Parse all equations in eps file

When I draw figures with a vector graphic program I can export them as .eps files. I know it is possible to use psfrag to replace given text in the eps file with another text which is then parsed in ...
mon43's user avatar
  • 101
0 votes
0 answers
59 views

Typesetting issue from MAC to Windows

Hey Guys my Professor send me a LATEX document from MAC with the code \begin{figure} \centering \psfrag{k}[][]{$k$} \psfrag{y}[][]{$Y^{\prime }$} \psfrag{x}[][]{$X^{\prime }$} \psfrag{n}[][]{} \...
kisrui's user avatar
  • 1
0 votes
0 answers
75 views

How to keep original text color with PSfrag?

I would like to know if there is a way to keep text color unchanged while giving a replacement within \psfrag. I have an electric circuit where some identical text labels should be displayed at the ...
settimed's user avatar
0 votes
1 answer
340 views

PSfrags not working

I created a drawing in Powerpoint and saved it as .pdf I then converted it to .eps Trying to use psfrag however does not seem to work: Try 1 pdflatex --shell-escape \documentclass{article} \...
idkfa's user avatar
  • 471
1 vote
1 answer
4k views

psfrag or auto-pst-pdf return error: LaTeX Warning: File `filename-pics.pdf' not found on input line

I am using TeXworks to write my thesis. But I am unable to use psfrag package with auto-pst-pdf because it returns error about a file that I haven't even called in main command line. Instead there is ...
Kamran Nawaz's user avatar
3 votes
1 answer
5k views

Adding latex to figures from Inkscape

I have been using psfrag to add latex to figures for a while. I make my figures in Inkscape and compile in MikTex using texniccenter. I switched laptops and installed the latest Inkscape and MikTex ...
user442920's user avatar
1 vote
1 answer
417 views

Package pstool Warning: No file containing macro

I have the following piece of Latex code. I receive this warning: Package pstool Warning: No file "epsfigure.tex" or "epsfigure-psfrag.tex" can be found that may contain macros for "epsfigure.eps" ...
Yousef Vh's user avatar
0 votes
0 answers
252 views

psfrag + tcolorbox + tikz + eps + pdflatex = Error: /undefined in pgfo

Minimal working example is: \documentclass{article} \usepackage{tikz} \usepackage{auto-pst-pdf} \usepackage{psfrag} \usepackage{tcolorbox} \newtcbox{\mybox}{} \begin{document} \begin{figure} \...
BlenderBender's user avatar
0 votes
0 answers
234 views

Making \psfrag replacement without using --shell-escape option

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 ...
Ameer Hamza's user avatar
4 votes
1 answer
127 views

How can I intercept postscript instructions in a file loaded with includegraphics?

The psfrag package has the capability to intercept certain instructions in eps files, and replace them with new instructions. In this way, it is possible to replace fonts in an image with the fonts ...
Ian Thompson's user avatar
1 vote
2 answers
1k views

auto-pst-pdf could not create pdf file

I want to include numerous graphs for my thesis. Recently, I learnt that we can format text and labels in LaTeX font using psfrag I use Texstudio with pdflatex and as such i had to enable --shell-...
J.P.1996's user avatar
0 votes
1 answer
50 views

`psfragtrans` and parentheses

I have the following string in eps-file (\(actual)S I need to insert an appropriate element into tex-file to translate it. I tried \psfragtrans{(actual}{(фактичні} But this doesn't work. I got the ...
Yola's user avatar
  • 481
1 vote
0 answers
141 views

psfrag package and autocad .eps

is there a way use .eps figure from autocad and edit its labels using the psfrag package? I tried with exporting figure from autocad directly to .eps and then, in figure environment, I used \psfrag ...
marcoroberto94's user avatar
1 vote
1 answer
386 views

Trouble with psfrag and Mathematica's eps-images

My system: Windows10, MikTeX2.9, WinEdt10.2 I am preparing/updating a set of lecture notes. I ran into the following issue with psfrag. The relevant source snippet: \begin{figure}[ht] \psfrag{X}{$x$}...
Jyrki Lahtonen's user avatar
1 vote
1 answer
138 views

Change tag by equation using psfrag

I'd like change tag xlab to Polygonal vertices $\xi_1$. Figure and tex are above. My figure %!PS-Adobe-3.0 EPSF-3.0 %%DocumentNeededResources: font Helvetica %%+ font Helvetica-Bold %%+ font ...
Wagner Jorge's user avatar