# Tag Info

1

I would recommend the background package for this. Admittedly, this is mostly because I know it mostly works. (However, it turns out, there is also a good reason to use something other than xwatermark if using a KOMA class. See below.) Solution with background package For example: \documentclass[11pt,ngerman,a4paper]{scrartcl} \usepackage{background} ...

4

You need to control the padding of \framebox and \colorbox separately: \documentclass{article} \usepackage[x11names]{xcolor} \begin{document} \newcommand{\information}[1]{{% \setlength{\fboxsep}{0pt}% \par\noindent \colorbox{DarkOliveGreen2}{% \setlength{\fboxsep}{4mm}% \framebox[\textwidth][l]{\parbox{\linewidth}{\textbf{foo: } #1}}}}} ...

4

The space between the box edges and the real content is ruled by \fboxsep as for the usual \fbox command. Since \fboxsep4mm appears explicitly in the \information macro definition there's no chance to change the \fboxsep value before. 4mm seems to be definitely too much, but this is a matter of taste, of course. In my point of view, there's no need of ...

3

I started from Maarten Dhondt's answer as I would recommend the same solution. As you note, this solution shrinks the nodes in the picture, although other parts of the picture are rendered at their normal sizes. Investigating, I tweaked a couple of things just to make sure the definitions etc. were unique and to rule out possible clashes. Guessing failed, ...

2

Lazy way: tcolorbox \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins} \newtcbox{\mytable}[1][X]{enhanced, blanker, on line, watermark text=#1} \begin{document} My tables \mytable[A]{ \begin{tabular}{llll} 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & ...

7

You can do this with the background package: \usepackage[pages=some]{background}. It requires a setup: \backgroundsetup{ scale=1, color=black, opacity=0.4, angle=0, contents={ your tikz picture } } Then, add \BgThispage to the page in which you want to use your background. Full code: \documentclass{article} \usepackage[utf8x]{inputenc} ...

3

I introduce \grayblock{tabular code}{x-fractional offset}{y-fractional offset}{scale of inset}{inset}. The macro can be nested (as it is in the MWE below) to place multiple insets, where a \grayblock can be placed where tabular code would go. \documentclass{article} \usepackage{stackengine,xcolor,graphicx} \newsavebox{\tmpbox} \newcommand\grayblock[5]{% ...

6

Here's a TikZ solution which uses a matrix of nodes for the table, rather than a tabular, and hence gets the positions for the letters automatically from the TikZ code. It uses the matrix library for that and the backgrounds library to put the letters on a layer drawn in the background i.e. behind the numbers in the matrix. \documentclass[border=5pt, multi, ...

13

Without absolute positioning using tikzmark library for the tikz package. \documentclass{article} \usepackage{tikz, lmodern} \usetikzlibrary{calc,tikzmark} \begin{document} \begin{tikzpicture}[overlay,remember picture] \node [yshift=.6ex] at ( $(pic cs:A) !.5! (pic cs:B)$ ){ \fontsize{60}{60}\selectfont\textbf{\color{gray!20}A} }; \end{tikzpicture} ...

8

\documentclass{article} \usepackage{color} \usepackage{lmodern} \begin{document} \begin{picture}(0,0) \put(7,-20){\fontsize{70pt}{70pt}\bfseries\color[gray]{.9}{A}} \end{picture}% \begin{tabular}{llll} 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 ...

1

As [masu mentioned]{Using two different wallpapers in the same document}, wallpaper certainly supports different backgrounds in a single document: \documentclass{article} \usepackage{wallpaper,graphicx,kantlipsum} \begin{document} \ThisCenterWallPaper{1}{tiger} \kant[1-6] \ThisCenterWallPaper{1}{cath-gadael-chartref} \end{document} If you want ...

1

This TeX.SX answer is good background reading: it shows us how to create a background for a single page using TikZ, though it also requires you to know exactly where the page is going to end. Changing it a little bit produces a macro that sets the background of whatever page it's on: \newcommand*{\PageBackground}[1]{ \tikz[remember picture,overlay] ...

1

I found a new workaround for the problem explained in the comment to the original question. Basically one needs to replace the old \makeatletter from @marco-daniel with this one: \usepackage{xcolor} \colorlet{chapterbackground}{red} \addtokomafont{chapter}{\color{white}} \makeatletter \renewcommand\chapterlinesformat[3]{% \colorbox{chapterbackground}{% ...

Top 50 recent answers are included