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













2















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









share|improve this question






















  • See tex.stackexchange.com/a/48502/2388

    – Ulrike Fischer
    May 5 at 21:50















2















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









share|improve this question






















  • See tex.stackexchange.com/a/48502/2388

    – Ulrike Fischer
    May 5 at 21:50













2












2








2








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









share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 5 at 21:43









SAFEXSAFEX

1205




1205












  • 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





See tex.stackexchange.com/a/48502/2388

– Ulrike Fischer
May 5 at 21:50










1 Answer
1






active

oldest

votes


















4














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


enter image description here






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    4














    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


    enter image description here






    share|improve this answer



























      4














      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


      enter image description here






      share|improve this answer

























        4












        4








        4







        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


        enter image description here






        share|improve this answer













        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


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 5 at 22:04









        BernardBernard

        179k779211




        179k779211



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?