How to change selectively the post-note comma in a citation using biblatex?How to get language dependent...

Are Wave equations equivalent to Maxwell equations in free space?

Align equations with text before one of them

“I had a flat in the centre of town, but I didn’t like living there, so …”

Affine transformation of circular arc in 3D

Is "cogitate" an appropriate word for this?

Dukha vs legitimate need

DC input on op amp integrator

Why is there an extra space when I type "ls" on the Desktop?

PTIJ: Mouthful of Mitzvos

Can you run a ground wire from stove directly to ground pole in the ground

Error in TransformedField

What is the oldest European royal house?

Why would the IRS ask for birth certificates or even audit a small tax return?

What is "desert glass" and what does it do to the PCs?

Should we avoid writing fiction about historical events without extensive research?

Learning to quickly identify valid fingering for piano?

Rationale to prefer local variables over instance variables?

Can inspiration allow the Rogue to make a Sneak Attack?

Convert an array of objects to array of the objects' values

Faulty RAID1 disk now shows as foreign

Calculate total length of edges in select Voronoi diagram

PTIJ: Aliyot for the deceased

Is there a way to find out the age of climbing ropes?

Sundering Titan and basic normal lands and snow lands



How to change selectively the post-note comma in a citation using biblatex?


How to get language dependent quotation marks in citations with biblatex?biblatex messing up citation entry with lots of authorsTweaking Biblatex-chicago citation formatBibliography in LaTeX with Biblatex and Biber as backendCiting (author, journalabbr., year) neededbiblatex: More than three auhors > et al. in IEEE (conflicting options)Citations not working properly while using biblatex-chicagoCitation using biblatex-gostHow to sort references by year if they have the same authorHow to remove the comma before a post-note in citations using biblatex?













1















I'm using biblatex for my citations and references. In some citations I'd like to change the comma for any other symbol that I want. How can I do this?



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[
citestyle=authoryear-comp,
bibstyle=authoryear,
giveninits=true,
maxcitenames=2
]{biblatex}

%References
begin{filecontents*}{references22.bib}
@Article{Ho_1899,
author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
title = {Example article},
year = {1899}
}
end{filecontents*}

addbibresource{references22.bib}
begin{document}

textcite[some words]{Ho_1899}\
parencite[some words]{Ho_1899}par%
%
In the next 2 citations, I'd like to change the comma for ~-~ and "."par
%
textcite[~-~some words]{Ho_1899}\
parencite[. Some words]{Ho_1899}par
%
Expected resultpar
%
Ho et al. (1899~-~some words)\
(Ho et al. 1899. Some words)

end{document}


enter image description here










share|improve this question























  • Please Check the edited version, (natbib=true doesn't needed and added a second better option that doesn't break the comma of the original command)

    – koleygr
    2 hours ago
















1















I'm using biblatex for my citations and references. In some citations I'd like to change the comma for any other symbol that I want. How can I do this?



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[
citestyle=authoryear-comp,
bibstyle=authoryear,
giveninits=true,
maxcitenames=2
]{biblatex}

%References
begin{filecontents*}{references22.bib}
@Article{Ho_1899,
author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
title = {Example article},
year = {1899}
}
end{filecontents*}

addbibresource{references22.bib}
begin{document}

textcite[some words]{Ho_1899}\
parencite[some words]{Ho_1899}par%
%
In the next 2 citations, I'd like to change the comma for ~-~ and "."par
%
textcite[~-~some words]{Ho_1899}\
parencite[. Some words]{Ho_1899}par
%
Expected resultpar
%
Ho et al. (1899~-~some words)\
(Ho et al. 1899. Some words)

end{document}


enter image description here










share|improve this question























  • Please Check the edited version, (natbib=true doesn't needed and added a second better option that doesn't break the comma of the original command)

    – koleygr
    2 hours ago














1












1








1








I'm using biblatex for my citations and references. In some citations I'd like to change the comma for any other symbol that I want. How can I do this?



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[
citestyle=authoryear-comp,
bibstyle=authoryear,
giveninits=true,
maxcitenames=2
]{biblatex}

%References
begin{filecontents*}{references22.bib}
@Article{Ho_1899,
author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
title = {Example article},
year = {1899}
}
end{filecontents*}

addbibresource{references22.bib}
begin{document}

textcite[some words]{Ho_1899}\
parencite[some words]{Ho_1899}par%
%
In the next 2 citations, I'd like to change the comma for ~-~ and "."par
%
textcite[~-~some words]{Ho_1899}\
parencite[. Some words]{Ho_1899}par
%
Expected resultpar
%
Ho et al. (1899~-~some words)\
(Ho et al. 1899. Some words)

end{document}


enter image description here










share|improve this question














I'm using biblatex for my citations and references. In some citations I'd like to change the comma for any other symbol that I want. How can I do this?



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[
citestyle=authoryear-comp,
bibstyle=authoryear,
giveninits=true,
maxcitenames=2
]{biblatex}

%References
begin{filecontents*}{references22.bib}
@Article{Ho_1899,
author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
title = {Example article},
year = {1899}
}
end{filecontents*}

addbibresource{references22.bib}
begin{document}

textcite[some words]{Ho_1899}\
parencite[some words]{Ho_1899}par%
%
In the next 2 citations, I'd like to change the comma for ~-~ and "."par
%
textcite[~-~some words]{Ho_1899}\
parencite[. Some words]{Ho_1899}par
%
Expected resultpar
%
Ho et al. (1899~-~some words)\
(Ho et al. 1899. Some words)

end{document}


enter image description here







biblatex citing postnote






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 3 hours ago









Daniel Valencia C.Daniel Valencia C.

1,115718




1,115718













  • Please Check the edited version, (natbib=true doesn't needed and added a second better option that doesn't break the comma of the original command)

    – koleygr
    2 hours ago



















  • Please Check the edited version, (natbib=true doesn't needed and added a second better option that doesn't break the comma of the original command)

    – koleygr
    2 hours ago

















Please Check the edited version, (natbib=true doesn't needed and added a second better option that doesn't break the comma of the original command)

– koleygr
2 hours ago





Please Check the edited version, (natbib=true doesn't needed and added a second better option that doesn't break the comma of the original command)

– koleygr
2 hours ago










1 Answer
1






active

oldest

votes


















1














A hack, but it will break the ability of adding a second optional argument in your textcite and parencite comands (if they can "afford" one second argument):



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[
citestyle=authoryear-comp,
bibstyle=authoryear,
giveninits=true,
maxcitenames=2,
]{biblatex}

%References
begin{filecontents*}{references22.bib}
@Article{Ho_1899,
author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
title = {Example article},
year = {1899}
}
end{filecontents*}

renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}#1)}
renewcommandparencite[2][]{(cite{#2}#1)}
addbibresource{references22.bib}
begin{document}
textcite[some words]{Ho_1899}\
parencite[some words]{Ho_1899}par%
%
In the next 2 citations, I'd like to change the comma for ~-~ and "."par
%
textcite[~-~some words]{Ho_1899}\
parencite[. Some words]{Ho_1899}par
%
Expected resultpar
%
Ho et al. (1899~-~some words)\
(Ho et al. 1899. Some words)

end{document}


PS: You have to add comma manually in the above code's first two citations.



Code that will work for the two first citations too:



documentclass[12pt,a4paper]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage[
citestyle=authoryear-comp,
bibstyle=authoryear,
giveninits=true,
maxcitenames=2,
]{biblatex}

%References
begin{filecontents*}{references22.bib}
@Article{Ho_1899,
author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
title = {Example article},
year = {1899}
}
end{filecontents*}
defmydelim{,~}
renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}mydelim#1)}
renewcommandparencite[2][]{(cite{#2}mydelim#1)}
addbibresource{references22.bib}
begin{document}
textcite[some words]{Ho_1899}\
parencite[some words]{Ho_1899}par%
%
In the next 2 citations, I'd like to change the comma for ~-~ and "."par
%

defmydelim{~.~}
textcite[some words]{Ho_1899}\
defmydelim{.~}
parencite[Some words]{Ho_1899}par
%
Expected resultpar
%
Ho et al. (1899~-~some words)\
(Ho et al. 1899. Some words)

end{document}


The given result for these examples are the expected results:



enter image description here






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%2f478282%2fhow-to-change-selectively-the-post-note-comma-in-a-citation-using-biblatex%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














    A hack, but it will break the ability of adding a second optional argument in your textcite and parencite comands (if they can "afford" one second argument):



    documentclass[12pt,a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage[
    citestyle=authoryear-comp,
    bibstyle=authoryear,
    giveninits=true,
    maxcitenames=2,
    ]{biblatex}

    %References
    begin{filecontents*}{references22.bib}
    @Article{Ho_1899,
    author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
    title = {Example article},
    year = {1899}
    }
    end{filecontents*}

    renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}#1)}
    renewcommandparencite[2][]{(cite{#2}#1)}
    addbibresource{references22.bib}
    begin{document}
    textcite[some words]{Ho_1899}\
    parencite[some words]{Ho_1899}par%
    %
    In the next 2 citations, I'd like to change the comma for ~-~ and "."par
    %
    textcite[~-~some words]{Ho_1899}\
    parencite[. Some words]{Ho_1899}par
    %
    Expected resultpar
    %
    Ho et al. (1899~-~some words)\
    (Ho et al. 1899. Some words)

    end{document}


    PS: You have to add comma manually in the above code's first two citations.



    Code that will work for the two first citations too:



    documentclass[12pt,a4paper]{article}
    usepackage[utf8]{inputenc}
    usepackage[T1]{fontenc}
    usepackage[
    citestyle=authoryear-comp,
    bibstyle=authoryear,
    giveninits=true,
    maxcitenames=2,
    ]{biblatex}

    %References
    begin{filecontents*}{references22.bib}
    @Article{Ho_1899,
    author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
    title = {Example article},
    year = {1899}
    }
    end{filecontents*}
    defmydelim{,~}
    renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}mydelim#1)}
    renewcommandparencite[2][]{(cite{#2}mydelim#1)}
    addbibresource{references22.bib}
    begin{document}
    textcite[some words]{Ho_1899}\
    parencite[some words]{Ho_1899}par%
    %
    In the next 2 citations, I'd like to change the comma for ~-~ and "."par
    %

    defmydelim{~.~}
    textcite[some words]{Ho_1899}\
    defmydelim{.~}
    parencite[Some words]{Ho_1899}par
    %
    Expected resultpar
    %
    Ho et al. (1899~-~some words)\
    (Ho et al. 1899. Some words)

    end{document}


    The given result for these examples are the expected results:



    enter image description here






    share|improve this answer






























      1














      A hack, but it will break the ability of adding a second optional argument in your textcite and parencite comands (if they can "afford" one second argument):



      documentclass[12pt,a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage[
      citestyle=authoryear-comp,
      bibstyle=authoryear,
      giveninits=true,
      maxcitenames=2,
      ]{biblatex}

      %References
      begin{filecontents*}{references22.bib}
      @Article{Ho_1899,
      author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
      title = {Example article},
      year = {1899}
      }
      end{filecontents*}

      renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}#1)}
      renewcommandparencite[2][]{(cite{#2}#1)}
      addbibresource{references22.bib}
      begin{document}
      textcite[some words]{Ho_1899}\
      parencite[some words]{Ho_1899}par%
      %
      In the next 2 citations, I'd like to change the comma for ~-~ and "."par
      %
      textcite[~-~some words]{Ho_1899}\
      parencite[. Some words]{Ho_1899}par
      %
      Expected resultpar
      %
      Ho et al. (1899~-~some words)\
      (Ho et al. 1899. Some words)

      end{document}


      PS: You have to add comma manually in the above code's first two citations.



      Code that will work for the two first citations too:



      documentclass[12pt,a4paper]{article}
      usepackage[utf8]{inputenc}
      usepackage[T1]{fontenc}
      usepackage[
      citestyle=authoryear-comp,
      bibstyle=authoryear,
      giveninits=true,
      maxcitenames=2,
      ]{biblatex}

      %References
      begin{filecontents*}{references22.bib}
      @Article{Ho_1899,
      author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
      title = {Example article},
      year = {1899}
      }
      end{filecontents*}
      defmydelim{,~}
      renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}mydelim#1)}
      renewcommandparencite[2][]{(cite{#2}mydelim#1)}
      addbibresource{references22.bib}
      begin{document}
      textcite[some words]{Ho_1899}\
      parencite[some words]{Ho_1899}par%
      %
      In the next 2 citations, I'd like to change the comma for ~-~ and "."par
      %

      defmydelim{~.~}
      textcite[some words]{Ho_1899}\
      defmydelim{.~}
      parencite[Some words]{Ho_1899}par
      %
      Expected resultpar
      %
      Ho et al. (1899~-~some words)\
      (Ho et al. 1899. Some words)

      end{document}


      The given result for these examples are the expected results:



      enter image description here






      share|improve this answer




























        1












        1








        1







        A hack, but it will break the ability of adding a second optional argument in your textcite and parencite comands (if they can "afford" one second argument):



        documentclass[12pt,a4paper]{article}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage[
        citestyle=authoryear-comp,
        bibstyle=authoryear,
        giveninits=true,
        maxcitenames=2,
        ]{biblatex}

        %References
        begin{filecontents*}{references22.bib}
        @Article{Ho_1899,
        author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
        title = {Example article},
        year = {1899}
        }
        end{filecontents*}

        renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}#1)}
        renewcommandparencite[2][]{(cite{#2}#1)}
        addbibresource{references22.bib}
        begin{document}
        textcite[some words]{Ho_1899}\
        parencite[some words]{Ho_1899}par%
        %
        In the next 2 citations, I'd like to change the comma for ~-~ and "."par
        %
        textcite[~-~some words]{Ho_1899}\
        parencite[. Some words]{Ho_1899}par
        %
        Expected resultpar
        %
        Ho et al. (1899~-~some words)\
        (Ho et al. 1899. Some words)

        end{document}


        PS: You have to add comma manually in the above code's first two citations.



        Code that will work for the two first citations too:



        documentclass[12pt,a4paper]{article}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage[
        citestyle=authoryear-comp,
        bibstyle=authoryear,
        giveninits=true,
        maxcitenames=2,
        ]{biblatex}

        %References
        begin{filecontents*}{references22.bib}
        @Article{Ho_1899,
        author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
        title = {Example article},
        year = {1899}
        }
        end{filecontents*}
        defmydelim{,~}
        renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}mydelim#1)}
        renewcommandparencite[2][]{(cite{#2}mydelim#1)}
        addbibresource{references22.bib}
        begin{document}
        textcite[some words]{Ho_1899}\
        parencite[some words]{Ho_1899}par%
        %
        In the next 2 citations, I'd like to change the comma for ~-~ and "."par
        %

        defmydelim{~.~}
        textcite[some words]{Ho_1899}\
        defmydelim{.~}
        parencite[Some words]{Ho_1899}par
        %
        Expected resultpar
        %
        Ho et al. (1899~-~some words)\
        (Ho et al. 1899. Some words)

        end{document}


        The given result for these examples are the expected results:



        enter image description here






        share|improve this answer















        A hack, but it will break the ability of adding a second optional argument in your textcite and parencite comands (if they can "afford" one second argument):



        documentclass[12pt,a4paper]{article}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage[
        citestyle=authoryear-comp,
        bibstyle=authoryear,
        giveninits=true,
        maxcitenames=2,
        ]{biblatex}

        %References
        begin{filecontents*}{references22.bib}
        @Article{Ho_1899,
        author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
        title = {Example article},
        year = {1899}
        }
        end{filecontents*}

        renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}#1)}
        renewcommandparencite[2][]{(cite{#2}#1)}
        addbibresource{references22.bib}
        begin{document}
        textcite[some words]{Ho_1899}\
        parencite[some words]{Ho_1899}par%
        %
        In the next 2 citations, I'd like to change the comma for ~-~ and "."par
        %
        textcite[~-~some words]{Ho_1899}\
        parencite[. Some words]{Ho_1899}par
        %
        Expected resultpar
        %
        Ho et al. (1899~-~some words)\
        (Ho et al. 1899. Some words)

        end{document}


        PS: You have to add comma manually in the above code's first two citations.



        Code that will work for the two first citations too:



        documentclass[12pt,a4paper]{article}
        usepackage[utf8]{inputenc}
        usepackage[T1]{fontenc}
        usepackage[
        citestyle=authoryear-comp,
        bibstyle=authoryear,
        giveninits=true,
        maxcitenames=2,
        ]{biblatex}

        %References
        begin{filecontents*}{references22.bib}
        @Article{Ho_1899,
        author = {Ho, Lionel and Dreyfus, J. and Boyer, J. and Lowe, T. and Bustamante, H. and Duker, P.},
        title = {Example article},
        year = {1899}
        }
        end{filecontents*}
        defmydelim{,~}
        renewcommandtextcite[2][]{citeauthor{#2}(citeyear{#2}mydelim#1)}
        renewcommandparencite[2][]{(cite{#2}mydelim#1)}
        addbibresource{references22.bib}
        begin{document}
        textcite[some words]{Ho_1899}\
        parencite[some words]{Ho_1899}par%
        %
        In the next 2 citations, I'd like to change the comma for ~-~ and "."par
        %

        defmydelim{~.~}
        textcite[some words]{Ho_1899}\
        defmydelim{.~}
        parencite[Some words]{Ho_1899}par
        %
        Expected resultpar
        %
        Ho et al. (1899~-~some words)\
        (Ho et al. 1899. Some words)

        end{document}


        The given result for these examples are the expected results:



        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 hours ago

























        answered 3 hours ago









        koleygrkoleygr

        12k11038




        12k11038






























            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%2f478282%2fhow-to-change-selectively-the-post-note-comma-in-a-citation-using-biblatex%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

            Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

            How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

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