Double Custom Backref-Text whilst Using natbib or natbibapa with apacite Unicorn Meta Zoo #1:...

Multiple fireplaces in an apartment building?

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

Justification for leaving new position after a short time

Are all CP/M-80 implementations binary compatible?

Holes in ElementMesh with ToElementMesh of ImplicitRegion

Reattaching fallen shelf to wall?

Why does the Cisco show run command not show the full version, while the show version command does?

How to use @AuraEnabled base class method in Lightning Component?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

Protagonist's race is hidden - should I reveal it?

Will I lose my paid in full property

Rolling Stones Sway guitar solo chord function

The art of proof summarizing. Are there known rules, or is it a purely common sense matter?

How to open locks without disable device?

Second order approximation of the loss function (Deep learning book, 7.33)

Is there any hidden 'W' sound after 'comment' in : Comment est-elle?

Why did Israel vote against lifting the American embargo on Cuba?

Does Mathematica have an implementation of the Poisson binomial distribution?

What *exactly* is electrical current, voltage, and resistance?

What is it called when you ride around on your front wheel?

Does Feeblemind produce an ongoing magical effect that can be dispelled?

Seek and ye shall find

What ability score does a Hexblade's Pact Weapon use for attack and damage when wielded by another character?



Double Custom Backref-Text whilst Using natbib or natbibapa with apacite



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manarahyperref with the backref=page optionHyperref, Natbib: Curious backref behaviourapacite: How can I use bibitemsep with natbibapa option?Disabling backref in secondary multibib bibliography with natbibUnderlined journal names in bibliographystyle of apacite with natbibapa optionCustom backref TextMake book title upright when using natbibapa {apacite}Cite on line with NatBib in LyX with apacite packageApacite package with “natbibapa” option includes initials of one authorLower case when using natbib and apacite












1















When I use natbibapa with apacite and insert backrefs, the custom text in the backref doubles as in this picture.



MWE



Any ideas, how to solve the problem?
Thanks!



Here’s a MWE:



documentclass[11pt,a4paper]{article}
usepackage[pagebackref=true]{hyperref}
%OR usepackage{backref}
renewcommand*{backref}[1]{Zitiert auf S.{,}#1.}
usepackage[natbibapa]{apacite}
%usepackage{natbib}
RequirePackage{filecontents}
begin{filecontents}{jobname.bib}
@book{aaas1990,
author = {{American Association for the Advancement of Science [AAAS]}},
year = {1990},
title = {{Science for all Americans}},
address = {New York},
publisher = {{Oxford University Press}},
key = {AAAS}
}
end{filecontents}

begin{document}
I cite citep{aaas1990}. %Problem occurs independent of the use of cite{}, citep{} or anything else.
bibliography{jobname}
bibliographystyle{apacite}

end{document}



  • Problem occurs both with backref-option of hyperref or backref-package.

  • Problem occurs both with natbibapa-option of apacite or natbib-package.










share|improve this question



























    1















    When I use natbibapa with apacite and insert backrefs, the custom text in the backref doubles as in this picture.



    MWE



    Any ideas, how to solve the problem?
    Thanks!



    Here’s a MWE:



    documentclass[11pt,a4paper]{article}
    usepackage[pagebackref=true]{hyperref}
    %OR usepackage{backref}
    renewcommand*{backref}[1]{Zitiert auf S.{,}#1.}
    usepackage[natbibapa]{apacite}
    %usepackage{natbib}
    RequirePackage{filecontents}
    begin{filecontents}{jobname.bib}
    @book{aaas1990,
    author = {{American Association for the Advancement of Science [AAAS]}},
    year = {1990},
    title = {{Science for all Americans}},
    address = {New York},
    publisher = {{Oxford University Press}},
    key = {AAAS}
    }
    end{filecontents}

    begin{document}
    I cite citep{aaas1990}. %Problem occurs independent of the use of cite{}, citep{} or anything else.
    bibliography{jobname}
    bibliographystyle{apacite}

    end{document}



    • Problem occurs both with backref-option of hyperref or backref-package.

    • Problem occurs both with natbibapa-option of apacite or natbib-package.










    share|improve this question

























      1












      1








      1








      When I use natbibapa with apacite and insert backrefs, the custom text in the backref doubles as in this picture.



      MWE



      Any ideas, how to solve the problem?
      Thanks!



      Here’s a MWE:



      documentclass[11pt,a4paper]{article}
      usepackage[pagebackref=true]{hyperref}
      %OR usepackage{backref}
      renewcommand*{backref}[1]{Zitiert auf S.{,}#1.}
      usepackage[natbibapa]{apacite}
      %usepackage{natbib}
      RequirePackage{filecontents}
      begin{filecontents}{jobname.bib}
      @book{aaas1990,
      author = {{American Association for the Advancement of Science [AAAS]}},
      year = {1990},
      title = {{Science for all Americans}},
      address = {New York},
      publisher = {{Oxford University Press}},
      key = {AAAS}
      }
      end{filecontents}

      begin{document}
      I cite citep{aaas1990}. %Problem occurs independent of the use of cite{}, citep{} or anything else.
      bibliography{jobname}
      bibliographystyle{apacite}

      end{document}



      • Problem occurs both with backref-option of hyperref or backref-package.

      • Problem occurs both with natbibapa-option of apacite or natbib-package.










      share|improve this question














      When I use natbibapa with apacite and insert backrefs, the custom text in the backref doubles as in this picture.



      MWE



      Any ideas, how to solve the problem?
      Thanks!



      Here’s a MWE:



      documentclass[11pt,a4paper]{article}
      usepackage[pagebackref=true]{hyperref}
      %OR usepackage{backref}
      renewcommand*{backref}[1]{Zitiert auf S.{,}#1.}
      usepackage[natbibapa]{apacite}
      %usepackage{natbib}
      RequirePackage{filecontents}
      begin{filecontents}{jobname.bib}
      @book{aaas1990,
      author = {{American Association for the Advancement of Science [AAAS]}},
      year = {1990},
      title = {{Science for all Americans}},
      address = {New York},
      publisher = {{Oxford University Press}},
      key = {AAAS}
      }
      end{filecontents}

      begin{document}
      I cite citep{aaas1990}. %Problem occurs independent of the use of cite{}, citep{} or anything else.
      bibliography{jobname}
      bibliographystyle{apacite}

      end{document}



      • Problem occurs both with backref-option of hyperref or backref-package.

      • Problem occurs both with natbibapa-option of apacite or natbib-package.







      hyperref natbib back-referencing apacite






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 2 '17 at 14:51









      hh93hh93

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Replace renewcommand*{backref}[1]{Zitiert auf S.{,}#1.} with renewcommand*{backrefxxx}[3]{Zitiert auf S.{,}#1.}.



          You can also add the following lines to the preamble to see that the command backref is called twice (I do not know why), but the first time round, its parameter is empty; the second time, the parameter contains the output of backrefxxx:



          usepackage{xcolor}
          renewcommand*{backref}[1]{textcolor{red}{BACKREF[1=#1]ENDOFBACKREF}}
          renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}


          arguments of backref and backrefxxx



          A more elaborate replacement for backref is called backrefalt:



          usepackage{xcolor}
          renewcommand*{backref}[1]{} %% documentation says: use this when backref package version < 1.33
          %% I have 1.38 and when backrefalt is defined, it replaces backref
          renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}
          renewcommand*{backrefalt}[4]{textcolor{green}{ALT[1=#1][2=#2][3=#3][4=#4]ENDOFALT}}


          arguments of backrefalt and backrefxxx



          Notice that the 1st and 3rd argument passed to backrefalt are the number of citations (#1 is number of different backreferenced pages, #3 the total number of citations). Notice how with the following definition, nothing is output if #1=0 (the first call of backrefalt above):



          renewcommand*{backrefalt}[4]{%
          ifcase #1 {}% %% do not output anything if the first argument is 0!!!
          or page #2% %% first argument=1 => was cited on a single page
          else pages #2% %% first argument>1 => was cited on multiple pages
          fi
          }





          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%2f351746%2fdouble-custom-backref-text-whilst-using-natbib-or-natbibapa-with-apacite%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









            0














            Replace renewcommand*{backref}[1]{Zitiert auf S.{,}#1.} with renewcommand*{backrefxxx}[3]{Zitiert auf S.{,}#1.}.



            You can also add the following lines to the preamble to see that the command backref is called twice (I do not know why), but the first time round, its parameter is empty; the second time, the parameter contains the output of backrefxxx:



            usepackage{xcolor}
            renewcommand*{backref}[1]{textcolor{red}{BACKREF[1=#1]ENDOFBACKREF}}
            renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}


            arguments of backref and backrefxxx



            A more elaborate replacement for backref is called backrefalt:



            usepackage{xcolor}
            renewcommand*{backref}[1]{} %% documentation says: use this when backref package version < 1.33
            %% I have 1.38 and when backrefalt is defined, it replaces backref
            renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}
            renewcommand*{backrefalt}[4]{textcolor{green}{ALT[1=#1][2=#2][3=#3][4=#4]ENDOFALT}}


            arguments of backrefalt and backrefxxx



            Notice that the 1st and 3rd argument passed to backrefalt are the number of citations (#1 is number of different backreferenced pages, #3 the total number of citations). Notice how with the following definition, nothing is output if #1=0 (the first call of backrefalt above):



            renewcommand*{backrefalt}[4]{%
            ifcase #1 {}% %% do not output anything if the first argument is 0!!!
            or page #2% %% first argument=1 => was cited on a single page
            else pages #2% %% first argument>1 => was cited on multiple pages
            fi
            }





            share|improve this answer




























              0














              Replace renewcommand*{backref}[1]{Zitiert auf S.{,}#1.} with renewcommand*{backrefxxx}[3]{Zitiert auf S.{,}#1.}.



              You can also add the following lines to the preamble to see that the command backref is called twice (I do not know why), but the first time round, its parameter is empty; the second time, the parameter contains the output of backrefxxx:



              usepackage{xcolor}
              renewcommand*{backref}[1]{textcolor{red}{BACKREF[1=#1]ENDOFBACKREF}}
              renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}


              arguments of backref and backrefxxx



              A more elaborate replacement for backref is called backrefalt:



              usepackage{xcolor}
              renewcommand*{backref}[1]{} %% documentation says: use this when backref package version < 1.33
              %% I have 1.38 and when backrefalt is defined, it replaces backref
              renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}
              renewcommand*{backrefalt}[4]{textcolor{green}{ALT[1=#1][2=#2][3=#3][4=#4]ENDOFALT}}


              arguments of backrefalt and backrefxxx



              Notice that the 1st and 3rd argument passed to backrefalt are the number of citations (#1 is number of different backreferenced pages, #3 the total number of citations). Notice how with the following definition, nothing is output if #1=0 (the first call of backrefalt above):



              renewcommand*{backrefalt}[4]{%
              ifcase #1 {}% %% do not output anything if the first argument is 0!!!
              or page #2% %% first argument=1 => was cited on a single page
              else pages #2% %% first argument>1 => was cited on multiple pages
              fi
              }





              share|improve this answer


























                0












                0








                0







                Replace renewcommand*{backref}[1]{Zitiert auf S.{,}#1.} with renewcommand*{backrefxxx}[3]{Zitiert auf S.{,}#1.}.



                You can also add the following lines to the preamble to see that the command backref is called twice (I do not know why), but the first time round, its parameter is empty; the second time, the parameter contains the output of backrefxxx:



                usepackage{xcolor}
                renewcommand*{backref}[1]{textcolor{red}{BACKREF[1=#1]ENDOFBACKREF}}
                renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}


                arguments of backref and backrefxxx



                A more elaborate replacement for backref is called backrefalt:



                usepackage{xcolor}
                renewcommand*{backref}[1]{} %% documentation says: use this when backref package version < 1.33
                %% I have 1.38 and when backrefalt is defined, it replaces backref
                renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}
                renewcommand*{backrefalt}[4]{textcolor{green}{ALT[1=#1][2=#2][3=#3][4=#4]ENDOFALT}}


                arguments of backrefalt and backrefxxx



                Notice that the 1st and 3rd argument passed to backrefalt are the number of citations (#1 is number of different backreferenced pages, #3 the total number of citations). Notice how with the following definition, nothing is output if #1=0 (the first call of backrefalt above):



                renewcommand*{backrefalt}[4]{%
                ifcase #1 {}% %% do not output anything if the first argument is 0!!!
                or page #2% %% first argument=1 => was cited on a single page
                else pages #2% %% first argument>1 => was cited on multiple pages
                fi
                }





                share|improve this answer













                Replace renewcommand*{backref}[1]{Zitiert auf S.{,}#1.} with renewcommand*{backrefxxx}[3]{Zitiert auf S.{,}#1.}.



                You can also add the following lines to the preamble to see that the command backref is called twice (I do not know why), but the first time round, its parameter is empty; the second time, the parameter contains the output of backrefxxx:



                usepackage{xcolor}
                renewcommand*{backref}[1]{textcolor{red}{BACKREF[1=#1]ENDOFBACKREF}}
                renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}


                arguments of backref and backrefxxx



                A more elaborate replacement for backref is called backrefalt:



                usepackage{xcolor}
                renewcommand*{backref}[1]{} %% documentation says: use this when backref package version < 1.33
                %% I have 1.38 and when backrefalt is defined, it replaces backref
                renewcommand*{backrefxxx}[3]{textcolor{blue}{XXX[1=#1][2=#2][3=#3]ENDOFXXX}}
                renewcommand*{backrefalt}[4]{textcolor{green}{ALT[1=#1][2=#2][3=#3][4=#4]ENDOFALT}}


                arguments of backrefalt and backrefxxx



                Notice that the 1st and 3rd argument passed to backrefalt are the number of citations (#1 is number of different backreferenced pages, #3 the total number of citations). Notice how with the following definition, nothing is output if #1=0 (the first call of backrefalt above):



                renewcommand*{backrefalt}[4]{%
                ifcase #1 {}% %% do not output anything if the first argument is 0!!!
                or page #2% %% first argument=1 => was cited on a single page
                else pages #2% %% first argument>1 => was cited on multiple pages
                fi
                }






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 13 mins ago









                Ansa211Ansa211

                1526




                1526






























                    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%2f351746%2fdouble-custom-backref-text-whilst-using-natbib-or-natbibapa-with-apacite%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...

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

                    Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...