control of font size of section's title

6,307 views
Skip to first unread message

Anglea

unread,
Mar 5, 2011, 6:32:13 AM3/5/11
to LaTeX Users Group

Hi everyone,

I have to set the font size of the section's tiltle to 16, but I do
not know how to do this.

If I set the font size of a document to 10, then what size Latex
usually give to the section's title???

\documentclass[a4paper,10pt]{article}

wishes,

Peter Flynn

unread,
Mar 5, 2011, 6:43:54 AM3/5/11
to latexus...@googlegroups.com

\usepackage{fix-cm}
...
\fontsize{16}{20}\selectfont

See http://latex.silmaril.ie/formattinginformation/typographics.html#fontsize for details.

///Peter


--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Anglea

unread,
Mar 5, 2011, 7:49:10 AM3/5/11
to LaTeX Users Group
Thanks Peter,

it is working now, all the sections have a font size of 10, except the
References section, still I need to force it to have a section number
and font size of 10 as I did for the other sections titles.
Here how I generate the refences::
\footnotesize{\begin{thebibliography}
.............
\end{thebibliography}}
Best

On Mar 5, 11:43 am, Peter Flynn <anglebrac...@gmail.com> wrote:
> \usepackage{fix-cm}
> ...
> \fontsize{16}{20}\selectfont
>
> Seehttp://latex.silmaril.ie/formattinginformation/typographics.html#font...
> details.
>
> ///Peter

Peter Flynn

unread,
Mar 5, 2011, 6:05:59 PM3/5/11
to latexus...@googlegroups.com
On Sat, Mar 5, 2011 at 12:49 PM, Anglea <hanyah...@yahoo.com> wrote:
Thanks Peter,

it is working now, all the sections have a font size of 10, except the
References section, still I need to force it to have a section number
and font size of 10 as I did for the other sections titles.
Here how I generate the refences::
\footnotesize{\begin{thebibliography}

That is meaningless. \footnotesize does not take any argument: none of the step-size-change commands do. What you need is

{\footnotesize\begin{thebibliography}
...
\end{thebibliography}}

For details of size changes, see http://latex.silmaril.ie/formattinginformation/typographics.html#fontsize

But enclosing the environment above in a font-size change will not affect the heading or the numbering. To change the heading you need to copy the definition of the thebibliography environment from your class file into your Preamble and change \chapter*{\bibname} (or \chapter*{\bibname}, depending on the class) to use \subsubsection* instead of \chapter*.

///Peter

Anglea

unread,
Mar 7, 2011, 5:08:41 AM3/7/11
to LaTeX Users Group
\section{\bibname \fontsize{10}{10}\selectfont REFERENCES}
this give me what I want....but the sentence below give me I do not
want (non-numbered and lower case Reference)
I did not understand your last sentence, can you please explain it
again.
{\footnotesize\begin{thebibliography}{99}
.............
\end{thebibliography}}

Best,


On Mar 5, 11:05 pm, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Sat, Mar 5, 2011 at 12:49 PM, Anglea <hanyahamdi...@yahoo.com> wrote:
> > Thanks Peter,
>
> > it is working now, all the sections have a font size of 10, except the
> > References section, still I need to force it to have a section number
> > and font size of 10 as I did for the other sections titles.
> > Here how I generate the refences::
> > \footnotesize{\begin{thebibliography}
>
> That is meaningless. \footnotesize does not take any argument: none of the
> step-size-change commands do. What you need is
>
> {\footnotesize\begin{thebibliography}
> ...
> \end{thebibliography}}
>
> For details of size changes, seehttp://latex.silmaril.ie/formattinginformation/typographics.html#font...

Peter Flynn

unread,
Mar 8, 2011, 4:21:44 AM3/8/11
to latexus...@googlegroups.com
On Mon, Mar 7, 2011 at 10:08 AM, Anglea <hanyah...@yahoo.com> wrote:
\section{\bibname \fontsize{10}{10}\selectfont REFERENCES}
this give me what I want....

What are you trying to do. The above will give you a section heading with the word References in the default size and bold for a section, followed by the word REFERNCES in bold 10pt type. I don't understand what you want.
 
but the sentence below give me I do not want (non-numbered and lower case Reference)

\section*{\bibname}
 
I did not understand your last sentence, can you please explain it again.

The typesize-change commands do not take an argument, they just change the current size. Their effect is global.

\documentclass{article}
\begin{document}
This is the default type size.

This is the {\footnotesize footnote size}, restricted by enclosing
\emph{all of it in braces}, including the \verb+\footnotesize+
  command.

This is the \footnotesize{footnote size}, unrestricted by
braces, because the effect of \verb+\footnotesize+ is global.
\end{document}

///Peter

Anglea

unread,
Mar 8, 2011, 11:53:39 AM3/8/11
to LaTeX Users Group
Hi Peter,

Here is what I need to get::
the word REFERNCES in bold 10pt type
and I know how to do this by:
\section{\bibname \fontsize{10}{10}\selectfont REFERENCES}
But also I need to disable the automatic heading with
the word References in the default size and bold.

wishes,


On Mar 8, 9:21 am, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Mon, Mar 7, 2011 at 10:08 AM, Anglea <hanyahamdi...@yahoo.com> wrote:
> > \section{\bibname \fontsize{10}{10}\selectfont REFERENCES}
> > this give me what I want....
>
> What are you trying to do. The above will give you a section heading with
> the word References in the default size and bold for a section, followed by
> the word REFERNCES in bold 10pt type. I don't understand what you want.
>
> > but the sentence below give me I do not want (non-numbered and lower case
> > Reference)
>
> \section*{\bibname}
>
> > I did not understand your last sentence, can you please explain it again.
>
> The typesize-change commands *do not take an argument*, they just change the

Peter Flynn

unread,
Mar 8, 2011, 3:28:07 PM3/8/11
to latexus...@googlegroups.com
On Tue, Mar 8, 2011 at 4:53 PM, Anglea <hanyah...@yahoo.com> wrote:
Hi Peter,

Here is what I need to get::
the word REFERNCES in bold 10pt type
and I know how to do this by:
\section{\bibname \fontsize{10}{10}\selectfont REFERENCES}

That will NOT do what you say. Try it:

\documentclass{book}
\begin{document}

\section{\bibname \fontsize{10}{10}\selectfont REFERENCES}
\end{document}

It produces

0.1 BibliographyREFERENCES


But also I need to disable the automatic heading with
the word References in the default size and bold.

I already told you how to do change the bibliography heading. Why do you not read what I wrote? I said:

To change the heading you need to copy the definition of the thebibliography environment from your class file into your Preamble and change \chapter*{\bibname} (or \chapter*{\bibname}, depending on the class) to use \subsubsection* instead of \chapter*.

The same principle applies if you want to use a different size of type:
  1. Copy the definition of the thebibliography environment from your class file into your Preamble
  2. Prefix it with \makeatletter
  3. Suffix it with \makeatother
  4. Change \newcommand to \renewcommand
  5. Change the line {\section*{\refname}% to {\par\noindent{\normalfont\normalsize\MakeUppercase\refname\par}%
Like this:

\documentclass{article}
\makeatletter
\renewenvironment{thebibliography}[1]
     {\par\noindent{\normalfont\normalsize\MakeUppercase\refname\par}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother
\begin{document}
\begin{thebibliography}{9}
\bibitem stuff
\end{thebibliography}
\end{document}

If you are using the report or book class, then it will be \bibname instead of \refname.

///Peter

Peter Flynn

unread,
Jul 22, 2012, 9:46:34 AM7/22/12
to latexus...@googlegroups.com

Use the sectsty package.

P

On Jul 22, 2012 9:37 AM, "satyanarayana katla" <satya...@gmail.com> wrote:
How to change the font size of a section in latex..
when i tried this
\section{\Large intrdouctio}
the section no doesnt increase so how do  i increase the section no?

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/latexusersgroup/-/CrT3BZu-xV4J.
Reply all
Reply to author
Forward
0 new messages