# Tag Info

1

0

Without hooks (for older installations) you can copy and combine the definitions of frenchlinks and colorlinks from the source file hyperref.sty: \documentclass{article} \usepackage{xcolor} \usepackage[citecolor=gray]{hyperref} \begin{document} \makeatletter \def\@pdfborder{0 0 0}% \let\@pdfborderstyle\@empty \def\Hy@colorlink#1{\begingroup\HyColor@UseColor#...

1

frenchlinks replaces colors and that is quite hard coded in hyperref. Imho the option is rather odd. With the new pdfmanagement you can do it as there are a number of hooks: \RequirePackage{pdfmanagement-testphase} \DeclareDocumentMetadata{} \documentclass{article} \usepackage{xcolor} \usepackage{hyperref} \hypersetup{colorlinks=true} \ActivateGenericHook{...

0

In classicthesis move the xcolor definition into the classicthesis-config file before the configuration of pgf/tikz. That should solve it

2

If you want to play with some opacity, here's a solution: \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ plana/.style={pink,opacity=0.8}, planb/.style={purple!50,opacity=0.8}, arr/.style={-Stealth, line width=2pt} ] \def\L{6} \def\H{4} \def\S{1} ...

2

\documentclass[border=20, tikz]{standalone} \usetikzlibrary{3d} \begin{document} \begin{tikzpicture}[>=latex] \fill [canvas is zx plane at y=0, gray] (-2, 0) rectangle (0, 3); \fill [yellow] (0, -1) rectangle (3, 1); \fill [canvas is zx plane at y=0, gray] (0, 0) rectangle (2, 3); \draw [canvas is zx plane at ...

2

For tikz and packages based on it (and pgfkeys), the following newly defined pgfkeys key handler /.raw color may help. Usages: \draw[<color>] -> \draw[.raw color={<color model>}{<color spec>}] key=<color> -> key/.raw color={<color model>}{<color spec>} \documentclass{article} \usepackage{tikz} \usepackage{tcolorbox}...

2

This is not a fancyhdr problem. As @daleif notes, you should not put the \color command in the \chaptermark or \sectionmark. What I think that happens, is that the \color command that is written in a \mark in TeX's output leaks into the rest of the output. Update: after some experimenting I found that the problem is caused by the \color command inside the \...

0

Based on this post (from famous user samcarter), I successfully used the following approach to use a custom color in moderncv. \documentclass{moderncv} \moderncvstyle{casual} % or "banking", "classic", "oldstyle" for example. "causal is the default". \name{John}{Doe} \title{Test Title} %% Important code starts. \...

2

\documentclass{article} \usepackage{soul,xcolor} \usepackage{hyperref} \begin{document} {\setulcolor{red}\ul{Package Pomodoro CRAN:}} {\setulcolor{red}\ul{\mbox{\href{https://cran.r-project.org/web/packages/pomodoro/index.html}{WANNA UNDERLINE THIS BLACK TEXT WITH RED:}}}} \end{document} And no, you can't avoid the \mbox. soul won't like ...

1

As I said, it also can be done with very simple tools: xcolor, cellspace and a tabular environment: \documentclass[12pt]{article} \usepackage[svgnames, table]{xcolor} \usepackage{cellspace} \setlength{\cellspacetoplimit}{18pt} \setlength{\cellspacebottomlimit}{18pt} \begin{document} {\centering \Huge\bfseries \begin{tabular}{llSl} \color{PowderBlue} TEXT \\...

4

At least the following dirty code works for tabularray package :-) \documentclass{article} \usepackage{xcolor} \usepackage{etoolbox} \usepackage{tikz} \usepackage{tabularray} \makeatletter \ExplSyntaxOn \pretocmd{\@declaredcolor}{\my@hack@color{#1}}{}{} \def\my@hack@color#1{\@ifundefined{\string\color@#1}{\MyDefineColor{#1}}{\relax}} \...

0

TeX programming is hard and not convenient to customize, like @, \edef, \edef\@tempa {\kern \wd\z@ &\kern -\the\wd\z@ \fboxsep ^^ I like TikZ more! TikZ has very natural syntax. By a suggestion from this answer of Andrew Stacey, the below is a way of decorating some math formulae with the tikzmark library of TikZ. The advantage is that we can utilize ...

0

You can set option numbers=noenddot to get rid of the dot after the numbers. To change the color of the part number use \addtokomafont{partnumber}{\color{cyan}} Example: \documentclass[chapterprefix=true,numbers=noenddot]{scrbook} \setcounter{secnumdepth}{\chapternumdepth} \usepackage{xcolor} \usepackage{graphicx} \usepackage{geometry} \usepackage[T1]{...

6

Consider using \rule instead of a math minus -. It's defined as \rule[<raise>]{<width>}{<thickness>}. \documentclass{article} \usepackage{xcolor} \begin{document} \textcolor{blue}{$-$} \textcolor{blue}{\rule[.5ex]{1em}{.4pt}} \textcolor{blue}{\rule[.5ex]{1em}{1pt}} \textcolor{blue}{\rule[.5ex]{1em}{2pt}} \end{document}

1

Replacing two occurrences of \columnwidth with \textwidth in the redefinition of \@xfloat when it is called by a starred float environment, does the work. BTW your table is too wide. Package showframe is loaded just to show page frame(s). \documentclass[11pt,a4paper,twocolumn,english]{article} \usepackage{lipsum} \usepackage{xcolor} \usepackage{showframe} \...

2

Could you consider using a matrix? This way you can fix the color for every row with independence of the matrix general color. The syntax for \mystring keeps \\ between rows. You can select the color for a row with a row x/.style on the matrix options or fix it inside the list or rows like in \mystringwithcolorsinside. A TiKZ matrix finishes with \\. I've ...

1

You should use \textcolor not \color here. Actually you are already using the syntax of \textcolor as \color{blue} does npt take an argument. \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{classic} \moderncvcolor{black} \usepackage[scale=0.75]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \setlength{...

0

If you want to color the background of a TikZ image you can use backgrounds library by specifying [background rectangle/.style={fill=yellow}, show background rectangle] as picture style, for example. \documentclass[tikz, border=7mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc, backgrounds} \begin{document} \begin{tikzpicture}[background rectangle/....

0

It doesn't work because tikzpicture is not a float. If you wrap your tikzpicture in a \begin{figure}...\end{figure} float, and add the \makeatletter code, it works as your prior example. \documentclass{article} \usepackage{tikz} \makeatletter \def\foo#1\normalcolor\vbox\bgroup#2!!{% \def\@xfloat ##1[##2]{#1% \normalcolor \hbox\bgroup{\color{yellow}\...

2

As so many others, don't put formatting into data holder macros, it never belongs there. Add the formatting to the macro that actually typesets the data. Looking at the source of amsarty.cls we can deduce that within \maketitle we go through \@maketitle and end up typesetting the title via \@settitle, which is defined as \def\@settitle{\begin{center}% \...

3

The next release of mathtools will contain a \Aboxed macro generator to generate \Aboxed like macros but with different box commands.

1

Looks like the command: \renewcommand*{\partformat}{\color{cyan}\partname~\thepart} includes the partname (as suggested by @Imran), adds the color to it and also gets rid of the autodot feature. Now all three problems are solved.

1

Apparently, I found a solution for the first problem: Using \addtokomafont (insead of \setkomafont) added the cyan color without altering the rest of the attributes. Now, only the "prefix" part needs to be solved

1

You essentially have to understand the structure of the title construction. The \title (or \@title) typically contains only a single element, so colouring it is fairly easy/straight forward. However, since the \author (or \@author) could include multiple members/elements, it's set by default inside a tabular; this allows you to use \\ to separate authors. ...

1

Your problem is simple. I'm surprised nobody has answered yet. You already have a \draw and the 3 points you need. Just divide the original \draw in two and add the color and line width you like to the right half. \documentclass[12pt]{article} \usepackage[a4paper,top=1 in,bottom=1 in,left=0.7 in,right=0.7 in]{geometry} \usepackage[utf8]{inputenc} \usepackage[...

0

Starting from your previous question Fancy Chapter Style - Custom, I've done a layout similar to your image. \documentclass[12pt]{book} \usepackage{geometry} \usepackage{miama} \usepackage[T1]{fontenc} \usepackage{fmtcount} \usepackage{lipsum}% for dummy text \usepackage[inline]{showlabels}% to show the labels \renewcommand{\showlabelfont}{\small\ttfamily\...

2

You can add content to the BackGround using eso-pic and condition on whether the page number is odd/even. The code below add little "thumbs" to the edge of the paper. You can adjust the placement and size. \documentclass[twoside]{memoir} \usepackage{lipsum,eso-pic} \begin{document} \chapter{First chapter} \lipsum \cleardoublepage \...

2

As leandriis commented, it's better to use a package for tabular or arrays to draw the desired scheme. But with tcolorbox you can also emulate tabulars. This is an example with a tcbitemize. \documentclass{article} \usepackage[most]{tcolorbox} \begin{document} \begin{tcbitemize}[raster columns=4, raster column skip=-0.5mm, raster row skip=-0.5mm, raster ...

4

Under the assumption that the image you included in your quesion is a sketch of the expected output, I wouldn't recommend tcolorbox to reproduce that. Instead a package dedicated to tables, such as tabularray or nicematrix should come in handy: \documentclass{article} \usepackage{xcolor} \usepackage{tabularray} \definecolor{myblue}{RGB}{46, 116, 181} \...

5

What about fontawesome5's \faOrcid icon? \documentclass[a4paper,10pt]{article} \usepackage[T1]{fontenc} \usepackage{geometry} \geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm} \usepackage{pifont} \usepackage{sectsty} \usepackage{graphicx} \usepackage{amsmath,amsfonts,amsthm} \usepackage{xcolor} \definecolor{citeblue}{rgb}{0.00,0.00,0.60} %\usepackage[...

2

With tcolorbox \documentclass{article} \usepackage{tcolorbox, xcolor} \usepackage{lipsum} \begin{document} \begin{tcolorbox}[colback=blue!15, sharp corners, boxrule=0pt, leftrule=1mm, colframe=blue] \lipsum[1] \end{tcolorbox} \end{document}

3

Here is a way to reproduce the second image with ntheorem, mdframed and xcolor: \documentclass[11pt]{book} % \usepackage[T1]{fontenc} \usepackage[svgnames]{xcolor}% \usepackage{amssymb,amsmath} %\usepackage{framed} \usepackage[amsmath,framed]{ntheorem} \usepackage[ntheorem]{mdframed} \theoremheaderfont{\sffamily\bfseries} \theorembodyfont{\normalfont\upshape}...

Top 50 recent answers are included