# Tag Info

1

Here is a solution, based on LoopSpace's suggestion and on his work for implementing Z levels (i.e. layers) in TikZ. The tricky part of the initial problem is the following: an object can be easily send to the background using [on background layer] option of the backgrounds TikZ-library. However, this apply to the whole path. Yet, in my question, I wanted ...

1

You can insert your background picture using eso-pic rather then background, to add command (picture) which can be shipped out at every new page you can use \AddToShipoutPictureBG{code_for_your_picture} \documentclass[12pt]{article} % Paper size and margins \usepackage{geometry} \geometry{paper=letterpaper,margin=2cm} % Colors \usepackage[dvipsnames]{...

1

You just need to find an appropriate command to patch. For example, \documentclass{scrbook} \usepackage{graphicx,eso-pic,lipsum,etoolbox} \providecommand{\chapterhook}{} \makeatletter \patchcmd{\scr@startchapter}{\thispagestyle}{\chapterhook\thispagestyle}{\typeout{Patching chapter worked OK!}}{\typeout{Patching chapter failed! Oh no!!}} \newcommand*{\...

4

You could try with a pic. It's possible to define foreground code and background code which are drawn in front or behind the path. \documentclass[margin=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning, fadings, backgrounds} \tikzset{ pics/mypic/.style = { foreground code = {\node [red!20, font=\sffamily\bfseries]{...

4

You can use the decorations.markingslibrary, along with the preaction key, so that the decoration is added "before" the path is drawn. Basically this is like the second solution you posted, but all in one. This code provides a style with two arguments decred={ <pos> }{ <text> }. The colored node will be behind the line, the text in front of it. ...

2

Perhaps, something like this, in the form of \mystrut or \mydashstrut. \documentclass{article} \usepackage{tcolorbox,stackengine} \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} \newtcbox{\mybox}{nobeforeafter,colframe=mycolor,colback=mycolor!10!white,boxrule=0.5pt,arc=4pt, boxsep=-3pt,left=6pt,right=6pt,top=6pt,bottom=5pt,tcbox raise base} \newcommand\...

1

The solution offered by Caramdir does not allow to get a different background color for a part page when entering \begin{frame} \partpage \end{frame} Suppose that the background of a part page is given by the background color of the part-title (this can easily be adapted). Here is the trick. We first define a new page style which will be used for ...

1

In your MWE the tikzpicture is inserted when the chapter title was already printed. So it overlays the chapter title. I would suggest to define an own page style chapterfirstpage based on page style plain. \documentclass[letterpaper,showtrims,draft,11pt]{memoir} \usepackage[english]{babel} \usepackage{tikz} \aliaspagestyle{chapter}{chapterfirstpage} \...

2