Supercite with square brackets












1















Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):





MWE (comment the 3rd line in to reproduce the error):



documentclass{article}
usepackage{filecontents}
%usepackage[style=chem-angew]{biblatex} % fails
usepackage{biblatex}

DeclareCiteCommand{supercite}[mkbibsuperscript]
{iffieldundef{prenote}
{}
{BibliographyWarning{Ignoring prenote argument}}%
iffieldundef{postnote}
{}
{BibliographyWarning{Ignoring postnote argument}}%
bibopenbracket}%
{usebibmacro{citeindex}%
usebibmacro{cite}}
{supercitedelim}
{bibclosebracket}

begin{filecontents}{test.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{A02,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
end{filecontents}
addbibresource{test.bib}
letcite=supercite
begin{document}
Citing supercite{A01, A02}.
printbibliography
end{document}


Output without style option:












share|improve this question





























    1















    Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):





    MWE (comment the 3rd line in to reproduce the error):



    documentclass{article}
    usepackage{filecontents}
    %usepackage[style=chem-angew]{biblatex} % fails
    usepackage{biblatex}

    DeclareCiteCommand{supercite}[mkbibsuperscript]
    {iffieldundef{prenote}
    {}
    {BibliographyWarning{Ignoring prenote argument}}%
    iffieldundef{postnote}
    {}
    {BibliographyWarning{Ignoring postnote argument}}%
    bibopenbracket}%
    {usebibmacro{citeindex}%
    usebibmacro{cite}}
    {supercitedelim}
    {bibclosebracket}

    begin{filecontents}{test.bib}
    @book{A01,
    author = {Author, A.},
    year = {2001},
    title = {Alpha},
    }
    @book{A02,
    author = {Author, A.},
    year = {2001},
    title = {Alpha},
    }
    end{filecontents}
    addbibresource{test.bib}
    letcite=supercite
    begin{document}
    Citing supercite{A01, A02}.
    printbibliography
    end{document}


    Output without style option:












    share|improve this question



























      1












      1








      1








      Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):





      MWE (comment the 3rd line in to reproduce the error):



      documentclass{article}
      usepackage{filecontents}
      %usepackage[style=chem-angew]{biblatex} % fails
      usepackage{biblatex}

      DeclareCiteCommand{supercite}[mkbibsuperscript]
      {iffieldundef{prenote}
      {}
      {BibliographyWarning{Ignoring prenote argument}}%
      iffieldundef{postnote}
      {}
      {BibliographyWarning{Ignoring postnote argument}}%
      bibopenbracket}%
      {usebibmacro{citeindex}%
      usebibmacro{cite}}
      {supercitedelim}
      {bibclosebracket}

      begin{filecontents}{test.bib}
      @book{A01,
      author = {Author, A.},
      year = {2001},
      title = {Alpha},
      }
      @book{A02,
      author = {Author, A.},
      year = {2001},
      title = {Alpha},
      }
      end{filecontents}
      addbibresource{test.bib}
      letcite=supercite
      begin{document}
      Citing supercite{A01, A02}.
      printbibliography
      end{document}


      Output without style option:












      share|improve this question
















      Same requirements as this question. But as soon as I try to set the style option, I get this error (Bibliography macro 'site' undefined):





      MWE (comment the 3rd line in to reproduce the error):



      documentclass{article}
      usepackage{filecontents}
      %usepackage[style=chem-angew]{biblatex} % fails
      usepackage{biblatex}

      DeclareCiteCommand{supercite}[mkbibsuperscript]
      {iffieldundef{prenote}
      {}
      {BibliographyWarning{Ignoring prenote argument}}%
      iffieldundef{postnote}
      {}
      {BibliographyWarning{Ignoring postnote argument}}%
      bibopenbracket}%
      {usebibmacro{citeindex}%
      usebibmacro{cite}}
      {supercitedelim}
      {bibclosebracket}

      begin{filecontents}{test.bib}
      @book{A01,
      author = {Author, A.},
      year = {2001},
      title = {Alpha},
      }
      @book{A02,
      author = {Author, A.},
      year = {2001},
      title = {Alpha},
      }
      end{filecontents}
      addbibresource{test.bib}
      letcite=supercite
      begin{document}
      Citing supercite{A01, A02}.
      printbibliography
      end{document}


      Output without style option:









      biblatex citing






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:34









      Community

      1




      1










      asked Jan 11 '16 at 21:34









      Reto HöhenerReto Höhener

      1585




      1585






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Ok, turns out that the chem-angew style already does everything, if I would just let it.



          The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.



          Just changing the style to chem-angew was all that was needed:



          documentclass{article}
          usepackage{hyperref}
          usepackage[usenames, dvipsnames]{color}
          hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
          %usepackage[style=chem-acs]{biblatex}
          usepackage[style=chem-angew]{biblatex}

          usepackage{filecontents}

          begin{filecontents}{test.bib}
          @book{A01,
          author = {Author, A.},
          year = {2001},
          title = {Alpha},
          }
          @book{A02,
          author = {Author, A.},
          year = {2001},
          title = {Alpha},
          }
          end{filecontents}

          addbibresource{test.bib}

          begin{document}

          Citing autocite{A01, A02}.

          printbibliography

          end{document}


          chem-acs: chem-angew:






          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%2f287151%2fsupercite-with-square-brackets%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









            1














            Ok, turns out that the chem-angew style already does everything, if I would just let it.



            The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.



            Just changing the style to chem-angew was all that was needed:



            documentclass{article}
            usepackage{hyperref}
            usepackage[usenames, dvipsnames]{color}
            hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
            %usepackage[style=chem-acs]{biblatex}
            usepackage[style=chem-angew]{biblatex}

            usepackage{filecontents}

            begin{filecontents}{test.bib}
            @book{A01,
            author = {Author, A.},
            year = {2001},
            title = {Alpha},
            }
            @book{A02,
            author = {Author, A.},
            year = {2001},
            title = {Alpha},
            }
            end{filecontents}

            addbibresource{test.bib}

            begin{document}

            Citing autocite{A01, A02}.

            printbibliography

            end{document}


            chem-acs: chem-angew:






            share|improve this answer




























              1














              Ok, turns out that the chem-angew style already does everything, if I would just let it.



              The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.



              Just changing the style to chem-angew was all that was needed:



              documentclass{article}
              usepackage{hyperref}
              usepackage[usenames, dvipsnames]{color}
              hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
              %usepackage[style=chem-acs]{biblatex}
              usepackage[style=chem-angew]{biblatex}

              usepackage{filecontents}

              begin{filecontents}{test.bib}
              @book{A01,
              author = {Author, A.},
              year = {2001},
              title = {Alpha},
              }
              @book{A02,
              author = {Author, A.},
              year = {2001},
              title = {Alpha},
              }
              end{filecontents}

              addbibresource{test.bib}

              begin{document}

              Citing autocite{A01, A02}.

              printbibliography

              end{document}


              chem-acs: chem-angew:






              share|improve this answer


























                1












                1








                1







                Ok, turns out that the chem-angew style already does everything, if I would just let it.



                The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.



                Just changing the style to chem-angew was all that was needed:



                documentclass{article}
                usepackage{hyperref}
                usepackage[usenames, dvipsnames]{color}
                hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
                %usepackage[style=chem-acs]{biblatex}
                usepackage[style=chem-angew]{biblatex}

                usepackage{filecontents}

                begin{filecontents}{test.bib}
                @book{A01,
                author = {Author, A.},
                year = {2001},
                title = {Alpha},
                }
                @book{A02,
                author = {Author, A.},
                year = {2001},
                title = {Alpha},
                }
                end{filecontents}

                addbibresource{test.bib}

                begin{document}

                Citing autocite{A01, A02}.

                printbibliography

                end{document}


                chem-acs: chem-angew:






                share|improve this answer













                Ok, turns out that the chem-angew style already does everything, if I would just let it.



                The problem was that I originally used style chem-acs, which configures superscript references without brackets, which in turn triggered me to go hunting for square bracket hacks.



                Just changing the style to chem-angew was all that was needed:



                documentclass{article}
                usepackage{hyperref}
                usepackage[usenames, dvipsnames]{color}
                hypersetup{pdfpagemode=UseNone, colorlinks, citecolor=Blue, linkcolor=Blue, urlcolor=Blue}
                %usepackage[style=chem-acs]{biblatex}
                usepackage[style=chem-angew]{biblatex}

                usepackage{filecontents}

                begin{filecontents}{test.bib}
                @book{A01,
                author = {Author, A.},
                year = {2001},
                title = {Alpha},
                }
                @book{A02,
                author = {Author, A.},
                year = {2001},
                title = {Alpha},
                }
                end{filecontents}

                addbibresource{test.bib}

                begin{document}

                Citing autocite{A01, A02}.

                printbibliography

                end{document}


                chem-acs: chem-angew:







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 11 '16 at 22:28









                Reto HöhenerReto Höhener

                1585




                1585






























                    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%2f287151%2fsupercite-with-square-brackets%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 send String Array data to Server using php in android

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Is anime1.com a legal site for watching anime?