fnpct autocite causes whitespace problems with csquotes blockcquote












2














In the following example, using fnpct for the biblatex autocite command causes unwanted whitespace when a period occurs directly after the the quote.



documentclass{article}
usepackage[ngerman]{babel}

usepackage{filecontents}
begin{filecontents}{jobname.bib}
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
}
@book{goossens93,
author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
title = "The LaTeX Companion",
year = "1993",
}
end{filecontents}

usepackage{csquotes}
usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

SetCiteCommand{autocite} % used by csquotes

usepackage{fnpct}
AdaptNoteOptautocitemultfootcite

bibliography{jobname}
begin{document}
null
vfill
blockcquote[see][123]{greenwade93}{Famous quote}. But the period causes an unwanted space to appear.
blockcquote[see][123]{greenwade93}{Which is fixed by moving the period inside the quotation.} See?

The problem is caused by texttt{fnpct}.

texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{greenwade93}autocite{goossens93}
end{document}


enter image description here



Is it possible to configure fnpct to not add space between quotation mark and period?










share|improve this question





























    2














    In the following example, using fnpct for the biblatex autocite command causes unwanted whitespace when a period occurs directly after the the quote.



    documentclass{article}
    usepackage[ngerman]{babel}

    usepackage{filecontents}
    begin{filecontents}{jobname.bib}
    @article{greenwade93,
    author = "George D. Greenwade",
    title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
    year = "1993",
    journal = "TUGBoat",
    }
    @book{goossens93,
    author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title = "The LaTeX Companion",
    year = "1993",
    }
    end{filecontents}

    usepackage{csquotes}
    usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

    SetCiteCommand{autocite} % used by csquotes

    usepackage{fnpct}
    AdaptNoteOptautocitemultfootcite

    bibliography{jobname}
    begin{document}
    null
    vfill
    blockcquote[see][123]{greenwade93}{Famous quote}. But the period causes an unwanted space to appear.
    blockcquote[see][123]{greenwade93}{Which is fixed by moving the period inside the quotation.} See?

    The problem is caused by texttt{fnpct}.

    texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{greenwade93}autocite{goossens93}
    end{document}


    enter image description here



    Is it possible to configure fnpct to not add space between quotation mark and period?










    share|improve this question



























      2












      2








      2







      In the following example, using fnpct for the biblatex autocite command causes unwanted whitespace when a period occurs directly after the the quote.



      documentclass{article}
      usepackage[ngerman]{babel}

      usepackage{filecontents}
      begin{filecontents}{jobname.bib}
      @article{greenwade93,
      author = "George D. Greenwade",
      title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
      year = "1993",
      journal = "TUGBoat",
      }
      @book{goossens93,
      author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
      title = "The LaTeX Companion",
      year = "1993",
      }
      end{filecontents}

      usepackage{csquotes}
      usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

      SetCiteCommand{autocite} % used by csquotes

      usepackage{fnpct}
      AdaptNoteOptautocitemultfootcite

      bibliography{jobname}
      begin{document}
      null
      vfill
      blockcquote[see][123]{greenwade93}{Famous quote}. But the period causes an unwanted space to appear.
      blockcquote[see][123]{greenwade93}{Which is fixed by moving the period inside the quotation.} See?

      The problem is caused by texttt{fnpct}.

      texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{greenwade93}autocite{goossens93}
      end{document}


      enter image description here



      Is it possible to configure fnpct to not add space between quotation mark and period?










      share|improve this question















      In the following example, using fnpct for the biblatex autocite command causes unwanted whitespace when a period occurs directly after the the quote.



      documentclass{article}
      usepackage[ngerman]{babel}

      usepackage{filecontents}
      begin{filecontents}{jobname.bib}
      @article{greenwade93,
      author = "George D. Greenwade",
      title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
      year = "1993",
      journal = "TUGBoat",
      }
      @book{goossens93,
      author = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
      title = "The LaTeX Companion",
      year = "1993",
      }
      end{filecontents}

      usepackage{csquotes}
      usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

      SetCiteCommand{autocite} % used by csquotes

      usepackage{fnpct}
      AdaptNoteOptautocitemultfootcite

      bibliography{jobname}
      begin{document}
      null
      vfill
      blockcquote[see][123]{greenwade93}{Famous quote}. But the period causes an unwanted space to appear.
      blockcquote[see][123]{greenwade93}{Which is fixed by moving the period inside the quotation.} See?

      The problem is caused by texttt{fnpct}.

      texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{greenwade93}autocite{goossens93}
      end{document}


      enter image description here



      Is it possible to configure fnpct to not add space between quotation mark and period?







      biblatex csquotes fnpct






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 27 '18 at 17:19

























      asked Dec 27 '18 at 16:49









      Stefan

      1154




      1154






















          1 Answer
          1






          active

          oldest

          votes


















          3














          As far as I can see the issue here is that handing control of autocite over to fnpct destroys autocite's ability to remove preceding whitespace. With biblatex's definition



          Lorem autocite{sigfridsson}.


          and



          Loremautocite{sigfridsson}.


          produce the same output since autocite issues unspace. But as soon as fnpct takes the reins, those two lines behave differently.



          Usually this is not going to be much of a problem since you probably never leave a space before footnote or autocite anyway. But with the default settings of csquotes commands like blockcquote leave a space before they call autocite (assuming the usual definition of biblatex's citation commands that make sense: many commands need a space in front of the ...cite so they don't stick to the text before and footcite, autocite and friends can deal with preceding space just fine). You can explicitly tell csquotes not to leave a space before calling the citation command by redefining mkccitation, cf. also page 30 of the csquotes documentation,



          renewcommand{mkccitation}[1]{#1}


          The full MWE



          documentclass{article}
          usepackage[ngerman]{babel}
          usepackage{csquotes}
          usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

          SetCiteCommand{autocite}
          renewcommand{mkccitation}[1]{#1}

          usepackage{fnpct}
          AdaptNoteOptautocitemultfootcite

          addbibresource{biblatex-examples.bib}
          begin{document}
          null
          vfill
          blockcquote[see][123]{sigfridsson}{Famous quote}. But the period causes an unwanted space to appear.
          blockcquote[see][123]{sigfridsson}{Which is fixed by moving the period inside the quotation.} See?

          The problem is caused by texttt{fnpct}.

          texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{sigfridsson}autocite{sigfridsson}

          Lorem autocite{sigfridsson}.

          Loremautocite{sigfridsson}.
          end{document}


          then gives the expected output.



          Output of the example. The <code>fnpct</code>-controlled footnotes don't suppress previous space. <code>blockcquote</code> displays as intended again.



          I'm still having trouble uploading output pictures. Sorry. If you would like to add images of the result, feel free to do so. See https://v1.overleaf.com/read/hgvsffpjwjbt for a demo.






          share|improve this answer























          • Thank you @moewe for clarifying what's happening here
            – Stefan
            Dec 28 '18 at 11:58










          • @Stefan Thanks for the picture edit.
            – moewe
            Dec 28 '18 at 12:27











          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%2f467561%2ffnpct-autocite-causes-whitespace-problems-with-csquotes-blockcquote%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









          3














          As far as I can see the issue here is that handing control of autocite over to fnpct destroys autocite's ability to remove preceding whitespace. With biblatex's definition



          Lorem autocite{sigfridsson}.


          and



          Loremautocite{sigfridsson}.


          produce the same output since autocite issues unspace. But as soon as fnpct takes the reins, those two lines behave differently.



          Usually this is not going to be much of a problem since you probably never leave a space before footnote or autocite anyway. But with the default settings of csquotes commands like blockcquote leave a space before they call autocite (assuming the usual definition of biblatex's citation commands that make sense: many commands need a space in front of the ...cite so they don't stick to the text before and footcite, autocite and friends can deal with preceding space just fine). You can explicitly tell csquotes not to leave a space before calling the citation command by redefining mkccitation, cf. also page 30 of the csquotes documentation,



          renewcommand{mkccitation}[1]{#1}


          The full MWE



          documentclass{article}
          usepackage[ngerman]{babel}
          usepackage{csquotes}
          usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

          SetCiteCommand{autocite}
          renewcommand{mkccitation}[1]{#1}

          usepackage{fnpct}
          AdaptNoteOptautocitemultfootcite

          addbibresource{biblatex-examples.bib}
          begin{document}
          null
          vfill
          blockcquote[see][123]{sigfridsson}{Famous quote}. But the period causes an unwanted space to appear.
          blockcquote[see][123]{sigfridsson}{Which is fixed by moving the period inside the quotation.} See?

          The problem is caused by texttt{fnpct}.

          texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{sigfridsson}autocite{sigfridsson}

          Lorem autocite{sigfridsson}.

          Loremautocite{sigfridsson}.
          end{document}


          then gives the expected output.



          Output of the example. The <code>fnpct</code>-controlled footnotes don't suppress previous space. <code>blockcquote</code> displays as intended again.



          I'm still having trouble uploading output pictures. Sorry. If you would like to add images of the result, feel free to do so. See https://v1.overleaf.com/read/hgvsffpjwjbt for a demo.






          share|improve this answer























          • Thank you @moewe for clarifying what's happening here
            – Stefan
            Dec 28 '18 at 11:58










          • @Stefan Thanks for the picture edit.
            – moewe
            Dec 28 '18 at 12:27
















          3














          As far as I can see the issue here is that handing control of autocite over to fnpct destroys autocite's ability to remove preceding whitespace. With biblatex's definition



          Lorem autocite{sigfridsson}.


          and



          Loremautocite{sigfridsson}.


          produce the same output since autocite issues unspace. But as soon as fnpct takes the reins, those two lines behave differently.



          Usually this is not going to be much of a problem since you probably never leave a space before footnote or autocite anyway. But with the default settings of csquotes commands like blockcquote leave a space before they call autocite (assuming the usual definition of biblatex's citation commands that make sense: many commands need a space in front of the ...cite so they don't stick to the text before and footcite, autocite and friends can deal with preceding space just fine). You can explicitly tell csquotes not to leave a space before calling the citation command by redefining mkccitation, cf. also page 30 of the csquotes documentation,



          renewcommand{mkccitation}[1]{#1}


          The full MWE



          documentclass{article}
          usepackage[ngerman]{babel}
          usepackage{csquotes}
          usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

          SetCiteCommand{autocite}
          renewcommand{mkccitation}[1]{#1}

          usepackage{fnpct}
          AdaptNoteOptautocitemultfootcite

          addbibresource{biblatex-examples.bib}
          begin{document}
          null
          vfill
          blockcquote[see][123]{sigfridsson}{Famous quote}. But the period causes an unwanted space to appear.
          blockcquote[see][123]{sigfridsson}{Which is fixed by moving the period inside the quotation.} See?

          The problem is caused by texttt{fnpct}.

          texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{sigfridsson}autocite{sigfridsson}

          Lorem autocite{sigfridsson}.

          Loremautocite{sigfridsson}.
          end{document}


          then gives the expected output.



          Output of the example. The <code>fnpct</code>-controlled footnotes don't suppress previous space. <code>blockcquote</code> displays as intended again.



          I'm still having trouble uploading output pictures. Sorry. If you would like to add images of the result, feel free to do so. See https://v1.overleaf.com/read/hgvsffpjwjbt for a demo.






          share|improve this answer























          • Thank you @moewe for clarifying what's happening here
            – Stefan
            Dec 28 '18 at 11:58










          • @Stefan Thanks for the picture edit.
            – moewe
            Dec 28 '18 at 12:27














          3












          3








          3






          As far as I can see the issue here is that handing control of autocite over to fnpct destroys autocite's ability to remove preceding whitespace. With biblatex's definition



          Lorem autocite{sigfridsson}.


          and



          Loremautocite{sigfridsson}.


          produce the same output since autocite issues unspace. But as soon as fnpct takes the reins, those two lines behave differently.



          Usually this is not going to be much of a problem since you probably never leave a space before footnote or autocite anyway. But with the default settings of csquotes commands like blockcquote leave a space before they call autocite (assuming the usual definition of biblatex's citation commands that make sense: many commands need a space in front of the ...cite so they don't stick to the text before and footcite, autocite and friends can deal with preceding space just fine). You can explicitly tell csquotes not to leave a space before calling the citation command by redefining mkccitation, cf. also page 30 of the csquotes documentation,



          renewcommand{mkccitation}[1]{#1}


          The full MWE



          documentclass{article}
          usepackage[ngerman]{babel}
          usepackage{csquotes}
          usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

          SetCiteCommand{autocite}
          renewcommand{mkccitation}[1]{#1}

          usepackage{fnpct}
          AdaptNoteOptautocitemultfootcite

          addbibresource{biblatex-examples.bib}
          begin{document}
          null
          vfill
          blockcquote[see][123]{sigfridsson}{Famous quote}. But the period causes an unwanted space to appear.
          blockcquote[see][123]{sigfridsson}{Which is fixed by moving the period inside the quotation.} See?

          The problem is caused by texttt{fnpct}.

          texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{sigfridsson}autocite{sigfridsson}

          Lorem autocite{sigfridsson}.

          Loremautocite{sigfridsson}.
          end{document}


          then gives the expected output.



          Output of the example. The <code>fnpct</code>-controlled footnotes don't suppress previous space. <code>blockcquote</code> displays as intended again.



          I'm still having trouble uploading output pictures. Sorry. If you would like to add images of the result, feel free to do so. See https://v1.overleaf.com/read/hgvsffpjwjbt for a demo.






          share|improve this answer














          As far as I can see the issue here is that handing control of autocite over to fnpct destroys autocite's ability to remove preceding whitespace. With biblatex's definition



          Lorem autocite{sigfridsson}.


          and



          Loremautocite{sigfridsson}.


          produce the same output since autocite issues unspace. But as soon as fnpct takes the reins, those two lines behave differently.



          Usually this is not going to be much of a problem since you probably never leave a space before footnote or autocite anyway. But with the default settings of csquotes commands like blockcquote leave a space before they call autocite (assuming the usual definition of biblatex's citation commands that make sense: many commands need a space in front of the ...cite so they don't stick to the text before and footcite, autocite and friends can deal with preceding space just fine). You can explicitly tell csquotes not to leave a space before calling the citation command by redefining mkccitation, cf. also page 30 of the csquotes documentation,



          renewcommand{mkccitation}[1]{#1}


          The full MWE



          documentclass{article}
          usepackage[ngerman]{babel}
          usepackage{csquotes}
          usepackage[backend=biber,style=authoryear-ibid,date=year,autocite=footnote,giveninits=true]{biblatex}

          SetCiteCommand{autocite}
          renewcommand{mkccitation}[1]{#1}

          usepackage{fnpct}
          AdaptNoteOptautocitemultfootcite

          addbibresource{biblatex-examples.bib}
          begin{document}
          null
          vfill
          blockcquote[see][123]{sigfridsson}{Famous quote}. But the period causes an unwanted space to appear.
          blockcquote[see][123]{sigfridsson}{Which is fixed by moving the period inside the quotation.} See?

          The problem is caused by texttt{fnpct}.

          texttt{fnpct} is needed to quote multiple authors at once, but in separate footnotesautocite{sigfridsson}autocite{sigfridsson}

          Lorem autocite{sigfridsson}.

          Loremautocite{sigfridsson}.
          end{document}


          then gives the expected output.



          Output of the example. The <code>fnpct</code>-controlled footnotes don't suppress previous space. <code>blockcquote</code> displays as intended again.



          I'm still having trouble uploading output pictures. Sorry. If you would like to add images of the result, feel free to do so. See https://v1.overleaf.com/read/hgvsffpjwjbt for a demo.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 28 '18 at 12:27

























          answered Dec 27 '18 at 23:09









          moewe

          86.9k9110333




          86.9k9110333












          • Thank you @moewe for clarifying what's happening here
            – Stefan
            Dec 28 '18 at 11:58










          • @Stefan Thanks for the picture edit.
            – moewe
            Dec 28 '18 at 12:27


















          • Thank you @moewe for clarifying what's happening here
            – Stefan
            Dec 28 '18 at 11:58










          • @Stefan Thanks for the picture edit.
            – moewe
            Dec 28 '18 at 12:27
















          Thank you @moewe for clarifying what's happening here
          – Stefan
          Dec 28 '18 at 11:58




          Thank you @moewe for clarifying what's happening here
          – Stefan
          Dec 28 '18 at 11:58












          @Stefan Thanks for the picture edit.
          – moewe
          Dec 28 '18 at 12:27




          @Stefan Thanks for the picture edit.
          – moewe
          Dec 28 '18 at 12:27


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f467561%2ffnpct-autocite-causes-whitespace-problems-with-csquotes-blockcquote%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

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents