{backgrounds} concerns different ways and circumstances where colour or images constitute a backdrop to typography

learn more… | top users | synonyms

16
votes
4answers
1k 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} ...
30
votes
3answers
10k 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 ...
64
votes
2answers
39k 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 ...
40
votes
2answers
39k views

How to insert a background image in a beamer frame?

Apologies in advance if my question is very basic. I am still learning my beamer skills, so please bear with me. I want to insert a background image in a beamer frame and use this "frame" as a beamer ...
47
votes
3answers
14k 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 ...
22
votes
3answers
6k 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. ...
22
votes
2answers
19k 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 ...
10
votes
2answers
1k 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} ...
6
votes
3answers
6k 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 ...
5
votes
2answers
2k 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 ...
20
votes
3answers
14k views

Techniques for embedding images with transparent backgrounds in LaTeX

I am trying to embed an image with a transparent background in my LaTeX poster. However a quick google search has taught me that it is not possible to do so. However I intend to know any clever ...
14
votes
3answers
8k 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?
13
votes
1answer
3k 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 ...
6
votes
1answer
2k 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 ...
9
votes
1answer
411 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?
14
votes
2answers
5k 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 ...
12
votes
1answer
436 views

LaTeX class for creating markdown style output

I am a long time user of LaTeX. I have found, however, that using Markdown gives me a document which is "easier on the eyes". LaTeX often looks like textbooks. Does anyone know LaTeX classes (or ...
12
votes
2answers
8k 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}{ ...
17
votes
3answers
3k views

Color box with rounded corners around a fragment of a formula

Is there any way in TeX to highlight some part of a formula with a box having colored background and rounded corners? At present, I need to export such formulas into an image, add those highlight ...
5
votes
1answer
11k 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 ...
7
votes
4answers
3k 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 ...
11
votes
1answer
6k 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
4answers
3k views

Fitting background in Tikz

I need that the grey background also includes the labels T1 and T2 \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri} ...
11
votes
2answers
1k views

Transparent background for mdframed environment?

Is it possible to specify a transparent background colour for the mdframed environment, so that anything which might be underneath will be visible?
10
votes
1answer
668 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 ...
10
votes
3answers
1k views

Enumerated text and formula with background color

I want to have an enumeration with text and formulas with a background color, but \colorbox does not work, here's my code: \documentclass{book} \usepackage{xcolor} \usepackage{shadethm} ...
3
votes
1answer
4k 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 ...
6
votes
2answers
536 views

Highlight \verb in inline text

I'm new in LaTeX and I'm searching for solution to highlight verbatim text inside paragraph (for example, it is like on this page, where code is highlighted). Can anyone help me with this? Let say, ...
2
votes
1answer
2k views

Background color in Verbatim

I've to use the yellow background for data values in the following code. \usepackage \begin{Verbatim}[commandchars=\\\{\}] \color{blue}DATA \color{black}Heart; \color{blue}INPUT \color{black}X Y @@; ...
1
vote
1answer
453 views

lstaddons: Dynamic linewidth calculation

I use the package called "lstaddons" (creator, initial question) to get colored line backgrounds on listings. I want to color the whole line to the frame. What I miss there is a dynamic calculation ...
3
votes
1answer
2k views

Using opacity in tikz and the background package

I'm trying to take a given figure, make it a little whiter and put the result in the middle of the page under the text, using the package background. \documentclass[12pt]{article} ...
1
vote
2answers
74 views

How to clear the background of just the current page?

eso-pic provides \AddToShipoutPictureBG to add content to the background at every page and \AddToShipoutPictureBG* to add it only to the current page. \ClearShipoutPicture clears all the content. But ...
36
votes
2answers
1k views

Partially coloring cell background to fake histogram

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 ...
14
votes
2answers
3k 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 ...
19
votes
1answer
2k 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 ...
8
votes
1answer
1k views

Background image for pgfplots chart

Following up on the answer to proper tool for charts in tex I've built this picture to simulate/replace a scanned image from a newspaper: I've tried several ways to put the background newsprint ...
14
votes
2answers
259 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
2answers
9k 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 ...
7
votes
2answers
237 views

Randomly assign color to background in the PDF whenever page is turned

Is it possible to change the background color of a Beamer presentation in the PDF in such way, that whenever I switch a page, the color is switched as well? Note that I do not seek a solution to ...
8
votes
4answers
3k 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 ...
4
votes
2answers
392 views

Alternating Background Image for different chapters in Memoir

I have used a background image throughout my book. The code I used evolved from this question and answer (thanks to @GonzaloMedina): "Margin vertical rule on outside margin of twosided memoir" My ...
9
votes
2answers
1k 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 ...
7
votes
1answer
1k 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 ...
6
votes
1answer
220 views

How to span the background graphic across verso and recto pages in ConTeXt?

I want to place background images behind all of my part titles, with the image spanning across two pages, e.g.: ___________ ___________ | | | | Part 1 | | | Birds of ...
5
votes
1answer
146 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} ...
4
votes
1answer
86 views

How to include Big Draft text as background only for imported document part

I want to include a big "Draft" text on the background in some files imported by the import package in this way: \subimport{}{test.text} How can you include such a big "Draft" text to the ...
4
votes
2answers
587 views

PSTricks -> How can I compile a graph/figure to obtain an PNG/JPG with background transparent?

How to obtain this graph in a PNG/GIF/JPG graph with transparent background? \documentclass[12pt,a4paper,x11names]{report} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
4
votes
3answers
2k views

How to draw star in TikZ background

I draw shapes on background via pgfonlayer \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} \begin{pgfonlayer}{background} ...
3
votes
2answers
1k views

Using the 'wallpaper' package to put a background on all but one page

I'm placing a background in my report document, using the LaTeX wallpaper package. However, I am not able to easily place a document on all pages except for one (the title page). I am using ...
3
votes
2answers
1k views

rectangles in beamer background canvas

I am trying to create a custom title page in Beamer, and I've tried many things, but I'm just helpless with all the solutions I found. I would like to create only in the title page, the following ...