Debian Codegraph @

texmf-dist/doc/latex/mitthesis/MIT-thesis-template/mydesign.tex

raw
1 % From mitthesis package
2 % Documentation: https://ctan.org/pkg/mitthesis
3
4 \ProvidesFile{mydesign.tex}[2026/01/31 v1.07 Typographic design options for thesis]
5
6 % ==> you can change this file however you want. The content below is just for illustration. <==
7
8
9 %%%%%%%%% Change page margins %%%%%%%%%%%%%%%%%%%%%%%%%%%%
10 %
11 % The default thesis margin is 1 inch all around. You may want different margins (e.g., to add a gutter for binding),
12 % in which case you can use the \newgeometry command from the geometry package. Refer to the package documentation
13 % for details.
14 %
15 % mitthesis defaults: [top=1in,bottom=1in,left=1in,right=1in,marginparwidth=50pt,headsep=12pt,footskip=0.5in]
16 %
17 % The following tells the geometry package to use a two-sided layout with a 1 cm binding offset on the inside
18 % and 1 inch margins all around, reducing textwidth slightly (by 0.7 cm). See geometry documentation, Section 8.2.
19 %
20 %\newgeometry{twoside, bindingoffset=1cm,margin=1in,marginparwidth=50pt,headsep=12pt,footskip=0.5in}
21
22
23 %%%%%%%%%% Color support %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24
25 %% Color package: xcolor.
26 %% Change this if you prefer something else
27
28 \usepackage[dvipsnames,svgnames,x11names]{xcolor}
29
30 %% xcolor defines a broad set of color names that can be invoked in your document (see xcolor documentation).
31 %% can add option [table] to xcolor to use color in tables
32
33 %%%%%%%%%% Hyperlink and line number colors %%%%%%%%%%%%%%
34
35 \AtBeginDocument{
36 % Using color names from xcolor package
37 \hypersetup{
38 linkcolor=Blue3,
39 citecolor=Blue3,
40 urlcolor=violet,
41 filecolor=red,
42 % anchorcolor=yellow,% not all pdf viewers recognize this field (although Firefox does): hyperref issues a warning, which can be ignored
43 % colorscheme=phelype,% overrides link, cite, url, file colors with a preset scheme, through \DocumentMetadata
44 }
45 %
46 \ifmit@lineno
47 \renewcommand{\linenumberfont}{\sffamily\mdseries\tiny\color{violet}}% line numbers will be sans-serif, medium weight, tiny, and violet
48 \fi
49 }
50
51 %%%%%%%%% Caption support %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52 %
53
54 \IfFormatAtLeastTF{2025/11/01}
55 {
56 %% If your latex format is at least 2025/11/01, you should use this approach:
57 \NewSocketPlug{caption/label}{plug-A}{{\bfseries #1:\space}} % This strictly addresses the caption label, not caption text.
58 \AssignSocketPlug{caption/label}{plug-A}
59 %
60 \AddToHook{cmd/@makecaption/before}{\small} % This styles the entire caption, but label socket above will override it.
61 %
62 % These commands make caption label bold with a colon separating label from text;
63 % \small affects both label and text (unless you add a sizing command to plug-A).
64 }{
65 %% For older formats, use this. See documentation of caption package for details.
66 \RequirePackage{caption}
67 %% This sets caption labels in bold face type with a colon separator.
68 \captionsetup[figure]{labelfont={bf},labelsep=colon} % change to boldface label with colon separator
69 \captionsetup[table]{labelfont={bf}, labelsep=colon} % change to boldface label with colon separator
70 }
71
72 %%%%%%%%% Customize titles and section headings %%%%%%%%%%
73
74 % To directly modify section headings as follows, see https://latexref.xyz/dev/latex2e.html#g_t_005c_0040startsection
75 %
76 % The following commands adds \raggedright to section headings (compare to report.cls)
77 %
78 % NB: for fonts with a predefined bold \mathversion, the >> fontset << file inserts \mathversion{bold} into these commands.
79 %
80 \renewcommand\section{\@startsection {section}{1}{\z@}%
81 {-3.5ex \@plus -1ex \@minus -.2ex}%
82 {2.3ex \@plus.2ex}%
83 {\mathversion{bold}\normalfont\Large\bfseries\raggedright}}
84 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
85 {-3.25ex\@plus -1ex \@minus -.2ex}%
86 {1.5ex \@plus .2ex}%
87 {\mathversion{bold}\normalfont\large\bfseries\raggedright}}
88 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
89 {-3.25ex\@plus -1ex \@minus -.2ex}%
90 {1.5ex \@plus .2ex}%
91 {\normalfont\normalsize\bfseries}}
92 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
93 {3.25ex \@plus1ex \@minus.2ex}%
94 {-1em}%
95 {\normalfont\normalsize\bfseries}}
96 \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
97 {3.25ex \@plus1ex \@minus .2ex}%
98 {-1em}%
99 {\normalfont\normalsize\bfseries}}
100
101 %% This makes numbered chapter headings san-serif
102 %\patchcmd{\@makechapterhead}{\Huge}{\Huge\sffamily}{}{}
103 %\patchcmd{\@makechapterhead}{\huge}{\huge\sffamily}{}{}
104
105 %% This makes UNnumbered chapter headings san-serif
106 %\patchcmd{\@makeschapterhead}{\Huge}{\Huge\sffamily}{}{}
107
108 %%%%%%%%%%%%
109
110 %% The titlesec package provides broader customizations of titles and headings - refer to its documentation
111 %% NB: titlesec may break pdf tagging !!
112 %
113 %\RequirePackage{titlesec}
114 %
115 %% these titlesec commands just automate the bold math in some headings (rest follows default styles)
116 %
117 %\titleformat{\section}{\mathversion{bold}\normalfont\Large\bfseries}{\thesection }{1em}{}
118 %\titleformat{\subsection}{\mathversion{bold}\normalfont\large\bfseries}{\thesubsection}{1em}{}
119 %\titleformat{\subsubsection}{\mathversion{bold}\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}
120
121
122 %%%%%%%%% Customize list environments %%%%%%%%%%%%%%%%%%%%
123 %
124 % See documentation of enumitem package for details of how to customize lists
125 % NB: enumitem may break pdf tagging !!
126
127 %\RequirePackage{enumitem}