Hi there,
I used the following formatting to include apa references in my report, importing it from Mendeley.
% REFERENCES
\bibliographystyle{apacite}
\bibliography{Library.bib}
It automatically included a line in my table of content, as you can see below. However, I want to tab (indent) the reference line, in order to align it with the rest of the sections (summery, acknowledgement, etc.). Does anyone know how I can fix this problem?
ps. when I add another section line to my table of content, I get two references lines.
\addcontentsline{toc}{section}{\numberline{}References}
Thank you!!
Page Layout ⇒ Indent contents line of table of content
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Indent contents line of table of content
Hi Jack,
welcome to the forum!
It seems you have somewhere else in your code such an
Quick patch, at the end of your document preamble, so right before
Stefan
welcome to the forum!
It seems you have somewhere else in your code such an
\addcontentsline
already, but without that \numberline{}
. That happens for example if you simply use the tocbibind
package.Quick patch, at the end of your document preamble, so right before
\begin{document}
:Code: Select all
\let\origaddcontentsline\addcontentsline
\renewcommand{\addcontentsline}[3]{\origaddcontentsline{#1}{#2}{\numberline{}#3}}
LaTeX.org admin
-
- Posts: 3
- Joined: Fri Feb 08, 2019 10:33 am
Indent contents line of table of content
Hi Stefan,
Thank you so much, this was very much of a help. Fixed the 'reference' problem.
However, next problem the appendix's have indented now. Do you also know how to get them aligned with the numbers?
Excuse me, just started working with Latex, so it's all a bit new to me.
Thank you!
Thank you so much, this was very much of a help. Fixed the 'reference' problem.
However, next problem the appendix's have indented now. Do you also know how to get them aligned with the numbers?
Excuse me, just started working with Latex, so it's all a bit new to me.
Thank you!
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Indent contents line of table of content
You could revert that change after
Stefan
\bibliography
and before the appendix:Code: Select all
\let\addcontentsline\origaddcontentsline
LaTeX.org admin
-
- Posts: 3
- Joined: Fri Feb 08, 2019 10:33 am
Indent contents line of table of content
Perfect, thank you!