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 table with strings and fixed numbers. I need to set \footnotesize only to typeset it using \pgfplotstabletypeset.

How can I change font size ?

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted

Add font=\footnotesize as an option to \pgfplotstabletypeset.

\documentclass{article}
\usepackage{pgfplotstable}

\begin{document}
\pgfplotstableread{
dof error1 
4 2.5e-01 
16 6.25e-02 
64  1.5625e-02 
}\loadedtable

\pgfplotstabletypeset\loadedtable
\hspace{2cm}
\pgfplotstabletypeset[font=\footnotesize]\loadedtable
\end{document}

enter image description here

share|improve this answer
add comment

You can just enclose your \pgfplotstabletypeset command in {\footnotesize...} to keep the change local:

\documentclass{article}
\usepackage{pgfplotstable}
\begin{document}
\pgfplotstabletypeset{
A B
1 2
}
{\footnotesize
\pgfplotstabletypeset{
A B
1 2
}
}
\end{document}
share|improve this answer
    
\footnotesize is not a command with arguments, but rather a declaration. –  egreg Dec 26 '11 at 0:14
    
@egreg: Sorry, moved the { –  Jake Dec 26 '11 at 0:19
    
I moved it also in the example code –  egreg Dec 26 '11 at 0:25
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.