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
27
votes
4answers
4k views

How can I draw a TikZ element multiple times against a shaded background?

If I have two tikzpictures drawn: \documentclass{article} \usepackage[margin = 1in]{geometry} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing,calc,shapes,shapes.geometric,patterns} \begin{...
100
votes
3answers
126k views

How to create a background image on title page with LaTeX?

I want to put a background image on a title page of a document. Is it possible and does it work? EDIT: The answer by Presidenten using the eso-pic package and my answer found after some research ...
134
votes
7answers
72k views

How to create alternating rows in a table?

Sometimes you can see in books tables, that have alternating background color for rows in a table to support readability. How I can achieve this with LaTeX? And yes, I could put macros \odd and \even ...
21
votes
1answer
968 views

Eraser tool for TikZ

I am asking for a style (or something similar), let us call it ERASE. The imaginary tool works as a convenient inverse clip or eraser within a scope. The specific way is asked within the comment in ...
119
votes
3answers
143k views

How to insert a background image in a beamer frame?

I want to insert a background image in a beamer frame and use this "frame" as a beamer frame. I want to insert different background images on different frames. Towards this end, I tried \...
21
votes
5answers
18k views

Giving headlines a background color spanning across the entire typearea

I posted this at stackoverflow and got redirected here. This does indeed look like a better place to ask. I would like to decorate my headlines (section, subsection, etc.) by adding a background ...
38
votes
7answers
28k views

Matrix change row or column background

I have a matrix shown below. I would like to have the whole row green rather than only the cells. How can I do that? \begin{equation}\label{eq:appendrow} \newcommand\x{\times} \newcommand\y{\...
44
votes
3answers
20k views

PDF letterhead as document background

My institution's letterhead is available as a PDF file. The PDF is not just of the logo (to be placed in a corner), but of the entire page. Is it possible to make this PDF the background of the ...
61
votes
3answers
50k views

How to change the background color only for the current page?

How can I change the background color only for the current page? I found that I can change the color with \pagecolor{color} but that unfortunately changes the color for all pages after this command. ...
19
votes
3answers
10k views

Set table background hatched and shaded using tikz

I am looking for a convenient way to set the background of tabular cells. I'd like to do two things: (1) Set the background shaded in a color (2) Set the background hatched I learned that the TikZ ...
3
votes
2answers
3k views

Text on background-image footer and header

I'm trying to create a template for my article, which has an image on the header, and on on the footer. I also want to put text on these images. The result would look like this : (Blue and green ...
77
votes
3answers
103k views

Change the background color of a frame in Beamer

How can I change the background color of one frame in my Beamer document? I tried doing \begin{frame} \setbeamercolor{background canvas}{bg=violet} % frame contents here \end{frame} but it ...
29
votes
4answers
33k views

Background image in beamer slides

In my presentation using Beamer, I want to use some image say village/river as a back ground in some slides. However I will write something in these slides also. How can I do this?
32
votes
3answers
12k views

Color merged and regular cells in a table individually

In a LaTeX table with merged cells, how can I color each cell with a different color? %% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know ...
42
votes
2answers
46k views

How do I fill table cells with a background color?

I'd like to fill the cells of a table with a background color. How can this be done?
34
votes
1answer
9k views

Is it possible to use tikz to draw a background on the printed page?

Imagine I want to draw a filled shape behind something already typeset in the page. The usual approach is to define a \tikzmark command which simply remembers a coordinate using remember picture and ...
13
votes
4answers
6k views

How to change the background color within a page

I have a one page document like below. I would like the background color would be green, then I would like change it to yellow. Is it possible? \documentstyle{article} \begin{document} \pagecolor{...
12
votes
5answers
7k views

Background image for minipage

I'd like to put a background image into a minipage, stretching exactly to the surrounding fbox. What's the best option to do that? (Searching the web, I only found solutions for backgrounding the ...
21
votes
1answer
43k 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 ...
22
votes
1answer
18k views

Beamer background image centered

I'm trying to use an image as a background for Beamer presentation according to this post. However, I do not want the image spanning the entire background. Thus, I'm doing something like: \...
9
votes
3answers
13k views

Setting background colour for part of a page

I am designing a business card using the memoir class and hints given here and am trying out various background effects. Specifically, I would like to change the background for the last third of the ...
8
votes
1answer
2k views

TikZ: Node fill which is opaque to entities in tikzpicture but transparent to background color/image? [duplicate]

Inside a tikzpicture, I am using a white fill for the label of nodes and lines. This generally works well for my needs, but I realized it is not perfect after putting a picture on top of a background ...
18
votes
2answers
11k views

Installing background and foreground page layers with TikZ

Several times I discovered the need to draw TikZ material behind and on top of the page text (How to draw text-anchored tikz line below text instead of above?, Test if a paragraph has a page break in ...
14
votes
1answer
14k views

Tables as Header and footer

I've been struggling with my .tex for quite some time now, and decided its time to look for help. This is the situation: all docs here (my office) need to bring, as header, a table (3 columns) which ...
20
votes
1answer
12k views

Background color gradient for entire document

Is anyone aware if it's possible to change an entire document's background to a fading color? In other words, can you take silver and slowly fade it to white from left to right and have this same ...
10
votes
1answer
6k views

Overlay LaTeX/TeX coding easily on PDF with 300 pages

I've been looking for a way to overlay TeX/LaTeX i.e maths language etc (everything LaTeX is designed for) onto a background document containing 310 pages combined together in a PDF file. So far I ...
21
votes
2answers
23k views

How to make a block transparent for a background image

I use the code \usebackgroundtemplate{ \centering \includegraphics[width=0.5\paperwidth,height=0.5\paperheight]{image.png} } to get a background image in a Beamer/Latex presentation. ...
19
votes
2answers
1k views

Randomly assign background colour for each frame

How can a randomly picked background colour be chosen for each beamer frame? Note: This question is asked to round out the question Randomly assign color to background in the PDF whenever page is ...
14
votes
1answer
5k views

Background notebook template with spiral

I would like to print a document with math text to look like the picture below: However, I would like to be able to edit : color of background the position of spiral grid on/off i tired this one ...
13
votes
1answer
5k views

How to add a gradient fade-out effect to an image?

I am working on a presentation in beamer and would like to put a logo in the background of the title page with a gradient fade-out effect, similar to the image below. The logo is in PDF format and is ...
11
votes
2answers
3k views

Color gradient as background in margins

Currently I am using an external PDF image to get a color gradient provide in the margins. See the output below. I achieve this by using command \ULCornerWallPaper{1}{./pictures/wallpaper_1.pdf} ...
13
votes
1answer
10k views

how to create a pdf with a transparent background

How do I create a pdf file with a transparent background? \documentclass{article} \usepackage{xcolor} \begin{document} \nopagecolor hi \end{document} This doesn't work since \nopagecolor ...
6
votes
2answers
6k views

Watermark using background package in beamer

Is it possible? Doesn't work for me with the following code: \documentclass{beamer} \usepackage{lipsum} \usepackage{background} \backgroundsetup{ placement=center, scale=1, contents={...
11
votes
2answers
2k views

Spy with scale and pgfonlayer in tikz

When I use spy and scale in a tikzpicture, the magnifying glass seems to be magnifying a region not where I specified. The small pointer is in the correct location, though. If I set scale=1.0, the ...
8
votes
2answers
4k views

Background overflows when using rounded corners for listings (package: `listings`)

I'm using listings to list code in my document, and I want the code to be displayed in a frame with rounded corners and a grey background color. But the background overflows the frame, as if the frame ...
7
votes
1answer
445 views

Background color for inline math with linebreaks?

What's the simplest way to achieve coloured background for the inline equation in the following example: \documentclass{article} \begin{document} Completely unimportant text $ABC_{1234} = ABC_{1234} ...
3
votes
1answer
11k views

Beamer: Transparent AND centered background image on intro slide

I know this is similar to other questions. Other answers address either: Adding a transparent image Centering an image but I cannot find an answer with both. With previous answers I can ...
2
votes
1answer
1k views

Spread Image Pages in Chapter Opener [duplicate]

Chapter Opener Image is full page image. I have need to mask half page image and frond-end would like to put some text. I'm expecting the output (see screenshot). How do achieve this in LaTeX/XeLaTeX. ...
5
votes
1answer
9k views

Beamer: change header background color

I have decided to switch from Powerpoint to Beamer, and for my first presentation I'd like to use the metropolis theme, and the same colors as in this goggle slide template: . I tried to do some ...
1
vote
1answer
787 views

setbackgroundtemplate on title page within custom theme file

I am working on a presentation theme for use with conference presentations. Most of our powerpoint themes use some type of background image on the first (title) slide, which I am trying to reproduce. ...
9
votes
1answer
1k views

Background images for code listings

I've been searching around but I can't find any info for adding an image background for my code listing using the listings package. Is there a way to do this?
43
votes
4answers
4k views

Partially coloring cell background with histograms

Excel has a cool feature called "data bar" conditional formatting that allows the user to partially fill a cell background to create histograms based on cell contents. Here is a screen clip example ...
99
votes
3answers
147k views

Changing background color of text in Latex

How can I make change a text background in LaTeX? For example using Latex code \textsc{Extra Curricular Achievements}\ I get However, I want the background of this heading to be changed so that it ...
23
votes
3answers
2k views

Background clip to text Tikz

I'm using Tikz to design the cover of a book and I need to do something like this : I've tried to use some tricks given here but it did nothing. I'm actually using the following code: \makeatletter ...
19
votes
2answers
15k views

How to add background only to title frame and an other only to the last frame?

I just want to add a background only in the beamer title page. I can add it in the .tex as follows: \setbeamertemplate{background canvas}{ \includegraphics[width=\paperwidth,height=\paperheight]{...
9
votes
3answers
2k views

Wrap a text in a triangle

is it possible to wrap a text inside a triangle like the following image?
7
votes
2answers
675 views

Color background for chapter titles which stretches horizontally to the margins

I'm working on my chapter titles. I like them to have a background which stretches to the edge of the page. The drawbacks of the minimal document below are: The TOC also has the background, too. I'd ...
10
votes
1answer
8k views

Change background color for text block

I want to change the style for \quote areas in my entire document. These three lines is what I came up with. Font and margins changes take effect but not the bg color. Only the first char's bg color ...
10
votes
3answers
4k views

TIKZ: only fill 75% of the node-background with color

I want to use some background color on my node, but not for the whole node. Just for 75% of the node. My code is this: \documentclass[tikz,margin=5mm]{standalone} \begin{document} \tikz\node[draw, ...
6
votes
1answer
2k views

ConTeXt: Expand background image to fill page

Background Looking to make a background image scale to fill an entire page. Code I tried changing the dimensions of the page to fill the entire area and then drop in an external image: \...