-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJournal.sty
128 lines (110 loc) · 3.93 KB
/
Journal.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
% This package allows if-then-else control structures.
\usepackage{ifthen}
\newboolean{PrintVersion}
\setboolean{PrintVersion}{false}
% Microtype for better typography
\usepackage[activate={true,nocompatibility},final,tracking=true,factor=1100,stretch=10,shrink=10]{microtype}
% Spacing and kerning does not work in LuaTex
% Font
\usepackage[T1]{fontenc}
\usepackage{fontawesome5}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xltxtra}
\setmainfont{MinionPro-Regular}
\newcommand{\hsp}{\kern 1pt} % for nested quotation marks
% Paragraph formatting
\renewcommand{\baselinestretch}{1.125} % Allow paragraphs to breathe by spreading the lines further
\setlength{\parskip}{10pt} % Fixed space between paragraphs (i.e. disable variable parskip)
\setlength{\parindent}{1em}
% Don’t add extra space after sentences
\frenchspacing
% Reduce widows/orphans
\widowpenalty=10000
\clubpenalty=10000
% Page size
\usepackage[
paperheight=10in,
paperwidth=8in,
top=0.76in,
bottom=0.76in,
outer=0.6in,
inner=0.875in
]{geometry}
% Reduce overfull \hbox{} warnings
\sloppy
% Table of Contents - two column
\usepackage[toc]{multitoc}
\renewcommand*{\multicolumntoc}{2}
\setlength{\columnseprule}{0.5pt}
\renewcommand{\contentsname}{Table of Contents}
\usepackage[titles]{tocloft}
\renewcommand{\cftchapfont}{\large\itshape}
\renewcommand{\cftchappagefont}{\normalfont}
% Chapter Title
\usepackage{titlesec}
\usepackage{xcolor}
\usepackage{blindtext}
\newcommand{\chapnumfont}{% % define font for chapter number
\usefont{T1}{pnc}{b}{n}% % choose New Chancery, bold, normal shape
\fontsize{100}{100}% % font size 100pt, baselineskip 100pt
\selectfont% % activate font
}
\colorlet{chapnumcol}{gray!75} % color for chapter number
\titleformat{\chapter}[display]
{\filleft\bfseries}
{\filleft\chapnumfont\textcolor{chapnumcol}{\thechapter}}
{-40pt}
{\Huge}
\titlespacing*{\chapter}{0pt}{-20pt}{20pt}
% Section Title
% Remove section number from contnet
\titleformat{\section}{\normalfont\Large\bfseries}{}{0pt}{}
% Remove section number from ToC
\makeatletter
\let\latexl@section\l@section
\def\l@section#1#2{\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}
\makeatother
% Headers and Footers
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\chaptermark}[1]{ \markboth{#1}{} } % remove chapter num
\renewcommand{\sectionmark}[1]{ \markright{#1}{} } % remove section num
\fancyhf[CFE,CFO]{\thepage} % Set page numbers in the footer
%\fancyhead[LE,RO]{\thepage} % Set page numbers in the left/right sides of the header
\fancyhead[CE]{\itshape\leftmark} % Chapter title in middle of left-side page header
\fancyhead[CO]{\itshape\rightmark} % Section title in middle of right-side page header
% Always load hyperref as the last package
% Disable for printing as it might cause issues
\usepackage[]{hyperref}
\hypersetup{
pdftitle={\booktitle},
pdfauthor={\authorname},
% pdfsubject={Your subject here},
% pdfkeywords={keyword1, keyword2},
bookmarksnumbered=false,
bookmarksopen=true,
bookmarksopenlevel=1,
colorlinks=true,
pdftoolbar=true,
pdfmenubar=true,
pdfstartview=Fit,
pdfpagemode=UseOutlines, % this is the option you were lookin for
pdfpagelayout=TwoPageRight,
colorlinks=true, % false: boxed links; true: colored links
linkcolor=blue, % color of internal links
citecolor=blue, % color of links to bibliography
filecolor=blue, % color of file links
urlcolor=blue % color of external links
}
\ifthenelse{\boolean{PrintVersion}}{ % for improved print quality, change some hyperref options
\hypersetup{ % override some previously defined hyperref options
% colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black}
}{} % end of ifthenelse (no else)