Unexpected indention in bibliography items (beamer)












5















I have a minimal example where the bibliography entry is intended. I cannot imagine that this is expected behavior. Am I doing something wrong?



documentclass{beamer}

usepackage[backend=bibtex8]{biblatex}

usepackage{filecontents}
begin{filecontents}{mybib.bib}
@inproceedings{doe2017,
title={A really interesting and long title to illustrate the problem},
author={Doe, John},
booktitle={Some International Conference on Something Really Interesting},
pages={100--200},
year={2017}
}
end{filecontents}

bibliography{mybib}

begin{document}

begin{frame}{Publications}
nocite{doe2017}
printbibliography
end{frame}

end{document}


Output:



latex output bibliography










share|improve this question


















  • 2





    What indentation are you talking about? The fact that the second and third lines start roughly at the same position as the first line in general? (This would be intentional and is normal for lists in LaTeX.) Or do you mean that there is a slightly misalignment so that the first line starts a tad wider to the right than the other lines? (That probably needs a bit of adjusting and looking at. Not a lot of people seem to be bothered by it, though... otherwise we would have seen more questions about that.)

    – moewe
    Mar 27 at 15:12








  • 1





    I expect that "J" of "John" is properly aligned with "p" of "problem". When I have multiline items in an itemize environment they are also properly aligned and the first line of each item is not shifted a bit to the right.

    – user179157
    Mar 27 at 15:21








  • 2





    Ah OK, I'll have something ready for that in a moment.

    – moewe
    Mar 27 at 15:23











  • Thanks! That really does the trick. I wonder why this never bothered anyone...

    – user179157
    Mar 27 at 16:13











  • Well, the space is quite small and if people cite ten or more papers or use a non-numeric style the issue will (probably) not appear because the space reserved for the label is going to be large enough for the icon (though arguably excessive).

    – moewe
    Mar 27 at 16:15


















5















I have a minimal example where the bibliography entry is intended. I cannot imagine that this is expected behavior. Am I doing something wrong?



documentclass{beamer}

usepackage[backend=bibtex8]{biblatex}

usepackage{filecontents}
begin{filecontents}{mybib.bib}
@inproceedings{doe2017,
title={A really interesting and long title to illustrate the problem},
author={Doe, John},
booktitle={Some International Conference on Something Really Interesting},
pages={100--200},
year={2017}
}
end{filecontents}

bibliography{mybib}

begin{document}

begin{frame}{Publications}
nocite{doe2017}
printbibliography
end{frame}

end{document}


Output:



latex output bibliography










share|improve this question


















  • 2





    What indentation are you talking about? The fact that the second and third lines start roughly at the same position as the first line in general? (This would be intentional and is normal for lists in LaTeX.) Or do you mean that there is a slightly misalignment so that the first line starts a tad wider to the right than the other lines? (That probably needs a bit of adjusting and looking at. Not a lot of people seem to be bothered by it, though... otherwise we would have seen more questions about that.)

    – moewe
    Mar 27 at 15:12








  • 1





    I expect that "J" of "John" is properly aligned with "p" of "problem". When I have multiline items in an itemize environment they are also properly aligned and the first line of each item is not shifted a bit to the right.

    – user179157
    Mar 27 at 15:21








  • 2





    Ah OK, I'll have something ready for that in a moment.

    – moewe
    Mar 27 at 15:23











  • Thanks! That really does the trick. I wonder why this never bothered anyone...

    – user179157
    Mar 27 at 16:13











  • Well, the space is quite small and if people cite ten or more papers or use a non-numeric style the issue will (probably) not appear because the space reserved for the label is going to be large enough for the icon (though arguably excessive).

    – moewe
    Mar 27 at 16:15
















5












5








5








I have a minimal example where the bibliography entry is intended. I cannot imagine that this is expected behavior. Am I doing something wrong?



documentclass{beamer}

usepackage[backend=bibtex8]{biblatex}

usepackage{filecontents}
begin{filecontents}{mybib.bib}
@inproceedings{doe2017,
title={A really interesting and long title to illustrate the problem},
author={Doe, John},
booktitle={Some International Conference on Something Really Interesting},
pages={100--200},
year={2017}
}
end{filecontents}

bibliography{mybib}

begin{document}

begin{frame}{Publications}
nocite{doe2017}
printbibliography
end{frame}

end{document}


Output:



latex output bibliography










share|improve this question














I have a minimal example where the bibliography entry is intended. I cannot imagine that this is expected behavior. Am I doing something wrong?



documentclass{beamer}

usepackage[backend=bibtex8]{biblatex}

usepackage{filecontents}
begin{filecontents}{mybib.bib}
@inproceedings{doe2017,
title={A really interesting and long title to illustrate the problem},
author={Doe, John},
booktitle={Some International Conference on Something Really Interesting},
pages={100--200},
year={2017}
}
end{filecontents}

bibliography{mybib}

begin{document}

begin{frame}{Publications}
nocite{doe2017}
printbibliography
end{frame}

end{document}


Output:



latex output bibliography







beamer biblatex bibliographies






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 27 at 15:06









user179157user179157

454




454








  • 2





    What indentation are you talking about? The fact that the second and third lines start roughly at the same position as the first line in general? (This would be intentional and is normal for lists in LaTeX.) Or do you mean that there is a slightly misalignment so that the first line starts a tad wider to the right than the other lines? (That probably needs a bit of adjusting and looking at. Not a lot of people seem to be bothered by it, though... otherwise we would have seen more questions about that.)

    – moewe
    Mar 27 at 15:12








  • 1





    I expect that "J" of "John" is properly aligned with "p" of "problem". When I have multiline items in an itemize environment they are also properly aligned and the first line of each item is not shifted a bit to the right.

    – user179157
    Mar 27 at 15:21








  • 2





    Ah OK, I'll have something ready for that in a moment.

    – moewe
    Mar 27 at 15:23











  • Thanks! That really does the trick. I wonder why this never bothered anyone...

    – user179157
    Mar 27 at 16:13











  • Well, the space is quite small and if people cite ten or more papers or use a non-numeric style the issue will (probably) not appear because the space reserved for the label is going to be large enough for the icon (though arguably excessive).

    – moewe
    Mar 27 at 16:15
















  • 2





    What indentation are you talking about? The fact that the second and third lines start roughly at the same position as the first line in general? (This would be intentional and is normal for lists in LaTeX.) Or do you mean that there is a slightly misalignment so that the first line starts a tad wider to the right than the other lines? (That probably needs a bit of adjusting and looking at. Not a lot of people seem to be bothered by it, though... otherwise we would have seen more questions about that.)

    – moewe
    Mar 27 at 15:12








  • 1





    I expect that "J" of "John" is properly aligned with "p" of "problem". When I have multiline items in an itemize environment they are also properly aligned and the first line of each item is not shifted a bit to the right.

    – user179157
    Mar 27 at 15:21








  • 2





    Ah OK, I'll have something ready for that in a moment.

    – moewe
    Mar 27 at 15:23











  • Thanks! That really does the trick. I wonder why this never bothered anyone...

    – user179157
    Mar 27 at 16:13











  • Well, the space is quite small and if people cite ten or more papers or use a non-numeric style the issue will (probably) not appear because the space reserved for the label is going to be large enough for the icon (though arguably excessive).

    – moewe
    Mar 27 at 16:15










2




2





What indentation are you talking about? The fact that the second and third lines start roughly at the same position as the first line in general? (This would be intentional and is normal for lists in LaTeX.) Or do you mean that there is a slightly misalignment so that the first line starts a tad wider to the right than the other lines? (That probably needs a bit of adjusting and looking at. Not a lot of people seem to be bothered by it, though... otherwise we would have seen more questions about that.)

– moewe
Mar 27 at 15:12







What indentation are you talking about? The fact that the second and third lines start roughly at the same position as the first line in general? (This would be intentional and is normal for lists in LaTeX.) Or do you mean that there is a slightly misalignment so that the first line starts a tad wider to the right than the other lines? (That probably needs a bit of adjusting and looking at. Not a lot of people seem to be bothered by it, though... otherwise we would have seen more questions about that.)

– moewe
Mar 27 at 15:12






1




1





I expect that "J" of "John" is properly aligned with "p" of "problem". When I have multiline items in an itemize environment they are also properly aligned and the first line of each item is not shifted a bit to the right.

– user179157
Mar 27 at 15:21







I expect that "J" of "John" is properly aligned with "p" of "problem". When I have multiline items in an itemize environment they are also properly aligned and the first line of each item is not shifted a bit to the right.

– user179157
Mar 27 at 15:21






2




2





Ah OK, I'll have something ready for that in a moment.

– moewe
Mar 27 at 15:23





Ah OK, I'll have something ready for that in a moment.

– moewe
Mar 27 at 15:23













Thanks! That really does the trick. I wonder why this never bothered anyone...

– user179157
Mar 27 at 16:13





Thanks! That really does the trick. I wonder why this never bothered anyone...

– user179157
Mar 27 at 16:13













Well, the space is quite small and if people cite ten or more papers or use a non-numeric style the issue will (probably) not appear because the space reserved for the label is going to be large enough for the icon (though arguably excessive).

– moewe
Mar 27 at 16:15







Well, the space is quite small and if people cite ten or more papers or use a non-numeric style the issue will (probably) not appear because the space reserved for the label is going to be large enough for the icon (though arguably excessive).

– moewe
Mar 27 at 16:15












1 Answer
1






active

oldest

votes


















6














In order to be able to align the lines in the bibliography properly biblatex measures the width of all bibliography labels and uses the longest label to set the list parameters.



But by default beamer replaces the standard labels that biblatex would output with its little icons. Those icons may have a slightly different width than the actual labels and so small misalignments can occur in the first line of the bibliography entry if the icon is wider than the calculated label (on the other hand the left margin might be excessive in case the calculated length is far larger than the icon width).



I have reported the issue at https://github.com/josephwright/beamer/issues/531 to discuss a better (hopefully automatic) solution, but in the meantime you can set the relevant biblatex-calculated width manually (or rather you can manually set a minimum value). After a look at the beamer sources 14pt looks like a good minimum value.



documentclass{beamer}
usepackage[backend=biber]{biblatex}
addbibresource{biblatex-examples.bib}

setlength{labelnumberwidth}{14pt}

begin{document}
begin{frame}{Publications}
nocite{sigfridsson}
printbibliography
end{frame}
end{document}


Before



After






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%2f481724%2funexpected-indention-in-bibliography-items-beamer%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









    6














    In order to be able to align the lines in the bibliography properly biblatex measures the width of all bibliography labels and uses the longest label to set the list parameters.



    But by default beamer replaces the standard labels that biblatex would output with its little icons. Those icons may have a slightly different width than the actual labels and so small misalignments can occur in the first line of the bibliography entry if the icon is wider than the calculated label (on the other hand the left margin might be excessive in case the calculated length is far larger than the icon width).



    I have reported the issue at https://github.com/josephwright/beamer/issues/531 to discuss a better (hopefully automatic) solution, but in the meantime you can set the relevant biblatex-calculated width manually (or rather you can manually set a minimum value). After a look at the beamer sources 14pt looks like a good minimum value.



    documentclass{beamer}
    usepackage[backend=biber]{biblatex}
    addbibresource{biblatex-examples.bib}

    setlength{labelnumberwidth}{14pt}

    begin{document}
    begin{frame}{Publications}
    nocite{sigfridsson}
    printbibliography
    end{frame}
    end{document}


    Before



    After






    share|improve this answer






























      6














      In order to be able to align the lines in the bibliography properly biblatex measures the width of all bibliography labels and uses the longest label to set the list parameters.



      But by default beamer replaces the standard labels that biblatex would output with its little icons. Those icons may have a slightly different width than the actual labels and so small misalignments can occur in the first line of the bibliography entry if the icon is wider than the calculated label (on the other hand the left margin might be excessive in case the calculated length is far larger than the icon width).



      I have reported the issue at https://github.com/josephwright/beamer/issues/531 to discuss a better (hopefully automatic) solution, but in the meantime you can set the relevant biblatex-calculated width manually (or rather you can manually set a minimum value). After a look at the beamer sources 14pt looks like a good minimum value.



      documentclass{beamer}
      usepackage[backend=biber]{biblatex}
      addbibresource{biblatex-examples.bib}

      setlength{labelnumberwidth}{14pt}

      begin{document}
      begin{frame}{Publications}
      nocite{sigfridsson}
      printbibliography
      end{frame}
      end{document}


      Before



      After






      share|improve this answer




























        6












        6








        6







        In order to be able to align the lines in the bibliography properly biblatex measures the width of all bibliography labels and uses the longest label to set the list parameters.



        But by default beamer replaces the standard labels that biblatex would output with its little icons. Those icons may have a slightly different width than the actual labels and so small misalignments can occur in the first line of the bibliography entry if the icon is wider than the calculated label (on the other hand the left margin might be excessive in case the calculated length is far larger than the icon width).



        I have reported the issue at https://github.com/josephwright/beamer/issues/531 to discuss a better (hopefully automatic) solution, but in the meantime you can set the relevant biblatex-calculated width manually (or rather you can manually set a minimum value). After a look at the beamer sources 14pt looks like a good minimum value.



        documentclass{beamer}
        usepackage[backend=biber]{biblatex}
        addbibresource{biblatex-examples.bib}

        setlength{labelnumberwidth}{14pt}

        begin{document}
        begin{frame}{Publications}
        nocite{sigfridsson}
        printbibliography
        end{frame}
        end{document}


        Before



        After






        share|improve this answer















        In order to be able to align the lines in the bibliography properly biblatex measures the width of all bibliography labels and uses the longest label to set the list parameters.



        But by default beamer replaces the standard labels that biblatex would output with its little icons. Those icons may have a slightly different width than the actual labels and so small misalignments can occur in the first line of the bibliography entry if the icon is wider than the calculated label (on the other hand the left margin might be excessive in case the calculated length is far larger than the icon width).



        I have reported the issue at https://github.com/josephwright/beamer/issues/531 to discuss a better (hopefully automatic) solution, but in the meantime you can set the relevant biblatex-calculated width manually (or rather you can manually set a minimum value). After a look at the beamer sources 14pt looks like a good minimum value.



        documentclass{beamer}
        usepackage[backend=biber]{biblatex}
        addbibresource{biblatex-examples.bib}

        setlength{labelnumberwidth}{14pt}

        begin{document}
        begin{frame}{Publications}
        nocite{sigfridsson}
        printbibliography
        end{frame}
        end{document}


        Before



        After







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 27 at 15:45

























        answered Mar 27 at 15:38









        moewemoewe

        96.5k10118362




        96.5k10118362






























            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%2f481724%2funexpected-indention-in-bibliography-items-beamer%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

            If I really need a card on my start hand, how many mulligans make sense? [duplicate]

            Alcedinidae

            Can an atomic nucleus contain both particles and antiparticles? [duplicate]