GeneralPutting whatever is in the exemple environment in small

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Putting whatever is in the exemple environment in small

Post by latexforever »

Hello,

I've added this line to my preamble:

Code: Select all

\newtheorem{exemple}{Exemple}[section]
When I use exemple environment, there is no problem, but I want the text in the exemple environment to be smaller (using footnotesize). How can I specify this?

Thanks!

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Putting whatever is in the exemple environment in small

Post by phi »

Hello,

have a look at the amsthm package. The command \newtheoremstyle lets you define customized theorem styles.
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: Putting whatever is in the exemple environment in small

Post by latexforever »

Hello,

I've already looked at the documentation files of this package, but I think you don't understand what I want to do. My aim is to make the text in the exemple environment smaller.
I know the syntax is like this:
--
\newtheoremstyle{note}% name
{3pt}% Space above
{3pt}% Space below
{}% Body font
{}% Indent amount
{\itshape}% Theorem head font
{:}% Punctuation after theorem head
{.5em}% Space after theorem head2
{}% Theorem head spec (can be left empty, meaning `normal')
--.
But I still don't know which instructions between the {} I've got to use in order to use a small body font :(

Thanks for answering
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Putting whatever is in the exemple environment in small

Post by latexforever »

As it seems not to be clear I'm now going to give you an example of code.

Here is the code I'm going to use in my preamble:

Code: Select all

\newtheoremstyle{exemple}
{10pt}{10pt}{\itshape}{}{\itshape}{.}{\newline}{}%
\theoremstyle{exemple}
\newtheorem{exemple}{Exemple}[section]
.

The only thing I want is to put the text in the exemple environment in a smaller font. What is the command to do this?
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Putting whatever is in the exemple environment in small

Post by Juanjo »

Look here and choose the one you want.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Putting whatever is in the exemple environment in small

Post by latexforever »

Thanks. I had seen this website, but I thought the command

Code: Select all

\footnotesize
wouldn't have worked, but it does, astonishingly.

Thanks for all. It now works.
Post Reply