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

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form