Previously, I can easily change the font size of the table content by using
\begin{table}
\small
\begin{tabular}....
\end{tabular}
\end{table}
After I load a template file, I find that "\small" does not work any more,
the font size of the table content is always the normal size.
Can anyone help to find that which
part of the template could cause the problem?
Thanks.
Document Classes ⇒ Cannot change font size in table
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: Cannot change font size in table
Without the template itself it is very difficult to provide effective help. Can you please attach it or post it?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: Cannot change font size in table
Here is the template, I appreciate any help.
- Attachments
-
- paper.cls
- (46.68 KiB) Downloaded 751 times
Cannot change font size in table
In the introduction to paper.cls you will find this:
There are also some new commands \smallssp and \scriptsizessp that can be used instead of the standard \small and \scriptsize switches:
So you can use those new environments, as the following example suggests:paper.cls wrote: %%% Version 2.4 sets \evensidemargin correctly
%%% for two-sided style. It also adds new
%%% environments (\smalltabular and
%%% \scriptsizetabular) which produce tables
%%% with smaller fonts. The obvious methods
%%% of producing small-font tables don't work
%%% in ucthesis style.
Code: Select all
\documentclass{paper}
\begin{document}
\begin{table}
\centering
\begin{tabular}{c|c}
\hline
test text & test text\\ \hline
\end{tabular}
\end{table}
%\small will have no effect
\begin{table}
\small
\centering
\begin{tabular}{c|c}
\hline
test text & test text\\ \hline
\end{tabular}
\end{table}
%one of the new environments implemented by paper.cls
%to produce tables with smaller fonts
\begin{table}
\centering
\begin{smalltabular}{c|c}
\hline
test text & test text\\ \hline
\end{smalltabular}
\end{table}
%the other new environment implemented by paper.cls
%to produce tables with smaller fonts
\begin{table}
\centering
\begin{scriptsizetabular}{c|c}
\hline
test text & test text\\ \hline
\end{scriptsizetabular}
\end{table}
\end{document}
Code: Select all
\documentclass{paper}
\begin{document}
%the two new commands implemented by paper.cls
%to produce tables with smaller fonts
\begin{table}
\centering
\begin{tabular}{c|c}
\hline
test text & test text\\ \hline
{\smallssp test text} & test text\\ \hline
{\scriptsizessp test text} & test text\\ \hline
\end{tabular}
\end{table}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Cannot change font size in table
Oh, Yes, Here is the problem.
Thank you very much for pointing out this.
Thank you very much for pointing out this.
gmedina wrote:In the introduction to paper.cls you will find this:So you can use those new environments, as the following example suggests:paper.cls wrote: %%% Version 2.4 sets \evensidemargin correctly
%%% for two-sided style. It also adds new
%%% environments (\smalltabular and
%%% \scriptsizetabular) which produce tables
%%% with smaller fonts. The obvious methods
%%% of producing small-font tables don't work
%%% in ucthesis style.There are also some new commands \smallssp and \scriptsizessp that can be used instead of the standard \small and \scriptsize switches:Code: Select all
\documentclass{paper} \begin{document} \begin{table} \centering \begin{tabular}{c|c} \hline test text & test text\\ \hline \end{tabular} \end{table} %\small will have no effect \begin{table} \small \centering \begin{tabular}{c|c} \hline test text & test text\\ \hline \end{tabular} \end{table} %one of the new environments implemented by paper.cls %to produce tables with smaller fonts \begin{table} \centering \begin{smalltabular}{c|c} \hline test text & test text\\ \hline \end{smalltabular} \end{table} %the other new environment implemented by paper.cls %to produce tables with smaller fonts \begin{table} \centering \begin{scriptsizetabular}{c|c} \hline test text & test text\\ \hline \end{scriptsizetabular} \end{table} \end{document}
Code: Select all
\documentclass{paper} \begin{document} %the two new commands implemented by paper.cls %to produce tables with smaller fonts \begin{table} \centering \begin{tabular}{c|c} \hline test text & test text\\ \hline {\smallssp test text} & test text\\ \hline {\scriptsizessp test text} & test text\\ \hline \end{tabular} \end{table} \end{document}