Unnecessary dots in theorems and figure numbers
up vote
2
down vote
favorite
I know, that it is possible to add dot after the chapter / section / subsection number. But if I use
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
(as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply
documentclass[10pt]{book}
usepackage{amsmath,amssymb,amsthm}
usepackage[chapter]{algorithm}
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
newtheorem{defin}{Def.}[chapter]
newtheorem{tw}[defin]{Th.}
begin{document}
chapter{New chapter}
begin{defin}
Some definition
end{defin}
begin{algorithm}
caption{Some algorithm}
end{algorithm}
begin{figure}[hptb]
caption{Some caption}
end{figure}
section{New section}
begin{defin}
Some definition
end{defin}
end{document}
then I have
How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?
numbering amsthm
add a comment |
up vote
2
down vote
favorite
I know, that it is possible to add dot after the chapter / section / subsection number. But if I use
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
(as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply
documentclass[10pt]{book}
usepackage{amsmath,amssymb,amsthm}
usepackage[chapter]{algorithm}
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
newtheorem{defin}{Def.}[chapter]
newtheorem{tw}[defin]{Th.}
begin{document}
chapter{New chapter}
begin{defin}
Some definition
end{defin}
begin{algorithm}
caption{Some algorithm}
end{algorithm}
begin{figure}[hptb]
caption{Some caption}
end{figure}
section{New section}
begin{defin}
Some definition
end{defin}
end{document}
then I have
How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?
numbering amsthm
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I know, that it is possible to add dot after the chapter / section / subsection number. But if I use
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
(as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply
documentclass[10pt]{book}
usepackage{amsmath,amssymb,amsthm}
usepackage[chapter]{algorithm}
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
newtheorem{defin}{Def.}[chapter]
newtheorem{tw}[defin]{Th.}
begin{document}
chapter{New chapter}
begin{defin}
Some definition
end{defin}
begin{algorithm}
caption{Some algorithm}
end{algorithm}
begin{figure}[hptb]
caption{Some caption}
end{figure}
section{New section}
begin{defin}
Some definition
end{defin}
end{document}
then I have
How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?
numbering amsthm
I know, that it is possible to add dot after the chapter / section / subsection number. But if I use
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
(as in this solution: How to add a dot after the section number?), then I have too many dots in the case of number of figure / theorem etc. For example, if I apply
documentclass[10pt]{book}
usepackage{amsmath,amssymb,amsthm}
usepackage[chapter]{algorithm}
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
newtheorem{defin}{Def.}[chapter]
newtheorem{tw}[defin]{Th.}
begin{document}
chapter{New chapter}
begin{defin}
Some definition
end{defin}
begin{algorithm}
caption{Some algorithm}
end{algorithm}
begin{figure}[hptb]
caption{Some caption}
end{figure}
section{New section}
begin{defin}
Some definition
end{defin}
end{document}
then I have
How could I remove the unnecessary dots in 1..1 and similar numbers? Thank you in advance for your answer.
Edit: I have realized, that my question can be put in other way. Is this possible to add dots, but only: 1. in the case of titles of chapters / sections etc. 2. and in the case of table of contents, but not for other references?
numbering amsthm
numbering amsthm
edited yesterday
asked yesterday
errenay
263
263
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
It seems, that instead of this code
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
I should use
usepackage{titlesec}
titlelabel{thetitle .quad}
usepackage[dotinlabels]{titletoc}
But I'm still looking for the answer in the case of chapters.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
It seems, that instead of this code
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
I should use
usepackage{titlesec}
titlelabel{thetitle .quad}
usepackage[dotinlabels]{titletoc}
But I'm still looking for the answer in the case of chapters.
add a comment |
up vote
0
down vote
It seems, that instead of this code
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
I should use
usepackage{titlesec}
titlelabel{thetitle .quad}
usepackage[dotinlabels]{titletoc}
But I'm still looking for the answer in the case of chapters.
add a comment |
up vote
0
down vote
up vote
0
down vote
It seems, that instead of this code
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
I should use
usepackage{titlesec}
titlelabel{thetitle .quad}
usepackage[dotinlabels]{titletoc}
But I'm still looking for the answer in the case of chapters.
It seems, that instead of this code
renewcommand{thechapter}{arabic{chapter}.}
renewcommand{thesection}{thechapterarabic{section}.}
renewcommand{thesubsection}{thesectionarabic{subsection}.}
I should use
usepackage{titlesec}
titlelabel{thetitle .quad}
usepackage[dotinlabels]{titletoc}
But I'm still looking for the answer in the case of chapters.
answered yesterday
errenay
263
263
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461080%2funnecessary-dots-in-theorems-and-figure-numbers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown