Debian Codegraph @

texmf-dist/doc/latex/lectures/README.md

raw
1 # Lectures
2
3 [![GitHub Actions](https://github.com/LucaCappelletti94/lectures/actions/workflows/latex.yml/badge.svg)](https://github.com/LucaCappelletti94/lectures/actions)
4 [![Version](https://img.shields.io/badge/CTAN_Version-1.0.7-blue.svg)](https://ctan.org/pkg/lectures)
5 [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/LucaCappelletti94/lectures/blob/master/LICENSE)
6 [![Available in](https://img.shields.io/badge/Available_in-TEX_Live-green.svg)](https://ctan.org/pkg/texlive)
7 [![Available in](https://img.shields.io/badge/Available_in-MiKTEX-green.svg)](https://ctan.org/pkg/miktex)
8
9 A LaTeX documentclass for lecture notes.
10
11 ## Usage
12
13 ### Including the document class
14
15 You can include the document class `lectures` as follows (the default language is *english*):
16
17 ```latex
18 \documentclass{lectures}
19 ```
20
21 To specify a particular language (currently supported just *italian* and *english*) you can do the following:
22
23 ```latex
24 \documentclass[italian]{lectures}
25 ```
26
27 or, analogously:
28
29 ```latex
30 \documentclass[english]{lectures}
31 ```
32
33 ### Title page
34
35 One of the main features of the library is the provided title page. You can create it as follows:
36
37 ```latex
38 \documentclass{lectures}
39 \begin{document}
40 \maketitle{
41 Your title
42 }{
43 First author name,Second author name
44 }{
45 First professor name,Second professor name
46 }{
47 Parlo Parloni,Parletti Parini
48 }{
49 Year
50 }{
51 CFU of the course
52 }{
53 Informatica
54 }{
55 University name
56 }{
57 Country
58 }
59
60 \end{document}
61 ```
62
63 [![Title page example](https://github.com/LucaCappelletti94/lectures/blob/master/title_page_example.png?raw=true)](https://github.com/LucaCappelletti94/lectures/blob/master/title_page_example.png)
64
65 ## Features
66
67 ### Silenced useless warnings
68
69 Using the package [`silence`](https://ctan.org/pkg/silence?lang=en) the library silences the following warnings:
70
71 - `latex`:
72 - You have requested package
73 - There were undefined references
74 - Command
75 - `latexfont`:
76 - Size substitutions with differences
77 - Font shape
78 - [`biblatex`](https://ctan.org/pkg/biblatex):
79 - Using fall-back BibTeX(8)
80 - Please (re)run BibTeX on the file(s)
81 - [`auxhook`](https://ctan.org/pkg/auxhook):
82 - Cannot patch
83 - [`glossaries`](https://ctan.org/pkg/glossaries):
84 - No \printglossary or \printglossaries found.
85
86 ### Float related gimmicks
87
88 All floating objects are automatically centered and set to `H` as position with other objects.
89
90 ### Table related gimmicks
91
92 #### L, C and R
93
94 New column types are given `L`, `C`, and `R`, that allow for automatic mathmode in columns.
95
96 Example usage:
97
98 ```latex
99 \documentclass{lectures}
100 \begin{document}
101 \begin{tabular}{L C R}
102 a & b & c \\
103 \alpha & \beta & \gamma \\
104 x_1 & x_2 & x_3 \\
105 \end{tabular}
106 \end{document}
107 ```
108
109 ### Theorems related gimmicks
110
111 All theorems are in `definition` style, meaning that they are not in *italic*. All environments are color-coded to facilitate reading and reviewing.
112
113 Proofs are treated as theorem environments.
114
115 The following theorem-like environments are provided:
116
117 - `axiom`: Fundamental principles assumed to be true.
118 - `goal`: Objectives or targets to be achieved.
119 - `definition`: Precise explanations of terms or concepts.
120 - `fact`: Statements that are objectively true.
121 - `theorem`: Proven statements based on axioms and other theorems.
122 - `lemma`: Helper theorems used to prove larger results.
123 - `claim`: Assertions that need to be proven.
124 - `corollary`: Results that follow directly from theorems.
125 - `property`: Characteristics or attributes of objects.
126 - `proposition`: Important statements that are proven true.
127 - `observation`: Noteworthy remarks or insights.
128 - `conclusion`: Final statements derived from proofs or discussions.
129 - `generalization`: Broader statements derived from specific cases.
130 - `problem`: Questions or challenges to be solved.
131 - `example`: Illustrative instances or cases.
132 - `solution`: Answers or methods for solving problems.
133 - `analysis`: Detailed examination of elements or structure.
134 - `complexity`: Discussion of the computational complexity.
135 - `proof`: Logical arguments establishing the truth of statements.
136
137 Example usage:
138
139 ```latex
140 \documentclass{lectures}
141 \begin{document}
142
143 \begin{theorem}[Pythagorean Theorem]
144 In a right-angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.
145 \begin{equation}
146 a^2 + b^2 = c^2
147 \end{equation}
148 \end{theorem}
149
150 \begin{proof}
151 This can be proven using the properties of similar triangles.
152 \end{proof}
153
154 \begin{definition}[Prime Number]
155 A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.
156 \end{definition}
157
158 \end{document}
159 ```
160
161 [![Theorem english example](https://github.com/LucaCappelletti94/lectures/blob/master/english_example.png?raw=true)](https://github.com/LucaCappelletti94/lectures/blob/master/english_example.png)
162
163 Or if you selected the Italian language:
164
165 [![Theorem italian example](https://github.com/LucaCappelletti94/lectures/blob/master/italian_example.png?raw=true)](https://github.com/LucaCappelletti94/lectures/blob/master/italian_example.png)
166
167 ### Lists related gimmicks
168
169 - Lists are built to be more compact and leave less blank space.
170 - Using the environment `todolist` it is possible to create checklists.
171
172 Example usage:
173
174 ```latex
175 \documentclass{lectures}
176 \begin{document}
177 \begin{todolist}
178 \item Complete the assignment
179 \item Review the lecture notes
180 \item Prepare for the exam
181 \end{todolist}
182 \end{document}
183 ```
184
185 [![TODO List example](https://github.com/LucaCappelletti94/lectures/blob/master/todolist.png?raw=true)](https://github.com/LucaCappelletti94/lectures/blob/master/todolist.png)
186
187 ### Additional gimmicks
188
189 - When a page is empty, Latex won't generate page number or other page elements.
190 - When you want to leave a blank line you can just leave a blank line, without adding `\\`.
191 - If you'd like to use roman numerals there a command for that: `\rom{your number goes here}`.
192
193 ## License
194
195 All the code in this repository is released under the MIT license. For more information, please refer to the [`LICENSE`](https://github.com/LucaCappelletti94/lectures/blob/master/LICENSE) file.