Graphics, Figures & TablesPsfrag Resizing and Subdirectory Files

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Ech101
Posts: 2
Joined: Mon Apr 04, 2011 5:36 pm

Psfrag Resizing and Subdirectory Files

Post by Ech101 »

I am coding the following:

Code: Select all

\documentclass[a4paper,12pt]{book}
\usepackage[pdftex]{graphicx} 
\usepackage{pstool} 
\usepackage{psfrag}

\begin{document}
\begin{figure}[tb]
\psfragfig[width=0.25\textheight]{matlab/S10MeanPeakt111}{}
\caption{Blah} \label{fig:act} \end{figure}\\
\end{document}

However I am experiencing two problems

1) Width command does not seem to be working
2) If I put a file root that is within the directory I am working in then the eps/tex combination is not found.

I have applied the --shell-escape command in Pdflatex (in WinEdt) using Pdflatex:
Go to Options -> Execution Modes: in switches: --shell-escape

Theses two niggles are really annoying, I can't seem to find documentation on it in this forum (using the search function).

I am using pdftex and WinEdt
Last edited by Ech101 on Tue Apr 05, 2011 5:54 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Ech101
Posts: 2
Joined: Mon Apr 04, 2011 5:36 pm

Re: Psfrag Resizing and Subdirectory Files

Post by Ech101 »

Hmm so I managed to solve this.

Changed \usepackage[pdftex]{graphicx} to \usepackage{graphicx}

Reinstalled Pstools on Miktex

I deleted the .pdfs of the eps/tex after each run, so I could change the size. Pstools seems to just call the pdf if it's already made and does not remake it with the options in code.

So I guess this thread can be closed now.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Psfrag Resizing and Subdirectory Files

Post by localghost »

Ech101 wrote:Hmm so I managed to solve this. […] So I guess this thread can be closed now.
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
Post Reply