In biblatex (and fnpct) the feature of moving around punctuation breaks if using color commands over it ...

How do I find out the mythology and history of my Fortress?

AppleTVs create a chatty alternate WiFi network

Selecting user stories during sprint planning

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

Do wooden building fires get hotter than 600°C?

What is a fractional matching?

What is this clumpy 20-30cm high yellow-flowered plant?

How does light 'choose' between wave and particle behaviour?

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

Generate an RGB colour grid

Performance gap between vector<bool> and array

If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?

Chinese Seal on silk painting - what does it mean?

Significance of Cersei's obsession with elephants?

How could we fake a moon landing now?

What are the diatonic extended chords of C major?

Take 2! Is this homebrew Lady of Pain warlock patron balanced?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

Dating a Former Employee

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

Why do we bend a book to keep it straight?

Is there any word for a place full of confusion?

Did Deadpool rescue all of the X-Force?

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode



In biblatex (and fnpct) the feature of moving around punctuation breaks if using color commands over it



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)












0















Biblatex by default (autopunct = true) moves punctuations around for superscript citation. However, changing the color of the superscript by textcolor or by color (need extra grouping) breaks this feature.
I noticed this even happens also with fnpct.
As can be seen in the MWE all attempts to have a colored superscript after punctuation failed (lines 2 to 4).
Any idea how to solve this?




documentclass{article}
usepackage{xparse}
usepackage{xcolor}
usepackage[
%autopunct = true, %that is the default setting
autocite = superscript,
hyperref=true
]{biblatex}
addbibresource{biblatex-examples.bib}


NewDocumentCommandtestA{m}{%
begingroupcolor{blue}autocite{#1}endgroup%
}%

NewDocumentCommandtestB{m}{%
color{blue}autocite{#1}%
}%


begin{document}

This is a normal test autocite{loh}. Things after.

This is an inline with color test textcolor{blue}{autocite{loh}}. Things after.

This is a macro test testA{loh}. Things after.

This is a macro test testB{loh}. Things after.


end{document}



enter image description here









share



























    0















    Biblatex by default (autopunct = true) moves punctuations around for superscript citation. However, changing the color of the superscript by textcolor or by color (need extra grouping) breaks this feature.
    I noticed this even happens also with fnpct.
    As can be seen in the MWE all attempts to have a colored superscript after punctuation failed (lines 2 to 4).
    Any idea how to solve this?




    documentclass{article}
    usepackage{xparse}
    usepackage{xcolor}
    usepackage[
    %autopunct = true, %that is the default setting
    autocite = superscript,
    hyperref=true
    ]{biblatex}
    addbibresource{biblatex-examples.bib}


    NewDocumentCommandtestA{m}{%
    begingroupcolor{blue}autocite{#1}endgroup%
    }%

    NewDocumentCommandtestB{m}{%
    color{blue}autocite{#1}%
    }%


    begin{document}

    This is a normal test autocite{loh}. Things after.

    This is an inline with color test textcolor{blue}{autocite{loh}}. Things after.

    This is a macro test testA{loh}. Things after.

    This is a macro test testB{loh}. Things after.


    end{document}



    enter image description here









    share

























      0












      0








      0








      Biblatex by default (autopunct = true) moves punctuations around for superscript citation. However, changing the color of the superscript by textcolor or by color (need extra grouping) breaks this feature.
      I noticed this even happens also with fnpct.
      As can be seen in the MWE all attempts to have a colored superscript after punctuation failed (lines 2 to 4).
      Any idea how to solve this?




      documentclass{article}
      usepackage{xparse}
      usepackage{xcolor}
      usepackage[
      %autopunct = true, %that is the default setting
      autocite = superscript,
      hyperref=true
      ]{biblatex}
      addbibresource{biblatex-examples.bib}


      NewDocumentCommandtestA{m}{%
      begingroupcolor{blue}autocite{#1}endgroup%
      }%

      NewDocumentCommandtestB{m}{%
      color{blue}autocite{#1}%
      }%


      begin{document}

      This is a normal test autocite{loh}. Things after.

      This is an inline with color test textcolor{blue}{autocite{loh}}. Things after.

      This is a macro test testA{loh}. Things after.

      This is a macro test testB{loh}. Things after.


      end{document}



      enter image description here









      share














      Biblatex by default (autopunct = true) moves punctuations around for superscript citation. However, changing the color of the superscript by textcolor or by color (need extra grouping) breaks this feature.
      I noticed this even happens also with fnpct.
      As can be seen in the MWE all attempts to have a colored superscript after punctuation failed (lines 2 to 4).
      Any idea how to solve this?




      documentclass{article}
      usepackage{xparse}
      usepackage{xcolor}
      usepackage[
      %autopunct = true, %that is the default setting
      autocite = superscript,
      hyperref=true
      ]{biblatex}
      addbibresource{biblatex-examples.bib}


      NewDocumentCommandtestA{m}{%
      begingroupcolor{blue}autocite{#1}endgroup%
      }%

      NewDocumentCommandtestB{m}{%
      color{blue}autocite{#1}%
      }%


      begin{document}

      This is a normal test autocite{loh}. Things after.

      This is an inline with color test textcolor{blue}{autocite{loh}}. Things after.

      This is a macro test testA{loh}. Things after.

      This is a macro test testB{loh}. Things after.


      end{document}



      enter image description here







      biblatex color punctuation fnpct





      share












      share










      share



      share










      asked 40 secs ago









      ShahryarShahryar

      14514




      14514






















          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%2f485549%2fin-biblatex-and-fnpct-the-feature-of-moving-around-punctuation-breaks-if-using%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%2f485549%2fin-biblatex-and-fnpct-the-feature-of-moving-around-punctuation-breaks-if-using%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

          El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...

          Castillo d'Acher Características Menú de navegación