How to highlight text containing citation and figure referencing?

What is the industry term for house wiring diagrams?

How to politely refuse in-office gym instructor for steroids and protein

Book where a space ship journeys to the center of the galaxy to find all the stars had gone supernova

Calculate of total length of edges in Voronoi diagram

What does an unprocessed RAW file look like?

How do you funnel food off a cutting board?

The No-Straight Maze

Memory usage: #define vs. static const for uint8_t

Why is 'diphthong' pronounced the way it is?

Do authors have to be politically correct in article-writing?

Why zero tolerance on nudity in space?

Is there a file that always exists and a 'normal' user can't lstat it?

What to do with threats of blacklisting?

Does diversity provide anything that meritocracy does not?

What's the oldest plausible frozen specimen for a Jurassic Park style story-line?

What game did these black and yellow dice come from?

Subsurf on a crown. How can I smooth some edges and keep others sharp?

How would an AI self awareness kill switch work?

Is there a way to not have to poll the UART of an AVR?

Square Root Distance from Integers

What is the wife of a henpecked husband called?

Should I cite R or RStudio?

After checking in online, how do I know whether I need to go show my passport at airport check-in?

Does Skippy chunky peanut butter contain trans fat?



How to highlight text containing citation and figure referencing?














0















I am trying to highlight a text with reference. Without references, the below works fine. Could anyone know how to handle the highlighting the text containing citation and figure references? MWE is given below. Any help is highly appreciated.



documentclass{article}

usepackage{xcolor}
usepackage{soul}

newcommand{hlc}[2][yellow]{{%
colorlet{foo}{#1}%
sethlcolor{foo}hl{#2}}%
}



begin{document}

hlc[pink]{hello given by mattsson et al cite{mattsson1998physical}}

hlc[cyan!50]{hello}

end{document}








share



























    0















    I am trying to highlight a text with reference. Without references, the below works fine. Could anyone know how to handle the highlighting the text containing citation and figure references? MWE is given below. Any help is highly appreciated.



    documentclass{article}

    usepackage{xcolor}
    usepackage{soul}

    newcommand{hlc}[2][yellow]{{%
    colorlet{foo}{#1}%
    sethlcolor{foo}hl{#2}}%
    }



    begin{document}

    hlc[pink]{hello given by mattsson et al cite{mattsson1998physical}}

    hlc[cyan!50]{hello}

    end{document}








    share

























      0












      0








      0








      I am trying to highlight a text with reference. Without references, the below works fine. Could anyone know how to handle the highlighting the text containing citation and figure references? MWE is given below. Any help is highly appreciated.



      documentclass{article}

      usepackage{xcolor}
      usepackage{soul}

      newcommand{hlc}[2][yellow]{{%
      colorlet{foo}{#1}%
      sethlcolor{foo}hl{#2}}%
      }



      begin{document}

      hlc[pink]{hello given by mattsson et al cite{mattsson1998physical}}

      hlc[cyan!50]{hello}

      end{document}








      share














      I am trying to highlight a text with reference. Without references, the below works fine. Could anyone know how to handle the highlighting the text containing citation and figure references? MWE is given below. Any help is highly appreciated.



      documentclass{article}

      usepackage{xcolor}
      usepackage{soul}

      newcommand{hlc}[2][yellow]{{%
      colorlet{foo}{#1}%
      sethlcolor{foo}hl{#2}}%
      }



      begin{document}

      hlc[pink]{hello given by mattsson et al cite{mattsson1998physical}}

      hlc[cyan!50]{hello}

      end{document}






      color highlighting soul





      share












      share










      share



      share










      asked 1 min ago









      KGVKGV

      111




      111






















          0






          active

          oldest

          votes











          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%2f476718%2fhow-to-highlight-text-containing-citation-and-figure-referencing%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f476718%2fhow-to-highlight-text-containing-citation-and-figure-referencing%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

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...