Fonts & Character Setscan not change font style overleaf

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
jmitura
Posts: 1
Joined: Sun Jan 29, 2023 3:10 pm

can not change font style overleaf

Post by jmitura »

Hello I want to change document wide default font. I am trying like below but nothing happens

Code: Select all

\usepackage[T1]{fontenc}
\usepackage{courier}
\begin{document}
below full begining of the document for reference


Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{tgbonum}

\usepackage[utf8]{inputenc}

\title{Projekt Sonatina 2022/2023}

\author{MD PhD Jakub Mitura }
\date{October 2022}
\usepackage[
backend=biber,
style=nature,
]{biblatex}
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage[paperheight=9.44in,paperwidth=6.69in,left=1.85cm,right=1.8cm,bottom=2.5cm,top=3cm,twoside]{geometry}
\usepackage{subfig} %ZG------------------------------------
\usepackage[linesnumbered,ruled,vlined,boxed]{algorithm2e}
\usepackage{authblk} %ZG------------------------------------
\usepackage{lastpage} %ZG-------------------------------------
\usepackage{textcomp} %ZG----------- dla apostrofa
\usepackage{amsmath} %ZG-------------------------------------
\usepackage{amssymb} %ZG-------------------------------------
\usepackage{amsthm} %ZG-------------------------------------
\usepackage{graphicx} %ZG-------------------------------------
\usepackage{multirow} %ZG-------------------------------------
%\usepackage{mathdots} %ZG----------------trzykropki
\usepackage{hyperref} %ZG---------- Widoczne linki:
%\usepackage[hidelinks=true]{hyperref}
\usepackage{longtable} %ZG-------------------------------------
\usepackage{float} %ZG-------------------------------------
\usepackage[shortlabels]{enumitem} %ZG - numeracja i~itemizacja
\usepackage{setspace}
\usepackage{blindtext}
\usepackage{times}
\usepackage{titlesec}

\providecommand{\keywords}[1]{\textbf{\textit{Keywords ---}} #1}

\usepackage[acronym]{glossaries}



\usepackage[english]{babel}
%Includes "References" in the table of contents
\usepackage[nottoc]{tocbibind}
\usepackage{geometry}
 
% \usepackage{natbib}
%ustawianie marginesow
 \geometry{
 a4paper,
 left=20mm,
 right=20mm,
 top=15mm,
 bottom=15mm,
 }

% \setlength{\bibsep}{0.0pt}
% \acrfull{IPI} 
% \acrfull{SLIC} 
% \acrshort{ECOG}
\addbibresource{bibliography.bib} %Import the bibliography file
% \setlength{\bibsep}{0.0pt}
% \renewcommand*{\bibfont}{\small}
% \usepackage{mathptmx}



\makeglossaries

\newacronym{DLBCL}{DLBCL}{diffuse large B-cell lymphomas}
\newacronym{HL}{HL}{Hodgkin lymphoma}
\newacronym{PETCT}{2-[18F]FDG PET/CT}{18F-fluorodeoxyglucose positron emission tomography/computed tomography}
\newacronym{FDG}{FDG}{18F-fluorodeoxyglucose}
\newacronym{iPETCT}{iPET/CT}{interim  2-[18F]FDG PET/CT iPET/CT}
\newacronym{EOT}{EOT}{End of treatment 2-[18F]FDG PET/CT iPET/CT}
\newacronym{TMTV}{TMTV}{Total Metabolic Tumour Volume}
\newacronym{TLG}{TLG}{Total Lesion Glycolysis}
\newacronym{Dmax}{Dmax}{The largest distance between two avid lesions}
\newacronym{EANM}{EANM}{European Association of Nuclear Medicine}
\newacronym{SUV}{SUV}{Standardized Uptake Value}
\newacronym{CT}{CT}{Computer Tomography}
\newacronym{PFS}{PFS}{Progression free survival}
\newacronym{OS}{OS}{Overall survival}
\newacronym{ECOG}{ECOG}{Eastern Cooperative Oncology Group Performance Status (ECOG PS)}
\newacronym{ROI}{ROI}{Region of Intrest}
\newacronym{DS}{DS}{Deauville Score}
\newacronym{NHL}{NHL}{Non Hodgkin lymphoma}
\newacronym{IPS}{IPS}{International Prognostic Score}
\newacronym{IPI}{IPI}{Prognostic Index }
\newacronym{CNN}{CNN}{Convolutional neural network}
\newacronym{SLIC}{SLIC}{Simple Linear Iterative Clustering}


\usepackage[T1]{fontenc}
\usepackage{courier}
\begin{document}
\pagenumbering{arabic} % Arabic/Indic page numbers

\maketitle

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Bartman
Posts: 366
Joined: Fri Jan 03, 2020 2:39 pm

can not change font style overleaf

Post by Bartman »

Redefining the \familydefault command sets the monospaced font loaded by the courier package as the document's default font.

Code: Select all

\renewcommand{\familydefault}{\ttdefault}
A note on input encoding: Please read in ltnews28 if you still need to load the inputenc package with this option.
Post Reply