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

learn more… | top users | synonyms

64
votes
2answers
38k 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 ...
45
votes
3answers
13k 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 ...
40
votes
2answers
38k 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 ...
35
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 ...
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 ...
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 ...
21
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. ...
20
votes
3answers
13k 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 ...
19
votes
3answers
2k views

Scary Font Echo Effect

I'm trying to reproduce a strange font effect that is normally seen in horror movie trailers. In the trailers, a word will usually be flashed on screen, with 'echos' or 'shadows' of the word around ...
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 ...
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 ...
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} ...
15
votes
1answer
1k views

Beamer: How to remove global background image from a certain frame?

I have set a global background image \usebackgroundtemplate { \centering\includegraphics[width=\paperwidth,height=\paperheight{bgs/global.png} } The problem is, I need to replace this with a ...
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?
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 ...
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 ...
14
votes
2answers
416 views

Getting verbatim with soft grey background, as in tex.stackexchange

Given a verbatim as on below, \begin{verbatim} This is an awesome verbatim \end{verbatim} which is displayed with no background on the compiled pdf page : This is an awesome verbatim I would ...
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 ...
13
votes
2answers
247 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 ...
13
votes
2answers
10k 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. ...
13
votes
1answer
2k 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 ...
13
votes
1answer
8k views

How to change white background of an included PDF to transparent

I have an external 100 pages PDF document (not created by pdflatex) that I \includegraphics page-wise into a beamer presentation. The external PDF document employs white as page color, but I need the ...
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}{ ...
12
votes
1answer
418 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
1answer
666 views

Page Bordering with an image?

I want a custom border for my document. I was thinking of doing something like this, creating a border with a graphics tool(only the outer frame) and then placing it in the beginning of the document, ...
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?
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: ...
11
votes
2answers
771 views

Background color in pgfplots that extends beyond the axis of the plot

I am interested in adding a background-color to my pgfplots plot that extends beyond the axis of the plot. See the image bellow for clarification; I am interested in adding a background color such as ...
11
votes
1answer
7k views

Change text background within paragraph (with automatic linebreaks)

How do I change the text color as well as the text background color for e.g. a sentence within a paragraph? I know \textcolor for coloring the font and \colorbox for background coloring ...
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} ...
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} ...
10
votes
2answers
2k views

Abstract with light background color

Is there a way to add a background color to the abstract? I tried various combinations of \colorbox and the \begin{abstract} ... \end{abstract} environment, but nothing worked. I use the current ...
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} ...
9
votes
2answers
606 views

Table with partially colored cells

I convinced my girlfriend to write her thesis with Latex, so now whenever she gets stuck I'm the go to guy. Sadly she has requested something of me which I don't know either. She needs a table in ...
9
votes
1answer
396 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?
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 ...
9
votes
1answer
611 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 ...
9
votes
2answers
4k views

Background image for frame title

Using beamer, how can I insert a background image under the title of each frame? I could insert an image but the result was that the title disappeared because the image is over it. Any ideas?
9
votes
1answer
1k views

Background transparency for PDF/SVG

I am using lua/xe/latex to generate a logo as a PDF and convert it to an SVG using pdf2svg for use on a web page. I would like to have a transparent background for the PDF and SVG. The transparent ...
8
votes
3answers
391 views

Listing background broken by \colorbox and \framebox

I am using listing environment (listings package) with the background parameter. I want to highlight some lines of code and I am using the \colorbox, \makebox and \framebox to achieve this. However, a ...
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 ...
8
votes
3answers
252 views

Two backgrounds in a graph

How can I set two different backgrounds in a graph using pgfplots? In my case, I need a colored background for x<5 and a different background for x>5.
8
votes
1answer
197 views

Multi-Line/Wave Generator Package for LaTeX?

I'm looking at my professors slides now: http://www.math.ucla.edu/~virtanen/40a.1.14s/schedule/lec1.pdf The first slides always have these intricate wave lines. If you Google search for "wave ...
8
votes
1answer
6k 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 ...
8
votes
1answer
453 views

How to put on every page ornament symbol

I would like to use somehow command \eachpageornament to place ornament border on every page of my document. I can do that using that new command on each page, but suppose our document have 200 pages, ...
8
votes
2answers
993 views

Screen friendly/easy on the eyes background

Do you have suggestions on how to make a PDF file easier to read on a computer screen? By this I mean anything which isn't changing the format and layout, as this has been discussed in other questions ...
8
votes
2answers
3k 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} ...
8
votes
2answers
1k views

Exact centering of full-page background image

Here's the situation: I have to use memoir (v3.6j), with geometry (v5.6) and LuaTeX, version beta-0.70.1-2011061410 (rev 4277) in an A5 project which, in the final output have to be 3mm larger from ...
8
votes
2answers
2k views

Background color for fancyvrb

For reasons unclear to me, fancyvrb doesn't have a background option. However, the minted package, which it is based on, has one, which suggests it should not be too difficult to add. The relevant ...
8
votes
3answers
4k views

Highlight environment by setting a gray background color

The title explains everything. I have a theorem with ntheorem and want to highlight it with a gray background color. What would be the easiest way to achieve this?