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.
sectioning bibliographies subdividing bibunits
add a comment |
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.
sectioning bibliographies subdividing bibunits
add a comment |
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.
sectioning bibliographies subdividing bibunits
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
sectioning bibliographies subdividing bibunits
edited Dec 12 '12 at 22:54
lockstep
189k52584717
189k52584717
asked Dec 12 '12 at 21:37
Tyler
2,0981127
2,0981127
add a comment |
add a comment |
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.
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
add a comment |
up vote
0
down vote
You can also do
renewcommand{refname}{vspace*{-21pt}}
adjusting 21 to your liking.
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
up vote
0
down vote
You can also do
renewcommand{refname}{vspace*{-21pt}}
adjusting 21 to your liking.
add a comment |
up vote
0
down vote
You can also do
renewcommand{refname}{vspace*{-21pt}}
adjusting 21 to your liking.
add a comment |
up vote
0
down vote
up vote
0
down vote
You can also do
renewcommand{refname}{vspace*{-21pt}}
adjusting 21 to your liking.
You can also do
renewcommand{refname}{vspace*{-21pt}}
adjusting 21 to your liking.
answered 2 days ago
Rufus Xavier
84
84
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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