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.










share|improve this question
























  • 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

















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.










share|improve this question
























  • 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















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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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




















  • 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












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





share|improve this answer





















  • For an empty page, nextpage.sty works consistently.
    – Saphar Koshet
    Nov 24 at 23:36











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',
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
});


}
});














draft saved

draft discarded


















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

























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





share|improve this answer





















  • For an empty page, nextpage.sty works consistently.
    – Saphar Koshet
    Nov 24 at 23:36















up vote
1
down vote













the placement in the even page can be achieved with this code:



clearpage ifoddvalue{page}hbox{}newpagefi





share|improve this answer





















  • For an empty page, nextpage.sty works consistently.
    – Saphar Koshet
    Nov 24 at 23:36













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





share|improve this answer












the placement in the even page can be achieved with this code:



clearpage ifoddvalue{page}hbox{}newpagefi






share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents