Tagged Questions
6
votes
2answers
129 views
Highlighting code like one would in a SE post
When posting on SE, users can "highlight" code by using the ` symbol. Is there any way to get that in LaTeX?
My intention is to highlight segments of code or particular functions. To be clear, I'm ...
12
votes
3answers
718 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 ...
9
votes
3answers
509 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
1k 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 ...
5
votes
3answers
2k 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?