Debian Codegraph @

texmf-dist/doc/latex/oplotsymbl/oPlotSymbl-Manual-en.tex

raw
1 \documentclass[
2 a4paper,
3 parskip=half,
4 pagesize=auto, % schreibt die Papiergröße korrekt ins Ausgabedokument
5 listof=totoc, % Verzeichnisse im Inhaltsverzeichnis
6 bibliography=totoc,
7 11pt
8 ]{scrartcl}
9
10 \usepackage[T1]{fontenc}
11 \usepackage[utf8]{inputenc}
12 \usepackage[english]{babel}
13 \usepackage{babelbib}
14 \usepackage{graphicx}
15 \usepackage{tikz}
16 \usepackage{amsmath,amssymb,amsthm,textcomp}
17 \usepackage{enumerate}
18 \usepackage{multicol}
19 \usepackage{listings}
20 \usepackage{url}
21 \usepackage{setspace}
22 \usepackage{xcolor}
23 \usepackage{colortbl}
24 \usepackage{float}
25 \usepackage{oplotsymbl}
26
27 \usepackage[
28 pdftitle={oPlotSymbl Package Introduction},
29 pdfauthor={B. Michel Döhring, JLU Giessen},
30 colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=gray,bookmarks=true,
31 bookmarksopenlevel=2]{hyperref}
32
33 \usepackage{geometry}
34 \geometry{
35 nomarginpar,
36 left=30mm,right=20mm,top=20mm,bottom=20mm
37 }
38
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40 %%%% colours for listings %%%%
41 \definecolor{codegreen}{rgb}{0,0.6,0}
42 \definecolor{codegray}{rgb}{0.5,0.5,0.5}
43 \definecolor{codepurple}{rgb}{0.58,0,0.82}
44 \definecolor{backcolour}{rgb}{0.95,0.95,0.92}
45 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
47 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
48 %%%% Style settings for listings %%%%
49 \lstdefinestyle{mystyle}{
50 language=[LaTeX],
51 backgroundcolor=\color{backcolour},
52 commentstyle=\color{codegreen},
53 keywordstyle=\color{magenta},
54 numberstyle=\tiny\color{codegray},
55 stringstyle=\color{codepurple},
56 basicstyle=\footnotesize,
57 breakatwhitespace=false,
58 breaklines=true,
59 captionpos=b,
60 keepspaces=true,
61 numbers=left,
62 numbersep=5pt,
63 showspaces=false,
64 showstringspaces=false,
65 showtabs=false,
66 tabsize=2
67 }
68 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
70
71
72
73
74
75 %\linespread{1.3}
76
77 \newcommand{\linia}{\rule{\linewidth}{0.5pt} \rule{\linewidth}{0.5pt}}
78
79 % my own titles
80 \makeatletter
81 \renewcommand{\maketitle}{
82 \begin{center}
83 \vspace{2ex}
84 {\huge \textsc{\@title}}
85 \vspace{1ex}
86 \\
87 \linia\\
88 \huge{\@date}\\
89 \vspace{5ex}
90 \@author\\
91 E-Mail: \href{mailto:micheld.93@ gmail.com}{[email protected]}\\
92 \vspace{10ex}
93 \end{center}
94 }
95 \makeatother
96 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97
98 %%%----------%%%----------%%%----------%%%----------%%%
99
100 \begin{document}
101
102 \title{{\color[HTML]{FF0000} oPlotSymbl Package Introduction}}
103
104 \author{B. Michel Döhring}
105
106 \date{03/08/2017 (V1.3)}
107
108 \maketitle
109
110 %%%%%%%%%%%%%%%%%%%%%%%%%
111 %%% Table of Contents %%%
112 %%%%%%%%%%%%%%%%%%%%%%%%%
113 \begin{multicols}{2}
114 \tableofcontents
115 \end{multicols}
116 %%%%%%%%%%%%%%%%%%%%%%%%%
117 %%%%%%%%%%%%%%%%%%%%%%%%%
118
119 % 1 1/2 line space
120 \onehalfspacing
121
122
123
124 % \clearpage
125
126 \section{Introduction}
127
128 This package is named "\textit{oPlotSymbl}" and it includes symbols, which are not easily available. Especially, these symbols are used in scientific plots, but the potential user is allowed to use in another way. The idea came to my mind during writing my bachelor thesis, where I needed many plots with many different symbols.
129
130 This package can be loaded with the following command:
131
132 \begin{lstlisting}
133 \usepackage{oplotsymbl}
134 \end{lstlisting}
135
136 There are no additional options implemented yet. Now, it is important to me to mention the used packages. \textit{oPlotSymbl} uses \textit{TikZ} \cite{tikz} and so it loads the \textit{xcolor} package automatically. That means it is possible to use the whole beauty of \textit{xcolor}'s \cite{xcolor} colour palette.
137
138 \section{Version History}
139
140 I will collect all changes in this chapter, here.
141
142 \subsection{Version 1.2 (28.01.2017)}
143
144 \begin{itemize}
145 \item make the manuals's tex file available for everybody
146 \item hope the final release for tex live is possible now
147 \item some people ask to change the name to oPlotSymbol, but I don't see any advantages in it. Sorry.
148 \item share the links on CTAN and GitHub
149 \item some changes on the code itself but NO, absolutely NO changes for the user
150 \end{itemize}
151
152
153 \subsection{Version 1.3 (03.08.2017)}
154
155 \begin{itemize}
156 \item minor changes: manual
157 \item bug fix for hexagofill
158 \item some changes on the code itself but NO, absolutely NO changes for the user
159 \item I don't like version numbering like 1.2.3. Don't see any advantages in it for oplotsymbl
160 \end{itemize}
161
162
163 \subsection{Version 1.4 (04.08.2017)}
164
165 \begin{itemize}
166 \item major changes: manual and package
167 \item bug fix for horizontal and vertical line, sections "Sqare" \& "Other Symbols"
168 \item some changes on the code itself
169 \item all changes are only in the appearance not in the commands, so NO problems for the user
170 \end{itemize}
171
172
173 \section{Repository and Contact}
174
175 The repository/this package is available on GitHub and through CTAN \cite{ctan} and TeXLive \cite{texlive}. You will find it here:
176
177
178 \begin{itemize}
179 \item \url{https://www.ctan.org/pkg/oplotsymbl}
180 \item \url{https://github.com/micheld93/oPlotSymbl-LaTeX/}
181 \end{itemize}
182
183
184 If you have suggestions, problems or you only want to say "Hi", then contact me at \href{mailto:micheld.93@ gmail.com}{[email protected]}.
185
186
187 \section{Symbols and Commands}
188
189 The following sub-sections include all defined symbols sorted in categories. The names are chosen to work with other packages which includes symbols. If you want to use these symbols in the running text, you will use two curved brackets directly after the command to have space between symbol and the following word. I tried to make this package as easy as possible to understand and use. This is why the commands are as close as possible to each other.
190
191
192 \subsection{Triangle}
193
194 \begin{table}[H]
195 \centering
196 \begin{tabular}{|c||l|c|c||l|}
197 \hline
198 Symbol & Command & Suffix & Explanation & Description \\ \hline \hline
199 \trianglepa & \lstinline!\trianglepa! & pa & peak above & none \\ \hline
200 \trianglepafill & \lstinline!\trianglepafill! & pa & peak above & filled triangle \\ \hline
201 \trianglepadot & \lstinline!\trianglepadot! & pa & peak above & triangle with dot \\ \hline
202 \trianglepalinev & \lstinline!\trianglepalinev! & pa & peak above & triangle with vertical line \\ \hline
203 \trianglepalineh & \lstinline!\trianglepalineh! & pa & peak above & triangle with horizontal line \\ \hline
204 \trianglepalinevh & \lstinline!\trianglepalinevh! & pa & peak above & triangle with both lines \\ \hline
205 \trianglepacross & \lstinline!\trianglepacross! & pa & peak above & triangle with cross \\ \hline
206 \trianglepafillha & \lstinline!\trianglepafillha! & pa & peak above & half filled triangle (above) \\ \hline
207 \trianglepafillhb & \lstinline!\trianglepafillhb! & pa & peak above & half filled triangle (below) \\ \hline
208 \trianglepafillhr & \lstinline!\trianglepafillhr! & pa & peak above & half filled triangle (right) \\ \hline
209 \trianglepafillhl & \lstinline!\trianglepafillhl! & pa & peak above & half filled triangle (left) \\ \hline
210 \end{tabular}
211 \end{table}
212
213
214
215 \subsubsection{Additional Triangles}
216
217 All other triangles follow the syntax shown above. It's always
218
219 \begin{lstlisting}
220 \triangle-suffixDESCRIPTION
221 \end{lstlisting}
222
223 "DESCRIPTION" is to exchange with terms like "cross" or "dot" etc. "-suffix" means the orientation of the triangle's highest peak.
224 Other orientations are shown in the table below:
225
226
227 \begin{table}[H]
228 \centering
229 \begin{tabular}{|c|c|}
230 \hline
231 Suffix & Explanation \\ \hline \hline
232 pa & peak above \\ \hline
233 pb & peak below \\ \hline
234 pr & peak right \\ \hline
235 pl & peak left \\ \hline
236 \end{tabular}
237 \end{table}
238
239
240 \newpage
241 \subsection{Circle (here: Circlet)}
242
243 Some other packages use \lstinline{\circle} or \lstinline{\circ} for circles, so I decided to use \lstinline{\circlet} instead of other cryptic abbreviations.
244
245 \begin{table}[H]
246 \centering
247 \begin{tabular}{|c||l||l|}
248 \hline
249 Symbol & Command & Description \\ \hline \hline
250 \circlet & \lstinline!\circlet! & none \\ \hline
251 \circletfill & \lstinline!\circletfill! & filled circle(let) \\ \hline
252 \circletdot & \lstinline!\circletdot! & circle(let) with dot \\ \hline
253 \circletlinev & \lstinline!\circletlinev! & circle(let) with vertical line \\ \hline
254 \circletlineh & \lstinline!\circletlineh! & circle(let) with horizontal line \\ \hline
255 \circletlinevh & \lstinline!\circletlinevh! & circle(let) with both lines \\ \hline
256 \circletcross & \lstinline!\circletcross! & circle(let) with cross \\ \hline
257 \circletfillha & \lstinline!\circletfillha! & half filled circle(let) (above) \\ \hline
258 \circletfillhb & \lstinline!\circletfillhb! & half filled circle(let) (below) \\ \hline
259 \circletfillhr & \lstinline!\circletfillhr! & half filled circle(let) (right) \\ \hline
260 \circletfillhl & \lstinline!\circletfillhl! & half filled circle(let) (left) \\ \hline
261 \end{tabular}
262 \end{table}
263
264
265 \subsection{Pentagon (here: Pentago)}
266
267 The same problem as we know from circle/circlet happens with pentagon. I decided to use "pentago", so it's near enough to pentagon.
268
269 \begin{table}[H]
270 \centering
271 \begin{tabular}{|c||l||l|}
272 \hline
273 Symbol & Command & Description \\ \hline \hline
274 \pentago & \lstinline!\pentago! & none \\ \hline
275 \pentagofill & \lstinline!\pentagofill! & filled pentago \\ \hline
276 \pentagodot & \lstinline!\pentagodot! & pentago with dot \\ \hline
277 \pentagolinev & \lstinline!\pentagolinev! & pentago with vertical line \\ \hline
278 \pentagolineh & \lstinline!\pentagolineh! & pentago with horizontal line \\ \hline
279 \pentagolinevh & \lstinline!\pentagolinevh! & pentago with both lines \\ \hline
280 \pentagocross & \lstinline!\pentagocross! & pentago with cross \\ \hline
281 \pentagofillha & \lstinline!\pentagofillha! & half filled pentago (above) \\ \hline
282 \pentagofillhb & \lstinline!\pentagofillhb! & half filled pentago (below) \\ \hline
283 \pentagofillhr & \lstinline!\pentagofillhr! & half filled pentago (right) \\ \hline
284 \pentagofillhl & \lstinline!\pentagofillhl! & half filled pentago (left) \\ \hline
285 \end{tabular}
286 \end{table}
287
288
289
290
291 \subsection{Star (here: Starlet)}
292
293 \begin{table}[H]
294 \centering
295 \begin{tabular}{|c||l||l|}
296 \hline
297 Symbol & Command & Description \\ \hline \hline
298 \starlet & \lstinline!\starlet! & none \\ \hline
299 \starletfill & \lstinline!\starletfill! & filled starlet \\ \hline
300 \starletdot & \lstinline!\starletdot! & starlet with dot \\ \hline
301 \starletlinev & \lstinline!\starletlinev! & starlet with vertical line \\ \hline
302 \starletlineh & \lstinline!\starletlineh! & starlet with horizontal line \\ \hline
303 \starletlinevh & \lstinline!\starletlinevh! & starlet with both lines \\ \hline
304 \starletcross & \lstinline!\starletcross! & starlet with cross \\ \hline
305 \starletfillha & \lstinline!\starletfillha! & half filled starlet (above) \\ \hline
306 \starletfillhb & \lstinline!\starletfillhb! & half filled starlet (below) \\ \hline
307 \starletfillhr & \lstinline!\starletfillhr! & half filled starlet (right) \\ \hline
308 \starletfillhl & \lstinline!\starletfillhl! & half filled starlet (left) \\ \hline
309 \end{tabular}
310 \end{table}
311
312
313 \subsection{Rhombus}
314
315 \begin{table}[H]
316 \centering
317 \begin{tabular}{|c||l||l|}
318 \hline
319 Symbol & Command & Description \\ \hline \hline
320 \rhombus & \lstinline!\rhombus! & none \\ \hline
321 \rhombusfill & \lstinline!\rhombusfill! & filled rhombus \\ \hline
322 \rhombusdot & \lstinline!\rhombusdot! & rhombus with dot \\ \hline
323 \rhombuslinev & \lstinline!\rhombuslinev! & rhombus with vertical line \\ \hline
324 \rhombuslineh & \lstinline!\rhombuslineh! & rhombus with horizontal line \\ \hline
325 \rhombuslinevh & \lstinline!\rhombuslinevh! & rhombus with both lines \\ \hline
326 \rhombuscross & \lstinline!\rhombuscross! & rhombus with cross \\ \hline
327 \rhombusfillha & \lstinline!\rhombusfillha! & half filled rhombus (above) \\ \hline
328 \rhombusfillhb & \lstinline!\rhombusfillhb! & half filled rhombus (below) \\ \hline
329 \rhombusfillhr & \lstinline!\rhombusfillhr! & half filled rhombus (right) \\ \hline
330 \rhombusfillhl & \lstinline!\rhombusfillhl! & half filled rhombus (left) \\ \hline
331 \end{tabular}
332 \end{table}
333
334
335 \newpage
336 \subsection{Hexagon (here: Hexago)}
337
338 Well, we already know it. Hexagon is used in other packages, so there is a necessity to use different words.
339
340 \begin{table}[H]
341 \centering
342 \begin{tabular}{|c||l||l|}
343 \hline
344 Symbol & Command & Description \\ \hline \hline
345 \hexago & \lstinline!\hexago! & none \\ \hline
346 \hexagofill & \lstinline!\hexagofill! & filled hexago \\ \hline
347 \hexagodot & \lstinline!\hexagodot! & hexago with dot \\ \hline
348 \hexagolinev & \lstinline!\hexagolinev! & hexago with vertical line \\ \hline
349 \hexagolineh & \lstinline!\hexagolineh! & hexago with horizontal line \\ \hline
350 \hexagolinevh & \lstinline!\hexagolinevh! & hexago with both lines \\ \hline
351 \hexagocross & \lstinline!\hexagocross! & hexago with cross \\ \hline
352 \hexagofillha & \lstinline!\hexagofillha! & half filled hexago (above) \\ \hline
353 \hexagofillhb & \lstinline!\hexagofillhb! & half filled hexago (below) \\ \hline
354 \hexagofillhr & \lstinline!\hexagofillhr! & half filled hexago (right) \\ \hline
355 \hexagofillhl & \lstinline!\hexagofillhl! & half filled hexago (left) \\ \hline
356 \end{tabular}
357 \end{table}
358
359
360
361 \subsection{Square}
362
363 To avoid problems with other commands, I decided to use the frankenword \textbf{"squad"} (it's a composition of english \textit{square} and german or non-mathematical \textit{quadrat}).
364
365
366 \begin{table}[H]
367 \centering
368 \begin{tabular}{|c||l||l|}
369 \hline
370 Symbol & Command & Description \\ \hline \hline
371 \squad & \lstinline!\squad! & none \\ \hline
372 \squadfill & \lstinline!\squadfill! & filled square \\ \hline
373 \squaddot & \lstinline!\squaddot! & square with dot \\ \hline
374 \squadlinev & \lstinline!\squadlinev! & square with vertical line \\ \hline
375 \squadlineh & \lstinline!\squadlineh! & square with horizontal line \\ \hline
376 \squadlinevh & \lstinline!\squadlinevh! & square with both lines \\ \hline
377 \squadcross & \lstinline!\squadcross! & square with cross \\ \hline
378 \squadfillha & \lstinline!\squadfillha! & half filled square (above) \\ \hline
379 \squadfillhb & \lstinline!\squadfillhb! & half filled square (below) \\ \hline
380 \squadfillhr & \lstinline!\squadfillhr! & half filled square (right) \\ \hline
381 \squadfillhl & \lstinline!\squadfillhl! & half filled square (left) \\ \hline
382 \end{tabular}
383 \end{table}
384
385
386
387 \subsection{Other Symbols}
388
389 \begin{table}[H]
390 \centering
391 \begin{tabular}{|c||l||l|}
392 \hline
393 Symbol & Command & Description \\ \hline \hline
394 \linev & \lstinline!\linev! & vertical line \\ \hline
395 \lineh & \lstinline!\lineh! & horizontal line \\ \hline
396 \scross & \lstinline!\scross! & single cross \\ \hline
397 \linevh & \lstinline!\linevh! & vertical and horizontal line \\ \hline
398 \scrossvh & \lstinline!\scrossvh! & single cross with lines \\ \hline
399 \end{tabular}
400 \end{table}
401
402
403
404 \section{Font Size}
405
406 All symbols use relative units for scaling. \LaTeX{} provides the unit "em" that means the width of the capital letter "M" in current font. \textit{oPlotSymbl} scales every symbol for you automatically and correctly. No need to worry. If you like to increase symbol size, then it's done with normal behavior for increasing font size. That's it.
407
408 \section{Colours}
409
410 \textit{oPlotSymbl} uses the \textit{xcolor} package so it is possible to use all pre-defined colours from \textit{xcolor} \cite{xcolor}.
411
412 You can colour the symbols very easily like this:
413
414 \begin{lstlisting}
415 \pentagofillhl[opurple]
416 \end{lstlisting}
417
418 There, you get a purple half filled pentagon \pentagofillhl[opurple]. You can define own colours with the following command:
419
420 \begin{lstlisting}
421 \definecolor{colour's name}{colour palette}{specific code}
422 \end{lstlisting}
423
424 There, you can define your own name for a missing colour. I recommend to use RGB or HTML as "colour palette". Between the last brackets you have to put your specific code that is determined trough your picked "colour palette". I will give an example to make the start with \textit{oPlotSymbl} as easy as possible.
425
426 \begin{lstlisting}
427 \definecolor{black}{HTML}{000000}
428 \end{lstlisting}
429
430 This listing gives us black. It uses a custom name, followed by the "colour palette" and then the colour code for chosen option. As shown above \textit{oPlotSymbl} follows normal \textit{xcolor} \cite{xcolor} commands.
431
432 In addition, some colours are pre-defined for my own needs. These colours are:
433
434 \begin{table}[H]
435 \centering
436 \begin{tabular}{|l|l|l|c|}
437 \hline
438 Colour & Colour Name & Colour Name for Command & RGB Code \\ \hline \hline
439 \cellcolor[RGB]{0,0,0} & black & oblack & 0,0,0 \\ \hline
440 \cellcolor[RGB]{255,0,0} & red & ored & 255,0,0 \\ \hline
441 \cellcolor[RGB]{0,255,0} & green & ogreen & 0,255,0 \\ \hline
442 \cellcolor[RGB]{0,0,255} & blue & oblue & 0,0,255 \\ \hline
443 \cellcolor[RGB]{0,255,255} & cyan & ocyan & 0,255,255 \\ \hline
444 \cellcolor[RGB]{255,0,255} & magenta & omagenta & 255,0,255 \\ \hline
445 \cellcolor[RGB]{255,255,0} & yellow & oyellow & 255,255,0 \\ \hline
446 \cellcolor[RGB]{128,128,0} & dark yellow & odyellow & 128,128,0 \\ \hline
447 \cellcolor[RGB]{0,0,128} & mariner blue & omblue & 0,0,128 \\ \hline
448 \cellcolor[RGB]{128,0,128} & purple & opurple & 128,0,128 \\ \hline
449 \cellcolor[RGB]{128,0,0} & brown & obrown & 128,0,0 \\ \hline
450 \cellcolor[RGB]{0,128,0} & olive green & oolive & 0,128,0 \\ \hline
451 \cellcolor[RGB]{0,128,128} & dark cyan & odcyan & 0,128,128 \\ \hline
452 \cellcolor[RGB]{0,0,160} & royel blue & orblue & 0,0,160 \\ \hline
453 \cellcolor[RGB]{255,128,0} & orange & oorange & 255,128,0 \\ \hline
454 \cellcolor[RGB]{128,0,255} & violet & oviolet & 128,0,255 \\ \hline
455 \cellcolor[RGB]{255,0,128} & pink & opink & 255,0,128 \\ \hline
456 \cellcolor[RGB]{255,255,255} & white & owhite & 255,255,255 \\ \hline
457 \cellcolor[RGB]{192,192,192} & light grey & olgrey & 192,192,192 \\ \hline
458 \cellcolor[RGB]{128,128,128} & grey & ogrey & 128,128,128 \\ \hline
459 \cellcolor[RGB]{255,255,128} & light yellow & olyellow & 255,255,128 \\ \hline
460 \cellcolor[RGB]{128,255,255} & light cyan & olcyan & 128,255,255 \\ \hline
461 \cellcolor[RGB]{255,128,255} & light magenta & olmagenta & 255,128,255 \\ \hline
462 \cellcolor[RGB]{64,64,64} & dark grey & odgrey & 64,64,64 \\ \hline
463 \end{tabular}
464 \end{table}
465
466
467
468 % #####################
469 % # Table of listings #
470 % #####################
471
472 % \lstlistoflistings
473
474 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
475
476
477
478 % ##########################
479 % # Literature with BibTeX #
480 % ##########################
481
482
483 \cleardoublepage
484 \bibliography{literatur}
485 \bibliographystyle{babunsrt-fl}
486
487 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
488
489
490
491
492
493 \end{document}