Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\AtBeginEnvironment{tabular}{\small}

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

\begin{figure}
\psfragfig{path/to/some/figure}
\end{figure}

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
1  
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

 
discard

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

Browse other questions tagged or ask your own question.