Name of section in titleformat
up vote
1
down vote
favorite
When I try the titleformat commands with my sections, the name of the section doesn't appear.
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
As result with this code, I get this
Could someone explain me why?
MWE:
documentclass[10pt,french]{report}
usepackage[utf8]{inputenc}
usepackage[explicit]{titlesec}
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
%titlespacing{section}{-1.5cm}{0cm}{0cm}%1=command,2=leftmargin,3
usepackage[utf8]{inputenc}
begin{document}
chapter{Chapitre} % (fold)
label{cha:chapite}
section{Section} % (fold)
label{sec:section}
section{Secondth section} % (fold)
label{sec:secondth_section}
end{document}
sectioning
add a comment |
up vote
1
down vote
favorite
When I try the titleformat commands with my sections, the name of the section doesn't appear.
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
As result with this code, I get this
Could someone explain me why?
MWE:
documentclass[10pt,french]{report}
usepackage[utf8]{inputenc}
usepackage[explicit]{titlesec}
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
%titlespacing{section}{-1.5cm}{0cm}{0cm}%1=command,2=leftmargin,3
usepackage[utf8]{inputenc}
begin{document}
chapter{Chapitre} % (fold)
label{cha:chapite}
section{Section} % (fold)
label{sec:section}
section{Secondth section} % (fold)
label{sec:secondth_section}
end{document}
sectioning
1
Please, present a minimal document showing the issue.
– egreg
Sep 26 at 17:45
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
When I try the titleformat commands with my sections, the name of the section doesn't appear.
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
As result with this code, I get this
Could someone explain me why?
MWE:
documentclass[10pt,french]{report}
usepackage[utf8]{inputenc}
usepackage[explicit]{titlesec}
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
%titlespacing{section}{-1.5cm}{0cm}{0cm}%1=command,2=leftmargin,3
usepackage[utf8]{inputenc}
begin{document}
chapter{Chapitre} % (fold)
label{cha:chapite}
section{Section} % (fold)
label{sec:section}
section{Secondth section} % (fold)
label{sec:secondth_section}
end{document}
sectioning
When I try the titleformat commands with my sections, the name of the section doesn't appear.
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
As result with this code, I get this
Could someone explain me why?
MWE:
documentclass[10pt,french]{report}
usepackage[utf8]{inputenc}
usepackage[explicit]{titlesec}
titleformat{section}[wrap]
{normalfontbfseries}
{thesection.}{0.5em}{}
%titlespacing{section}{-1.5cm}{0cm}{0cm}%1=command,2=leftmargin,3
usepackage[utf8]{inputenc}
begin{document}
chapter{Chapitre} % (fold)
label{cha:chapite}
section{Section} % (fold)
label{sec:section}
section{Secondth section} % (fold)
label{sec:secondth_section}
end{document}
sectioning
sectioning
edited Oct 13 at 20:24
Kurt
33.8k846156
33.8k846156
asked Sep 26 at 13:57
Warok
656
656
1
Please, present a minimal document showing the issue.
– egreg
Sep 26 at 17:45
add a comment |
1
Please, present a minimal document showing the issue.
– egreg
Sep 26 at 17:45
1
1
Please, present a minimal document showing the issue.
– egreg
Sep 26 at 17:45
Please, present a minimal document showing the issue.
– egreg
Sep 26 at 17:45
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
The fact that your section
titles are not being displayed is because you're passed the explicit
option to the package titlesec
:
usepackage[explicit]{titlesec}
In such cases, you have to explicit
ly use #1
within the definition of titleformat
to place the title that is being used. Without that, the title is gobbled.
documentclass{report}
usepackage[explicit]{titlesec}
titleformat{section}[display]
{normalfontbfseries}
{thesection. #1}{0.5em}{}% <--- #1 denotes section title
begin{document}
chapter{A chapter}
section{First section}
section{Second section}
end{document}
Even though I've changed the section
title format from wrap
to display
, that doesn't make a difference in terms of the use of #1
under explicit
.
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
The fact that your section
titles are not being displayed is because you're passed the explicit
option to the package titlesec
:
usepackage[explicit]{titlesec}
In such cases, you have to explicit
ly use #1
within the definition of titleformat
to place the title that is being used. Without that, the title is gobbled.
documentclass{report}
usepackage[explicit]{titlesec}
titleformat{section}[display]
{normalfontbfseries}
{thesection. #1}{0.5em}{}% <--- #1 denotes section title
begin{document}
chapter{A chapter}
section{First section}
section{Second section}
end{document}
Even though I've changed the section
title format from wrap
to display
, that doesn't make a difference in terms of the use of #1
under explicit
.
add a comment |
up vote
0
down vote
The fact that your section
titles are not being displayed is because you're passed the explicit
option to the package titlesec
:
usepackage[explicit]{titlesec}
In such cases, you have to explicit
ly use #1
within the definition of titleformat
to place the title that is being used. Without that, the title is gobbled.
documentclass{report}
usepackage[explicit]{titlesec}
titleformat{section}[display]
{normalfontbfseries}
{thesection. #1}{0.5em}{}% <--- #1 denotes section title
begin{document}
chapter{A chapter}
section{First section}
section{Second section}
end{document}
Even though I've changed the section
title format from wrap
to display
, that doesn't make a difference in terms of the use of #1
under explicit
.
add a comment |
up vote
0
down vote
up vote
0
down vote
The fact that your section
titles are not being displayed is because you're passed the explicit
option to the package titlesec
:
usepackage[explicit]{titlesec}
In such cases, you have to explicit
ly use #1
within the definition of titleformat
to place the title that is being used. Without that, the title is gobbled.
documentclass{report}
usepackage[explicit]{titlesec}
titleformat{section}[display]
{normalfontbfseries}
{thesection. #1}{0.5em}{}% <--- #1 denotes section title
begin{document}
chapter{A chapter}
section{First section}
section{Second section}
end{document}
Even though I've changed the section
title format from wrap
to display
, that doesn't make a difference in terms of the use of #1
under explicit
.
The fact that your section
titles are not being displayed is because you're passed the explicit
option to the package titlesec
:
usepackage[explicit]{titlesec}
In such cases, you have to explicit
ly use #1
within the definition of titleformat
to place the title that is being used. Without that, the title is gobbled.
documentclass{report}
usepackage[explicit]{titlesec}
titleformat{section}[display]
{normalfontbfseries}
{thesection. #1}{0.5em}{}% <--- #1 denotes section title
begin{document}
chapter{A chapter}
section{First section}
section{Second section}
end{document}
Even though I've changed the section
title format from wrap
to display
, that doesn't make a difference in terms of the use of #1
under explicit
.
answered Oct 13 at 20:38
Werner
430k599461623
430k599461623
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%2f452615%2fname-of-section-in-titleformat%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
1
Please, present a minimal document showing the issue.
– egreg
Sep 26 at 17:45