Questions tagged [psfrag]
Replace strings in encapsulated PostScript figures.
140
questions
1
vote
0
answers
35
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 '...
0
votes
0
answers
48
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. ...
0
votes
0
answers
56
views
How to use psfrag in latex workshop in VScode?
I've been struggling with making psfrag working in latex workshop in VSCode. Here are my tool and recipe
"latex-workshop.latex.tools": [
{
"name": "latexmk",
...
0
votes
0
answers
142
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+...
4
votes
0
answers
110
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 ...
0
votes
0
answers
51
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 ...
1
vote
0
answers
64
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 ...
1
vote
1
answer
85
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 ...
1
vote
1
answer
194
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][]{...
1
vote
0
answers
99
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 ...
3
votes
1
answer
122
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 ...
0
votes
0
answers
153
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 ...
0
votes
0
answers
23
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{...
0
votes
0
answers
172
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: ...
3
votes
1
answer
110
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 ...
1
vote
1
answer
257
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{...
0
votes
1
answer
283
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{...
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 ...
3
votes
1
answer
90
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 ...
0
votes
0
answers
166
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 ...
0
votes
0
answers
54
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}[][]{}
\...
0
votes
0
answers
63
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 ...
0
votes
1
answer
137
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}
\...
1
vote
1
answer
3k
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 ...
2
votes
1
answer
2k
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 ...
1
vote
1
answer
281
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" ...
0
votes
0
answers
199
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}
\...
0
votes
0
answers
174
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 ...
4
votes
1
answer
99
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 ...
1
vote
2
answers
955
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-...
0
votes
1
answer
41
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 ...
1
vote
0
answers
114
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 ...
1
vote
1
answer
289
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$}...
1
vote
1
answer
120
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 ...
1
vote
1
answer
1k
views
Greek letter in eps figure Latex
I'd like to plot a graph with y-label with a Greek letter beta. But in latex, I have the result present in the figure. How the latex interpret Greek letter?
My eps figure code is given by
%!PS-Adobe-...
3
votes
0
answers
369
views
Alternative to psfrag that works with matplotlib / Python?
Is there an alternative to the psfrag library that works with plots made outside of the MATLAB program? For example, in Python, even if you save a figure with the .eps extension, it is not compatible ...
2
votes
1
answer
188
views
why is pstool-psfrag reducing pdf file size?
I am using pstool & psfrag (with pdflatex) to replace text in eps files generated by Adobe Illustator. I noticed that the pdf files produced by pstool (using the \psfragfig command) are way ...
0
votes
1
answer
236
views
PdfLatex - Grahics processing error using `matlabfrag` and `psfragfig` for logaritmic scales
I'm using TeX 3.14159265 (TeX Live 2015/Debian) on Ubuntu 16.04 LTS with frontend as Texmaker 4.4.1.
I used matlabfrag script to produce an eps file to be used with psfragfig in pdflatex. The EPS ...
0
votes
0
answers
124
views
Getting the bounding box of TeX labels embedded with psfrag?
I'm using the PSFrag package to embed LaTeX labels into my EPS figures (which I then import into my LaTeX document), which works fine except that my LaTeX labels aren't very visible, because the ...
4
votes
1
answer
546
views
Is it possible to use the tex-dvi-ps-pdf route with luatex?
This question should be of general interest. It is triggered by the Japanese edition of my free physics text (see http://www.motionmountain.net/japanese.html ), where lualatex (from TexLive 2017) ...
2
votes
1
answer
1k
views
Enlarge font size eps figure
I have two eps figures and I'd like to enlarge the font size of labels Dimension 1 and Dimension 2 (Figure1) and Dimension 1, Dimension 2 and Frequency(Figure 2) in the two figures. This lables should ...
0
votes
1
answer
62
views
Only last value of a variable goes into \psfrag function
I make two calls, but it seems like only last value of \lRaise goes into the function, so both boxes are raised by -5pt:
\newlength{\lRaise}
\setlength{\lRaise}{-0.97pt}
\psfrag{low-order}[B][][0.8]{\...
2
votes
2
answers
942
views
Can I add a label to a figure that shows up next to the figure?
I'm writing my chemistry thesis and it involves a lot of reaction schemes How can I add a label that shows up? I want to label the first compound 1, and I want this to be a Latex label so I can refer ...
1
vote
1
answer
115
views
Calling \psfrag{} inside a for loop for figure with monotonically increasing names
First of all my question is different from this question. The issue is that in my case I want to loop figures that are named with a monotonically increasing order from (1,2,\ldots,1000). I know how to ...
0
votes
1
answer
145
views
Adjacent figures in latex and pdflatex
I use psfragfig along with matlabfrag for substituting figure texts, labels in Latex font. It works very well. Recently I switched for organizational purposes to use latex compiler instead of pdflatex ...
1
vote
1
answer
489
views
Why won't psfrag replace string in certain eps files (from MestreNova)?
I am using psfrag to replace string in eps graphics, which works fine with most eps. There are certain eps graphics that won't work with it though, which are mainly graphics exported from MestreNova ...
1
vote
0
answers
335
views
Displaced text when importing eps
I have a problem with my MATLAB plots. I need to use tikz/pgf created figures and display MATLAB plots where I want the font and fontsize to be equal in all figures even if I change the size of the ...
1
vote
0
answers
777
views
psfrag in combination with epstopdf not working (MikTeX)
I am trying to use psfrag to alter axes labels of plots from Mathematica. Unfortunately eps files are not supported by pdflatex, so they are converted using epstopdf. To get the epstopdf working, I ...
1
vote
2
answers
270
views
Text got misaligned after psfrag replacement took place in .eps
I need to translate to translate texts in eps files. For this i use psfrag package like this:
\documentclass[12pt]{article}
\usepackage{psfrag}
\usepackage[dvips]{graphicx,color}
\usepackage[utf8]{...
0
votes
1
answer
731
views
Psfrag does not replace the tag more than one symbol
\documentclass[12pt]{amsart}
\usepackage{mathrsfs}
\usepackage{graphics}
\usepackage{latexsym}
\usepackage{cite}
\usepackage{graphicx,psfrag}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{...