# Tag Info

2

I redefine the shaded environment from framed to have a frame, then define a note environment, based on ntheorem with option framed, as a shaded theorem: \documentclass[english]{article} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{geometry}% \usepackage[x11names]{xcolor} \usepackage{fourier, erewhon} \usepackage{lipsum} \usepackage{...

3

Very close to your code fragment, just replaces \fbox by \fcolorbox from the xcolor package: \documentclass{article} \usepackage{framed} \usepackage{xcolor} \usepackage{graphicx} \definecolor{note}{rgb}{1 1 0.5} \makeatletter \renewenvironment{framed}{% \def\FrameCommand##1{\hskip\@totalleftmargin \fboxsep=\FrameSep\fcolorbox{black}{note}{##...

5

Here's a tcolorbox version with sidebyside for the logo. Please note that such a box is not breakable! \documentclass{article} \usepackage[svgnames,dvipsnames,x11names]{xcolor} \usepackage[most]{tcolorbox} \usepackage[tikz]{bclogo} \newtcolorbox{framed}[1][]{ colframe=lightgray, colback=yellow!40!white, enhanced jigsaw, sharp corners, lower ...

1

Adding \usepackage[hidelinks]{hyperref} before \usepackage[numbered]{bookmark} Gets rid of the color boxes. However, my Figure numbers and captions are vertically offset from each other by about half a line...

0


4

For colours you have to use \arrayrulecolor{…} at the beginning of a row. For the thickness of \midrules, you can change the value of\lightrulewidth or change the thickness of a specific rule with the optional argument. Demo: \documentclass{article} \usepackage{booktabs} \usepackage[x11names, table]{xcolor} \setlength\lightrulewidth{0.3pt} \begin{document}...

4

You can use \arrayrulecolor{<colour>} from colortbl to change the colour, and \specialrule{<width>}{<above>}{<below>} to set a rule of specific dimensions: \documentclass{article} \usepackage[table]{xcolor} \usepackage{booktabs} \begin{document} \begin{tabular}{ c c c } \toprule A & B \\ \midrule Q & M ...

0

This is not the full solution yet -- for some reason the ToC color is wrong if the next \section does not have a \subsection etc. The solution uses xcntperchap to track the number of images per section, subsection and subsubsection. If this number is zero, the ToC color is changed. \documentclass[a4paper, hidelinks]{article} \usepackage{xcolor} \...

-1

You can get this effect by alternating row and column color like following: \newcolumntype{g}{>{\columncolor{Gray}}c} \begin{table}[ht] \centering \begin{tabular}{c|g|g|g|g|g|g|g} \hline \rowcolor{white} &col1 &col2 &col3 &col4 & col5 &col6 &col7\\ \hline \rowcolor{white} row1& \ra & \ra & \ra & \ra & \ra &...

7

The warning "pop empty color stack" is usually caused by color stack commands out of order. A typical scenario is the use of low level box set command \setbox instead of LaTeX box set macros (\sbox, environment lrbox, ...). When LaTeX sets a color, then the color reset command is issued after the current group. Therefore LaTeX box macros add a group layer ...

10

Well what it means is that's you've corrupted the colour stack. Unlike font changes colour is not an intrinsic attribute of a tex box, so colour changes are managed by nodes marking the change of state whatsit, Originally it was very hard to maintain colour correctly over page breaks, as the macro package needed to normalise colour in the page headings and ...

1


2

The bug is fixed in KOMA-Script Version 3.21 which is the current version on CTAN, in TeX Live 2016 and in MiKTeX. \documentclass{scrartcl}[2016/06/14] \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{scrlayer-scrpage} \addtokomafont{section}{\color{red}} \addtokomafont{pageheadfoot}{\color{blue}} \begin{document} ... \\...

0

Here is my approach, not even as elegant as other answers, but using TiKZ Matrix. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{gillius2} % Stolen from Bernard answer \renewcommand\familydefault{\sfdefault} \usepackage[dvipsnames]{xcolor} %always declare the xcolor package before tikz \usepackage{tikz} \...

3

Here is a solution, playing with the parameters of booktabs: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{gillius2} \usepackage{geometry} \usepackage[table, x11names]{xcolor} \usepackage{booktabs, hhline} \usepackage{etoolbox} \newcommand\thickvrule[1][DarkOrange2]{\ifblank{#1}{}{\color{#1}}\vrule width 2pt} \...

2

You can create something like the following using the following code. The code is annotated to explain it a bit, but you'll need to look at the manuals for tikzmark and/or TikZ for further details. The latter is very long, but you obviously don't need most of it and the bits used here are simple. \documentclass{article} \usepackage[table]{xcolor} \...

1

use \leavevmode\color so the paragraph starts before the colour, or perhaps better if you do not want line breaking in that first column use c not C for the first column.

1

\documentclass[10pt,a4paper]{article} \usepackage[margin=3cm]{geometry} \usepackage{float} \frenchspacing \usepackage{hyperref} \usepackage{graphicx} \usepackage{paralist} \usepackage{color} \hbadness=10000 %.........................................................% \begin{document} \begin{flushleft} \textcolor[rgb]{0.00,0.00,1.00}{\underline{Anum Naeem ...

2

Let's assume the theorem in question has been defined with a package such as amsthm or ntheorem and that it's been given the "label" thm:abc. Two suggestions: Since you're loading the hyperref package, you could use the command \autoref{thm:abc} to cross-reference the theorem. In addition to loading the hyperref package, you could load the cleveref ...

9

You could shade it if you make the paths closed. This is based on Mark Wibrow's code, as quoted in the question. % answer to http://tex.stackexchange.com/questions/314918/generate-coloured-fancy-delaunay-patterns-in-tikz, modifying code by Mark Wibrow at http://tex.stackexchange.com/a/260652/ \documentclass[tikz,border=10pt,multi,rgb]{standalone} % xcolor ...

1

4


3

You should use \leavevmode before the color command. This will avoid that a page break can occur between the color and the title of the section. \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{scrlayer-scrpage} \addtokomafont{section}{\leavevmode\color{red}} \addtokomafont{pageheadfoot}{\color{...

1

This problem has something to do with different colour models. There was a question somewhere on this side which explains it in detail, but unfortunately I can not find it right now. In short: a workaround is to use a colour defined in RGB for the mixing. \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Frankfurt} \beamertemplatenavigationsymbolsempty ...

1

the problem caused in \foreach, also look at \foreach not behaving in axis environment to solve the problem I use (during using colormaps) \edef\temp{\noexpand\addplot[color of colormap={\l}, solid, mark=none,domain=-1:1,samples=100]{\k*x};} \temp instead of \addplot[color of colormap={\l}, solid, mark=none,domain=-1:1,samples=100]{\k*x}; ...

9

Use two columns instead of one: \documentclass[xcolor=table]{beamer} \usepackage{siunitx,booktabs,multirow} \begin{document} \begin{frame} \centering \begin{tabular}{@{}lrccc@{}} \toprule \multicolumn{2}{@{}c}{\multirow{2}{*}{\huge Parameters}} & \multicolumn{3}{c}{Levels}\\ \cmidrule{3-5} & & 1 & 2 &...

2

To get a clear explanation of why it does not work you probably need to dig deep into beamer. My guess is that \item is broken from the text after it, which should be displayed on the same slide. One way to solve the issue is to keep it together in a command. Below is a version where \citem{color}{text} print a bullet in color followed by text. The starred ...

0

Thanks that works perfectly! I put it in a language define: \lstdefinelanguage{BL233} { basicstyle = \ttfamily, morestring=[b][\color{stringcol}]", showstringspaces=false, literate = *{0}{{\textcolor{numbercol}{\ttfamily 0}}}1 % numbers } Also lets me define a second language expansion that explains the single letter macro commands: eg ...

1

You could use \alert<>{} to specify the slides on which the text should be shown 'alerted'. By default, this happens to be red. For example (and simplifying the code and MWE a bit): \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{amsmath,amsfonts} \usepackage{tikz} \begin{...

2

A basic installation of MiKTeX means that only a part of the complete MiKTeX Distribution is installed. If you need more there is an automatic way, that MiKTeX installs needed missing packages by its own (You have to activate this while installation). Of course you need then a running internet connection to get the missing packages loaded. That is the ...

0

We can only guess what have you got on your computer. There are at least two methods that should help. Find All programs -> MikTeX 2.9 -> Maintenance (Admin) -> Settings -> General -> Reresh FNDB. Copy xcolor.sty to the working path. The first one is more general, but if you quickly need only a few packages to use, the second method may be a temporary ...

1

A preliminary solution, working for the transparency so far only. \documentclass[a4paper,landscape]{article} \usepackage[outline]{contour} \usepackage{xcolor} \usepackage{graphicx} %\usepackage{transparent} \usepackage{background} \usepackage{eso-pic} \newcommand\BackgroundPic{% \includegraphics[% width=\paperwidth, keepaspectratio%, ]{london3.png}...

4

This can be achieved with tcolorbox, one of my favourite packages (;-)) \documentclass{article} \usepackage[most]{tcolorbox} % Define a new box for this \newtcolorbox[auto counter]{MyBox}[2][]{% title={MyBox \thetcbcounter\ #2}, boxsep=1mm, colback=white!40!yellow, breakable, #1 } \usepackage{blindtext} \begin{document} \begin{MyBox}{My nice ...

Top 50 recent answers are included