Theses, Books, Title pages ⇒ Changing style of numbering for the parts of a book
-
- Posts: 26
- Joined: Thu Jul 06, 2017 5:37 am
Changing style of numbering for the parts of a book
I'm writing a book and I need to make a change to the numbering of chapters, sections, theorems,... The problem is that the numbers always finish with a dot (example: Theorem 1.1.) and I need to show the numbering without that dot (example: Theorem 1.1)
How could I do it?
Thanks for your attention and help.
Please, forgive me my english writing.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10326
- Joined: Mon Mar 10, 2008 9:44 pm
Changing style of numbering for the parts of a book
welcome to the forum!
Do you use a KOMA-Script document class, such as scrbook or scrreprt? In that case just add the
noenddot
option, such as\documentclass[numbers=noenddot]{scrbook}
Stefan
-
- Posts: 26
- Joined: Thu Jul 06, 2017 5:37 am
Changing style of numbering for the parts of a book
I'm using just the book document class. In that case, how can I eliminate the end dot of the numbering of the parts of the book?
Thanks for your help.
- Stefan Kottwitz
- Site Admin
- Posts: 10326
- Joined: Mon Mar 10, 2008 9:44 pm
Changing style of numbering for the parts of a book
Stefan
-
- Posts: 26
- Joined: Thu Jul 06, 2017 5:37 am
Changing style of numbering for the parts of a book
Code: Select all
\documentclass[letterpaper,reqno]{book}\usepackage{makeidx}\usepackage[spanish]{babel}%\usepackage[latin1]{inputenc}\usepackage[utf8]{inputenc}\usepackage{color}\usepackage{verbatim}\usepackage[text={168mm,240mm},centering]{geometry}\usepackage{amssymb,amsmath,amsthm}\usepackage{epsfig,amssymb,amsmath,amsthm,graphicx,psfrag,float}\usepackage[pdf]{pstricks}\usepackage{pstricks-add,pst-math,pst-xkey,pst-pdf,auto-pst-pdf}\usepackage[all]{xy}\usepackage{enumerate}\usepackage{hyperref}\makeindex\DeclareMathOperator{\hocolim}{hocolim}\DeclareMathOperator{\map}{map}\DeclareMathOperator{\mor}{Mor}\DeclareMathOperator{\ob}{Ob}\DeclareMathOperator{\cone}{cone}\DeclareMathOperator{\inc}{inc}\DeclareMathOperator{\pr}{pr}\DeclareMathOperator{\torsion}{torsion}\DeclareMathOperator{\im}{im}\DeclareMathOperator{\coker}{coker}\DeclareMathOperator{\iso}{Isom}\DeclareMathOperator{\inte}{int}\definecolor{Gris}{gray}{0.92}\newtheorem{lemma}{Lema}[chapter]\newtheorem{definition}{Definici\'on}[chapter]\newtheorem{proposition}[lemma]{Proposición}\newtheorem{theorem}[lemma]{\textbf{Teorema}}\newtheorem{procedure}{\textbf{Procedimiento}}[chapter]\newtheorem*{main}{Main Theorem}\newtheorem{corollary}[lemma]{Corolario}\theoremstyle{definition}
You say that the book style doesn't display the numbers with a dot at the end (e.g, 1.2.) but that's what I get in the output. I don't understand why.
Thanks for your help
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Changing style of numbering for the parts of a book
es-nosectiondot
to the babel options.Concerning theorems etc., they are ruled by amsthm. Use
newtheoremstyle
to customize their appearance.-
- Posts: 26
- Joined: Thu Jul 06, 2017 5:37 am
Changing style of numbering for the parts of a book
The option es-nosectiondot worked! Thanks for your help.
I was reading the documentation for \newtheoremstyle and nothing is said about how can I modify the numbering style. I guess that I have to email to the author.
Thanks for your help.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Changing style of numbering for the parts of a book
amsthdoc.pdf
i can see a semicolon and a comment: Punctuation after theorem head. That should be what is doing something in your case, but to be honest, i didn't really test.
Please, let's kepp it to a forum, where many people can read and answer questions instead of asking one single person directly.
-
- Posts: 26
- Joined: Thu Jul 06, 2017 5:37 am
Changing style of numbering for the parts of a book
The amsthdoc.pdf has instructions about how to definite a new theorem enviromnment. It was simple: just define a theorem environment with what you want and then use that theorem environment.
I guess this topic is solved and closed.
Thanks to Stefan and Johannes_B for your help.