-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminimal_example.sty
35 lines (29 loc) · 1.54 KB
/
minimal_example.sty
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
%--------------------------------------------------------------------------------------
%%% This is a chapter triggered by a line starting with %%%
%--------------------------------------------------------------------------------------
%# This package serves as a minimal example for the creation of documentation for .sty-files.
%# To add plain text at an arbitrary position in this .pdf, use %# at the beginning of a line in the .sty-file.
%# The position of the %#-line in the .sty-file determines the position of that line in the final .pdf.
%#
%# Chapters are triggered by lines starting with %%% while sections are triggered by lines starting with %%.
%# To use comments along with the commands, use %-% directly after a line in which the command is defined.
\RequirePackage{tikz}
\RequirePackage[acronyms]{glossaries}
%% This is a section triggered by a line starting with %%
\newcommand{\ex}{\vec{e}_x}
%-% Comment for the macro ex
\newcommand{\ey}{\vec{e}_y}%-% Comment for the macro ey
\newcommand{\ez}{\vec{e}_z}
% Only the last comment for each macro is taken into account
% This is an illustration of this effet:
%-% This comment is ignored
%-% Comment for the macro ez
%% This is another section
\newcommand{\er}{\vec{e}_r} %-% Comment for the macro er
\newcommand{\etheta}{\vec{e}_\theta}
\newcommand{\evarphi}{\vec{e}_\varphi}
%% In this section, there are no comments
\newcommand{\en}{\vec{e}_n}
\newcommand{\et}{\vec{e}_t}
%$! The commands in the following are not supported by sty2pdf, the reader is referred to the .sty-file itself.
\tikzset{>=stealth}