Creating empty back cover page
up vote
3
down vote
favorite
In defined a document with a conditional background, this should place ornaments only in mainmatter
pages and exclude the title page. These are the lines with the relevant code:
usepackage[utf8]{inputenc}
usepackage[italian]{babel}
usepackage[T1]{fontenc}
usepackage{verse}
usepackage{background}
usepackage[object=vectorian]{pgfornament}
usepackage{svg}
usepackage{wallpaper}
usepackage[osf]{libertine}
usetikzlibrary{backgrounds, calc}
makeatletter%
newcommand{editor}[1]{%
def@editor{#1}%
}
newcommand{theeditor}{%
@editor%
}
makeatother
newcommand{eachpageornament}{%
begin{tikzpicture}[remember picture, overlay, color=LimeGreen]%
transparent{0.75}{%
node[anchor=north west](CNW) at (current page.north west){pgfornament[width=2cm]{61}};%
node[anchor=north east](CNE) at (current page.north east){pgfornament[width=2cm,symmetry=v]{61}};%
node[anchor=south west](CSW) at (current page.south west){pgfornament[width=2cm,symmetry=h]{61}};%
node[anchor=south east](CSE) at (current page.south east){pgfornament[width=2cm,symmetry=c]{61}};%
pgfornamenthline{CNW}{CNE}{north}{87}%
pgfornamenthline{CSW}{CSE}{south}{87}%
pgfornamentvline{CNW}{CSW}{west}{87}%
pgfornamentvline{CNE}{CSE}{east}{87}%
}%
end{tikzpicture}
}
newcommand{plogo}{%
includegraphics[width = 30mm]{logo.png}%
}
newcommand{psignature}{%
begin{flushright}
defsvgwidth{40mm}%
input{signature.pdf_tex}%
end{flushright}
}
newcommand{myback}{%
begin{vplace}[0.7]
begin{center}
includegraphics[width = 60mm]{logo_red.png}%
end{center}
end{vplace}
}
newcommand{mytitle}{
thispagestyle{empty}%
ThisCenterWallPaper{1.1}{sfondo}%
begin{tikzpicture}[remember picture, overlay]{%
transparent{0.95}node [rectangle, rounded corners, fill=LimeGreen, anchor=south west, minimum width=6cm, minimum height=8cm] (box) at (-0.5,-10) (box){};}%
node[anchor=west, xshift=-2.0cm, yshift=-1cm, text width=4cm] at (box.north){large textit{theeditor}};%
node[anchor=west, xshift=-2.0cm, yshift=-3.5cm, text width=4cm] at (box.north){huge thetitle};%
node[anchor=west, xshift=-2.0cm, yshift=-6cm, text width=4cm] at (box.north){large theauthor};%
end{tikzpicture}
newpage
}
makeatletter
backgroundsetup{%
contents={%
if@mainmatter%
eachpageornament thepage%
else%
ifnumvalue {page}=1%
else%
eachpageornament thepage%
fi%
fi%
},
position=current page.north east,
angle=0,
scale=1,
opacity=1
}
makeatother
renewcommand{poemtoc}{section}
renewcommand{poemtitlefont}{normalfontlargeitshapecentering}
pagestyle{plain}
setcounter{tocdepth}{2}
This's working even if the condition is somewhat redundant (in my opition).
Now I need to add a back cover page with editor logo (but also a blank page is fine) but without ornaments ... I tought to do so modifying the conditional background but as long as I can see I'm not able to do so.
I tried to modify the condition in several ways but all I got are compilation errors.
This's the document structure:
documentclass[dvipsnames,a5paper,twoside,openright,italian,12pt]{memoir}
input{defines}
author{Me}
date{2016}
title{Title}
editor{Editor}
begin{document}
frontmatter
mytitle
tableofcontents
include{Preface}
mainmatter
include{Chapter01}
include{Chapter02}
backmatter
newpage
thispagestyle{empty}
myback
end{document}
How can I fix this? I need a condition to exclude ornaments from the back cover page and I nedd this page to be an even page so it can be the last page on a booklet.
covers
add a comment |
up vote
3
down vote
favorite
In defined a document with a conditional background, this should place ornaments only in mainmatter
pages and exclude the title page. These are the lines with the relevant code:
usepackage[utf8]{inputenc}
usepackage[italian]{babel}
usepackage[T1]{fontenc}
usepackage{verse}
usepackage{background}
usepackage[object=vectorian]{pgfornament}
usepackage{svg}
usepackage{wallpaper}
usepackage[osf]{libertine}
usetikzlibrary{backgrounds, calc}
makeatletter%
newcommand{editor}[1]{%
def@editor{#1}%
}
newcommand{theeditor}{%
@editor%
}
makeatother
newcommand{eachpageornament}{%
begin{tikzpicture}[remember picture, overlay, color=LimeGreen]%
transparent{0.75}{%
node[anchor=north west](CNW) at (current page.north west){pgfornament[width=2cm]{61}};%
node[anchor=north east](CNE) at (current page.north east){pgfornament[width=2cm,symmetry=v]{61}};%
node[anchor=south west](CSW) at (current page.south west){pgfornament[width=2cm,symmetry=h]{61}};%
node[anchor=south east](CSE) at (current page.south east){pgfornament[width=2cm,symmetry=c]{61}};%
pgfornamenthline{CNW}{CNE}{north}{87}%
pgfornamenthline{CSW}{CSE}{south}{87}%
pgfornamentvline{CNW}{CSW}{west}{87}%
pgfornamentvline{CNE}{CSE}{east}{87}%
}%
end{tikzpicture}
}
newcommand{plogo}{%
includegraphics[width = 30mm]{logo.png}%
}
newcommand{psignature}{%
begin{flushright}
defsvgwidth{40mm}%
input{signature.pdf_tex}%
end{flushright}
}
newcommand{myback}{%
begin{vplace}[0.7]
begin{center}
includegraphics[width = 60mm]{logo_red.png}%
end{center}
end{vplace}
}
newcommand{mytitle}{
thispagestyle{empty}%
ThisCenterWallPaper{1.1}{sfondo}%
begin{tikzpicture}[remember picture, overlay]{%
transparent{0.95}node [rectangle, rounded corners, fill=LimeGreen, anchor=south west, minimum width=6cm, minimum height=8cm] (box) at (-0.5,-10) (box){};}%
node[anchor=west, xshift=-2.0cm, yshift=-1cm, text width=4cm] at (box.north){large textit{theeditor}};%
node[anchor=west, xshift=-2.0cm, yshift=-3.5cm, text width=4cm] at (box.north){huge thetitle};%
node[anchor=west, xshift=-2.0cm, yshift=-6cm, text width=4cm] at (box.north){large theauthor};%
end{tikzpicture}
newpage
}
makeatletter
backgroundsetup{%
contents={%
if@mainmatter%
eachpageornament thepage%
else%
ifnumvalue {page}=1%
else%
eachpageornament thepage%
fi%
fi%
},
position=current page.north east,
angle=0,
scale=1,
opacity=1
}
makeatother
renewcommand{poemtoc}{section}
renewcommand{poemtitlefont}{normalfontlargeitshapecentering}
pagestyle{plain}
setcounter{tocdepth}{2}
This's working even if the condition is somewhat redundant (in my opition).
Now I need to add a back cover page with editor logo (but also a blank page is fine) but without ornaments ... I tought to do so modifying the conditional background but as long as I can see I'm not able to do so.
I tried to modify the condition in several ways but all I got are compilation errors.
This's the document structure:
documentclass[dvipsnames,a5paper,twoside,openright,italian,12pt]{memoir}
input{defines}
author{Me}
date{2016}
title{Title}
editor{Editor}
begin{document}
frontmatter
mytitle
tableofcontents
include{Preface}
mainmatter
include{Chapter01}
include{Chapter02}
backmatter
newpage
thispagestyle{empty}
myback
end{document}
How can I fix this? I need a condition to exclude ornaments from the back cover page and I nedd this page to be an even page so it can be the last page on a booklet.
covers
I noticed that option openright interferes forcing the back cover page to open in the right and thus forcing latex to place extra page(s) to force it to be in a odd page that obviously lead it to be NOT in the back cover.
– weirdgyn
Aug 22 '16 at 12:39
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
In defined a document with a conditional background, this should place ornaments only in mainmatter
pages and exclude the title page. These are the lines with the relevant code:
usepackage[utf8]{inputenc}
usepackage[italian]{babel}
usepackage[T1]{fontenc}
usepackage{verse}
usepackage{background}
usepackage[object=vectorian]{pgfornament}
usepackage{svg}
usepackage{wallpaper}
usepackage[osf]{libertine}
usetikzlibrary{backgrounds, calc}
makeatletter%
newcommand{editor}[1]{%
def@editor{#1}%
}
newcommand{theeditor}{%
@editor%
}
makeatother
newcommand{eachpageornament}{%
begin{tikzpicture}[remember picture, overlay, color=LimeGreen]%
transparent{0.75}{%
node[anchor=north west](CNW) at (current page.north west){pgfornament[width=2cm]{61}};%
node[anchor=north east](CNE) at (current page.north east){pgfornament[width=2cm,symmetry=v]{61}};%
node[anchor=south west](CSW) at (current page.south west){pgfornament[width=2cm,symmetry=h]{61}};%
node[anchor=south east](CSE) at (current page.south east){pgfornament[width=2cm,symmetry=c]{61}};%
pgfornamenthline{CNW}{CNE}{north}{87}%
pgfornamenthline{CSW}{CSE}{south}{87}%
pgfornamentvline{CNW}{CSW}{west}{87}%
pgfornamentvline{CNE}{CSE}{east}{87}%
}%
end{tikzpicture}
}
newcommand{plogo}{%
includegraphics[width = 30mm]{logo.png}%
}
newcommand{psignature}{%
begin{flushright}
defsvgwidth{40mm}%
input{signature.pdf_tex}%
end{flushright}
}
newcommand{myback}{%
begin{vplace}[0.7]
begin{center}
includegraphics[width = 60mm]{logo_red.png}%
end{center}
end{vplace}
}
newcommand{mytitle}{
thispagestyle{empty}%
ThisCenterWallPaper{1.1}{sfondo}%
begin{tikzpicture}[remember picture, overlay]{%
transparent{0.95}node [rectangle, rounded corners, fill=LimeGreen, anchor=south west, minimum width=6cm, minimum height=8cm] (box) at (-0.5,-10) (box){};}%
node[anchor=west, xshift=-2.0cm, yshift=-1cm, text width=4cm] at (box.north){large textit{theeditor}};%
node[anchor=west, xshift=-2.0cm, yshift=-3.5cm, text width=4cm] at (box.north){huge thetitle};%
node[anchor=west, xshift=-2.0cm, yshift=-6cm, text width=4cm] at (box.north){large theauthor};%
end{tikzpicture}
newpage
}
makeatletter
backgroundsetup{%
contents={%
if@mainmatter%
eachpageornament thepage%
else%
ifnumvalue {page}=1%
else%
eachpageornament thepage%
fi%
fi%
},
position=current page.north east,
angle=0,
scale=1,
opacity=1
}
makeatother
renewcommand{poemtoc}{section}
renewcommand{poemtitlefont}{normalfontlargeitshapecentering}
pagestyle{plain}
setcounter{tocdepth}{2}
This's working even if the condition is somewhat redundant (in my opition).
Now I need to add a back cover page with editor logo (but also a blank page is fine) but without ornaments ... I tought to do so modifying the conditional background but as long as I can see I'm not able to do so.
I tried to modify the condition in several ways but all I got are compilation errors.
This's the document structure:
documentclass[dvipsnames,a5paper,twoside,openright,italian,12pt]{memoir}
input{defines}
author{Me}
date{2016}
title{Title}
editor{Editor}
begin{document}
frontmatter
mytitle
tableofcontents
include{Preface}
mainmatter
include{Chapter01}
include{Chapter02}
backmatter
newpage
thispagestyle{empty}
myback
end{document}
How can I fix this? I need a condition to exclude ornaments from the back cover page and I nedd this page to be an even page so it can be the last page on a booklet.
covers
In defined a document with a conditional background, this should place ornaments only in mainmatter
pages and exclude the title page. These are the lines with the relevant code:
usepackage[utf8]{inputenc}
usepackage[italian]{babel}
usepackage[T1]{fontenc}
usepackage{verse}
usepackage{background}
usepackage[object=vectorian]{pgfornament}
usepackage{svg}
usepackage{wallpaper}
usepackage[osf]{libertine}
usetikzlibrary{backgrounds, calc}
makeatletter%
newcommand{editor}[1]{%
def@editor{#1}%
}
newcommand{theeditor}{%
@editor%
}
makeatother
newcommand{eachpageornament}{%
begin{tikzpicture}[remember picture, overlay, color=LimeGreen]%
transparent{0.75}{%
node[anchor=north west](CNW) at (current page.north west){pgfornament[width=2cm]{61}};%
node[anchor=north east](CNE) at (current page.north east){pgfornament[width=2cm,symmetry=v]{61}};%
node[anchor=south west](CSW) at (current page.south west){pgfornament[width=2cm,symmetry=h]{61}};%
node[anchor=south east](CSE) at (current page.south east){pgfornament[width=2cm,symmetry=c]{61}};%
pgfornamenthline{CNW}{CNE}{north}{87}%
pgfornamenthline{CSW}{CSE}{south}{87}%
pgfornamentvline{CNW}{CSW}{west}{87}%
pgfornamentvline{CNE}{CSE}{east}{87}%
}%
end{tikzpicture}
}
newcommand{plogo}{%
includegraphics[width = 30mm]{logo.png}%
}
newcommand{psignature}{%
begin{flushright}
defsvgwidth{40mm}%
input{signature.pdf_tex}%
end{flushright}
}
newcommand{myback}{%
begin{vplace}[0.7]
begin{center}
includegraphics[width = 60mm]{logo_red.png}%
end{center}
end{vplace}
}
newcommand{mytitle}{
thispagestyle{empty}%
ThisCenterWallPaper{1.1}{sfondo}%
begin{tikzpicture}[remember picture, overlay]{%
transparent{0.95}node [rectangle, rounded corners, fill=LimeGreen, anchor=south west, minimum width=6cm, minimum height=8cm] (box) at (-0.5,-10) (box){};}%
node[anchor=west, xshift=-2.0cm, yshift=-1cm, text width=4cm] at (box.north){large textit{theeditor}};%
node[anchor=west, xshift=-2.0cm, yshift=-3.5cm, text width=4cm] at (box.north){huge thetitle};%
node[anchor=west, xshift=-2.0cm, yshift=-6cm, text width=4cm] at (box.north){large theauthor};%
end{tikzpicture}
newpage
}
makeatletter
backgroundsetup{%
contents={%
if@mainmatter%
eachpageornament thepage%
else%
ifnumvalue {page}=1%
else%
eachpageornament thepage%
fi%
fi%
},
position=current page.north east,
angle=0,
scale=1,
opacity=1
}
makeatother
renewcommand{poemtoc}{section}
renewcommand{poemtitlefont}{normalfontlargeitshapecentering}
pagestyle{plain}
setcounter{tocdepth}{2}
This's working even if the condition is somewhat redundant (in my opition).
Now I need to add a back cover page with editor logo (but also a blank page is fine) but without ornaments ... I tought to do so modifying the conditional background but as long as I can see I'm not able to do so.
I tried to modify the condition in several ways but all I got are compilation errors.
This's the document structure:
documentclass[dvipsnames,a5paper,twoside,openright,italian,12pt]{memoir}
input{defines}
author{Me}
date{2016}
title{Title}
editor{Editor}
begin{document}
frontmatter
mytitle
tableofcontents
include{Preface}
mainmatter
include{Chapter01}
include{Chapter02}
backmatter
newpage
thispagestyle{empty}
myback
end{document}
How can I fix this? I need a condition to exclude ornaments from the back cover page and I nedd this page to be an even page so it can be the last page on a booklet.
covers
covers
edited Oct 21 '16 at 15:09
CarLaTeX
27.7k445120
27.7k445120
asked Aug 22 '16 at 10:28
weirdgyn
1388
1388
I noticed that option openright interferes forcing the back cover page to open in the right and thus forcing latex to place extra page(s) to force it to be in a odd page that obviously lead it to be NOT in the back cover.
– weirdgyn
Aug 22 '16 at 12:39
add a comment |
I noticed that option openright interferes forcing the back cover page to open in the right and thus forcing latex to place extra page(s) to force it to be in a odd page that obviously lead it to be NOT in the back cover.
– weirdgyn
Aug 22 '16 at 12:39
I noticed that option openright interferes forcing the back cover page to open in the right and thus forcing latex to place extra page(s) to force it to be in a odd page that obviously lead it to be NOT in the back cover.
– weirdgyn
Aug 22 '16 at 12:39
I noticed that option openright interferes forcing the back cover page to open in the right and thus forcing latex to place extra page(s) to force it to be in a odd page that obviously lead it to be NOT in the back cover.
– weirdgyn
Aug 22 '16 at 12:39
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
the placement in the even page can be achieved with this code:
clearpage ifoddvalue{page}hbox{}newpagefi
For an empty page, nextpage.sty works consistently.
– Saphar Koshet
Nov 24 at 23:36
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
the placement in the even page can be achieved with this code:
clearpage ifoddvalue{page}hbox{}newpagefi
For an empty page, nextpage.sty works consistently.
– Saphar Koshet
Nov 24 at 23:36
add a comment |
up vote
1
down vote
the placement in the even page can be achieved with this code:
clearpage ifoddvalue{page}hbox{}newpagefi
For an empty page, nextpage.sty works consistently.
– Saphar Koshet
Nov 24 at 23:36
add a comment |
up vote
1
down vote
up vote
1
down vote
the placement in the even page can be achieved with this code:
clearpage ifoddvalue{page}hbox{}newpagefi
the placement in the even page can be achieved with this code:
clearpage ifoddvalue{page}hbox{}newpagefi
answered Aug 22 '16 at 13:57
weirdgyn
1388
1388
For an empty page, nextpage.sty works consistently.
– Saphar Koshet
Nov 24 at 23:36
add a comment |
For an empty page, nextpage.sty works consistently.
– Saphar Koshet
Nov 24 at 23:36
For an empty page, nextpage.sty works consistently.
– Saphar Koshet
Nov 24 at 23:36
For an empty page, nextpage.sty works consistently.
– Saphar Koshet
Nov 24 at 23:36
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f325942%2fcreating-empty-back-cover-page%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
I noticed that option openright interferes forcing the back cover page to open in the right and thus forcing latex to place extra page(s) to force it to be in a odd page that obviously lead it to be NOT in the back cover.
– weirdgyn
Aug 22 '16 at 12:39