TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a document where float environments are typeset with \small font (tables, figures). For the tables and most environments in general, this works nicely with


thanks to the etoolbox package. However, it does not work for figures of the form


This is because I compile the document using pdfLaTeX and the pstool package. (What pstool does is to create an empty temporary document with only the EPS figure placed on the page without any figure environment. Then, this document is processed in multiple steps, until finally, a PDF file is produced, which is in turn then included as figure in my PDF document.)

So my question is: Is there a way to globally define the font size used in psfrag replacements without having to change the individual replacements?

For clarification, I do not want to do this:

\psfrag{marker}{\small replacement text}

I thought of somehow changing or inserting the figure environment into the temporary document by modifying one of pstool's macros or modifying the psfrag macro somehow, but I do not know enough about LaTeX to do it that way.

share|improve this question
Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. – karlkoeller Jun 21 '13 at 11:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.