Debian Codegraph @

texmf-dist/doc/latex/simpleoptics/simpleoptics.tex

raw
1 \documentclass[12pt]{article}
2
3 \usepackage[right=1in, top=1in, left=1in, bottom=1in]{geometry}
4 \usepackage[parfill]{parskip}
5 \usepackage{hyperref, float}
6 \hypersetup{
7 colorlinks=true,
8 linkcolor=blue,
9 filecolor=magenta,
10 urlcolor=cyan,
11 }
12
13 \usepackage{simpleoptics}
14
15
16 \begin{document}
17
18
19 \begin{titlepage}
20 \vspace*{\fill}
21 \begin{center}
22 {\Huge Simple Optics Documentation}\\[0.5cm]
23 {\Large Version: 1.1.1}\\[0.4cm]
24 {\Large Date: $7^{th}$ of September 2019}\\[0.2cm]
25 {\small Author: Justin Cawood}
26 \end{center}
27 \vspace*{\fill}
28 \end{titlepage}
29
30 \newpage
31
32 \tableofcontents
33
34 \newpage
35
36 \section{Important Info}
37
38 All optics diagrams drawn with this package \textbf{must} be contained within a "tikzpicture" environment
39
40 Example.
41
42 $\backslash$begin\{center\}
43
44 $\backslash$begin\{tikzpicture\}
45
46 $\backslash$mirror\{0\}\{0\}\{-4\}\{3\}
47
48 $\backslash$end\{tikzpicture\}
49
50 $\backslash$end\{center\}
51
52 \begin{figure}[H]
53
54 \begin{center}
55
56 \begin{tikzpicture}
57
58 \mirror{0}{0}{-4}{3}
59
60 \end{tikzpicture}
61
62 \end{center}
63
64 \caption{Simple mirror example}
65 \end{figure}
66
67 \section{Quick Macro Reference}
68
69 The available macros are
70
71 \begin{itemize}
72 \item $\backslash$mirror\{x\}\{y\}\{focal length\}\{mirror height\}
73 \item $\backslash$leftplanoconvexlens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
74 \item $\backslash$rightplanoconvexlens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
75 \item $\backslash$leftplanoconcavelens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
76 \item $\backslash$rightplanoconcavelens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
77 \item $\backslash$biconvexlens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
78 \item $\backslash$biconcavelens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
79 \item $\backslash$convexconcavelens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
80 \item $\backslash$concaveconvexlens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
81 \end{itemize}
82
83
84 \section{Mirrors}
85
86 Mirrors can be drawn using the $\backslash$mirror macro.
87
88 The macro takes the following parameters, all of which are required.
89
90 $\backslash$mirror\{x\}\{y\}\{focal length\}\{mirror height\}
91
92 The parameters x and y are the coordinates for where the mirror will be placed. The focal length and height are simply the focal length and height of the mirror.
93
94 If you want to flip the mirror the other way, just specify a negative focal length. Examples of both are done below with the code below each.
95
96
97 \begin{minipage}{\textwidth}
98 \begin{minipage}{0.5\textwidth}
99
100 \begin{figure}[H]
101
102 \begin{center}
103
104 \begin{tikzpicture}
105
106 \mirror{0}{0}{3}{2}
107
108 \end{tikzpicture}
109
110 \end{center}
111
112 \caption{Positive focal length example}
113 \end{figure}
114
115 $\backslash$begin\{center\}
116
117 $\backslash$begin\{tikzpicture\}
118
119 $\backslash$mirror\{0\}\{0\}\{3\}\{4\}
120
121 $\backslash$end\{tikzpicture\}
122
123 $\backslash$end\{center\}
124 \end{minipage}
125 \begin{minipage}{0.5\textwidth}
126
127 \begin{figure}[H]
128
129 \begin{center}
130
131 \begin{tikzpicture}
132
133 \mirror{0}{0}{-3}{2}
134
135 \end{tikzpicture}
136
137 \end{center}
138
139 \caption{Negative focal length example}
140 \end{figure}
141
142 $\backslash$begin\{center\}
143
144 $\backslash$begin\{tikzpicture\}
145
146 $\backslash$mirror\{0\}\{0\}\{-3\}\{4\}
147
148 $\backslash$end\{tikzpicture\}
149
150 $\backslash$end\{center\}
151 \end{minipage}
152 \end{minipage}
153
154 \section{Lenses}
155
156 The lenses are made using mirrors.
157
158 There are a few different lenses that can be drawn with this package, each of which has its own macro.
159
160 \subsection{Plano Lenses}
161 Plano lenses have one flat side and the other side is either convex or concave.
162
163 The plano lenses have macros following this format
164
165 $\backslash$leftplano"convex/concave"lens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
166
167 or
168
169 $\backslash$rightplano"convex/concave"lens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
170
171 \subsubsection{Plano-Convex Lenses}
172
173 This package provides two plano-covex lens macros. One faces left and the other right. The left and right refer to the flat side of the lens. These are shown below.
174
175 \begin{minipage}{\textwidth}
176 \begin{minipage}{0.5\textwidth}
177
178 \begin{figure}[H]
179
180 \begin{center}
181
182 \begin{tikzpicture}
183
184 \leftplanoconvexlens{0}{0}{3}{2}{0.3}
185
186 \end{tikzpicture}
187
188 \end{center}
189
190 \caption{Left plano convex lens}
191 \end{figure}
192
193 $\backslash$begin\{center\}
194
195 $\backslash$begin\{tikzpicture\}
196
197 $\backslash$leftplanoconvexlens\{0\}\{0\}\{3\}\{4\}\{0.3\}
198
199 $\backslash$end\{tikzpicture\}
200
201 $\backslash$end\{center\}
202 \end{minipage}
203 \begin{minipage}{0.5\textwidth}
204
205 \begin{figure}[H]
206
207 \begin{center}
208
209 \begin{tikzpicture}
210
211 \rightplanoconvexlens{0}{0}{3}{2}{0.3}
212
213 \end{tikzpicture}
214
215 \end{center}
216
217 \caption{Right plano convex lens}
218 \end{figure}
219
220 $\backslash$begin\{center\}
221
222 $\backslash$begin\{tikzpicture\}
223
224 $\backslash$rightplanoconvexlens\{0\}\{0\}\{3\}\{4\}\{0.3\}
225
226 $\backslash$end\{tikzpicture\}
227
228 $\backslash$end\{center\}
229 \end{minipage}
230 \end{minipage}
231
232 \subsubsection{Plano-Concave Lenses}
233
234 The same can be done with plano concave lenses. Again there are two available macros. One faces left and the other right. The left and right refer to the flat side of the lens. These are shown below.
235
236 \begin{minipage}{\textwidth}
237 \begin{minipage}{0.5\textwidth}
238
239 \begin{figure}[H]
240
241 \begin{center}
242
243 \begin{tikzpicture}
244
245 \leftplanoconcavelens{0}{0}{5}{3}{0.5}
246
247 \end{tikzpicture}
248
249 \end{center}
250
251 \caption{Left plano concave lens}
252 \end{figure}
253
254 $\backslash$begin\{center\}
255
256 $\backslash$begin\{tikzpicture\}
257
258 $\backslash$leftplanoconcavelens\{0\}\{0\}\{5\}\{3\}\{0.5\}
259
260 $\backslash$end\{tikzpicture\}
261
262 $\backslash$end\{center\}
263 \end{minipage}
264 \begin{minipage}{0.5\textwidth}
265
266 \begin{figure}[H]
267
268 \begin{center}
269
270 \begin{tikzpicture}
271
272 \rightplanoconcavelens{0}{0}{5}{3}{0.5}
273
274 \end{tikzpicture}
275
276 \end{center}
277
278 \caption{Right plano concave lens}
279 \end{figure}
280
281 $\backslash$begin\{center\}
282
283 $\backslash$begin\{tikzpicture\}
284
285 $\backslash$rightplanoconcavelens\{0\}\{0\}\{5\}\{3\}\{0.5\}
286
287 $\backslash$end\{tikzpicture\}
288
289 $\backslash$end\{center\}
290 \end{minipage}
291 \end{minipage}
292
293 \subsection{Bi Lenses}
294
295 Bi lenses are made of two mirrors facing opposite directions.
296
297 Bi lenses have macros with this format
298
299 $\backslash$bi"convex/concave"lens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
300
301 \subsubsection{Bi-Convex Lens}
302
303 \begin{figure}[H]
304
305 \begin{center}
306
307 \begin{tikzpicture}
308
309 \biconvexlens{0}{0}{1}{2}{1}
310
311 \end{tikzpicture}
312
313 \end{center}
314
315 \caption{Bi convex lens}
316 \end{figure}
317
318 $\backslash$begin\{center\}
319
320 $\backslash$begin\{tikzpicture\}
321
322 $\backslash$biconvexlens\{0\}\{0\}\{1\}\{2\}\{1\}
323
324 $\backslash$end\{tikzpicture\}
325
326 $\backslash$end\{center\}
327
328 \subsubsection{Bi-Concave Lens}
329
330 \begin{figure}[H]
331
332 \begin{center}
333
334 \begin{tikzpicture}
335
336 \biconcavelens{0}{0}{1}{3}{5}
337
338 \end{tikzpicture}
339
340 \end{center}
341
342 \caption{Bi concave lens}
343 \end{figure}
344
345 $\backslash$begin\{center\}
346
347 $\backslash$begin\{tikzpicture\}
348
349 $\backslash$biconcavelens\{0\}\{0\}\{1\}\{3\}\{5\}
350
351 $\backslash$end\{tikzpicture\}
352
353 $\backslash$end\{center\}
354
355 \subsection{Convex-Concave and Concave-Convex Lenses}
356
357 Convex and concave mirrors can be combined to make convex-concave lenses and concave-convex lenses.
358
359 They have macros with the format
360
361 $\backslash$convexconcavelens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
362
363 $\backslash$concaveconvexlens\{x\}\{y\}\{focal length\}\{mirror height\}\{thickness\}
364
365 \begin{minipage}{\textwidth}
366 \begin{minipage}{0.5\textwidth}
367
368 \begin{figure}[H]
369
370 \begin{center}
371
372 \begin{tikzpicture}
373
374 \convexconcavelens{0}{0}{2.5}{3}{0.8}
375
376 \end{tikzpicture}
377
378 \end{center}
379
380 \caption{Convex-Concave lens}
381 \end{figure}
382
383 $\backslash$begin\{center\}
384
385 $\backslash$begin\{tikzpicture\}
386
387 $\backslash$convexconcavelens\{0\}\{0\}\{2.5\}\{3\}\{0.8\}
388
389 $\backslash$end\{tikzpicture\}
390
391 $\backslash$end\{center\}
392 \end{minipage}
393 \begin{minipage}{0.5\textwidth}
394
395 \begin{figure}[H]
396
397 \begin{center}
398
399 \begin{tikzpicture}
400
401 \concaveconvexlens{0}{0}{2.5}{3}{0.8}
402
403 \end{tikzpicture}
404
405 \end{center}
406
407 \caption{Concave-Convex lens}
408 \end{figure}
409
410 $\backslash$begin\{center\}
411
412 $\backslash$begin\{tikzpicture\}
413
414 $\backslash$concaveconvexlens\{0\}\{0\}\{2.5\}\{3\}\{0.8\}
415
416 $\backslash$end\{tikzpicture\}
417
418 $\backslash$end\{center\}
419 \end{minipage}
420 \end{minipage}
421
422 \section{Multiple At Once}
423
424 The macros can all be used at the same time to produce diagrams with multiple lenses and/or mirrors.
425
426
427 \begin{figure}[H]
428
429 \begin{center}
430
431 \begin{tikzpicture}
432
433 \mirror{1}{0}{2.5}{3}
434 \convexconcavelens{3}{0}{2.5}{3}{0.7}
435 \biconvexlens{5}{0}{2.5}{3}{0.5}
436 \concaveconvexlens{7}{0}{2.5}{3}{0.6}
437 \biconcavelens{9}{0}{2.5}{3}{1.3}
438 \leftplanoconvexlens{11}{0}{4}{3}{0.5}
439 \concaveconvexlens{12}{0}{1}{3}{0.8}
440 \rightplanoconcavelens{15}{0}{5}{3}{0.8}
441
442 \end{tikzpicture}
443
444 \end{center}
445
446 \caption{Concave-Convex lens}
447 \end{figure}
448
449 $\backslash$begin\{center\}
450
451 $\backslash$begin\{tikzpicture\}
452
453 $\backslash$mirror\{1\}\{0\}\{2.5\}\{3\}
454
455 $\backslash$convexconcavelens\{3\}\{0\}\{2.5\}\{3\}\{0.7\}
456
457 $\backslash$biconvexlens\{5\}\{0\}\{2.5\}\{3\}\{0.5\}
458
459 $\backslash$concaveconvexlens\{7\}\{0\}\{2.5\}\{3\}\{0.6\}
460
461 $\backslash$biconcavelens\{9\}\{0\}\{2.5\}\{3\}\{1.3\}
462
463 $\backslash$leftplanoconvexlens\{11\}\{0\}\{4\}\{3\}\{0.5\}
464
465 $\backslash$concaveconvexlens\{12\}\{0\}\{1\}\{3\}\{0.8\}
466
467 $\backslash$rightplanoconcavelens\{15\}\{0\}\{5\}\{3\}\{0.8\}
468
469 $\backslash$end\{tikzpicture\}
470
471 $\backslash$end\{center\}
472
473
474 \end{document}