Making a chapter header with tikz horizontal rulesfncychap package - reduce vertical gap/space between header...
How to denote matrix elements succinctly?
Can I criticise the more senior developers around me for not writing clean code?
Extension of 2-adic valuation to the real numbers
What is the smallest unit of eos?
Alignment of various blocks in tikz
Pre-plastic human skin alternative
Does a large simulator bay have standard public address announcements?
How to stop co-workers from teasing me because I know Russian?
Multiple options vs single option UI
Constructions of PRF (Pseudo Random Function)
Critique of timeline aesthetic
How do I reattach a shelf to the wall when it ripped out of the wall?
Was there a shared-world project before "Thieves World"?
Is the claim "Employers won't employ people with no 'social media presence'" realistic?
can anyone help me with this awful query plan?
Are there physical dangers to preparing a prepared piano?
Why did C use the -> operator instead of reusing the . operator?
Is there a way to generate a list of distinct numbers such that no two subsets ever have an equal sum?
"You've called the wrong number" or "You called the wrong number"
Discriminated by senior researcher because of my ethnicity
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
What's the polite way to say "I need to urinate"?
Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?
What happened to Captain America in Endgame?
Making a chapter header with tikz horizontal rules
fncychap package - reduce vertical gap/space between header and chapter headingHow to remove chapter name with fncychap packageMake stealth horizontal in TikZ?tikz-cd bug in horizontal line angle in v0.9b?Making arrows parallel in commutative diagram in Tikzcurved arrows with tikz packageTikz: Making S shaped arrows to avoid nodesDraw huge arrow with tikzLabel Arrow with tikzHorizontal orientated descriptive diagram with table
I'm trying to customize this chapter header by changing the
thickhrulefill to myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}.
Although the placement of the
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
did not appear as it did with thickhrulefill (I want it with the chapter in the middle with the two rules surounding it as it did in the unmodified one)
Due to the lack of information and experience in this field I'm seeking your help as a beginner.
here is the code of the unmodified chapter header:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefillquad
normalfontsffamilyscshape @chapapp{} thechapter
quad thickhrulefill
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
And here is the code I changed:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}
tikz-arrows fncychap
add a comment |
I'm trying to customize this chapter header by changing the
thickhrulefill to myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}.
Although the placement of the
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
did not appear as it did with thickhrulefill (I want it with the chapter in the middle with the two rules surounding it as it did in the unmodified one)
Due to the lack of information and experience in this field I'm seeking your help as a beginner.
here is the code of the unmodified chapter header:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefillquad
normalfontsffamilyscshape @chapapp{} thechapter
quad thickhrulefill
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
And here is the code I changed:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}
tikz-arrows fncychap
add a comment |
I'm trying to customize this chapter header by changing the
thickhrulefill to myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}.
Although the placement of the
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
did not appear as it did with thickhrulefill (I want it with the chapter in the middle with the two rules surounding it as it did in the unmodified one)
Due to the lack of information and experience in this field I'm seeking your help as a beginner.
here is the code of the unmodified chapter header:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefillquad
normalfontsffamilyscshape @chapapp{} thechapter
quad thickhrulefill
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
And here is the code I changed:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}
tikz-arrows fncychap
I'm trying to customize this chapter header by changing the
thickhrulefill to myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}.
Although the placement of the
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
did not appear as it did with thickhrulefill (I want it with the chapter in the middle with the two rules surounding it as it did in the unmodified one)
Due to the lack of information and experience in this field I'm seeking your help as a beginner.
here is the code of the unmodified chapter header:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefillquad
normalfontsffamilyscshape @chapapp{} thechapter
quad thickhrulefill
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
And here is the code I changed:
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule} [3] []{
begin{center}
begin{tikzpicture}
draw[#2-#3, ultra thick, #1] (0,0) to (0.5linewidth,0);
end{tikzpicture}
end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
def@makeschapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
thickhrulefill
parnobreak
vspace*{10p@}%
interlinepenalty@M
hrule
vspace*{10p@}%
Huge bfseries #1parnobreak
par
vspace*{10p@}%
hrule
vskip 40p@
%vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}
tikz-arrows fncychap
tikz-arrows fncychap
edited 8 mins ago
hanaa chan
asked 2 hours ago
hanaa chanhanaa chan
203
203
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Several problems:
the empty lines in the title definition act as line breaks -> remove
centerenvironment around the tikzpicture will force it on a separate line -> removemissing % at line endings are interpreted as spaces -> add
.5linewidthis to long -> there needs to be space forquad chapter 1quad-> make shorterif you have more than 9 chapters, it might be better to place the number in a box of fixed width
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule}[3][]{%
% begin{center}
begin{tikzpicture}%
draw[#2-#3, ultra thick, #1] (0,0) to (0.39linewidth,0);
end{tikzpicture}%
% end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}

New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Is it possible to can increase the length of myrule[line width = 2mm]{fast cap reversed}{fast cap reversed} ?
– hanaa chan
1 hour ago
1
@hanaachan If you want both lines, two quad and Chapitre 1 in the same line, then no, there is no space to increase the length
– Jonathan
1 hour ago
the chapter header looks great but the table of content needs to match the same style of my rule ... so i went and did the same but the length of it dont look good.(i'll put the code above)
– hanaa chan
17 mins ago
@hanaachan better make a new question
– Jonathan
17 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f487820%2fmaking-a-chapter-header-with-tikz-horizontal-rules%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Several problems:
the empty lines in the title definition act as line breaks -> remove
centerenvironment around the tikzpicture will force it on a separate line -> removemissing % at line endings are interpreted as spaces -> add
.5linewidthis to long -> there needs to be space forquad chapter 1quad-> make shorterif you have more than 9 chapters, it might be better to place the number in a box of fixed width
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule}[3][]{%
% begin{center}
begin{tikzpicture}%
draw[#2-#3, ultra thick, #1] (0,0) to (0.39linewidth,0);
end{tikzpicture}%
% end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}

New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Is it possible to can increase the length of myrule[line width = 2mm]{fast cap reversed}{fast cap reversed} ?
– hanaa chan
1 hour ago
1
@hanaachan If you want both lines, two quad and Chapitre 1 in the same line, then no, there is no space to increase the length
– Jonathan
1 hour ago
the chapter header looks great but the table of content needs to match the same style of my rule ... so i went and did the same but the length of it dont look good.(i'll put the code above)
– hanaa chan
17 mins ago
@hanaachan better make a new question
– Jonathan
17 mins ago
add a comment |
Several problems:
the empty lines in the title definition act as line breaks -> remove
centerenvironment around the tikzpicture will force it on a separate line -> removemissing % at line endings are interpreted as spaces -> add
.5linewidthis to long -> there needs to be space forquad chapter 1quad-> make shorterif you have more than 9 chapters, it might be better to place the number in a box of fixed width
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule}[3][]{%
% begin{center}
begin{tikzpicture}%
draw[#2-#3, ultra thick, #1] (0,0) to (0.39linewidth,0);
end{tikzpicture}%
% end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}

New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Is it possible to can increase the length of myrule[line width = 2mm]{fast cap reversed}{fast cap reversed} ?
– hanaa chan
1 hour ago
1
@hanaachan If you want both lines, two quad and Chapitre 1 in the same line, then no, there is no space to increase the length
– Jonathan
1 hour ago
the chapter header looks great but the table of content needs to match the same style of my rule ... so i went and did the same but the length of it dont look good.(i'll put the code above)
– hanaa chan
17 mins ago
@hanaachan better make a new question
– Jonathan
17 mins ago
add a comment |
Several problems:
the empty lines in the title definition act as line breaks -> remove
centerenvironment around the tikzpicture will force it on a separate line -> removemissing % at line endings are interpreted as spaces -> add
.5linewidthis to long -> there needs to be space forquad chapter 1quad-> make shorterif you have more than 9 chapters, it might be better to place the number in a box of fixed width
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule}[3][]{%
% begin{center}
begin{tikzpicture}%
draw[#2-#3, ultra thick, #1] (0,0) to (0.39linewidth,0);
end{tikzpicture}%
% end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}

New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Several problems:
the empty lines in the title definition act as line breaks -> remove
centerenvironment around the tikzpicture will force it on a separate line -> removemissing % at line endings are interpreted as spaces -> add
.5linewidthis to long -> there needs to be space forquad chapter 1quad-> make shorterif you have more than 9 chapters, it might be better to place the number in a box of fixed width
documentclass[a4paper,french,12pt,openany,twoside]{report}
%%%%%Language
usepackage[utf8]{inputenc}
usepackage[french]{babel}
usepackage[T1]{fontenc}
usepackage{charter}
usepackage[expert]{mathdesign}
usepackage{geometry}
geometry{margin=57pt}
%%%%%Police
usepackage{lmodern}% police de caractère
usepackage{textcomp}% caractères additionnels
usepackage[normalem]{ulem}
usepackage{soul}
%%%%%Graphic
usepackage{graphicx}
usepackage{xcolor}% gestion des couleurs
usepackage{footnote}
%%%%%Titling
usepackage{titling}% pour le titre
usepackage{titlesec}% pour les sections
usepackage{titletoc}% pour la table des matières
usepackage{fancyhdr}% pour les en-têtes
usepackage{enumitem}
%%%%%Math
usepackage{array}
usepackage{amsthm,latexsym,amssymb,amsmath, amsfonts}
usepackage{mathtools}
usepackage{pstricks}%pour psshadowbox
usepackage{mathrsfs}
usepackage{verbatim}
usepackage{shapepar}
usepackage{calc}% syntaxe naurelle pour les calculs
usepackage{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{arrows}
newcommand{myrule}[3][]{%
% begin{center}
begin{tikzpicture}%
draw[#2-#3, ultra thick, #1] (0,0) to (0.39linewidth,0);
end{tikzpicture}%
% end{center}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Chapter Header
makeatletter
defthickhrulefill{leavevmode leaders hrule height 1ex hfill kern z@}
def@makechapterhead#1{%
vspace*{50p@}%
%vspace*{10p@}%
{parindent z@ centering reset@font
myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}quad
normalfontsffamilyscshape @chapapp{} thechapter
quad myrule[line width = 2mm]{fast cap reversed}{fast cap reversed}
parnobreak
vspace*{7mm}%
interlinepenalty@M
hrule
vspace*{6mm}%
Huge bfseries #1parnobreak
par
vspace*{7mm}%
hrule
vskip 40p@
vskip 100p@
}}
begin{document}
chapter{Introduction}
end{document}
begin{document}
chapter{Introduction}
end{document}

New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 hours ago
New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 hours ago
JonathanJonathan
1265
1265
New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Jonathan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Is it possible to can increase the length of myrule[line width = 2mm]{fast cap reversed}{fast cap reversed} ?
– hanaa chan
1 hour ago
1
@hanaachan If you want both lines, two quad and Chapitre 1 in the same line, then no, there is no space to increase the length
– Jonathan
1 hour ago
the chapter header looks great but the table of content needs to match the same style of my rule ... so i went and did the same but the length of it dont look good.(i'll put the code above)
– hanaa chan
17 mins ago
@hanaachan better make a new question
– Jonathan
17 mins ago
add a comment |
Is it possible to can increase the length of myrule[line width = 2mm]{fast cap reversed}{fast cap reversed} ?
– hanaa chan
1 hour ago
1
@hanaachan If you want both lines, two quad and Chapitre 1 in the same line, then no, there is no space to increase the length
– Jonathan
1 hour ago
the chapter header looks great but the table of content needs to match the same style of my rule ... so i went and did the same but the length of it dont look good.(i'll put the code above)
– hanaa chan
17 mins ago
@hanaachan better make a new question
– Jonathan
17 mins ago
Is it possible to can increase the length of myrule[line width = 2mm]{fast cap reversed}{fast cap reversed} ?
– hanaa chan
1 hour ago
Is it possible to can increase the length of myrule[line width = 2mm]{fast cap reversed}{fast cap reversed} ?
– hanaa chan
1 hour ago
1
1
@hanaachan If you want both lines, two quad and Chapitre 1 in the same line, then no, there is no space to increase the length
– Jonathan
1 hour ago
@hanaachan If you want both lines, two quad and Chapitre 1 in the same line, then no, there is no space to increase the length
– Jonathan
1 hour ago
the chapter header looks great but the table of content needs to match the same style of my rule ... so i went and did the same but the length of it dont look good.(i'll put the code above)
– hanaa chan
17 mins ago
the chapter header looks great but the table of content needs to match the same style of my rule ... so i went and did the same but the length of it dont look good.(i'll put the code above)
– hanaa chan
17 mins ago
@hanaachan better make a new question
– Jonathan
17 mins ago
@hanaachan better make a new question
– Jonathan
17 mins ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f487820%2fmaking-a-chapter-header-with-tikz-horizontal-rules%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