Skip to content

Commit 60fcf53

Browse files
Improve cref formatting
1 parent a7f4128 commit 60fcf53

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

LaTeZ.sty

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
\usepackage[english]{babel}
33
\RequirePackage[authoryear,round]{natbib}
44
\usepackage{fontspec}
5+
\usepackage{amsmath}
6+
\usepackage{amssymb}
57
\usepackage{indentfirst}
68
\usepackage[a4paper]{geometry}
79
\usepackage{caption}
810
\usepackage{titlesec}
911
\usepackage[dvipsnames]{xcolor}
1012
\usepackage{hyperref}
13+
\usepackage{cleveref}
1114

12-
% Set font to Times New Roman for English text
15+
% Set font to Times New Roman for English text
1316
\setmainfont{Times New Roman}
1417
\fontsize{12pt}{12pt}\selectfont
1518

@@ -41,10 +44,19 @@
4144
\titleformat{\subsection}
4245
{\normalfont\fontsize{12}{15}\bfseries}{\thesubsection}{1em}{}
4346

47+
% Color hyperlinks
4448
\definecolor{latezblue}{rgb}{0.21,0.49,0.74}
4549
\hypersetup{
4650
breaklinks,
4751
colorlinks,
4852
linkcolor=black,
4953
citecolor=latezblue
5054
}
55+
56+
% Customize cref names
57+
\crefname{figure}{Fig.}{Figs.}
58+
\Crefname{figure}{Fig.}{Figs.}
59+
\crefname{table}{Tab.}{Tabs.}
60+
\Crefname{table}{Tab.}{Tabs.}
61+
\crefname{equation}{Eq.}{Eqs.}
62+
\Crefname{equation}{Eq.}{Eqs.}

YSU-Master-Thesis-Template.pdf

29 Bytes
Binary file not shown.

template.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
% ------------------------------------------------------------------------
44
% Created by: Andranik Sargsyan and Ishkhanuhi Hakobyan
55
% Assistance by: ChatGPT
6-
% Version: 0.3.0
6+
% Version: 0.4.0
77
% Date: May 5, 2024
88
% ------------------------------------------------------------------------
99

@@ -14,7 +14,6 @@
1414
\usepackage{hyperref}
1515
\usepackage{booktabs}
1616
\usepackage{graphicx}
17-
\usepackage[noabbrev]{cleveref}
1817

1918
\begin{document}
2019

@@ -46,6 +45,9 @@
4645
\tableofcontents
4746
\clearpage
4847

48+
% set cref colors to red after table of contents
49+
\hypersetup{linkcolor=red}
50+
4951
%===========================================================
5052

5153
\section{Introduction}

0 commit comments

Comments
 (0)