-
Notifications
You must be signed in to change notification settings - Fork 1
/
latex.html
92 lines (91 loc) · 5.47 KB
/
latex.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FTK67N3EL9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag()
{
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-FTK67N3EL9');
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Sinho Chewi's Website</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="css/scrolling-nav.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<!-- The #page-top ID is part of the scrolling feature - the data-spy and data-target are part of the built-in Bootstrap scrollspy function -->
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand page-scroll" href="/">Home</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<!-- Hidden li included to remove active class from about link when scrolled up past about section -->
<li class="hidden">
<a class="page-scroll" href="#page-top"></a>
</li>
<li>
<a class="page-scroll" href="#latex">LaTeX</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Intro Section -->
<section id="latex" class="extra-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1>LaTeX</h1>
<p>I have been receiving emails asking for the LaTeX source code for my notes. Unfortunately, I generally do not make the source code public (the exception is for the professors who taught the courses for my scribe notes). I have been iteratively modifying my LaTeX workflow to suit my needs for a while, and the result is a complicated mess that probably won't compile for you anyway. :)</p>
<p>For the future note-taker, a word of advice: I recommend that you start simple. The content comes first, and then you can improve your formatting over time. If you have an idea for how you can make your notes look better, then Google it and you can probably figure out how to make it happen.</p>
<p>If you have any specific questions, however, feel free to send me an email.</p>
<h2>FAQ</h2>
<ul>
<li><b>What is the overall structure of your notes? How do you compile notes for an individual lecture?</b></li>
<p>Each lecture is a separate .tex file, e.g., 10-29.tex. Then, I have a main.tex skeleton file which uses the "\include{10-29}" command to access the individual lecture files. To compile all of the lectures together, compile the main.tex file. To compile an individual lecture, use "pdflatex '\includeonly{10-29} \input{main}'".</p>
<li><b>How do you make the left indentation consistent?</b></li>
<p>I eliminated the indentation altogether using "\setlength{\parindent}{0cm}". You can also play around with the "parskip" option. You should be wary of changing the defaults though; they are defaults for a reason.</p>
<li><b>How do you make boxes for your theorems?</b></li>
<p>I use the mdframed package.</p>
<li><b>How do you decide which statements go inside boxes?</b></li>
<p>The boxes are for definitions, examples, propositions, lemmas, theorems, corollaries, and proofs. I do not have a sophisticated system to decide what goes inside a box (you give me too much credit). Typically, I put the statement in a box if the professor writes "Theorem" (or "Definition", etc.) on the board.</p>
<li><b>How did you pick your color scheme?</b></li>
<p>I looked up color schemes online. I'm no good at picking colors myself! After a few iterations of color schemes, I realized that it is crucial for the colors to be extremely light.</p>
<li><b>What text editor do you use?</b></li>
<p>I use neovim with the vimtex plugin. Of course, vim has a reputation for being difficult to learn, but it is quite fast once you learn how to use it.</p>
</ul>
</div>
</div>
</div>
</section>
</body>
</html>