8

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 ?

7

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

6

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}
  • \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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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