GeneralEquation Numbering and Table Font Size

LaTeX specific issues not fitting into one of the other forums of this category.
Joao
Posts: 11
Joined: Sat Jun 18, 2011 8:02 pm

Equation Numbering and Table Font Size

Post by Joao »

Stefan_K wrote:I would return to your question regarding the tags. However, two topics would be mixed in one thread. I suggest you create a new question in the math sub-forum, copying that part of the question there.

Stefan
Will do that :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Equation Numbering and Table Font Size

Post by Stefan Kottwitz »

Ok, try instead:

Code: Select all

\renewenvironment{table}{%
  \@float{table}\small}
  {\end@float}
I changed the order of commands.

Stefan
LaTeX.org admin
Joao
Posts: 11
Joined: Sat Jun 18, 2011 8:02 pm

Re: Equation Numbering and Table Font Size

Post by Joao »

Thank you so much, that worked perfectly!

Will place an acknowledged on the final version of my template to you, if I'm able to solve the equation problem I'll try to get the template available at the University site for others to use :D
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Re: Equation Numbering and Table Font Size

Post by Stefan Kottwitz »

I guess this way there may be problems if optional arguments to the table environment were used. You could notice it if [ht] etc. appears in the output. Also this could be solved. From my side probably not today, as I'm now traveling and not everywhere is UMTS available.

Stefan
LaTeX.org admin
Joao
Posts: 11
Joined: Sat Jun 18, 2011 8:02 pm

Re: Equation numbering and Table font size

Post by Joao »

I haven't noticed a problem yet, but only have one table. Will check with a more complex table.
Joao
Posts: 11
Joined: Sat Jun 18, 2011 8:02 pm

Re: Equation Numbering and Table Font Size

Post by Joao »

Yes, just noticed that it is printing the [h] on tables :(
User avatar
Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Equation Numbering and Table Font Size

Post by Stefan Kottwitz »

Ok, so instead of dealing with the table resp. float environment, let's customize the tabular environment. This way has also been mentioned here: Change font-size in tables document wide.

Code: Select all

\usepackage{etoolbox}
\AtBeginEnvironment{tabular}{\small}
If you also use tabularx, add

Code: Select all

\AtBeginEnvironment{tabularx}{\small}
Similar for other tabular-like environments, if needed at all. I tested with the table environment, but there it has no effect as expected because of the earlier tests.

Stefan
LaTeX.org admin
Post Reply