# Font Size and Font Style

I want to have different font size for chapter 1 and its name . means chapter 1 lets suppose in font size 17 and its name lets say Introduction in size 25. I can not do the by

\newcommand{\chaptersize}{\fontsize{25}{12}\selectfont}


Here is some code

\documentclass[a4paper,12pt,twoside,openright]{report}
%\usepackage[dvips]{color}
%\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{setspace}
\usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,right=2.5cm,includefoot,asymmetric]{geometry}
\usepackage[centertags]{amsmath}
%\usepackage{amsfonts}
\usepackage{amssymb}
%\usepackage{amsthm}
%\usepackage{newlfont}
%\usepackage{epsf}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{xthesis}
%
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage[section,subsection,subsubsection]{extraplaceins}
\usepackage{longtable}
%\usepackage{url}
\usepackage{verbatim}
\usepackage[parfill]{parskip}
\usepackage{fancyhdr}
\cfoot{\thepage} \rfoot{}
%\usepackage[utf8]{inputenc}
\usepackage[backend=biber,authordate]{biblatex-chicago}
\makeatletter
\AtEveryBibitem{%
\global\undef\bbx@lasthash%
\clearfield{extrayear}}
\makeatother
\DeclareFieldFormat[article]{title}{\mkbibquote{#1}} % make article titles in quotes
\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}} % make theses italics
\newenvironment{changemargin}[1]{
\begin{list}{}{
\setlength{\voffset}{#1}
}
\item[]}{\end{list}}
\makeatother

%\newcommand{\red}[1] {\textcolor{red}{#1}}
%\newcommand{\blue}[1] {\textcolor{blue}{#1}}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{claim}{claim}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{exmp}{Example}[section]
\newtheorem{cor}{Corollary}[section]
\newtheorem{fact}{Fact}[section]
\newtheorem{prop}{Property}[section]
\newtheorem{assume}{Assumption}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{invariant}{Invariant}[section]
\newtheorem{con}{Conjecture}[section]
\newtheorem{open}{Problem}[section]
\newcommand{\chaptersize}{\fontsize{25}{12}\selectfont}

\def\insert{\mbox{\rm insert}}
\def\rotate{\mbox{\rm rotate}}
\def\op{\mbox{\rm op}}
\def\Proof{\noindent {\bf Proof.\ \ }}
\def\Remark{{\bf Remark.\ \ }}\def\ex{{\rm ex}}

\def\qed{\ifhmode
\unskip\nobreak\hfill\vrule height5pt width4pt depth2pt\medskip\fi
\ifmmode\eqno{\vrule height5pt width4pt depth2pt}\fi}
\def\qed{\ifhmode\unskip\nobreak\fi\quad\ifmmode\Box\else$\Box$\fi}

%\hoffset=.2in
%\voffset=-.02in
%\textwidth=390pt

\begin{document}
\singlespacing
%\thispagestyle{empty}

%\setlength{\textheight}{297mm}
%\setlength{\oddsidemargin}{-6mm}
%\setlength{\textwidth}{210mm}
%\setlength{\oddsidemargin}{35mm}
%\setlength{\evensidemargin}{35mm}
%\setlength{\topmargin}{25mm}
%\setlength{\footskip}{25mm}
%\listoftables
%\listoffigures
\phd
\title{ }

%\{Thesis Document}
\dedicate{ }

\author{ }

%\superviser{}

{
\typeout{:?000000000} % Don't bother with over/under-full boxes
\beforepreface
\typeout{:?111111111} % Process All Errors from Here on
}
% ------------------------------------------------------------------------
%\include{Abs}
%\include{Ack}

%\tableofcontents
% ------------------------------------------------------------------------
%\listoftables
% ------------------------------------------------------------------------
%\listoffigures
% ------------------------------------------------------------------------
{\typeout{Publications}
\include{Pub}
}
{\typeout{Nomenclature}
\include{NOM}
}
% ------------------------------------------------------------------------
\afterpreface
%\def\baselinestretch{1}
\printbibliography
\end{document}


thats the complete code

• Can you provide the community with a minimal working example (MWE)? Your request depends heavily on the document class you're using, so it would be helpful if you could supply that as well (in the form of a MWE, of course). – Werner Jul 14 '14 at 17:09
• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. A tip: If you indent lines by 4 spaces or enclose words in backticks , they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). – user31729 Jul 14 '14 at 17:16
• @Werner I am using the following – user59079 Jul 14 '14 at 17:40
• Please add that code in your post window, not as a comment. And it should be MWE ( (meta.tex.stackexchange.com/q/228)) – user31729 Jul 14 '14 at 17:51
• @user59079: A minimal example gets rid of unnecessary packages and % comments in front of \setlength commands basically not used – user31729 Jul 14 '14 at 18:40

A redefinition of the internal \@makechapterhead:

\documentclass[a4paper,12pt,twoside,openright]{report}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}%% Instead of times which is obsolete
\makeatletter
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\fontsize{17}{18}\fontseries{b}\selectfont
\fi
\fontsize{25}{26}\fontseries{b}\selectfont#1\par\nobreak%%%
\vskip 40\p@
}}
\makeatother

\begin{document}
\chapter{foo}
\section{bar}
baz
\end{document}


• yes this much is achieved but i want Chapter 1 written in font size 17 and Foo (name of chapter) in font size 25. i mean instead of writing 1 for chapter i need chapter 1 – user59079 Jul 16 '14 at 7:22
• Replace \Huge with \fontsize{25}{26}\selectfont. Similiar for \large. That's all – user2478 Jul 16 '14 at 7:24
• that will still show 1 foo i need chapter 1 instead of 1 then in next line foo – user59079 Jul 16 '14 at 7:30
• Instead of \thechapter write Chapter \thechapter` – user2478 Jul 16 '14 at 7:32
• its not working – user59079 Jul 16 '14 at 7:39