I'm trying to define a box in a page (the title page indeed) that should appear as 'transparent' over the page background (that's a .jpg picture).
The code I'm using is the following:
\documentclass[dvipsnames,a5paper,twoside,openright,italian,12pt]{memoir}
\usepackage{defines}
\author{The author}
\date{2016}
\title{The title}
\editor{The editor}
\begin{document}
\frontmatter
\mytitle
\tableofcontents
\include{Preface}
\mainmatter
\include{Chapter01}
\include{Chapter02}
\end{document}
Inside 'defines.sty' I defined the structure and commands:
\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{calc}
\backgroundsetup{
contents={
\if@mainmatter
\eachpageornament \thepage
\else
\ifnum\value {page}=1
\else
\eachpageornament \thepage
\fi
\fi
},
position=current page.north east,
angle=0,%
scale=1,%
opacity=0.5%
}
\newcommand{\editor}[1]{\def\@editor{#1}}
\newcommand{\theeditor}{%
\@editor
}
\newcommand{\eachpageornament}{
\begin{tikzpicture}[remember picture, overlay, color=LimeGreen]
\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}
\def\svgwidth{40mm}
\input{signature.pdf_tex}
\end{flushright}
}
\newcommand{\mytitle}{
\thispagestyle{empty}
\ThisCenterWallPaper{1.12}{sfondo}
\begin{tikzpicture}[remember picture, overlay]
\node [rectangle, rounded corners, fill=LimeGreen, opacity=0.75, 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
}
\pagestyle{plain}
\setcounter{tocdepth}{2}
\renewcommand{\poemtoc}{section}%
\renewcommand{\poemtitlefont}{\normalfont\large\itshape\centering}
This node instance should define a green rounded box with 75% opacity:
\node [rectangle, rounded corners, fill=LimeGreen, opacity=0.75, anchor=south west, minimum width=6cm, minimum height=8cm] (box) at (-0.5,-10) (box){};
But as long as I can see the box is filled with solid green...
The original template were I took the suggestion can be found at the following link: book sample
Of course it's working... but as far as I can see there are no differences with mine that would change the behavour of the box.
\transparentmacro (solution 3)? It works here, I can see the correct opacity. – d-cmst Aug 18 '16 at 20:54\transparent{0.5}works. Try compiling twice. – d-cmst Aug 18 '16 at 20:59\transparentto\backgroundsetupdirective? – weirdgyn Aug 18 '16 at 21:12\transparentinto the\eachpageornamenttikzpicture. This time you don't need grouping – d-cmst Aug 18 '16 at 21:23svgnow provides an optionnotransparent(orusetransparent=false) to disable the loading of thetransparentpackage. – schtandard Apr 18 '18 at 17:32