# Tag Info

## New answers tagged backgrounds

1

Remove the line that patches \@endpart. You do not want an opaque white page color. Then you get the desired result with your code. Here is a another suggestion. In the following example all part pages get a background image that is set by \setpartbackgroundimage{<image>}. To change the image use this command before \part. To get a part page without ...

0

Just found the solution in this post: How to overcome Acrobat Reader error 131 with a pdfLaTeX doc? Adding the following line at the very beginning of the tex file did the trick \pdfminorversion=4

1

In Context you can do this with \framed and its relations. Here's a simple lualatex + Metapost approach that does something similar. \documentclass{article} \usepackage{fontspec} \usepackage[svgnames]{xcolor} \setmainfont{TeX Gyre Pagella} \setsansfont[Scale=MatchLowercase]{TeX Gyre Heros} \usepackage{luamplib} \newcommand\ttag[1]{% \setbox0\hbox{% ...

0

use it this way: \begin{figure}[htb] \centering \includegraphics[width=1.0\columnwidth]{my_picture} \caption{This is my picture.}\label{fig:my_picture} \end{figure} \centering is a switch and not an environment and \caption itself starts a new paragraph. And for width=1.0\columnwidth the \centering is not needed, the image is already of linewidth

3

Yhe code contains two little mistakes. First of all, commas are missing between values. And second RGB model is defined with values between 0 and 255, while rgb model uses values between 0 and 1. Therefore, if \definecolor{MyBackground}{RGB}{1.0000 0.9451 0.6549} is replaced with \definecolor{MyBackground}{rgb}{1.0000,0.9451,0.6549} everything ...

11

Here's an alternative solution with Tikz. Output Code \documentclass[margin=10pt]{standalone} \usepackage{tikz} \definecolor{backg}{RGB}{225,236,244} \definecolor{tagtxt}{RGB}{88,115,159} \newcommand\sotag[1]{% \tikz[baseline]{% \node[anchor=base, text=tagtxt, fill=backg, font=\sffamily, text depth=.5mm] {#1}; }% } \begin{document} ...

4

You can use \texttt{++} instead, can't you? \documentclass{article} \usepackage{tcolorbox} \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} \newtcbox{\mybox}{nobeforeafter,colframe=mycolor,colback=mycolor!10!white,boxrule=0.5pt,arc=4pt, boxsep=-3pt,left=6pt,right=6pt,top=6pt,bottom=6pt,tcbox raise base} \begin{document} \mybox{C\texttt{++}} ...

4

I hope, at least this compiles for the O.P. ;-) \tcboxverb is designed for such small boxes with verbatim content. I've added a myboxstyle TikZ style for this. \documentclass{article} \usepackage[most]{tcolorbox} \definecolor{mycolor}{rgb}{0.122, 0.435, 0.698} ...

10

\documentclass{article} \usepackage[skins]{tcolorbox} \newtcolorbox{tagbox}[1][]{colback=blue!20!white,sharp corners,boxrule=0pt,enhanced jigsaw,nobeforeafter,width=3cm,halign=center,valign=center} \newcommand{\sotagbox}[1]{% \begin{tagbox} #1 \end{tagbox} } \begin{document} \sotagbox{foo} \end{document} Update: With a tikz style and replacing ...

5

You could use \colorbox{red}{text} from the standard latex color package.

2

A simple tabular and 3 pstricks nodes. The text is written first, and a triangle is added around it: \documentclass[x11names]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{ebgaramond} \usepackage{array} \usepackage{pstricks-add} \usepackage{auto-pst-pdf} \psset{unit = 2,dotsize = 2.5pt} \begin{document} \begin{postscript} ...

8

Quick demonstration with TikZ: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture} \node[ draw, align=center, regular polygon, regular polygon sides=3, inner sep=-10pt] { Join \\ Graham \\ as he sets sail\\ \ldots}; \end{tikzpicture} \end{document}

14

It is always appreciated if you show a bit of compilable code that shows the effort you already put into finding a solution. If you have nothing, maybe put at least a bit like: \documentclass{article} \begin{document} \end{document} The following might give you some ideas of how you could solve your problem: shapepar solution: As pointed out in the ...

1

Well, you gave no image that you want to use. So I used an image from package mwe, called example-image. You can use package background for your needs: \usepackage[scale=1.5,opacity=0.5,color=black,placement=bottom]{background} % top bottom center \backgroundsetup{% contents={\includegraphics[width=\textwidth]{example-image}} }% backgroundsetup The ...

Top 50 recent answers are included