Hi everyone
I am using natbib package for bibliography. Could anyone please tell me how to change the font size and position of bibliography title from the default. I am using book class as default one.
I set default chapter title as 14pt garamond font, ragged right.
but in bibliography it shows 18pt normal font.
Is there any option to modify this...
many thanks
gopal
Document Classes ⇒ problem with natbib
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
problem with natbib
Hi gopal,
see natbib documentation 2.12 Other Formatting Options. There it's described how you can change the heading (\bibsection). If you still have questions just tell us.
Stefan
see natbib documentation 2.12 Other Formatting Options. There it's described how you can change the heading (\bibsection). If you still have questions just tell us.
Stefan
LaTeX.org admin
Re: problem with natbib
Hi Stefan
Thanks for your kind reply. I already tried that option with titlesec package as follows
\renewcommand{\bibsection}{%
\titleformat{\chapter} {\normalfont\large\filcenter\bfseries}{}{}{}
\titlespacing*{\chapter} {0pt}{60pt}{18pt}
\chapter*{ \bibname \markboth{\bibname}{\bibname}%
\addcontentsline{toc}{chapter}{\bibname}} }
But it does not work. Is there any other way to modify this....
I have another problem with package titlesec. When i use long section title, it becomes hyphenated. How could I avoid those hyphens in my title...
Thanks
gopal
Thanks for your kind reply. I already tried that option with titlesec package as follows
\renewcommand{\bibsection}{%
\titleformat{\chapter} {\normalfont\large\filcenter\bfseries}{}{}{}
\titlespacing*{\chapter} {0pt}{60pt}{18pt}
\chapter*{ \bibname \markboth{\bibname}{\bibname}%
\addcontentsline{toc}{chapter}{\bibname}} }
But it does not work. Is there any other way to modify this....
I have another problem with package titlesec. When i use long section title, it becomes hyphenated. How could I avoid those hyphens in my title...
Thanks
gopal
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
problem with natbib
Hi gopal,
that should work. When I tried your code and even wrote \tiny instead of \large then the bibliography heading becomes very small. One short working example:
If it's not working for you then post here a compilable minimal working example that shows the unwanted behaviour. We could compile, test and perhaps correct it.
Stefan
that should work. When I tried your code and even wrote \tiny instead of \large then the bibliography heading becomes very small. One short working example:
Code: Select all
Code, edit and compile here:
\documentclass[a4paper,10pt]{book}\usepackage[T1]{fontenc}\usepackage[urw-garamond]{mathdesign}\usepackage{natbib}\usepackage{titlesec}\renewcommand{\bibsection}{%\titleformat{\chapter} {\normalfont\tiny\filcenter\bfseries}{}{}{}\titlespacing*{\chapter} {0pt}{60pt}{18pt}\chapter*{ \bibname \markboth{\bibname}{\bibname}%\addcontentsline{toc}{chapter}{\bibname}} }\begin{document}\begin{thebibliography}{99}\bibitem{test} test\end{thebibliography}\end{document}
Stefan
LaTeX.org admin
Re: problem with natbib
Hi Stefan
I also tried that option. But it did not work. so I attached my class file here with.
Thanks for your help.
Gopal
I also tried that option. But it did not work. so I attached my class file here with.
Thanks for your help.
Gopal
- Attachments
-
- rosePhDthesis.cls
- (16.54 KiB) Downloaded 410 times
-
- Posts: 1
- Joined: Wed Sep 10, 2008 4:49 pm
Re: problem with natbib
Have you tried using \newcommand{\bibfont}{\tiny}?
There is quite a good guide to natbib here: http://www.mps.mpg.de/software/latex/lo ... natbib.pdf
There is quite a good guide to natbib here: http://www.mps.mpg.de/software/latex/lo ... natbib.pdf
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
problem with natbib
This is the official user guide of natbib which can also be found on CTAN.alexbowers wrote:[...] There is quite a good guide to natbib here: http://www.mps.mpg.de/software/latex/lo ... natbib.pdf
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10