A new aspect for the chapter of Legrand Orange BookHow to make this chapter heading style?TikZ scaling graphic and adjust node position and keep font sizeThe Legrand Orange Book back matterError using modified structure.tex on Legrand Orange Book templateUpdate Legrand Orange Book template mini table of contentsLegrand Orange Book template Example colorbox from black to ocreReproducing the Chapter-Picture Style of the Legrand Orange BookChapter thumb to work with Legrand Orange Book TemplateError compiling the unmodified Legrand Orange Book templateLine up nested tikz enviroments or how to get rid of themThe Legrand Orange Book: Section
Prove that NP is closed under karp reduction?
How does one intimidate enemies without having the capacity for violence?
What is the offset in a seaplane's hull?
tikz: show 0 at the axis origin
Collect Fourier series terms
What are these boxed doors outside store fronts in New York?
TGV timetables / schedules?
How old can references or sources in a thesis be?
Risk of getting Chronic Wasting Disease in the US?
The use of multiple foreign keys on same column in SQL Server
"You are your self first supporter", a more proper way to say it
Font hinting is lost in Chrome-like browsers (for some languages )
Languages that we cannot (dis)prove to be Context-Free
Test if tikzmark exists on same page
Arthur Somervell: 1000 Exercises - Meaning of this notation
Theorems that impeded progress
What's the output of a record cartridge playing an out-of-speed record
Have astronauts in space suits ever taken selfies? If so, how?
LaTeX closing $ signs makes cursor jump
What typically incentivizes a professor to change jobs to a lower ranking university?
How to find program name(s) of an installed package?
How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?
Why, historically, did Gödel think CH was false?
Why can't I see bouncing of a switch on an oscilloscope?
A new aspect for the chapter of Legrand Orange Book
How to make this chapter heading style?TikZ scaling graphic and adjust node position and keep font sizeThe Legrand Orange Book back matterError using modified structure.tex on Legrand Orange Book templateUpdate Legrand Orange Book template mini table of contentsLegrand Orange Book template Example colorbox from black to ocreReproducing the Chapter-Picture Style of the Legrand Orange BookChapter thumb to work with Legrand Orange Book TemplateError compiling the unmodified Legrand Orange Book templateLine up nested tikz enviroments or how to get rid of themThe Legrand Orange Book: Section
Starting from this MWE,
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagegraphicx % Required for including pictures
usepackagetikz % Required for drawing custom shapes
usepackagexcolor % Required for specifying colors by name
definecolorocreRGB243,102,25 % Define the orange color used for highlighting throughout the book
%----------------------------------------------------------------------------------------
% SECTION NUMBERING IN THE MARGIN
%----------------------------------------------------------------------------------------
makeatletter
renewcommand@seccntformat[1]llaptextcolorocrecsname the#1endcsnamehspace1em
renewcommandsection@startsectionsection1z@
-4ex @plus -1ex @minus -.4ex
1ex @plus.2ex
normalfontlargesffamilybfseries
renewcommandsubsection@startsection subsection2z@
-3ex @plus -0.1ex @minus -.4ex
0.5ex @plus.2ex
normalfontsffamilybfseries
renewcommandsubsubsection@startsection subsubsection3z@
-2ex @plus -0.1ex @minus -.2ex
.2ex @plus.2ex
normalfontsmallsffamilybfseries
renewcommandparagraph@startsectionparagraph4z@
-2ex @plus-.2ex @minus .2ex
.1ex
normalfontsmallsffamilybfseries
%----------------------------------------------------------------------------------------
% CHANGE THIS STYLE CHAPTER
%----------------------------------------------------------------------------------------
% A switch to conditionally include a picture, implemented by Christian Hupfer
newififusechapterimage
usechapterimagetrue
newcommandthechapterimage%
newcommandchapterimage[1]ifusechapterimagerenewcommandthechapterimage#1fi%
newcommandautodot.
def@makechapterhead#1%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
if@mainmatter
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblackthechapterautodot~#1strut;
endtikzpicture;
endtikzpicture
else
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
fifiparvspace*270p@
%-------------------------------------------
def@makeschapterhead#1%
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
parvspace*270p@
makeatother
begindocument
chapterimageexample-image-a
chapterText Chapter
sectionParagraphs of TextindexParagraphs of Text
enddocument
looking carefully at this code, there is a rounded rectangle, ochre color, with opacity that provides a good contrast with the image below.

Using the same identical structural code I am not able to operate a variant, with TikZ. In fact, to create that rounded rectangle where the text is present and the ochre border is used a code complex for me of TikZ.
I'd like to have something different of this shape. How can I get this same image, for example,

using the same identical code of my MWE operating the variant only of the graphic part?
I kindly ask for your precious help.
tikz-pgf templates book-design layout
add a comment |
Starting from this MWE,
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagegraphicx % Required for including pictures
usepackagetikz % Required for drawing custom shapes
usepackagexcolor % Required for specifying colors by name
definecolorocreRGB243,102,25 % Define the orange color used for highlighting throughout the book
%----------------------------------------------------------------------------------------
% SECTION NUMBERING IN THE MARGIN
%----------------------------------------------------------------------------------------
makeatletter
renewcommand@seccntformat[1]llaptextcolorocrecsname the#1endcsnamehspace1em
renewcommandsection@startsectionsection1z@
-4ex @plus -1ex @minus -.4ex
1ex @plus.2ex
normalfontlargesffamilybfseries
renewcommandsubsection@startsection subsection2z@
-3ex @plus -0.1ex @minus -.4ex
0.5ex @plus.2ex
normalfontsffamilybfseries
renewcommandsubsubsection@startsection subsubsection3z@
-2ex @plus -0.1ex @minus -.2ex
.2ex @plus.2ex
normalfontsmallsffamilybfseries
renewcommandparagraph@startsectionparagraph4z@
-2ex @plus-.2ex @minus .2ex
.1ex
normalfontsmallsffamilybfseries
%----------------------------------------------------------------------------------------
% CHANGE THIS STYLE CHAPTER
%----------------------------------------------------------------------------------------
% A switch to conditionally include a picture, implemented by Christian Hupfer
newififusechapterimage
usechapterimagetrue
newcommandthechapterimage%
newcommandchapterimage[1]ifusechapterimagerenewcommandthechapterimage#1fi%
newcommandautodot.
def@makechapterhead#1%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
if@mainmatter
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblackthechapterautodot~#1strut;
endtikzpicture;
endtikzpicture
else
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
fifiparvspace*270p@
%-------------------------------------------
def@makeschapterhead#1%
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
parvspace*270p@
makeatother
begindocument
chapterimageexample-image-a
chapterText Chapter
sectionParagraphs of TextindexParagraphs of Text
enddocument
looking carefully at this code, there is a rounded rectangle, ochre color, with opacity that provides a good contrast with the image below.

Using the same identical structural code I am not able to operate a variant, with TikZ. In fact, to create that rounded rectangle where the text is present and the ochre border is used a code complex for me of TikZ.
I'd like to have something different of this shape. How can I get this same image, for example,

using the same identical code of my MWE operating the variant only of the graphic part?
I kindly ask for your precious help.
tikz-pgf templates book-design layout
Could you please try to clarify the question? The first screen shot is the output that you get from running the code. So far, so good. But what this the question? What role do the other two screen shots play in the question? (BTW, I think many users told you not to use the Legrand Orange Book. We wouldn't recommend running a marathon with high heel shoes either. The recommendation not to run a marathon with high heel shoes does not mean that high heel shoes are crap, it just means you shouldn't use them for that purposes. The analogous statements apply to LOB and your book.)
– marmot
23 hours ago
@marmot I'll answer you immediately: the source of inspiration is Legrand Orange Book but many other settings will be changed by the publishing house. I would simply like to replace the orange curvature indicated by the yellow arrow with something original that is not the one that Christian added. I finally gave 2 examples of how I would like the orange curvature to be changed by inserting a text on two lines. I hope I was clear. You can edit my question. Translated with www.DeepL.com/Translator
– Sebastiano
23 hours ago
add a comment |
Starting from this MWE,
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagegraphicx % Required for including pictures
usepackagetikz % Required for drawing custom shapes
usepackagexcolor % Required for specifying colors by name
definecolorocreRGB243,102,25 % Define the orange color used for highlighting throughout the book
%----------------------------------------------------------------------------------------
% SECTION NUMBERING IN THE MARGIN
%----------------------------------------------------------------------------------------
makeatletter
renewcommand@seccntformat[1]llaptextcolorocrecsname the#1endcsnamehspace1em
renewcommandsection@startsectionsection1z@
-4ex @plus -1ex @minus -.4ex
1ex @plus.2ex
normalfontlargesffamilybfseries
renewcommandsubsection@startsection subsection2z@
-3ex @plus -0.1ex @minus -.4ex
0.5ex @plus.2ex
normalfontsffamilybfseries
renewcommandsubsubsection@startsection subsubsection3z@
-2ex @plus -0.1ex @minus -.2ex
.2ex @plus.2ex
normalfontsmallsffamilybfseries
renewcommandparagraph@startsectionparagraph4z@
-2ex @plus-.2ex @minus .2ex
.1ex
normalfontsmallsffamilybfseries
%----------------------------------------------------------------------------------------
% CHANGE THIS STYLE CHAPTER
%----------------------------------------------------------------------------------------
% A switch to conditionally include a picture, implemented by Christian Hupfer
newififusechapterimage
usechapterimagetrue
newcommandthechapterimage%
newcommandchapterimage[1]ifusechapterimagerenewcommandthechapterimage#1fi%
newcommandautodot.
def@makechapterhead#1%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
if@mainmatter
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblackthechapterautodot~#1strut;
endtikzpicture;
endtikzpicture
else
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
fifiparvspace*270p@
%-------------------------------------------
def@makeschapterhead#1%
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
parvspace*270p@
makeatother
begindocument
chapterimageexample-image-a
chapterText Chapter
sectionParagraphs of TextindexParagraphs of Text
enddocument
looking carefully at this code, there is a rounded rectangle, ochre color, with opacity that provides a good contrast with the image below.

Using the same identical structural code I am not able to operate a variant, with TikZ. In fact, to create that rounded rectangle where the text is present and the ochre border is used a code complex for me of TikZ.
I'd like to have something different of this shape. How can I get this same image, for example,

using the same identical code of my MWE operating the variant only of the graphic part?
I kindly ask for your precious help.
tikz-pgf templates book-design layout
Starting from this MWE,
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagegraphicx % Required for including pictures
usepackagetikz % Required for drawing custom shapes
usepackagexcolor % Required for specifying colors by name
definecolorocreRGB243,102,25 % Define the orange color used for highlighting throughout the book
%----------------------------------------------------------------------------------------
% SECTION NUMBERING IN THE MARGIN
%----------------------------------------------------------------------------------------
makeatletter
renewcommand@seccntformat[1]llaptextcolorocrecsname the#1endcsnamehspace1em
renewcommandsection@startsectionsection1z@
-4ex @plus -1ex @minus -.4ex
1ex @plus.2ex
normalfontlargesffamilybfseries
renewcommandsubsection@startsection subsection2z@
-3ex @plus -0.1ex @minus -.4ex
0.5ex @plus.2ex
normalfontsffamilybfseries
renewcommandsubsubsection@startsection subsubsection3z@
-2ex @plus -0.1ex @minus -.2ex
.2ex @plus.2ex
normalfontsmallsffamilybfseries
renewcommandparagraph@startsectionparagraph4z@
-2ex @plus-.2ex @minus .2ex
.1ex
normalfontsmallsffamilybfseries
%----------------------------------------------------------------------------------------
% CHANGE THIS STYLE CHAPTER
%----------------------------------------------------------------------------------------
% A switch to conditionally include a picture, implemented by Christian Hupfer
newififusechapterimage
usechapterimagetrue
newcommandthechapterimage%
newcommandchapterimage[1]ifusechapterimagerenewcommandthechapterimage#1fi%
newcommandautodot.
def@makechapterhead#1%
parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
if@mainmatter
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblackthechapterautodot~#1strut;
endtikzpicture;
endtikzpicture
else
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
fifiparvspace*270p@
%-------------------------------------------
def@makeschapterhead#1%
begintikzpicture[remember picture,overlay]
node at (current page.north west)
begintikzpicture[remember picture,overlay]
node[anchor=north west,inner sep=0pt] at (0,0) ifusechapterimageincludegraphics[width=paperwidth]thechapterimagefi;
draw[anchor=west] (Gm@lmargin,-9cm) node [line width=2pt,rounded corners=15pt,draw=ocre,fill=white,fill opacity=0.5,inner sep=15pt]strutmakebox[22cm];
draw[anchor=west] (Gm@lmargin+.3cm,-9cm) node hugesffamilybfseriescolorblack#1strut;
endtikzpicture;
endtikzpicture
parvspace*270p@
makeatother
begindocument
chapterimageexample-image-a
chapterText Chapter
sectionParagraphs of TextindexParagraphs of Text
enddocument
looking carefully at this code, there is a rounded rectangle, ochre color, with opacity that provides a good contrast with the image below.

Using the same identical structural code I am not able to operate a variant, with TikZ. In fact, to create that rounded rectangle where the text is present and the ochre border is used a code complex for me of TikZ.
I'd like to have something different of this shape. How can I get this same image, for example,

using the same identical code of my MWE operating the variant only of the graphic part?
I kindly ask for your precious help.
tikz-pgf templates book-design layout
tikz-pgf templates book-design layout
edited 16 mins ago
Sebastiano
asked 2 days ago
SebastianoSebastiano
11.2k42166
11.2k42166
Could you please try to clarify the question? The first screen shot is the output that you get from running the code. So far, so good. But what this the question? What role do the other two screen shots play in the question? (BTW, I think many users told you not to use the Legrand Orange Book. We wouldn't recommend running a marathon with high heel shoes either. The recommendation not to run a marathon with high heel shoes does not mean that high heel shoes are crap, it just means you shouldn't use them for that purposes. The analogous statements apply to LOB and your book.)
– marmot
23 hours ago
@marmot I'll answer you immediately: the source of inspiration is Legrand Orange Book but many other settings will be changed by the publishing house. I would simply like to replace the orange curvature indicated by the yellow arrow with something original that is not the one that Christian added. I finally gave 2 examples of how I would like the orange curvature to be changed by inserting a text on two lines. I hope I was clear. You can edit my question. Translated with www.DeepL.com/Translator
– Sebastiano
23 hours ago
add a comment |
Could you please try to clarify the question? The first screen shot is the output that you get from running the code. So far, so good. But what this the question? What role do the other two screen shots play in the question? (BTW, I think many users told you not to use the Legrand Orange Book. We wouldn't recommend running a marathon with high heel shoes either. The recommendation not to run a marathon with high heel shoes does not mean that high heel shoes are crap, it just means you shouldn't use them for that purposes. The analogous statements apply to LOB and your book.)
– marmot
23 hours ago
@marmot I'll answer you immediately: the source of inspiration is Legrand Orange Book but many other settings will be changed by the publishing house. I would simply like to replace the orange curvature indicated by the yellow arrow with something original that is not the one that Christian added. I finally gave 2 examples of how I would like the orange curvature to be changed by inserting a text on two lines. I hope I was clear. You can edit my question. Translated with www.DeepL.com/Translator
– Sebastiano
23 hours ago
Could you please try to clarify the question? The first screen shot is the output that you get from running the code. So far, so good. But what this the question? What role do the other two screen shots play in the question? (BTW, I think many users told you not to use the Legrand Orange Book. We wouldn't recommend running a marathon with high heel shoes either. The recommendation not to run a marathon with high heel shoes does not mean that high heel shoes are crap, it just means you shouldn't use them for that purposes. The analogous statements apply to LOB and your book.)
– marmot
23 hours ago
Could you please try to clarify the question? The first screen shot is the output that you get from running the code. So far, so good. But what this the question? What role do the other two screen shots play in the question? (BTW, I think many users told you not to use the Legrand Orange Book. We wouldn't recommend running a marathon with high heel shoes either. The recommendation not to run a marathon with high heel shoes does not mean that high heel shoes are crap, it just means you shouldn't use them for that purposes. The analogous statements apply to LOB and your book.)
– marmot
23 hours ago
@marmot I'll answer you immediately: the source of inspiration is Legrand Orange Book but many other settings will be changed by the publishing house. I would simply like to replace the orange curvature indicated by the yellow arrow with something original that is not the one that Christian added. I finally gave 2 examples of how I would like the orange curvature to be changed by inserting a text on two lines. I hope I was clear. You can edit my question. Translated with www.DeepL.com/Translator
– Sebastiano
23 hours ago
@marmot I'll answer you immediately: the source of inspiration is Legrand Orange Book but many other settings will be changed by the publishing house. I would simply like to replace the orange curvature indicated by the yellow arrow with something original that is not the one that Christian added. I finally gave 2 examples of how I would like the orange curvature to be changed by inserting a text on two lines. I hope I was clear. You can edit my question. Translated with www.DeepL.com/Translator
– Sebastiano
23 hours ago
add a comment |
1 Answer
1
active
oldest
votes
I still don't know if I get the message but this is something that is based on this answer. It does some orange boxes whose size adjusts to the multiline chapter titles. While the TeX code is not particularly interesting, the chapter titles contain a deep philosophical message, which is why I fully understand that some users may need styles that allow them to run chapter titles over several lines. ;-)
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagelmodern
usepackage[explicit]titlesec
usepackagemicrotype
usepackagetikz
usetikzlibrarypositioning,calc
definecolormyblueRGB0,82,155
% from https://tex.stackexchange.com/a/169435/121799
titleformatchapter[display]
normalfontbfseriescolormyblue
%filleft%
begintikzpicture
node[inner xsep=0.5em,text
width=textwidth-2em-2.5cm,align=left,font=Largesffamily]
(CC)#1;
path let p1=($(CC.north)-(CC.south)$) in
node[minimum width=2.5cm,minimum height=min(2.5cm,y1),left=1em of CC,
fill=orange,font=Hugesffamilybfseries,text=blue] (TC) thechapter;
%chaptertitlename~thechapter;
endtikzpicture%
10pt
begindocument
pagestyleempty
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday.
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday and
even on a Wednesday.
enddocument

@Dear and courteous marmot, in the meantime I thank you for your kind answer. The link you entered has no reference to my question. I'm so sorry that you did an extra job that I return it. My question is another. That is, within the code I entered there is a rounded rectangle of ochre color that I highlighted with the yellow arrow. I would always like the same code that has a white shadow (rectangular) as the background above figure A of my MWE.
– Sebastiano
6 hours ago
Inside my same MWE I don't know how to operate in TikZ because there are a lot of strange codes all linked together. If I change something I personally make a salad :-)
– Sebastiano
6 hours ago
@Sebastiano Sorry, I (still) do not understand what you want me to do. You have a code. Do you want to modify it? If so, what should the modified code achieve?
– marmot
6 hours ago
1
@Sebastiano Sorry, I give up. I asked you several times to kindly consider making your question clearer. I fully believe that you have a clear question in mind, but I do not have most of the information and context, and you only give me fragments, Maybe this conversation may help others to find out what you are after, so I leave the post for a short while before I delete it. Sorry.
– marmot
5 hours ago
1
@Sebastiano I guess we have a problem: you say you are not good at English and I am not good at guessing. Can you at least partly understand why it is not a good idea to have two target (?) screen shots and not much of an explanation? It may be that it will cost you slightly more time to make the question clearer, but you will save a lot of time of those who are trying to answer.
– marmot
3 hours ago
|
show 2 more comments
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%2f483136%2fa-new-aspect-for-the-chapter-of-legrand-orange-book%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
I still don't know if I get the message but this is something that is based on this answer. It does some orange boxes whose size adjusts to the multiline chapter titles. While the TeX code is not particularly interesting, the chapter titles contain a deep philosophical message, which is why I fully understand that some users may need styles that allow them to run chapter titles over several lines. ;-)
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagelmodern
usepackage[explicit]titlesec
usepackagemicrotype
usepackagetikz
usetikzlibrarypositioning,calc
definecolormyblueRGB0,82,155
% from https://tex.stackexchange.com/a/169435/121799
titleformatchapter[display]
normalfontbfseriescolormyblue
%filleft%
begintikzpicture
node[inner xsep=0.5em,text
width=textwidth-2em-2.5cm,align=left,font=Largesffamily]
(CC)#1;
path let p1=($(CC.north)-(CC.south)$) in
node[minimum width=2.5cm,minimum height=min(2.5cm,y1),left=1em of CC,
fill=orange,font=Hugesffamilybfseries,text=blue] (TC) thechapter;
%chaptertitlename~thechapter;
endtikzpicture%
10pt
begindocument
pagestyleempty
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday.
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday and
even on a Wednesday.
enddocument

@Dear and courteous marmot, in the meantime I thank you for your kind answer. The link you entered has no reference to my question. I'm so sorry that you did an extra job that I return it. My question is another. That is, within the code I entered there is a rounded rectangle of ochre color that I highlighted with the yellow arrow. I would always like the same code that has a white shadow (rectangular) as the background above figure A of my MWE.
– Sebastiano
6 hours ago
Inside my same MWE I don't know how to operate in TikZ because there are a lot of strange codes all linked together. If I change something I personally make a salad :-)
– Sebastiano
6 hours ago
@Sebastiano Sorry, I (still) do not understand what you want me to do. You have a code. Do you want to modify it? If so, what should the modified code achieve?
– marmot
6 hours ago
1
@Sebastiano Sorry, I give up. I asked you several times to kindly consider making your question clearer. I fully believe that you have a clear question in mind, but I do not have most of the information and context, and you only give me fragments, Maybe this conversation may help others to find out what you are after, so I leave the post for a short while before I delete it. Sorry.
– marmot
5 hours ago
1
@Sebastiano I guess we have a problem: you say you are not good at English and I am not good at guessing. Can you at least partly understand why it is not a good idea to have two target (?) screen shots and not much of an explanation? It may be that it will cost you slightly more time to make the question clearer, but you will save a lot of time of those who are trying to answer.
– marmot
3 hours ago
|
show 2 more comments
I still don't know if I get the message but this is something that is based on this answer. It does some orange boxes whose size adjusts to the multiline chapter titles. While the TeX code is not particularly interesting, the chapter titles contain a deep philosophical message, which is why I fully understand that some users may need styles that allow them to run chapter titles over several lines. ;-)
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagelmodern
usepackage[explicit]titlesec
usepackagemicrotype
usepackagetikz
usetikzlibrarypositioning,calc
definecolormyblueRGB0,82,155
% from https://tex.stackexchange.com/a/169435/121799
titleformatchapter[display]
normalfontbfseriescolormyblue
%filleft%
begintikzpicture
node[inner xsep=0.5em,text
width=textwidth-2em-2.5cm,align=left,font=Largesffamily]
(CC)#1;
path let p1=($(CC.north)-(CC.south)$) in
node[minimum width=2.5cm,minimum height=min(2.5cm,y1),left=1em of CC,
fill=orange,font=Hugesffamilybfseries,text=blue] (TC) thechapter;
%chaptertitlename~thechapter;
endtikzpicture%
10pt
begindocument
pagestyleempty
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday.
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday and
even on a Wednesday.
enddocument

@Dear and courteous marmot, in the meantime I thank you for your kind answer. The link you entered has no reference to my question. I'm so sorry that you did an extra job that I return it. My question is another. That is, within the code I entered there is a rounded rectangle of ochre color that I highlighted with the yellow arrow. I would always like the same code that has a white shadow (rectangular) as the background above figure A of my MWE.
– Sebastiano
6 hours ago
Inside my same MWE I don't know how to operate in TikZ because there are a lot of strange codes all linked together. If I change something I personally make a salad :-)
– Sebastiano
6 hours ago
@Sebastiano Sorry, I (still) do not understand what you want me to do. You have a code. Do you want to modify it? If so, what should the modified code achieve?
– marmot
6 hours ago
1
@Sebastiano Sorry, I give up. I asked you several times to kindly consider making your question clearer. I fully believe that you have a clear question in mind, but I do not have most of the information and context, and you only give me fragments, Maybe this conversation may help others to find out what you are after, so I leave the post for a short while before I delete it. Sorry.
– marmot
5 hours ago
1
@Sebastiano I guess we have a problem: you say you are not good at English and I am not good at guessing. Can you at least partly understand why it is not a good idea to have two target (?) screen shots and not much of an explanation? It may be that it will cost you slightly more time to make the question clearer, but you will save a lot of time of those who are trying to answer.
– marmot
3 hours ago
|
show 2 more comments
I still don't know if I get the message but this is something that is based on this answer. It does some orange boxes whose size adjusts to the multiline chapter titles. While the TeX code is not particularly interesting, the chapter titles contain a deep philosophical message, which is why I fully understand that some users may need styles that allow them to run chapter titles over several lines. ;-)
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagelmodern
usepackage[explicit]titlesec
usepackagemicrotype
usepackagetikz
usetikzlibrarypositioning,calc
definecolormyblueRGB0,82,155
% from https://tex.stackexchange.com/a/169435/121799
titleformatchapter[display]
normalfontbfseriescolormyblue
%filleft%
begintikzpicture
node[inner xsep=0.5em,text
width=textwidth-2em-2.5cm,align=left,font=Largesffamily]
(CC)#1;
path let p1=($(CC.north)-(CC.south)$) in
node[minimum width=2.5cm,minimum height=min(2.5cm,y1),left=1em of CC,
fill=orange,font=Hugesffamilybfseries,text=blue] (TC) thechapter;
%chaptertitlename~thechapter;
endtikzpicture%
10pt
begindocument
pagestyleempty
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday.
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday and
even on a Wednesday.
enddocument

I still don't know if I get the message but this is something that is based on this answer. It does some orange boxes whose size adjusts to the multiline chapter titles. While the TeX code is not particularly interesting, the chapter titles contain a deep philosophical message, which is why I fully understand that some users may need styles that allow them to run chapter titles over several lines. ;-)
documentclass[12pt,fleqn]book
usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm,headsep=10pt,a4paper]geometry % Page margins
usepackagelmodern
usepackage[explicit]titlesec
usepackagemicrotype
usepackagetikz
usetikzlibrarypositioning,calc
definecolormyblueRGB0,82,155
% from https://tex.stackexchange.com/a/169435/121799
titleformatchapter[display]
normalfontbfseriescolormyblue
%filleft%
begintikzpicture
node[inner xsep=0.5em,text
width=textwidth-2em-2.5cm,align=left,font=Largesffamily]
(CC)#1;
path let p1=($(CC.north)-(CC.south)$) in
node[minimum width=2.5cm,minimum height=min(2.5cm,y1),left=1em of CC,
fill=orange,font=Hugesffamilybfseries,text=blue] (TC) thechapter;
%chaptertitlename~thechapter;
endtikzpicture%
10pt
begindocument
pagestyleempty
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday.
chapterThose who can hibernate on a Monday can also hibernate on a Tuesday and
even on a Wednesday.
enddocument

answered 22 hours ago
marmotmarmot
115k5146277
115k5146277
@Dear and courteous marmot, in the meantime I thank you for your kind answer. The link you entered has no reference to my question. I'm so sorry that you did an extra job that I return it. My question is another. That is, within the code I entered there is a rounded rectangle of ochre color that I highlighted with the yellow arrow. I would always like the same code that has a white shadow (rectangular) as the background above figure A of my MWE.
– Sebastiano
6 hours ago
Inside my same MWE I don't know how to operate in TikZ because there are a lot of strange codes all linked together. If I change something I personally make a salad :-)
– Sebastiano
6 hours ago
@Sebastiano Sorry, I (still) do not understand what you want me to do. You have a code. Do you want to modify it? If so, what should the modified code achieve?
– marmot
6 hours ago
1
@Sebastiano Sorry, I give up. I asked you several times to kindly consider making your question clearer. I fully believe that you have a clear question in mind, but I do not have most of the information and context, and you only give me fragments, Maybe this conversation may help others to find out what you are after, so I leave the post for a short while before I delete it. Sorry.
– marmot
5 hours ago
1
@Sebastiano I guess we have a problem: you say you are not good at English and I am not good at guessing. Can you at least partly understand why it is not a good idea to have two target (?) screen shots and not much of an explanation? It may be that it will cost you slightly more time to make the question clearer, but you will save a lot of time of those who are trying to answer.
– marmot
3 hours ago
|
show 2 more comments
@Dear and courteous marmot, in the meantime I thank you for your kind answer. The link you entered has no reference to my question. I'm so sorry that you did an extra job that I return it. My question is another. That is, within the code I entered there is a rounded rectangle of ochre color that I highlighted with the yellow arrow. I would always like the same code that has a white shadow (rectangular) as the background above figure A of my MWE.
– Sebastiano
6 hours ago
Inside my same MWE I don't know how to operate in TikZ because there are a lot of strange codes all linked together. If I change something I personally make a salad :-)
– Sebastiano
6 hours ago
@Sebastiano Sorry, I (still) do not understand what you want me to do. You have a code. Do you want to modify it? If so, what should the modified code achieve?
– marmot
6 hours ago
1
@Sebastiano Sorry, I give up. I asked you several times to kindly consider making your question clearer. I fully believe that you have a clear question in mind, but I do not have most of the information and context, and you only give me fragments, Maybe this conversation may help others to find out what you are after, so I leave the post for a short while before I delete it. Sorry.
– marmot
5 hours ago
1
@Sebastiano I guess we have a problem: you say you are not good at English and I am not good at guessing. Can you at least partly understand why it is not a good idea to have two target (?) screen shots and not much of an explanation? It may be that it will cost you slightly more time to make the question clearer, but you will save a lot of time of those who are trying to answer.
– marmot
3 hours ago
@Dear and courteous marmot, in the meantime I thank you for your kind answer. The link you entered has no reference to my question. I'm so sorry that you did an extra job that I return it. My question is another. That is, within the code I entered there is a rounded rectangle of ochre color that I highlighted with the yellow arrow. I would always like the same code that has a white shadow (rectangular) as the background above figure A of my MWE.
– Sebastiano
6 hours ago
@Dear and courteous marmot, in the meantime I thank you for your kind answer. The link you entered has no reference to my question. I'm so sorry that you did an extra job that I return it. My question is another. That is, within the code I entered there is a rounded rectangle of ochre color that I highlighted with the yellow arrow. I would always like the same code that has a white shadow (rectangular) as the background above figure A of my MWE.
– Sebastiano
6 hours ago
Inside my same MWE I don't know how to operate in TikZ because there are a lot of strange codes all linked together. If I change something I personally make a salad :-)
– Sebastiano
6 hours ago
Inside my same MWE I don't know how to operate in TikZ because there are a lot of strange codes all linked together. If I change something I personally make a salad :-)
– Sebastiano
6 hours ago
@Sebastiano Sorry, I (still) do not understand what you want me to do. You have a code. Do you want to modify it? If so, what should the modified code achieve?
– marmot
6 hours ago
@Sebastiano Sorry, I (still) do not understand what you want me to do. You have a code. Do you want to modify it? If so, what should the modified code achieve?
– marmot
6 hours ago
1
1
@Sebastiano Sorry, I give up. I asked you several times to kindly consider making your question clearer. I fully believe that you have a clear question in mind, but I do not have most of the information and context, and you only give me fragments, Maybe this conversation may help others to find out what you are after, so I leave the post for a short while before I delete it. Sorry.
– marmot
5 hours ago
@Sebastiano Sorry, I give up. I asked you several times to kindly consider making your question clearer. I fully believe that you have a clear question in mind, but I do not have most of the information and context, and you only give me fragments, Maybe this conversation may help others to find out what you are after, so I leave the post for a short while before I delete it. Sorry.
– marmot
5 hours ago
1
1
@Sebastiano I guess we have a problem: you say you are not good at English and I am not good at guessing. Can you at least partly understand why it is not a good idea to have two target (?) screen shots and not much of an explanation? It may be that it will cost you slightly more time to make the question clearer, but you will save a lot of time of those who are trying to answer.
– marmot
3 hours ago
@Sebastiano I guess we have a problem: you say you are not good at English and I am not good at guessing. Can you at least partly understand why it is not a good idea to have two target (?) screen shots and not much of an explanation? It may be that it will cost you slightly more time to make the question clearer, but you will save a lot of time of those who are trying to answer.
– marmot
3 hours ago
|
show 2 more comments
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%2f483136%2fa-new-aspect-for-the-chapter-of-legrand-orange-book%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
Could you please try to clarify the question? The first screen shot is the output that you get from running the code. So far, so good. But what this the question? What role do the other two screen shots play in the question? (BTW, I think many users told you not to use the Legrand Orange Book. We wouldn't recommend running a marathon with high heel shoes either. The recommendation not to run a marathon with high heel shoes does not mean that high heel shoes are crap, it just means you shouldn't use them for that purposes. The analogous statements apply to LOB and your book.)
– marmot
23 hours ago
@marmot I'll answer you immediately: the source of inspiration is Legrand Orange Book but many other settings will be changed by the publishing house. I would simply like to replace the orange curvature indicated by the yellow arrow with something original that is not the one that Christian added. I finally gave 2 examples of how I would like the orange curvature to be changed by inserting a text on two lines. I hope I was clear. You can edit my question. Translated with www.DeepL.com/Translator
– Sebastiano
23 hours ago