Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to modify the amsart.cls in order to get the same font as for Part.

Inside the class definition there are a few lines that define the bibiliography title style

\newcommand{\@bibtitlestyle}{%
  \@xp\section\@xp*\@xp{\refname}%
}

However, if I change section with part there is no change. I am wondering if there is a solution to make the bibliography take the font style for the Part heading?

An alternative would be to give up any parts in the paper and start with sections only, but I would rather have the first solution if possible.

share|improve this question
Welcome to TeX.sx! A tip: You can use backticks ` to mark your inline code as I did in my edit. Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. – Kurt Nov 2 '12 at 21:39
1  
Changing \section to \part works for me if I enclose the command redefinition within \makeatletter/\makeatother. See tex.stackexchange.com/questions/8351/… – lockstep Nov 2 '12 at 21:41
2  
Don't change anything in the file amsart.cls (modifying original files is a bad idea). Instead, in your actual document add the following before \begin{document}: \makeatletter\renewcommand{\@bibtitlestyle}{\@xp\part\@xp*\@xp{\refname}}\makea‌​tother – lockstep Nov 2 '12 at 21:50
I did not change the original file. I took the amsart.cls file and copied it in my user directory and created a customized class. The only problem I had was this annoying font style problem. I actually did something like you suggested in the Preamble: \makeatletter \newcommand{\@bibtitlestyle}{% \@xp\my@bibsection\@xp{\refname}% } \newcommand*{\my@bibsection}[1]{% \part*{#1}% \addcontentsline{toc}{section}{#1}% } \makeatother – Bogdan Nov 2 '12 at 21:54
So, does it work now? – lockstep Nov 2 '12 at 21:58
show 5 more comments

closed as too localized by lockstep, cgnieder, Stephen, Martin Schröder, Stefan Kottwitz Nov 18 '12 at 13:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.