Changes in thebibliography environment
I am trying to make two changes in thebibliography environment. In particular, I need two things:
1) I need the style of the heading "References" to be different from the section environment. In particular, I need the references to appear just below the heading, without a vertical space.
2) I need the references to be aligned as the main text. Now, I don't know why the references appear like they are indented.
documentclass[12pt,twoside]{article}
usepackage[a4paper,width=150mm,top=30mm,bottom=30mm,bindingoffset=10mm]{geometry}
linespread{1}
setlengthparindent{1.25cm}
renewcommand{footnotesize}{small}
usepackage[hang]{footmisc}
setlengthfootnotemargin{1.25cm}
%usepackage[utf8]{inputenc} %Standard diachritics in Romance languages (accents, umlauts)
usepackage{times} %Uses Times New Roman font
usepackage{tikz}
%noautomath
usepackage{url}
usepackage{multicol}
usepackage[all,defaultlines=2]{nowidow}
usepackage{mathtools}
usepackage{forest}
usepackage{tipa}
usepackage[normalem]{ulem}
usepackage{xpatch}
usepackage{graphicx}
usepackage[utf8]{inputenc}
pagenumbering{arabic}
makeatletter
renewcommand@biblabel[1]{}
makeatother
usepackage[tiny]{titlesec}
titlelabel{thetitle.quad}
titleformat*{subsection}{itshape}
titlespacing*{section}
{0pt}{2baselineskip}{baselineskip}
titlespacing*{subsection}
{0pt}{1baselineskip}{0baselineskip}
titleformat*{subsubsection}{itshape}
titlespacing*{subsubsection}
{0pt}{1baselineskip}{0baselineskip}
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
}
makeatletter
% patch maketitle so that it doesn't center
patchcmd{@maketitle}{center}{flushleft}{}{}
patchcmd{@maketitle}{center}{flushleft}{}{}
% patch maketitle so that the font size for the title is normal
patchcmd{@maketitle}{LARGE}{normalsize}{}{}
defmaketitle{{%
renewenvironment{tabular}[2]
{begin{flushleft}}
{end{flushleft}}
AB@maketitle}}
makeatother
defbibindent{3em}
makeatletter
letold@biblabel@biblabel
def@biblabel#1{old@biblabel{#1}kernbibindent}
letold@bibitembibitem
defbibitem#1{old@bibitem{#1}leavevmodekern-bibindent}
makeatother
usepackage{lipsum}
begin{document}
section{First section}
lipsum[3]
subsection{Subsection}
lipsum[3]
subsection{Subsubsection}
lipsum[3]
begin{thebibliography}{57}
bibitem{key-1}Adger, David. 2003. emph{Core Syntax. A minimalist
Approach}. Oxford University Press, New York.
bibitem{key-16}Alberdi, Xabier. 1994. emph{Euskararen tratamenduak: erabilera. }EHU-UPV.
bibitem{key-2}Albizu, Pablo. 1991. ``Sobre la existencia del Movimiento
Largo de N'{u}cleos en Euskera." Manuscript, Instituto Universitario
Ortega y Gasset, Madrid.
end{thebibliography}
end{document}
bibliographies
add a comment |
I am trying to make two changes in thebibliography environment. In particular, I need two things:
1) I need the style of the heading "References" to be different from the section environment. In particular, I need the references to appear just below the heading, without a vertical space.
2) I need the references to be aligned as the main text. Now, I don't know why the references appear like they are indented.
documentclass[12pt,twoside]{article}
usepackage[a4paper,width=150mm,top=30mm,bottom=30mm,bindingoffset=10mm]{geometry}
linespread{1}
setlengthparindent{1.25cm}
renewcommand{footnotesize}{small}
usepackage[hang]{footmisc}
setlengthfootnotemargin{1.25cm}
%usepackage[utf8]{inputenc} %Standard diachritics in Romance languages (accents, umlauts)
usepackage{times} %Uses Times New Roman font
usepackage{tikz}
%noautomath
usepackage{url}
usepackage{multicol}
usepackage[all,defaultlines=2]{nowidow}
usepackage{mathtools}
usepackage{forest}
usepackage{tipa}
usepackage[normalem]{ulem}
usepackage{xpatch}
usepackage{graphicx}
usepackage[utf8]{inputenc}
pagenumbering{arabic}
makeatletter
renewcommand@biblabel[1]{}
makeatother
usepackage[tiny]{titlesec}
titlelabel{thetitle.quad}
titleformat*{subsection}{itshape}
titlespacing*{section}
{0pt}{2baselineskip}{baselineskip}
titlespacing*{subsection}
{0pt}{1baselineskip}{0baselineskip}
titleformat*{subsubsection}{itshape}
titlespacing*{subsubsection}
{0pt}{1baselineskip}{0baselineskip}
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
}
makeatletter
% patch maketitle so that it doesn't center
patchcmd{@maketitle}{center}{flushleft}{}{}
patchcmd{@maketitle}{center}{flushleft}{}{}
% patch maketitle so that the font size for the title is normal
patchcmd{@maketitle}{LARGE}{normalsize}{}{}
defmaketitle{{%
renewenvironment{tabular}[2]
{begin{flushleft}}
{end{flushleft}}
AB@maketitle}}
makeatother
defbibindent{3em}
makeatletter
letold@biblabel@biblabel
def@biblabel#1{old@biblabel{#1}kernbibindent}
letold@bibitembibitem
defbibitem#1{old@bibitem{#1}leavevmodekern-bibindent}
makeatother
usepackage{lipsum}
begin{document}
section{First section}
lipsum[3]
subsection{Subsection}
lipsum[3]
subsection{Subsubsection}
lipsum[3]
begin{thebibliography}{57}
bibitem{key-1}Adger, David. 2003. emph{Core Syntax. A minimalist
Approach}. Oxford University Press, New York.
bibitem{key-16}Alberdi, Xabier. 1994. emph{Euskararen tratamenduak: erabilera. }EHU-UPV.
bibitem{key-2}Albizu, Pablo. 1991. ``Sobre la existencia del Movimiento
Largo de N'{u}cleos en Euskera." Manuscript, Instituto Universitario
Ortega y Gasset, Madrid.
end{thebibliography}
end{document}
bibliographies
2
Welcome to TeX.SX! A tip: You can use backticks`to mark your inline code as I did in my edit.
– dexteritas
Dec 13 '18 at 14:49
add a comment |
I am trying to make two changes in thebibliography environment. In particular, I need two things:
1) I need the style of the heading "References" to be different from the section environment. In particular, I need the references to appear just below the heading, without a vertical space.
2) I need the references to be aligned as the main text. Now, I don't know why the references appear like they are indented.
documentclass[12pt,twoside]{article}
usepackage[a4paper,width=150mm,top=30mm,bottom=30mm,bindingoffset=10mm]{geometry}
linespread{1}
setlengthparindent{1.25cm}
renewcommand{footnotesize}{small}
usepackage[hang]{footmisc}
setlengthfootnotemargin{1.25cm}
%usepackage[utf8]{inputenc} %Standard diachritics in Romance languages (accents, umlauts)
usepackage{times} %Uses Times New Roman font
usepackage{tikz}
%noautomath
usepackage{url}
usepackage{multicol}
usepackage[all,defaultlines=2]{nowidow}
usepackage{mathtools}
usepackage{forest}
usepackage{tipa}
usepackage[normalem]{ulem}
usepackage{xpatch}
usepackage{graphicx}
usepackage[utf8]{inputenc}
pagenumbering{arabic}
makeatletter
renewcommand@biblabel[1]{}
makeatother
usepackage[tiny]{titlesec}
titlelabel{thetitle.quad}
titleformat*{subsection}{itshape}
titlespacing*{section}
{0pt}{2baselineskip}{baselineskip}
titlespacing*{subsection}
{0pt}{1baselineskip}{0baselineskip}
titleformat*{subsubsection}{itshape}
titlespacing*{subsubsection}
{0pt}{1baselineskip}{0baselineskip}
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
}
makeatletter
% patch maketitle so that it doesn't center
patchcmd{@maketitle}{center}{flushleft}{}{}
patchcmd{@maketitle}{center}{flushleft}{}{}
% patch maketitle so that the font size for the title is normal
patchcmd{@maketitle}{LARGE}{normalsize}{}{}
defmaketitle{{%
renewenvironment{tabular}[2]
{begin{flushleft}}
{end{flushleft}}
AB@maketitle}}
makeatother
defbibindent{3em}
makeatletter
letold@biblabel@biblabel
def@biblabel#1{old@biblabel{#1}kernbibindent}
letold@bibitembibitem
defbibitem#1{old@bibitem{#1}leavevmodekern-bibindent}
makeatother
usepackage{lipsum}
begin{document}
section{First section}
lipsum[3]
subsection{Subsection}
lipsum[3]
subsection{Subsubsection}
lipsum[3]
begin{thebibliography}{57}
bibitem{key-1}Adger, David. 2003. emph{Core Syntax. A minimalist
Approach}. Oxford University Press, New York.
bibitem{key-16}Alberdi, Xabier. 1994. emph{Euskararen tratamenduak: erabilera. }EHU-UPV.
bibitem{key-2}Albizu, Pablo. 1991. ``Sobre la existencia del Movimiento
Largo de N'{u}cleos en Euskera." Manuscript, Instituto Universitario
Ortega y Gasset, Madrid.
end{thebibliography}
end{document}
bibliographies
I am trying to make two changes in thebibliography environment. In particular, I need two things:
1) I need the style of the heading "References" to be different from the section environment. In particular, I need the references to appear just below the heading, without a vertical space.
2) I need the references to be aligned as the main text. Now, I don't know why the references appear like they are indented.
documentclass[12pt,twoside]{article}
usepackage[a4paper,width=150mm,top=30mm,bottom=30mm,bindingoffset=10mm]{geometry}
linespread{1}
setlengthparindent{1.25cm}
renewcommand{footnotesize}{small}
usepackage[hang]{footmisc}
setlengthfootnotemargin{1.25cm}
%usepackage[utf8]{inputenc} %Standard diachritics in Romance languages (accents, umlauts)
usepackage{times} %Uses Times New Roman font
usepackage{tikz}
%noautomath
usepackage{url}
usepackage{multicol}
usepackage[all,defaultlines=2]{nowidow}
usepackage{mathtools}
usepackage{forest}
usepackage{tipa}
usepackage[normalem]{ulem}
usepackage{xpatch}
usepackage{graphicx}
usepackage[utf8]{inputenc}
pagenumbering{arabic}
makeatletter
renewcommand@biblabel[1]{}
makeatother
usepackage[tiny]{titlesec}
titlelabel{thetitle.quad}
titleformat*{subsection}{itshape}
titlespacing*{section}
{0pt}{2baselineskip}{baselineskip}
titlespacing*{subsection}
{0pt}{1baselineskip}{0baselineskip}
titleformat*{subsubsection}{itshape}
titlespacing*{subsubsection}
{0pt}{1baselineskip}{0baselineskip}
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
}
makeatletter
% patch maketitle so that it doesn't center
patchcmd{@maketitle}{center}{flushleft}{}{}
patchcmd{@maketitle}{center}{flushleft}{}{}
% patch maketitle so that the font size for the title is normal
patchcmd{@maketitle}{LARGE}{normalsize}{}{}
defmaketitle{{%
renewenvironment{tabular}[2]
{begin{flushleft}}
{end{flushleft}}
AB@maketitle}}
makeatother
defbibindent{3em}
makeatletter
letold@biblabel@biblabel
def@biblabel#1{old@biblabel{#1}kernbibindent}
letold@bibitembibitem
defbibitem#1{old@bibitem{#1}leavevmodekern-bibindent}
makeatother
usepackage{lipsum}
begin{document}
section{First section}
lipsum[3]
subsection{Subsection}
lipsum[3]
subsection{Subsubsection}
lipsum[3]
begin{thebibliography}{57}
bibitem{key-1}Adger, David. 2003. emph{Core Syntax. A minimalist
Approach}. Oxford University Press, New York.
bibitem{key-16}Alberdi, Xabier. 1994. emph{Euskararen tratamenduak: erabilera. }EHU-UPV.
bibitem{key-2}Albizu, Pablo. 1991. ``Sobre la existencia del Movimiento
Largo de N'{u}cleos en Euskera." Manuscript, Instituto Universitario
Ortega y Gasset, Madrid.
end{thebibliography}
end{document}
bibliographies
bibliographies
edited Dec 14 '18 at 9:24
asked Dec 13 '18 at 14:37
crealp
134
134
2
Welcome to TeX.SX! A tip: You can use backticks`to mark your inline code as I did in my edit.
– dexteritas
Dec 13 '18 at 14:49
add a comment |
2
Welcome to TeX.SX! A tip: You can use backticks`to mark your inline code as I did in my edit.
– dexteritas
Dec 13 '18 at 14:49
2
2
Welcome to TeX.SX! A tip: You can use backticks
` to mark your inline code as I did in my edit.– dexteritas
Dec 13 '18 at 14:49
Welcome to TeX.SX! A tip: You can use backticks
` to mark your inline code as I did in my edit.– dexteritas
Dec 13 '18 at 14:49
add a comment |
1 Answer
1
active
oldest
votes
You can add negative vspace in the end of new thebibliography to reduce this spacing. One work around to solve the second issue is to set itemindent negative value so that items will move left. Something like this:
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
setlength{itemindent}{-1ex}
vspace{-2ex}
}

It works wonders! Thank you very much. Any thoughts about the first problem?
– crealp
Dec 13 '18 at 16:17
@crealp I didn't quite understand the first part. "just below the heading, without a horizontal space." Did you mean vertical space?
– nidhin
Dec 13 '18 at 16:41
Yes! Without a vertical space. Sorry (I will edit the question). I want the title of the bibliography to have a different style from the first level heading "section". I guess that the problem is that "thebibliography" environment issues the style of the section environment, and I don't know if I can change that.
– crealp
Dec 14 '18 at 9:23
@crealp see the updated version of answer
– nidhin
Dec 14 '18 at 11:04
add a comment |
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
});
}
});
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%2f464714%2fchanges-in-thebibliography-environment%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
You can add negative vspace in the end of new thebibliography to reduce this spacing. One work around to solve the second issue is to set itemindent negative value so that items will move left. Something like this:
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
setlength{itemindent}{-1ex}
vspace{-2ex}
}

It works wonders! Thank you very much. Any thoughts about the first problem?
– crealp
Dec 13 '18 at 16:17
@crealp I didn't quite understand the first part. "just below the heading, without a horizontal space." Did you mean vertical space?
– nidhin
Dec 13 '18 at 16:41
Yes! Without a vertical space. Sorry (I will edit the question). I want the title of the bibliography to have a different style from the first level heading "section". I guess that the problem is that "thebibliography" environment issues the style of the section environment, and I don't know if I can change that.
– crealp
Dec 14 '18 at 9:23
@crealp see the updated version of answer
– nidhin
Dec 14 '18 at 11:04
add a comment |
You can add negative vspace in the end of new thebibliography to reduce this spacing. One work around to solve the second issue is to set itemindent negative value so that items will move left. Something like this:
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
setlength{itemindent}{-1ex}
vspace{-2ex}
}

It works wonders! Thank you very much. Any thoughts about the first problem?
– crealp
Dec 13 '18 at 16:17
@crealp I didn't quite understand the first part. "just below the heading, without a horizontal space." Did you mean vertical space?
– nidhin
Dec 13 '18 at 16:41
Yes! Without a vertical space. Sorry (I will edit the question). I want the title of the bibliography to have a different style from the first level heading "section". I guess that the problem is that "thebibliography" environment issues the style of the section environment, and I don't know if I can change that.
– crealp
Dec 14 '18 at 9:23
@crealp see the updated version of answer
– nidhin
Dec 14 '18 at 11:04
add a comment |
You can add negative vspace in the end of new thebibliography to reduce this spacing. One work around to solve the second issue is to set itemindent negative value so that items will move left. Something like this:
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
setlength{itemindent}{-1ex}
vspace{-2ex}
}

You can add negative vspace in the end of new thebibliography to reduce this spacing. One work around to solve the second issue is to set itemindent negative value so that items will move left. Something like this:
letOLDthebibliographythebibliography
renewcommandthebibliography[1]{
OLDthebibliography{#1}
setlength{parskip}{0pt}
setlength{itemsep}{0pt plus 0.3ex}
setlength{itemindent}{-1ex}
vspace{-2ex}
}

edited Dec 14 '18 at 9:33
answered Dec 13 '18 at 16:09
nidhin
3,342927
3,342927
It works wonders! Thank you very much. Any thoughts about the first problem?
– crealp
Dec 13 '18 at 16:17
@crealp I didn't quite understand the first part. "just below the heading, without a horizontal space." Did you mean vertical space?
– nidhin
Dec 13 '18 at 16:41
Yes! Without a vertical space. Sorry (I will edit the question). I want the title of the bibliography to have a different style from the first level heading "section". I guess that the problem is that "thebibliography" environment issues the style of the section environment, and I don't know if I can change that.
– crealp
Dec 14 '18 at 9:23
@crealp see the updated version of answer
– nidhin
Dec 14 '18 at 11:04
add a comment |
It works wonders! Thank you very much. Any thoughts about the first problem?
– crealp
Dec 13 '18 at 16:17
@crealp I didn't quite understand the first part. "just below the heading, without a horizontal space." Did you mean vertical space?
– nidhin
Dec 13 '18 at 16:41
Yes! Without a vertical space. Sorry (I will edit the question). I want the title of the bibliography to have a different style from the first level heading "section". I guess that the problem is that "thebibliography" environment issues the style of the section environment, and I don't know if I can change that.
– crealp
Dec 14 '18 at 9:23
@crealp see the updated version of answer
– nidhin
Dec 14 '18 at 11:04
It works wonders! Thank you very much. Any thoughts about the first problem?
– crealp
Dec 13 '18 at 16:17
It works wonders! Thank you very much. Any thoughts about the first problem?
– crealp
Dec 13 '18 at 16:17
@crealp I didn't quite understand the first part. "just below the heading, without a horizontal space." Did you mean vertical space?
– nidhin
Dec 13 '18 at 16:41
@crealp I didn't quite understand the first part. "just below the heading, without a horizontal space." Did you mean vertical space?
– nidhin
Dec 13 '18 at 16:41
Yes! Without a vertical space. Sorry (I will edit the question). I want the title of the bibliography to have a different style from the first level heading "section". I guess that the problem is that "thebibliography" environment issues the style of the section environment, and I don't know if I can change that.
– crealp
Dec 14 '18 at 9:23
Yes! Without a vertical space. Sorry (I will edit the question). I want the title of the bibliography to have a different style from the first level heading "section". I guess that the problem is that "thebibliography" environment issues the style of the section environment, and I don't know if I can change that.
– crealp
Dec 14 '18 at 9:23
@crealp see the updated version of answer
– nidhin
Dec 14 '18 at 11:04
@crealp see the updated version of answer
– nidhin
Dec 14 '18 at 11:04
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f464714%2fchanges-in-thebibliography-environment%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
2
Welcome to TeX.SX! A tip: You can use backticks
`to mark your inline code as I did in my edit.– dexteritas
Dec 13 '18 at 14:49