TeX - LaTeX Asked by NABIL para on August 12, 2021
Please help me for having this border different in odd / even pages
documentclass{article}
usepackage{tikz-page}
usepackage{lipsum}
usetikzlibrary{shadows.blur}
tikzset{
secnode/.style={
minimum height=1cm,
inner xsep=20pt,
rotate=90,
anchor=north east,
draw=white,
fill=olive,
text=white,
blur shadow={shadow blur steps=5,shadow blur extra rounding=1.3pt}},
pagenode/.style={
minimum width=5mm,
minimum height=1cm,
inner sep=2pt,
anchor=south east,
draw=white,
fill=olive,
text=white,
blur shadow={shadow blur steps=5,shadow blur extra rounding=1.3pt}}
}
newcommand{tikzpagelayout}{
draw[olive,line width=2pt,rounded corners=20pt] ([xshift=5mm]page.northwest) |- ([xshift=-2cm,yshift=5mm]page.southeast);
node[secnode] at (page.northwest) {Chapitre 05.quad FONCTIONS LOGARTITHMES};
node[pagenode] at ([xshift=-1cm]page.southeast) {1};
}
pagestyle{plain}
begin{document}
lipsum[1-3]
end{document}
Like I said, use tpflip
to design both eve and odd page styles.
documentclass{article}
usepackage{tikz-page}
usepackage{lipsum}
usetikzlibrary{shadows.blur}
tikzset{
secnode/.style={
minimum height=1cm,
inner xsep=20pt,
rotate=90,
anchor=north east,
draw=white,
fill=olive,
text=white,
blur shadow={shadow blur steps=5,shadow blur extra rounding=1.3pt}},
pagenode/.style={
minimum width=5mm,
minimum height=1cm,
inner sep=2pt,
anchor=south east,
draw=white,
fill=olive,
text=white,
blur shadow={shadow blur steps=5,shadow blur extra rounding=1.3pt}}
}
newcommand{tikzpagelayout}{
tpflip{
draw[olive,line width=2pt,rounded corners=20pt] ([xshift=5mm]page.northwest) |- ([xshift=-2cm,yshift=5mm]page.southeast);
node[secnode] at (page.northwest) {Chapitre 05.quad FONCTIONS LOGARTITHMES};
node[pagenode] at ([xshift=-1cm]page.southeast) {1};
}
{
draw[olive,line width=2pt,rounded corners=20pt] ([xshift=-5mm]page.northeast) |- ([xshift=2cm,yshift=5mm]page.southwest);
node[secnode,anchor=south east] at (page.northeast) {Chapitre 05.quad FONCTIONS LOGARTITHMES};
node[pagenode,anchor=south west] at ([xshift=1cm]page.southwest) {1};
}
}
pagestyle{plain}
begin{document}
lipsum[1-14]
end{document}
Correct answer by SebGlav on August 12, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP