Remove heading from bibunit











up vote
4
down vote

favorite












I'm using bibunit to enter multiple bibliographies in a document. I don't want the bibunit to have a separate heading. I can remove the text with by redefining refname, but this still leaves big vertical space. How can I drop that space entirely?



Here's a toy example:



documentclass{article}
usepackage{bibunits}
begin{document}

defaultbibliographystyle{plainyr-rev}
defaultbibliography{ab,ty2}
renewcommand{refname}{}

section{Publications}

Some text goes here.

begin{bibunit}
nocite{smith_douglas_ea_2004}
putbib
end{bibunit}
end{document}


This produces:





I've drawn a red line on the image to show the space I want to reduce/eliminate.










share|improve this question




























    up vote
    4
    down vote

    favorite












    I'm using bibunit to enter multiple bibliographies in a document. I don't want the bibunit to have a separate heading. I can remove the text with by redefining refname, but this still leaves big vertical space. How can I drop that space entirely?



    Here's a toy example:



    documentclass{article}
    usepackage{bibunits}
    begin{document}

    defaultbibliographystyle{plainyr-rev}
    defaultbibliography{ab,ty2}
    renewcommand{refname}{}

    section{Publications}

    Some text goes here.

    begin{bibunit}
    nocite{smith_douglas_ea_2004}
    putbib
    end{bibunit}
    end{document}


    This produces:





    I've drawn a red line on the image to show the space I want to reduce/eliminate.










    share|improve this question


























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      I'm using bibunit to enter multiple bibliographies in a document. I don't want the bibunit to have a separate heading. I can remove the text with by redefining refname, but this still leaves big vertical space. How can I drop that space entirely?



      Here's a toy example:



      documentclass{article}
      usepackage{bibunits}
      begin{document}

      defaultbibliographystyle{plainyr-rev}
      defaultbibliography{ab,ty2}
      renewcommand{refname}{}

      section{Publications}

      Some text goes here.

      begin{bibunit}
      nocite{smith_douglas_ea_2004}
      putbib
      end{bibunit}
      end{document}


      This produces:





      I've drawn a red line on the image to show the space I want to reduce/eliminate.










      share|improve this question















      I'm using bibunit to enter multiple bibliographies in a document. I don't want the bibunit to have a separate heading. I can remove the text with by redefining refname, but this still leaves big vertical space. How can I drop that space entirely?



      Here's a toy example:



      documentclass{article}
      usepackage{bibunits}
      begin{document}

      defaultbibliographystyle{plainyr-rev}
      defaultbibliography{ab,ty2}
      renewcommand{refname}{}

      section{Publications}

      Some text goes here.

      begin{bibunit}
      nocite{smith_douglas_ea_2004}
      putbib
      end{bibunit}
      end{document}


      This produces:





      I've drawn a red line on the image to show the space I want to reduce/eliminate.







      sectioning bibliographies subdividing bibunits






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 12 '12 at 22:54









      lockstep

      189k52584717




      189k52584717










      asked Dec 12 '12 at 21:37









      Tyler

      2,0981127




      2,0981127






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          A hack specific for the article class. Other classes may require different workarounds:



          documentclass{article}
          usepackage{bibunits}

          %%% START HACK
          usepackage{etoolbox}
          AtBeginEnvironment{bibunit}{renewcommandsection[5]{}}
          %%% END HACK

          begin{document}

          defaultbibliographystyle{plainyr-rev}
          defaultbibliography{ab,ty2}

          section{Publications}

          Some text goes here.

          begin{bibunit}
          nocite{smith_douglas_ea_2004}
          putbib
          end{bibunit}
          end{document}


          Explanation: the code for the thebibliography environment starts with



          newenvironment{thebibliography}[1]
          {section*{refname}%
          @mkboth{MakeUppercaserefname}{MakeUppercaserefname}%
          list{@biblabel{@arabicc@enumiv}}%
          [...]


          and the redefinition of section we perform when bibunits starts gobbles section together with the five "arguments" that follow:



          *
          {refname}
          @mkboth
          {MakeUppercaserefname}
          {MakeUppercaserefname}


          A cleaner approach would be to redefine the environment:



          makeatletter
          renewenvironment{thebibliography}[1]
          {list{@biblabel{@arabicc@enumiv}}%
          {settowidthlabelwidth{@biblabel{#1}}%
          leftmarginlabelwidth
          advanceleftmarginlabelsep
          @openbib@code
          usecounter{enumiv}%
          letp@enumiv@empty
          renewcommandtheenumiv{@arabicc@enumiv}}%
          sloppy
          clubpenalty4000
          @clubpenalty clubpenalty
          widowpenalty4000%
          sfcode`.@m}
          {def@noitemerr
          {@latex@warning{Empty `thebibliography' environment}}%
          endlist}
          makeatother


          removing the code responsible for the section* command.






          share|improve this answer





















          • Thanks! I had found the relevant code in article.cls, but didn't know what to do with it.
            – Tyler
            Dec 13 '12 at 14:19


















          up vote
          0
          down vote













          You can also do



          renewcommand{refname}{vspace*{-21pt}}


          adjusting 21 to your liking.






          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',
            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%2f86793%2fremove-heading-from-bibunit%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            4
            down vote



            accepted










            A hack specific for the article class. Other classes may require different workarounds:



            documentclass{article}
            usepackage{bibunits}

            %%% START HACK
            usepackage{etoolbox}
            AtBeginEnvironment{bibunit}{renewcommandsection[5]{}}
            %%% END HACK

            begin{document}

            defaultbibliographystyle{plainyr-rev}
            defaultbibliography{ab,ty2}

            section{Publications}

            Some text goes here.

            begin{bibunit}
            nocite{smith_douglas_ea_2004}
            putbib
            end{bibunit}
            end{document}


            Explanation: the code for the thebibliography environment starts with



            newenvironment{thebibliography}[1]
            {section*{refname}%
            @mkboth{MakeUppercaserefname}{MakeUppercaserefname}%
            list{@biblabel{@arabicc@enumiv}}%
            [...]


            and the redefinition of section we perform when bibunits starts gobbles section together with the five "arguments" that follow:



            *
            {refname}
            @mkboth
            {MakeUppercaserefname}
            {MakeUppercaserefname}


            A cleaner approach would be to redefine the environment:



            makeatletter
            renewenvironment{thebibliography}[1]
            {list{@biblabel{@arabicc@enumiv}}%
            {settowidthlabelwidth{@biblabel{#1}}%
            leftmarginlabelwidth
            advanceleftmarginlabelsep
            @openbib@code
            usecounter{enumiv}%
            letp@enumiv@empty
            renewcommandtheenumiv{@arabicc@enumiv}}%
            sloppy
            clubpenalty4000
            @clubpenalty clubpenalty
            widowpenalty4000%
            sfcode`.@m}
            {def@noitemerr
            {@latex@warning{Empty `thebibliography' environment}}%
            endlist}
            makeatother


            removing the code responsible for the section* command.






            share|improve this answer





















            • Thanks! I had found the relevant code in article.cls, but didn't know what to do with it.
              – Tyler
              Dec 13 '12 at 14:19















            up vote
            4
            down vote



            accepted










            A hack specific for the article class. Other classes may require different workarounds:



            documentclass{article}
            usepackage{bibunits}

            %%% START HACK
            usepackage{etoolbox}
            AtBeginEnvironment{bibunit}{renewcommandsection[5]{}}
            %%% END HACK

            begin{document}

            defaultbibliographystyle{plainyr-rev}
            defaultbibliography{ab,ty2}

            section{Publications}

            Some text goes here.

            begin{bibunit}
            nocite{smith_douglas_ea_2004}
            putbib
            end{bibunit}
            end{document}


            Explanation: the code for the thebibliography environment starts with



            newenvironment{thebibliography}[1]
            {section*{refname}%
            @mkboth{MakeUppercaserefname}{MakeUppercaserefname}%
            list{@biblabel{@arabicc@enumiv}}%
            [...]


            and the redefinition of section we perform when bibunits starts gobbles section together with the five "arguments" that follow:



            *
            {refname}
            @mkboth
            {MakeUppercaserefname}
            {MakeUppercaserefname}


            A cleaner approach would be to redefine the environment:



            makeatletter
            renewenvironment{thebibliography}[1]
            {list{@biblabel{@arabicc@enumiv}}%
            {settowidthlabelwidth{@biblabel{#1}}%
            leftmarginlabelwidth
            advanceleftmarginlabelsep
            @openbib@code
            usecounter{enumiv}%
            letp@enumiv@empty
            renewcommandtheenumiv{@arabicc@enumiv}}%
            sloppy
            clubpenalty4000
            @clubpenalty clubpenalty
            widowpenalty4000%
            sfcode`.@m}
            {def@noitemerr
            {@latex@warning{Empty `thebibliography' environment}}%
            endlist}
            makeatother


            removing the code responsible for the section* command.






            share|improve this answer





















            • Thanks! I had found the relevant code in article.cls, but didn't know what to do with it.
              – Tyler
              Dec 13 '12 at 14:19













            up vote
            4
            down vote



            accepted







            up vote
            4
            down vote



            accepted






            A hack specific for the article class. Other classes may require different workarounds:



            documentclass{article}
            usepackage{bibunits}

            %%% START HACK
            usepackage{etoolbox}
            AtBeginEnvironment{bibunit}{renewcommandsection[5]{}}
            %%% END HACK

            begin{document}

            defaultbibliographystyle{plainyr-rev}
            defaultbibliography{ab,ty2}

            section{Publications}

            Some text goes here.

            begin{bibunit}
            nocite{smith_douglas_ea_2004}
            putbib
            end{bibunit}
            end{document}


            Explanation: the code for the thebibliography environment starts with



            newenvironment{thebibliography}[1]
            {section*{refname}%
            @mkboth{MakeUppercaserefname}{MakeUppercaserefname}%
            list{@biblabel{@arabicc@enumiv}}%
            [...]


            and the redefinition of section we perform when bibunits starts gobbles section together with the five "arguments" that follow:



            *
            {refname}
            @mkboth
            {MakeUppercaserefname}
            {MakeUppercaserefname}


            A cleaner approach would be to redefine the environment:



            makeatletter
            renewenvironment{thebibliography}[1]
            {list{@biblabel{@arabicc@enumiv}}%
            {settowidthlabelwidth{@biblabel{#1}}%
            leftmarginlabelwidth
            advanceleftmarginlabelsep
            @openbib@code
            usecounter{enumiv}%
            letp@enumiv@empty
            renewcommandtheenumiv{@arabicc@enumiv}}%
            sloppy
            clubpenalty4000
            @clubpenalty clubpenalty
            widowpenalty4000%
            sfcode`.@m}
            {def@noitemerr
            {@latex@warning{Empty `thebibliography' environment}}%
            endlist}
            makeatother


            removing the code responsible for the section* command.






            share|improve this answer












            A hack specific for the article class. Other classes may require different workarounds:



            documentclass{article}
            usepackage{bibunits}

            %%% START HACK
            usepackage{etoolbox}
            AtBeginEnvironment{bibunit}{renewcommandsection[5]{}}
            %%% END HACK

            begin{document}

            defaultbibliographystyle{plainyr-rev}
            defaultbibliography{ab,ty2}

            section{Publications}

            Some text goes here.

            begin{bibunit}
            nocite{smith_douglas_ea_2004}
            putbib
            end{bibunit}
            end{document}


            Explanation: the code for the thebibliography environment starts with



            newenvironment{thebibliography}[1]
            {section*{refname}%
            @mkboth{MakeUppercaserefname}{MakeUppercaserefname}%
            list{@biblabel{@arabicc@enumiv}}%
            [...]


            and the redefinition of section we perform when bibunits starts gobbles section together with the five "arguments" that follow:



            *
            {refname}
            @mkboth
            {MakeUppercaserefname}
            {MakeUppercaserefname}


            A cleaner approach would be to redefine the environment:



            makeatletter
            renewenvironment{thebibliography}[1]
            {list{@biblabel{@arabicc@enumiv}}%
            {settowidthlabelwidth{@biblabel{#1}}%
            leftmarginlabelwidth
            advanceleftmarginlabelsep
            @openbib@code
            usecounter{enumiv}%
            letp@enumiv@empty
            renewcommandtheenumiv{@arabicc@enumiv}}%
            sloppy
            clubpenalty4000
            @clubpenalty clubpenalty
            widowpenalty4000%
            sfcode`.@m}
            {def@noitemerr
            {@latex@warning{Empty `thebibliography' environment}}%
            endlist}
            makeatother


            removing the code responsible for the section* command.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 12 '12 at 23:53









            egreg

            698k8518573126




            698k8518573126












            • Thanks! I had found the relevant code in article.cls, but didn't know what to do with it.
              – Tyler
              Dec 13 '12 at 14:19


















            • Thanks! I had found the relevant code in article.cls, but didn't know what to do with it.
              – Tyler
              Dec 13 '12 at 14:19
















            Thanks! I had found the relevant code in article.cls, but didn't know what to do with it.
            – Tyler
            Dec 13 '12 at 14:19




            Thanks! I had found the relevant code in article.cls, but didn't know what to do with it.
            – Tyler
            Dec 13 '12 at 14:19










            up vote
            0
            down vote













            You can also do



            renewcommand{refname}{vspace*{-21pt}}


            adjusting 21 to your liking.






            share|improve this answer

























              up vote
              0
              down vote













              You can also do



              renewcommand{refname}{vspace*{-21pt}}


              adjusting 21 to your liking.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                You can also do



                renewcommand{refname}{vspace*{-21pt}}


                adjusting 21 to your liking.






                share|improve this answer












                You can also do



                renewcommand{refname}{vspace*{-21pt}}


                adjusting 21 to your liking.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                Rufus Xavier

                84




                84






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f86793%2fremove-heading-from-bibunit%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

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt