Replace strings in encapsulated PostScript figures.

learn more… | top users | synonyms

18
votes
3answers
9k views

Using psfrag with pdflatex

Is there any way of using psfrag with pdflatex? It seems fairly similar to the problem of using pstricks with pdflatex. Do they both depend on the same things, or does psfrag include pstricks? Can I ...
11
votes
8answers
3k views

What do people use for modifying figures?

I usually create figures for my articles in Matlab: various plots of numerical and analytical solutions. One thing that I don't like about it is that the font is different in the figure and in the ...
8
votes
1answer
1k views

Why is there no pdffrag package?

The psfrag package has been around for more than a decade* and is easy to use: \usepackage{graphicx}% http://ctan.org/pkg/graphicx \usepackage{psfrag}% http://ctan.org/pkg/psfrag ... ...
7
votes
1answer
122 views

Problem with \DeclareFixedFont and \psfrag in texlive2013

I have a problem with \DeclareFixedFont in combination with \psfrag which occurs in texlive2013 but not in texlive2010. When I use \DeclareFixedFont{\myFont}{T1}{ptm}{b}{n}{10} in the MWE the letter ...
6
votes
2answers
2k views

psfrag substitute when using pdflatex

My standard way of including math in figures so far was to use psfrag and latex+dvips+ps2pdf. I am now moving to pdflatex and tend to prepare my graphics in pdf format. I was wondering if there ...
5
votes
2answers
397 views

Why does my Mathematica figure not work with PSFrag?

I created an image in Mathematica with some labels that, for some reason, refuse to be substituted when using PSFrag. Specifically, the Mathematica code image = Plot[Sin[x], {x, 0, 2 π}, ...
5
votes
2answers
138 views

Problem with psfrag + fncychap in TeXLive 2013

I am working with psfrag to do my plots and fncychap to have nice chapter titles. Please check the minimal example: ...
5
votes
1answer
414 views

Is there a way to change styles in imported EPS files?

I know how to replace simple textual tags in imported EPS files using psfrag; but to ensure a consistent appearance for graphics in my documents, I would like to also be able to make substitutions to ...
5
votes
1answer
824 views

How to compile a document with the pstool package using the pdflatexmk script?

To use psfrag with pdflatex I use the pstool package. Using TeXShop 3.25 I can compile the two minimal working examples given in this and this answer when I use the regular LaTeX typesetter. The ...
5
votes
1answer
561 views

Different graphic formats in a document

I have a large LaTeX document with figures in .eps, .pdf, .png, .tif(f), .jpg formats as well as pstricks code and psfrag fragment. One approach to compile this document is to use an external program ...
5
votes
1answer
193 views

How to define a new temporary label, with a separate counter, using chemnum?

Is there a way, using chemnum, to create a different type of TMP-label in .eps files which can then be replaced in the text with a separate label/numbering? For example, I have many chemdraws which ...
5
votes
1answer
3k views

Export eps figures modified by psfrag

I am not an expert on figure exports and, although I have been searching around quite a lot, I can't find the answer to my problem. During the writing of a journal article, I had the idea of using ...
5
votes
0answers
81 views

pstool + pgfplots + parskip conflict [closed]

I've recently observed extremely strange latex bug if pstool + pgfplots + parskip packages are used at the same time. \documentclass{article} \usepackage{pstool} \usepackage{pgfplots} ...
4
votes
2answers
2k views

Tagging for PSFrag

What programs do people use to put their tags on ready to be replaced by psfrag? I've tried inkscape but if I write in the text "hello" say with inkscape then export as eps PSfrag doesn't seem to ...
4
votes
2answers
380 views

Using pstool with beamer

I would like to use pstool with beamer to create a presentation in pdflatex with figures processed by psfrag. However, as the simple example below shows, the figures are processed using the beamer ...
4
votes
1answer
3k views

How to use pstool in pdfLatex?

Update: After I adding those --shell -escape commands, when I run the code as below, it still cannot work. \documentclass[pdftex]{memoir} \usepackage{color} \usepackage{pstool} \input macros.tex ...
4
votes
2answers
1k views

Psfrag or comparable tagging method with XeTeX

I understand from this question that using psfrag to replace tags in eps-files works well with pdfLaTeX. I also think I understand from this question that there was no working mechanism to accomplish ...
4
votes
1answer
673 views

Inserting an image into a figure using psfrag

I'm trying to import figures from Matlab into a LaTeX document using PSFrag. For some of the figures I'd like to be able to add little images in particular places. I thought I'd be able to just add ...
4
votes
0answers
81 views

Using pstool with LuaLaTeX

I am trying to use psfrag in conjunction with pstool an LuaLaTeX to replace a tag in an .eps plot generated with gnuplot. I'm not sure if pstool is generally working with LuaLaTeX, however, the ...
3
votes
3answers
9k views

Replacing labels in EPS file by LaTeX - text not where it should be

I am spawning a .eps file with octave by using this .m file: function dummy xlim([0 81]); x = [0:0.01:81]; y=x.^0.5+x.^0.4+x.^0.3+x.^0.2+x.^0.1; plot ...
3
votes
1answer
333 views

Substitutions with psfrag not compiling. Can I use includegraphics?

I am trying to compile this code with "latex" (not pdflatex). I got the code itself from a collegue, so it should work. Except maybe the way I compile it and the usepackage options? Right now, I ...
3
votes
2answers
987 views

Using TikZ and psfrag

I use psfrag to replace tags in figures by LaTeX text and formulas. Recently I wanted to go one step further, lets say I have a figure that has two tags in it "a" and "b", I'd like to have a nice ...
3
votes
1answer
767 views

pstool & psfragfig how to edit the EPS file for moving the placeholder to another position

I have generated EPS and TeX files from Matlab. Now I notice if I scale my image the text gets badly scaled such that my axis names are sitting on my axis even if I reduce the text size to ...
3
votes
2answers
922 views

XeLaTeX and EPS figure with consistent fonts

I'm using Miktex 2.9 and XeLaTeX plus some EPS figures. For consistent fonts along the document, I used to play with psfrag or directly use pstricks. I'm facing the situation where none of the above ...
3
votes
1answer
1k views

pstool stopped working

In some figures I create for my thesis I want to replace the labels and such using the same font and size as in the rest of the thesis. A couple of month ago I already used psfrag and pstool (with ...
3
votes
1answer
354 views

Using psfrag with LaTeX counters (insert counter number directly in eps figure)?

I am writing an organic chemistry dissertation using (pdf)LaTeX. The content of the thesis contains a large amount of numbered chemical structures. The chemical structure drawings were generated using ...
3
votes
1answer
738 views

Using Times New Roman in eps images with psfrag

I'm using the chemstyle package to produce chemical reaction schemes. It uses the psfrag package to replace placeholders in eps graphics with numbers for molecules. I'm trying to use Times New Roman ...
3
votes
0answers
122 views

Chemnum/PS-Frag with EPS-Files and PNG-Files [duplicate]

In my research report, I would like to include both, EPS files to achieve automatic numbering of my compounds in schemes with chemnum and also PNG files to include 3D structures of my molecules. I ...
3
votes
0answers
1k views

Alternatives to Inkscape for EPS tagging for psfrag [closed]

So it seems the latest version of Inkscape is not very psfrag-friendly: If you insert text tags into your EPS then upon saving (even if you deselect "Convert text to paths") it still encodes the tags ...
2
votes
2answers
7k views

Why aren't my psfrag substitutions occurring?

I can't get simple psfrag substations go happen, and wonder if I'm missing an option or preference somewhere that will make them work. I'm using LyX to build by document, but I have the same problem ...
2
votes
2answers
2k views

psfrag equivalent for pdflatex

I am currently updating my workflow from the old tex2ps2dvi workflow (needs a lot of time and matplotlib and other stuff etc. hasn't a EPS output (only PDF, SVG, PS, PNG, etc...). I am trying to ...
2
votes
2answers
74 views

Is it possible to substitute text inside a pdf figure?

I have a drawing made by the CAD DraftSight, I exported the drawing into a .pdf file and then I included it with \usepackage{graphicx} % ... \begin{figure}[!htb] \centering ...
2
votes
2answers
150 views

What does psfrag do, and can it be made to work with pdflatex?

I'm picking up a document, thus far, created by someone else who is unavailable for questioning. I have a vague idea what is trying to be accomplished with this: \clearpage \begin{figure}[h!] ...
2
votes
2answers
103 views

An equivalent of psfrag and polyglossia together?

I need to use psfrag, and Georgian language, for which the only available possibility to get correct hyphenation that I could find was polyglossia. However, seemingly psfrag does not work with xelatex ...
2
votes
1answer
201 views

How to use display equations with psfrag?

I would like to include a display equation in an EPS figure using the pstool package. When the command for the replacement text is $\sum_{i=1}^{N} x_i^2$, then it compiles fine (see the vertical axis ...
2
votes
2answers
738 views

Seminar environment plus psfrag plus TeXshop — I can't get all three to work together

A while ago, I discovered that TeXshop has trouble with producing slides that overflow the right margin in the seminar environment. I found a solution in this thread on latexcommunity -- use pdftex ...
2
votes
2answers
1k views

Tight bounding box for EPS

This is a follow-up of the question EPS file with tight BB & Psfrag labels. I have this file named model.eps (see further below on how to get the file) and I am replacing the labels on the figure ...
2
votes
1answer
65 views

Using Gael Varoquaux's garamond fonts with psfrag (ideally: non-root solution)

For my thesis, I really like to use the modified Garamond fonts by Gaël Varoquaux, because I think they are exceptionally pleasing visually. While Gael does not support the fonts any more, he suggests ...
2
votes
1answer
38 views

Is there some way i can edit a Octave eps and send it to LaTeX to be edited with psfrag?

I want to cut just a part of a eps plot made with Octave (its colorbar) and send it to LaTeX, still being able to use psfrag with it. Is there a way to do it?
2
votes
1answer
39 views

Calling \psfrag{} inside a forloop

Allright, hi guys. Inside my EPS i got quite some texts that are quite similar. Only their index shall change from each one. So i'm trying to get those done in an own command. They are used inside an ...
2
votes
1answer
124 views

psfragify? Aka problem with EPS and pdfLaTeX

If I want to include a .eps image and yet use pdfLaTeX, I can do so using epstopdf (manually called, automated in TL2010+, using the package). However, as far as I know, all these options are ...
2
votes
2answers
1k views

Bad font using \psfrag

I'm trying to include a figure that I made in MATLAB. I want to change the font using \psfrag, however there seems to be a problem when scaling the figure down. It keeps the font the same size as the ...
2
votes
1answer
29 views

Psfragfig conflict with bibliography

I have a problem using psfragfig and \bibliopraphy. When I don't include the biblio-fille via \bibliography(biblio) the command \psfragfig works well. Once I apply \bibliography(biblio) I can read in ...
2
votes
1answer
234 views

PSfrag isn't working to add LaTeX symbols to eps figures

I have converted a jgraph file to eps, and am trying to replace text in the eps figure with LaTeX symbols. I have followed the instructions listed in this question but the solution suggested does not ...
2
votes
1answer
168 views

How can I avoid manual deletion of all helper files when I use psfrag?

I have a problem in getting pstool to work with \psfragfig. I have a folder structure that looks as follows: main.tex images/ | |-testeps.eps The MWE is shown below. All the packages ...
2
votes
1answer
1k views

psfragfig pdflatex image shifted and cropped

Some images inserted with psfragfig, are shifted to one side (right) and partially placed off the document. (see image, bottom figure is the one I'm talking about). It occurs with TexShop whether I ...
2
votes
1answer
561 views

aligning the x-axis labels in a figure using psfrags

I used laprint to generate the .eps file for my matlab graph. Now the problem is I changed the axis labels to a,...f but they dont seem to be aligned w.r.t the horizontal x-axis. This is the command ...
2
votes
0answers
41 views

Is there a way i can make psfrag replace every number in a plot?

I want to replace every number in the axis of a plot. Can psfrag do this? If not, is there any other tool i can use to get the same effect?
2
votes
0answers
84 views

Converting EPS file to standalone PDF with PSFRAGs or compiling both data types in one Latex file

I have a few figure files and some of them are already PDF files, for example directly obtained from MATLAB as PDF standalone file. Some 3 or 4 files are EPS files with which I use PSFRAG to embed the ...
2
votes
0answers
130 views

No replacement of temporary labels by chemnum in a chemical sheme

I tried to replace the temporary labels TMP1, TMP2 and TMP3 in an .eps file made with ChemDraw using the chemnum package, so to get an automatic numbering of the compounds, but this did not work for ...