hl with custom color and linebreak and mathsoul: broken highlighting with xcolor when using selectcolormodelhighlighting mathBeamer: highlighting aligned math with overlayEnumerated text and formula with background colorHighlighting text with citations and referencesChange selection color in TeXShopColor highlighting text and environments in LyXhighlighting RTL text - ulem with bidi and colorHighlight text and mathematical expressions with colored backgroundHow to remove highlighting color?hf-tikz package: error with custom colors and overlay in beamer classHighlight Text with Background Color
A Latin text with dependency tree
Gift for mentor after his thesis defense?
Do Rabbis admit emotional involvement in their rulings?
Two (probably) equal real numbers which are not proved to be equal?
Examples where existence is harder than evaluation
How can it be that ssh somename works, while nslookup somename does not?
Is it a good idea to copy a trader when investing?
resoldering copper waste pipe
Integral with DiracDelta. Can Mathematica be made to solve this?
What is the Ancient One's mistake?
Was the Highlands Ranch shooting the 115th mass shooting in the US in 2019
How do carbureted and fuel injected engines compare in high altitude?
"Estrontium" on poster
Why did they wait for Quill to arrive?
How do I minimise waste on a flight?
Is it a Munchausen Number?
Was Mohammed the most popular first name for boys born in Berlin in 2018?
Are wands in any sort of book going to be too much like Harry Potter?
What does the "DS" in "DS-..." US visa application forms stand for?
How can I test a shell script in a "safe environment" to avoid harm to my computer?
Identity of a supposed anonymous referee revealed through "Description" of the report
Does Thread.yield() do anything if we have enough processors to service all threads?
How can Sam Wilson fulfill his future role?
if i accidentally leaked my schools ip address and someone d doses my school am i at fault
hl with custom color and linebreak and math
soul: broken highlighting with xcolor when using selectcolormodelhighlighting mathBeamer: highlighting aligned math with overlayEnumerated text and formula with background colorHighlighting text with citations and referencesChange selection color in TeXShopColor highlighting text and environments in LyXhighlighting RTL text - ulem with bidi and colorHighlight text and mathematical expressions with colored backgroundHow to remove highlighting color?hf-tikz package: error with custom colors and overlay in beamer classHighlight Text with Background Color
I want to highly text which contains math in shades of grey with allowing for linebreaks. Based on this excellent post, I tried:
documentclassarticle
usepackagexcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]sethlcolor#1hl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This does not: hlfancygray!60colored $a=b$ math.
enddocument
highlighting
add a comment |
I want to highly text which contains math in shades of grey with allowing for linebreaks. Based on this excellent post, I tried:
documentclassarticle
usepackagexcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]sethlcolor#1hl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This does not: hlfancygray!60colored $a=b$ math.
enddocument
highlighting
See tex.stackexchange.com/a/48502/2388
– Ulrike Fischer
May 5 at 21:50
add a comment |
I want to highly text which contains math in shades of grey with allowing for linebreaks. Based on this excellent post, I tried:
documentclassarticle
usepackagexcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]sethlcolor#1hl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This does not: hlfancygray!60colored $a=b$ math.
enddocument
highlighting
I want to highly text which contains math in shades of grey with allowing for linebreaks. Based on this excellent post, I tried:
documentclassarticle
usepackagexcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]sethlcolor#1hl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This does not: hlfancygray!60colored $a=b$ math.
enddocument
highlighting
highlighting
asked May 5 at 21:43
SAFEXSAFEX
1205
1205
See tex.stackexchange.com/a/48502/2388
– Ulrike Fischer
May 5 at 21:50
add a comment |
See tex.stackexchange.com/a/48502/2388
– Ulrike Fischer
May 5 at 21:50
See tex.stackexchange.com/a/48502/2388
– Ulrike Fischer
May 5 at 21:50
See tex.stackexchange.com/a/48502/2388
– Ulrike Fischer
May 5 at 21:50
add a comment |
1 Answer
1
active
oldest
votes
Here is a solution:
documentclassarticle
usepackage[svgnames]xcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]colorlethlcolor#1sethlcolorhlcolorhl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This also works: hlfancygray!30!Lavendercolored $a=b$ math.
enddocument
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f489354%2fhl-with-custom-color-and-linebreak-and-math%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is a solution:
documentclassarticle
usepackage[svgnames]xcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]colorlethlcolor#1sethlcolorhlcolorhl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This also works: hlfancygray!30!Lavendercolored $a=b$ math.
enddocument
add a comment |
Here is a solution:
documentclassarticle
usepackage[svgnames]xcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]colorlethlcolor#1sethlcolorhlcolorhl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This also works: hlfancygray!30!Lavendercolored $a=b$ math.
enddocument
add a comment |
Here is a solution:
documentclassarticle
usepackage[svgnames]xcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]colorlethlcolor#1sethlcolorhlcolorhl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This also works: hlfancygray!30!Lavendercolored $a=b$ math.
enddocument
Here is a solution:
documentclassarticle
usepackage[svgnames]xcolor
usepackagesoul
newcommandmathcolorbox[2]colorbox#1$displaystyle #2$
newcommandhlfancy[2]colorlethlcolor#1sethlcolorhlcolorhl#2
begindocument
This works: hlfancygraycolored $a=b$ math.
This also works: hlfancygray!30!Lavendercolored $a=b$ math.
enddocument
answered May 5 at 22:04
BernardBernard
179k779211
179k779211
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f489354%2fhl-with-custom-color-and-linebreak-and-math%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
See tex.stackexchange.com/a/48502/2388
– Ulrike Fischer
May 5 at 21:50