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'm writing a thesis-like document and I have sketches/figures made in TikZ and plots/graph made in gnuplot with the epslatex terminal. In the gnuplot manual it says if the font is not specified it will inherit the font and size from the context in the document. I'm not sure how TikZ does it.

I would like to reduce the font size of the text in the figures. How do I do that? In case it matters, I'm using the KOMA scrreprt class. I would very much like a way to do it so I don't have to modify the TikZ code or the tex-file produced by gnuplot. This question is not about the figure captions but the text in the figures themselves, although I will change the caption font size as well, obviously :)

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

How about

\begin{figure}
  \small % or any other font-changing command
  % code for including the picture
\end{figure}
share|improve this answer
    
Thanks! That works perfectly. I assume gnuplot places the text on the plot assuming it will be shown in normal size. So I guess that may lead to some problems, but I haven't encountered any. Such problems would probably only appear if I made the text larger, anyway. –  Øsse Dec 16 '10 at 18:22
add comment

You may use the floatrow package to change the fontsize for all figures (while at the same time keeping the font size of tables or other floats unchanged):

\documentclass{article}

\usepackage{floatrow}
\floatsetup[figure]{font=footnotesize}

\begin{document}

\begin{figure}[ht]
\centering
(Text inside a figure)
\caption{A figure}
\end{figure}

\begin{table}[ht]
\centering
(Text inside a table)
\caption{A table}
\end{table}

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.