I want to write an article with fontsize 11pt. I have problem to change fontsize of title is 14pt and abstract fontsize 9pt.
This is my code :
\documentclass[11pt,a4paper]{article}
\usepackage[left=3.00cm, right=2.00cm, bottom=2.00cm, top=2.00cm]{geometry}
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
\RequirePackage[english,bahasa]{babel}
\RequirePackage{times}
\RequirePackage{setspace}
\RequirePackage{indentfirst}
\RequirePackage{graphicx,latexsym}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
\RequirePackage{amstext}
\RequirePackage{amsmath}
\RequirePackage{amsthm}
\RequirePackage{listings}
\RequirePackage{color}
\RequirePackage{float}
\RequirePackage{longtable}
\RequirePackage{enumerate}
\RequirePackage{multirow}
\RequirePackage[center,font=footnotesize,labelfont=bf,textfont=bf,labelsep=space,aboveskip=1.5ex,singlelinecheck=off]{caption}
\RequirePackage{pdfpages}
\RequirePackage{fancyhdr}
\RequirePackage{tikz}
\RequirePackage{cases}
\usepackage{ragged2e}
\usetikzlibrary{matrix,arrows,shapes.geometric}
\allowdisplaybreaks
\RequirePackage{natbib}
\bibliographystyle{plainnat}
\renewcommand{\baselinestretch}{1}
\parskip0.15cm
\renewcommand{\normalsize}{\fontsize{11bp}{12bp}\selectfont}
\frenchspacing
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{pgf,tikz}
%\usepackage[bahasa]{babel}
\usepackage{enumitem}
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{pgf,tikz}
\usepackage[bahasa]{babel}
\usepackage{titlesec}
\titleformat{\section}
{\normalfont\fontsize{11}{15}\bfseries}{\thesection}{1em}{}
%\renewcommand{\thesection}{\thechapter\arabic{section}.}
\titleformat{\section}
{\bfseries}
{\thesection.}{1em}{}
\titleformat{\subsection}
{\slshape\bfseries}
{\thesubsection.}{1em}{}
\renewcommand{\thesubsection}{\thesection\arabic{subsection}}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}%[section]
\newtheorem{definition}[theorem]{Definition}%[section]
\newtheorem{example}[theorem]{Example}
\begin{document}
\begin{center}
\textbf{TITLE, I WANT FONTSIZE 14pt}\\\vspace{0.3cm}
\textbf{Full name}\\\vspace{0.3cm}
\textit{Institution}\\\vspace{0.1cm}
\textit{e-mail: \textcolor{blue}{\underline{[email protected]}}}
\end{center}
\textbf{\textit{Abstract.}} I want abstract's fontsize 9pt\\ \\
\textit{\textbf{Keywords}: blabla1,blabla2.}
\vspace{-0.5cm}
\section{INTRODUCTION}\vspace{-0.45cm}
hello hello hello
\section{SECTION TWO}\vspace{-0.45cm}
\begin{theorem}
theorem ...
\end{theorem}
\end{document}
How to change fontsize of title and abstract?
\fontsize{14pt}{16pt}\selectfont
\fontsize{9pt}{11pt}\selectfont
. You really should prune your preamble - it is going to cause you no end of headaches. Also,times
is long deprecated and shouldn't be used.unicode-math
instead of any other font or symbol packages. If you want Times,\setmainfont{TeX Gyre Termes}
and\setmathfont{TeX Gyre Termes Math}
. Put back any packages you know why you need. Once. Then add back the minimum packages you need to fix all the errors in your source, including wrong output.\documentclass
such asscrartcl
ormemoir
that allows you to declare the font to use for your title and abstract. Kind of overkill if you’re using them in one place. @cfr, you want to make yours an answer?unicode-math
is buggy), but not for TeX or pdfTeX.