Generalcreating definition using \theorem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
feanor_3
Posts: 1
Joined: Sat Sep 17, 2022 8:01 am

creating definition using \theorem

Post by feanor_3 »

Hi,
I would like to create definitions with the command \theorem or in another way, such that

\begin{theorem}[Speed]
This is a definition
\end{theorem}

looks like this:

Peed This is a definition

How can I do this?

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

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

creating definition using \theorem

Post by Bartman »

If you really want to be able to change the name using the environment's optional argument, then you could e.g. copy the definition of the proof environment in the amsthm.sty file of the amsthm package into your preamble and adapt it.

Remember to add the required commands for the at-signs.
Post Reply