As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [backgrounds]

{backgrounds} is used for questions concerning different ways and circumstances where color or images constitute a backdrop to other elements on a page.

Filter by
Sorted by
Tagged with
1 vote
1 answer
22 views

How to use image as page background

I have an png image, I would like to integrate it into a latex leaflet. I would like to put this image at the corner of the page as a background. But I can't get it to go outside of the margins. Here ...
-1 votes
0 answers
31 views

How can get background color in page header? [duplicate]

\documentclass[a4paper,11pt]{article} \usepackage[bottom=0.8in,top=0.8in, left=0.8in,right=0.8in]{geometry} \usepackage{fancyhdr}\pagestyle{fancy} \fancyhead{} \fancyhead[R]{Resume} \fancyhead[L]{...
0 votes
1 answer
32 views

Set background color for scrbook \maketitle page

I am using the scrbook document class, and I just want to set the background color for the standard title page created through \maketitle. I already tried using the pagecolor package [1], but it shows ...
0 votes
1 answer
25 views

How to erase the backgroundcolor just for one image/word?

The background color behind the image should be white over the whole height of the box. Just the text has to be with the green background color. Is it possible to do it inside the box or only with ...
0 votes
1 answer
24 views

Background package - Troubles with `\NoBgThispage` command

I am not able to make this command be deterministic. The weird behaviour I get with PDFLaTeX is explained in the comments of the following MWE. I checked for conflicts with package afterpage, also ...
0 votes
2 answers
117 views

Different Backgrounds for title page and rest of the document (Koma Book)

I use something like \usepackage[pages=some]{background} \backgroundsetup{% firstpage=true, contents={First Page}, placement=center } which sets the contents on the title page. I now would ...
2 votes
2 answers
48 views

How can I put an overlay tikz picture below and ordinary text?

The following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document} This is some text: \tikzmarknode{Foo}{foo}. And this is some text in between that the filling ...
0 votes
0 answers
13 views

overlay background pdf page to background color

What I want to do: Fill background color as yellow!30. Fill background.pdf over the page with a 2mm border as yellow!30 and others as background.pdf. Current code the fill color covered the whole ...
23 votes
2 answers
47k views

Transparent image background in beamer

I want to add a background image in my beamer presentation. The thing is that when I use \usebackgroundtemplate{ \includegraphics[width=\paperwidth, height=\paperheight]{cern-logo.jpg} } in my ...
2 votes
1 answer
42 views

Line from lower left to upper right corner of page with metapost

I have this example where I want to draw a line in the background from corner to opposite corner of the page using metapost, The problem is that the line does not reach both ends, and I cannot figure ...
1 vote
1 answer
67 views

Beamer: Customise Title and Footer Background color

I would like to get I have forgotten to change the colour. Can anyone tell me how can I get desired result? Here I am using the code(partial): \documentclass[xcolor=dvipsnames]{beamer} \mode<...
1 vote
0 answers
22 views

Instances of Background Boxes keep increasing with each Chapter/function call

I'm using the following MWE to create a PDF and when I edit the created PDF it reveals that with each chapter or \chapframe call the number of instances of boxes keep increasing. This can also be made ...
0 votes
2 answers
64 views

Listing background color is overflowing margins on broken lines

I'm using the code on Listing, zebra effect and broken lines as a base. However, when lines are indented by either spaces or tabs the margins of the listing are not respected and the background color ...
1 vote
0 answers
37 views

set transparent color for a pgfpicture

I have a simple document which inputs picture.tex file that includs data of a pgfpicture: \documentclass{article} \usepackage{pgfplots} \usepackage{xcolor} \pagecolor{black} % set the page colour to ...
0 votes
1 answer
90 views

Grid environment for exercise solution

Following the example in the tcolorbox manual, p. 148, I produced the following MWE: \documentclass[11pt]{book} \usepackage[most]{tcolorbox} \usepackage{lipsum} \usepackage[no-math]{fontspec} % ...
0 votes
0 answers
25 views

Beamer template Talking head

I have some beamer slides for a lecture in 16:9 format and I want to record videos for this lecture. In the video, I'd like to add myself as taking the head into the slides in the bottom right corner. ...
1 vote
1 answer
47 views

Page Background for Certain Pages Only

Consider the code: \documentclass{article} \usepackage{background} \usetikzlibrary{calc} \usepackage{lipsum} \backgroundsetup{ color=black, scale=1, opacity=1, angle=0, contents={\tikz\draw[line ...
0 votes
0 answers
33 views

LaTeX Background package doesn't function as I command

When I'm using background package to do some decorating, however found out the outcome wasn't as I expected. Here's what I use: \documentclass{article} \usepackage[left=1in,right=1in,top=1in,bottom=...
0 votes
1 answer
44 views

I have a 10 page pdf. How can can I use this as a background for a new document?

I have a 10 page pdf. I want to use latex to add some text and equations to each page of this pdf. How can this be achieved? Here's how I do it right now: Split the 10 page file into ten single page ...
0 votes
2 answers
1k views

Simplest way to add table headers background color in Latex

I am using this below code to generate a table, \begin{center} \begin{tabular}{|p{3cm} | p{3cm} |} \hline Title1 & Title2 \\ \hline Item1 & Item2 \\ \hline \end{tabular} ...
0 votes
1 answer
11 views

"pages=some" option ignored by backgroud package when passed using the \backgroundsetup command

I am trying to use the background package to include watermark-style in the background of my document. However, I only want the background in certain, but not all pages. Supposedly, the package has an ...
0 votes
1 answer
125 views

replicating a document

I was trying to replicate this document in Latex. Does any one have an idea what fonts they are using and how they got the background color on the side? this is the code I have so far \documentclass[...
1 vote
1 answer
53 views

positioning transparent images as background in the title slide

How can I put five transparent images in different positions of the background in the title slide of a beamer presentation?
4 votes
1 answer
138 views

What is the difference between "none" and "white" on package pagecolor?

The title pretty much says it all. pagecolor seems to treat the options white and none differently, in particular because none doesn't work with package crop. What would be the reasons to use none ...
1 vote
1 answer
279 views

Make repeating watermark with tiling

I am trying to make two different types of watermarks: One which takes multiple words and puts them at an angle to fill the page, and A tile-able one which can take word(s) and/or images. Both of ...
1 vote
1 answer
151 views

Problems with \usebackgroundtemplate

When I use a figure in \usebackgroundtemplate I nothe that the figure in the background does not adjust in my presentation. See the figure below: The shadows become white and the figure as background ...
0 votes
1 answer
176 views

Double background image on new chapter

I'm using this OverLeaf thesis template and I am trying to put background images on the page that state a new chapter (placed on the right page) but also on the blank left page before it. I have two ...
0 votes
1 answer
91 views

Novel Document Class Background Color

Is it me or does the background color when using the novel document class look a little dark? Anyone know how to make the background white white? MWE below. % !TeX TS-program = LuaLaTeX % !TeX ...
2 votes
1 answer
105 views

How to position a figure with a colored page background on the opposite page of a section head?

After having tried pretty much every idea that I could think of in the last two days, I would like to ask for help here. In a nutshell, I would like to achieve the following in ConTeXt: Position an ...
21 votes
3 answers
19k views

Changing style of alert environment in beamer

I would like to specify a background color in the alert environment. I can, for example, use \setbeamercolor{alerted text}{fg=blue} to change the colour of the alterted text to blue, but this \...
0 votes
0 answers
21 views

Adding a figure in Tikz plot is recognized as a legend marker

To my previous question which can be found in the link here: Plots lines disappear in Tikz when inserting an image The plot that appear after compiling with the command \addplot graphics [xmin=-3,xmax=...
0 votes
1 answer
65 views

How to put a gray box around text that splits at page break

Is there a way to create a gray box around text that will split upon a page break? For example, using tcolorbox I can get the following: However, it will shift onto the next page if it does not fit ...
5 votes
2 answers
139 views

How to draw a shape under text?

I use the memoir class to produce a children's poetry book. To make it more engaging for the readers, I rely on the background package to include pictures that cover the entire page. Sometimes text ...
0 votes
1 answer
50 views

Background working differently in the first run

Coming back to a document after some months caused the background configured through the background package to disappear. I checked it was recovered after deleting the aux file, but only for the first ...
0 votes
1 answer
37 views

How do I access the name of the current chapter for a background image?

I add a background image to every page and want to add a different one based on the name of the current chapter. It would also be good to know how whether the preface and title pages before the ...
0 votes
0 answers
23 views

How do I place a background image on all odd pages of a given chapter?

I have a book using the "book" document type. In every chapter of my book, I want a different background image. Additionally, I want different background images on odd and even pages. What's ...
0 votes
0 answers
33 views

Can I randomise a page background across all my pages?

I have a folder with X images, I would like to randomise this as background for all pages. Is there a good package for this?
1 vote
1 answer
58 views

How can I not add a background for empty pages

I am using the background package to add a background to each page. I want a different background for odd and even pages, which is why I use \AddEverypageHook. However, AddEverypagehook works on all ...
1 vote
2 answers
95 views

How to add a background to the final page of the document?

I want to add a background to the final page of the document. I have two images, one that I have added on the first page of the document works perfectly, but I am not sure how to add the second one. \...
0 votes
0 answers
50 views

possible bug? \makeatletter causing background to be missing from certain pages

\documentclass[12pt, a4paper, UTF8, scheme = plain, twoside]{ctexart} \usepackage{lipsum} \usepackage{amsmath,enumerate} \usepackage[margin = 2cm]{geometry} \usepackage{adjustbox} \usepackage{fancyhdr}...
4 votes
3 answers
264 views

remember picture, overlay and backgrounds = overprint

I naively thought that this would be a simple fix for highlighting text -- yes, there are ulem.sty and soul.sty but they impose some restrictions with which I would prefer not to deal. I assumed it ...
1 vote
1 answer
56 views

How to adjust automatic number of columns with tikzpicture

I'm making a list of problems and at the end of the statement of each question I'm making vertical and horizontal lines using tikzpicture. I'm setting the number of rows and columns manually. The ...
1 vote
1 answer
718 views

Sphinx Verbatim (Code block) with background color

I would like to remove the frames and set a light grey shade background to my code blocks. I know I could use colorbox such as \begin{tcolorbox}, but I have no idea where to place it. Sphinx uses ...
0 votes
1 answer
34 views

Small number of programming instructions [duplicate]

I am writing an article and I need to insert a small number of code instructions for a topic related to computer science. I know the existence of many packages, such as Listing, Algorithmic and so on, ...
1 vote
2 answers
89 views

(Table of Contents) Multiple different background images on every page of the book's TOC

OBJECTIVE: to have an ability to place different background images on every page of the book TOC. WHAT HAS BEEN TRIED ALREADY: 1 \AddToShipoutPicture*{% \AtPageLowerLeft{% \put(.5\textwidth,.5\...
0 votes
0 answers
18 views

New environnement for colored background align

I would like to have a specific environment for colored background equation. However, Latex returns an error at the end of my new environment and I don't understand why. \documentclass{article} % ...
0 votes
0 answers
46 views

Background Image in Latex not transparent

I am adding a background image to my document. I have used my code before, and everything worked fine. However, I recently reopened and recompiled the code, and now the image is not transparent on the ...
7 votes
2 answers
1k views

Beamer: How to set background color only on title page in theme

I'm developing a Beamer theme and I want to make the background color of the title page one color and all the other slides to have a different color. I've found that I can change the background color ...
0 votes
1 answer
37 views

How to actually refer to Roman numeral page in code to AddToHook background image to page ii NOT page 2

I need to add a background image to a specific page. Here's the MWE: % !TEX TS-program = LuaLaTeX \documentclass[11pt,twoside,openany]{book} \pagestyle{plain} \usepackage[english, russian]{babel} \...
0 votes
0 answers
29 views

Adjust transparency of background picture in latex

I am using the following code to insert a picture as background for my file. Here is my code: \begin{tikzpicture}[remember picture, overlay] \node[opacity=0.2,inner sep=0pt] at (current page....

1
2 3 4 5
14