LaTeX forum ⇒ Theses, Books, Title pagesChanging style of numbering for the parts of a book Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
fabioonier
Posts: 26
Joined: Thu Jul 06, 2017 5:37 am

Changing style of numbering for the parts of a book

Postby fabioonier » Thu Jul 06, 2017 6:42 am

Hello, everybody. My name is Fabio and I'm new in this forum.

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.

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Jul 06, 2017 2:09 pm

Hi Fabio,

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
Site admin

fabioonier
Posts: 26
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Fri Jul 07, 2017 2:57 am

Hi, Stefan.

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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8954
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Jul 07, 2017 3:08 am

That numbering style is not the default with the book class. Can you please post your document settings, that is, the complete document preamble until \begin{document}?

Stefan
Site admin

fabioonier
Posts: 26
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Fri Jul 07, 2017 9:04 pm

Hi, Stefan. This is my document settings

  1. \documentclass[letterpaper,reqno]{book}
  2. \usepackage{makeidx}
  3. \usepackage[spanish]{babel}
  4. %\usepackage[latin1]{inputenc}
  5. \usepackage[utf8]{inputenc}
  6. \usepackage{color}
  7. \usepackage{verbatim}
  8. \usepackage[text={168mm,240mm},centering]{geometry}
  9. \usepackage{amssymb,amsmath,amsthm}
  10. \usepackage{epsfig,amssymb,amsmath,amsthm,graphicx,psfrag,float}
  11. \usepackage[pdf]{pstricks}
  12. \usepackage{pstricks-add,pst-math,pst-xkey,pst-pdf,auto-pst-pdf}
  13. \usepackage[all]{xy}
  14. \usepackage{enumerate}
  15. \usepackage{hyperref}
  16.  
  17. \makeindex
  18.  
  19. \DeclareMathOperator{\hocolim}{hocolim}
  20. \DeclareMathOperator{\map}{map}
  21. \DeclareMathOperator{\mor}{Mor}
  22. \DeclareMathOperator{\ob}{Ob}
  23. \DeclareMathOperator{\cone}{cone}
  24. \DeclareMathOperator{\inc}{inc}
  25. \DeclareMathOperator{\pr}{pr}
  26. \DeclareMathOperator{\torsion}{torsion}
  27. \DeclareMathOperator{\im}{im}
  28. \DeclareMathOperator{\coker}{coker}
  29. \DeclareMathOperator{\iso}{Isom}
  30. \DeclareMathOperator{\inte}{int}
  31. \definecolor{Gris}{gray}{0.92}
  32.  
  33. \newtheorem{lemma}{Lema}[chapter]
  34. \newtheorem{definition}{Definici\'on}[chapter]
  35. \newtheorem{proposition}[lemma]{Proposición}
  36. \newtheorem{theorem}[lemma]{\textbf{Teorema}}
  37. \newtheorem{procedure}{\textbf{Procedimiento}}[chapter]
  38. \newtheorem*{main}{Main Theorem}
  39. \newtheorem{corollary}[lemma]{Corolario}
  40.  
  41. \theoremstyle{definition}
  42. \newtheorem{example}{Ejemplo}[chapter]
  43. \newtheorem{exercise}{}[chapter]
  44. \newtheorem{notation}{\textbf{\textit{Notaci\'on}}}[chapter]
  45.  
  46. \theoremstyle{remark}
  47. \newtheorem{remark}{\textbf{Observaci\'on}}
  48.  
  49. \renewcommand{\chaptername}{Capítulo}
  50.  
  51. \numberwithin{lemma}{chapter}
  52. \numberwithin{remark}{chapter}
  53. \numberwithin{exercise}{section}
  54.  
  55. \numberwithin{definition}{chapter}
  56.  
  57. \pagestyle{myheadings}


It's a math book. That's why I need to enumerate chapters, sections, subsections (theorems, definitions, lemmas, notations,...)

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

User avatar
Johannes_B
Site Moderator
Posts: 3795
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Jul 09, 2017 9:52 am

The dot for section numbers is caused by the spanish option to babel. Add es-nosectiondot to the babel options.

Concerning theorems etc., they are ruled by amsthm. Use newtheoremstyle to customize their appearance.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

fabioonier
Posts: 26
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Mon Jul 10, 2017 7:06 pm

Hi, Johannes_B.
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.

User avatar
Johannes_B
Site Moderator
Posts: 3795
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jul 10, 2017 7:53 pm

If i look into 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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

fabioonier
Posts: 26
Joined: Thu Jul 06, 2017 5:37 am

Postby fabioonier » Tue Jul 11, 2017 4:08 am

Hi, everybody. The problem is solved, thanks to Johannes_B.

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.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest