[OS X TeX] Re: MacOSX-TeX Digest #1997 - 02/06/07

Chabot Denis chabotd at globetrotter.net
Wed Feb 7 11:41:44 EST 2007

Hi Alan,

I tried your suggestion but my document would not compile.

I call many packages:


\usepackage{array}   % to get "p" columns raggedright in tables
\usepackage{booktabs} % ``Proper'' table layout
\usepackage{multirow} % to merge cells vertically	
\usepackage{graphicx} % Add graphics capabilities
\usepackage{txfonts}  % I need Times Roman
\usepackage[english, francais]{babel}
\usepackage{placeins}    % wanted to try \FloatBarrier

\usepackage{titlesec}     % pour facilement avoir des titres de  
section en majuscules

	\bibliographystyle{cjz_v3}      % home made style (makebst)
	\bibpunct{(}{)}{;}{a}{}{,}  	% to remove comma between author and year
\usepackage[margin=10pt,font=small]{caption}  % without this, had a  
hard time controlling font size in captions of longtables. The  
automatic "Table" word was not changed when I changed font size for  
the rest of the caption. This fixed the problem

{hyperref} % Hyperlink capabilities, should load last

I was not sure which of these packages was causing a conflict. I  
tried them all and your option works if I remove the call to  
hyperref. Alternatively, I can leave the call to hyperref and remove
the line

The doc compiles, but of course I lost my capitalized section headings.

Anybody has a solution for such conflict?

By the way, I tried replacing the titlesec package you suggested with


but for some reason this never gave me upper case section headings.

If only I could get rid of the uppercase requirements, which I find  
ugly, all would be fine. But I cannot.



Le 07-02-06 à 20:00, TeX on Mac OS X Mailing List a écrit :

> Subject: Re: [OS X TeX] Bibliography as section heading
> From: "Alan Munn" <amunn at msu.edu>
> Date: Tue, 6 Feb 2007 12:21:55 -0500
> At 10:57 AM -0500 2/6/07, Chabot Denis wrote:
>> Hi,
>> I'm writing a report using the article class. I
>> use sections, subsections and subsubsections.
>> I made a section titled "6 RÉFÉRENCES". My
>> section headings are numbered and in all caps.
>> I'm not at ease enough to have modified things
>> so that I'd type my headings in normal text and
>> they'd be capitalized automatically, I simply
>> typed them in all capitals.
>> After I format my bibliography (using natbib and
>> a home-made style created with makebst), I also
>> automatically get a heading called "Références",
>> the french no doubt a courtesy of babel.
>> I don't know the "level" of this heading, but I
>> know it does not appear in the TOC, where my
>> sub- and subsubsections do appear. Maybe it is a
>> section* (but what about the lack of a number??).
>> It is not very pretty to have these 2 headings for my bibliography!
>> I need to either suppress the automatic one
>> generated by natbib (presumably), or to be able
>> to modify it so that it is a true numbered
>> section heading and is capitalized. It seems the
>> former approach is simpler, but then you could
>> surprise me!
> I recommend that you do this the automatic  (dare
> I say proper ;-)) way, with two simple commands
> and the titlesec package (so you should change
> your manually typed uppercase titles back to
> normal).  The first command is  a titlesec
> command to make the title uppercase; the second
> command makes the bibliography a regular numbered
> section.  Add babel to make the references
> acquire their accents.
> \usepackage{titlesec}
> \usepackage{natbib}
> \titleformat*{\section}{\bfseries\Large\MakeUppercase}
> \renewcommand{\bibsection}{\section{\refname}}
> Alan
> --
> Alan Munn
> amunn at msu.edu
> Department of Linguistics
> and Germanic, Slavic, Asian and African Languages   Fax.   
> +1-517-432-2736
> Michigan State University, East Lansing MI 48824       Tel.   
> +1-517-355-7491

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list