# Tag Info

6

To change the colour of a page and text you can use the xcolor package: \usepackage{xcolor} \pagecolor{black} \color{white}

5

Measure the kerning between the word parts. I've added support also for something before the coloring. \documentclass{article} \usepackage{xcolor} \newcommand{\kerncolor}[4]{% % #1 = color, #2 = before, #3 = colored part, #4 = after \sbox0{#2#3}\sbox2{\mbox{#2}\mbox{#3}}% \dimen0=\dimexpr\wd0-\wd2\relax \sbox0{#3#4}\sbox2{\mbox{#3}\mbox{#4}}% \...

4

Yes. Both babel and polyglossia allow you to specify a different set of fonts for each language, and you can pass them different fontspec options. This can include the Color= option. This MWE requires a version of LuaLaTeX from 2020 or later. \documentclass{article} \tracinglostchars=2 \usepackage[english,bidi=basic,layout=sectioning]{babel} \usepackage[...

3

On page 20 of the manual for beamer, you find \documentclass[ 10pt, xcolor={usenames,dvipsnames}, ]{beamer} I recommend this way of typing long list of options to classes, so one has all of them in view and commenting/uncommenting them is easier.

3

\documentclass{article} \usepackage{amsmath,xcolor,environ} \NewEnviron{pmatrixcolor}[1][red]{% \colorlet{currentcolor}{.}% \mathinner{\begingroup\color{#1}\left(\color{currentcolor}% \begin{matrix} \BODY \end{matrix} \color{#1}\right)\endgroup}} \begin{document} \[ \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}...

3

Yeah, the documentation of titlesec isn't always very clear. Luckily at the end it contains the would-be definition of the standard classes, which is \titleformat{\chapter}[display]{\normalfont\LARGE\bfseries} {\chaptertitlename\ \thechapter}{20pt}{\huge} (since you are using the medium option). You can thus introduce the corresponding code in ...

3

With the excellent nicematrix package there is no problem \documentclass{article} \usepackage{nicematrix} \usepackage{booktabs} \begin{document} \begin{NiceTabular}{lccc}[code-before=\cellcolor{blue!30}{3-2,4-2,3-4,4-4}] \toprule[2pt] \Block{1-2} {MulC1} && \Block{1-2}{MulC2} \\ \cmidrule(l){1-2} \cmidrule(l){3-4}...

3

Here are two examples using an empty column between the first two and the last two columns: Instead of lines from the booktabs package, I used regular \hline and \cline commands. In order to symmetrically increase the row heights of the table, I either used the cellspace package or the corresponsing options from the nicematrix package. You can of course ...

2

The behaviour you see can be narrowed down to B\\ Hello B\\\write-1{} Hello the difference between the two lines being the \write-1{}. Which can be dissected even further to B\nobreak\hfil\break \space Hello B\nobreak\hfil\break \write-1{}\space Hello The above will make two very similar horizontal lists (a chunk of text that TeX hasn't yet ...

2

Just guessing (to long for comment). Do you like to have the following table: For it is using part of each table. Also are changed \cmidrules: \documentclass{article} \usepackage{booktabs} \usepackage[table]{xcolor} \begin{document} \begin{table}[b!] \centering \caption{Kern'ed Table.} \label{tab:graphExplanation} \begin{tabular}{&...

2

Here is how to do it with thmtools: \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{amsthm} \usepackage{thmtools} % \theoremstyle{definition} \declaretheorem[numberwithin=section, title=\color{Chartreuse}Definition]{definition} \theoremstyle{plain} \declaretheorem[sharenumber=definition, title=\color{Tomato}Proposition]{proposition} \...

2

To have a node typeset in math mode, use key math content, like this: \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} [2^{42}, math content [A] [A, math content] ] \end{forest} \end{document} Actually, math content is just a wrapper for content format. It puts \ensuremath around the content when typesetting it. But ...

1

The document class beamer load (among others also) package xcolor, so you not need to load it again. If you do, as you show in your question, you get clash between xcolor options. So, in your case just remove second line (with xcolor) in the code: \documentclass[10pt,dvipsnames]{beamer} \usepackage{pgfpages} \usepackage{tikz} \begin{document} \begin{frame}...

1

From the LaTeXiT developer: "At first sight it is a FAQ : (https://chachatelier.fr/latexit/latexit-faq.php?lang=en) My equation seems cropped on the edges, or is not shown at all ; my equation disappears or is not complete when I set it to perfect white. The cropped edges may only be an illusion : try to display the equation at its real size to be sure. ...

1

You can do something like this: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[english, german, french]{babel} \usepackage[dvipsnames]{xcolor} \newcommand{\eng}[1]{\foreignlanguage{english}{\color{red}#1}} \begin{document} Brix trueddel di bat in die Gehoelzenen \eng{This is english} Brix trueddel di bat in die Gehoelzenen \end{document} ...

1

The following changes your code such that for the initial state of your parser it is checked whether the first token is a macro that doesn't take an argument. If that is the case that macro is expanded and the result stored into \pgfparserletter, the contents of which get reinserted by \pgfparserreinsert. This way the first token will be expanded and the ...

1

All you need is the code !{\color{green}\vrule} where you want colored verticals to appear \begin{tabularx}{\textwidth}{lX!{\color{green}\vrule}X!{\color{red}\vrule}X!{\color{blue}\vrule}X!{\color{black}\vrule}X} \hline Schriftgröße h & Höhe der Kleinbuchstaben & Abstand zwischen Zeichen & Abstand zwischen Zeilen & Abstand zwischen ...

1

You can use B2[>orange] to (specially) specify the incoming edge (the arrow) of B2 in orange. See pgfmanual 3.1.6a, sec. 19.6.4 Special Syntax for Options For Incoming and Outgoing Edges. \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{graphdrawing} \usetikzlibrary{graphs} \usegdlibrary{trees} \newcommand{\eg}{\textit{e.g., }} \begin{...

1

You may achieve your formatting objective by issuing suitable \creflabelformat instructions. Observe that the following solution works with the user-level macros of the cleveref package, such as \cref, \labelcref, and \crefrange. It does not work with \ref; I suspect that modifying the TeX/Latex built-in macro \ref, just to make it render its output in color,...

Only top voted, non community-wiki answers of a minimum length are eligible