-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcscommon.sty
More file actions
518 lines (432 loc) · 21.4 KB
/
cscommon.sty
File metadata and controls
518 lines (432 loc) · 21.4 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% FILE: cscommon.sty
%% PURPOSE: CORESENSE Common Resources
%% UPDATED: 2023/06/19 v1.2
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[export]{adjustbox}
\usepackage{calc}
\usepackage{fancyhdr}
\usepackage{url}
\usepackage{ragged2e}
\usepackage{xifthen}
\usepackage[most]{tcolorbox}
%\usepackage[no-math]{fontspec}
\usepackage{mathspec} % loads fontspec as well
% undo the wrong changes made by mathspec to avoid error in glossaries
\makeatletter
\let\RequirePackage\original@RequirePackage
\let\usepackage\RequirePackage
\makeatother
\usepackage{fontawesome}
\usepackage[font={small,it},labelfont=bf]{caption}
\usepackage{graphicx}
\usepackage[xetex,table,dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{newverbs}
%-- Helpers ---------------------------------------------------------------
\newcommand{\xie}{\emph{i.e.}}
\newcommand{\xetc}{\emph{etc.}}
\newcommand{\xeg}{\emph{e.g.}}
\newcommand{\xcf}{\emph{cf.}}
\newcommand{\CSP}{CORESENSE}
%\newcommand{\CS}{CoreSense}
%\newcommand{\CS}{\textbf{CoreSense}}
\newcommand{\CS}{\textsc{CoreSense}}
%-- Figures ---------------------------------------------------------------
\newcommand{\FigureOld}[5]{
\begin{figure}[#5]\centering
\includegraphics[width=#2]{#1}
\parbox{#2}{\caption{#3\label{#4}}}
\end{figure}
}
\newcommand{\Figure}[5][ht!]{
\begin{figure}[#1]\centering
\includegraphics[width=#3]{#2}\\[2mm]
\parbox{#3}{\caption{#4\label{#5}}}
\end{figure}
}
%-- Colors ---------------------------------------------------------------
\definecolor{CSRed}{HTML}{BF002A}
\definecolor{CSGreen}{HTML}{006A63}
\definecolor{CSMaroon}{HTML}{512977}
\definecolor{CSOrange}{HTML}{EAB82D}
\definecolor{CSRussianGray}{HTML}{0C0026}
\definecolor{CSGray}{HTML}{777777}
\definecolor{CSLightRed}{HTML}{DF004A}
\definecolor{CSUltraLightRed}{HTML}{FF00AA}
\definecolor{CSLightGreen}{HTML}{009990}
\definecolor{CSUltraLightGreen}{HTML}{EEFFFA}
\definecolor{CSLightOrange}{HTML}{FAD880}
\definecolor{CSUltraLightOrange}{HTML}{FFEECC}
\definecolor{CSLightMaroon}{HTML}{7744AA}
\definecolor{CSUltraLightMaroon}{HTML}{FCF6FF}
\definecolor{CSLightGray}{HTML}{BBBBBB}
\definecolor{CSUltraLightGray}{HTML}{F0F0F0}
\definecolor{URLcolor}{HTML}{006A63}
%-- EU Flag ---------------------------------------------------------------
\newcommand{\euflag}[1]{
\begin{tikzpicture}[scale=#1]
\fill[fill={rgb,255:red,0;green,51;blue,153}] (-27,-18) rectangle (27,18);
\pgfmathsetmacro\inr{tan(36)/cos(18)}
\foreach \i in {0,1,...,11} {
\begin{scope}[shift={(30*\i:12)}]
\fill[fill={rgb,255:red,255;green,204;blue,0}] (90:2)
\foreach \x in {0,1,...,4} { -- (90+72*\x:2) -- (126+72*\x:\inr) };
\end{scope}
}
\end{tikzpicture}
}
%- Comments -------------------------------------------------------------
\newcommand{\highlight}[1]{
\begin{tcolorbox}[colback=CSRed!5!white,colframe=white]
\noindent\textit{#1}
\end{tcolorbox}
}
\newcommand{\note}[1]{
\begin{tcolorbox}[colback=CSGreen!5!white,colframe=CSGreen!75!black]
\noindent\textit{#1}
\end{tcolorbox}
}
\newcommand{\notealt}[1]{
\begin{tcolorbox}[colback=CSOrange!5!white,colframe=CSOrange!75!black]
\noindent\textit{#1}
\end{tcolorbox}
}
\newcommand{\noteicon}[2]{
\begin{tcolorbox}[enhanced,
attach boxed title to top right={xshift=-3mm,yshift=-3mm,yshifttext=-1mm},
colback=CSGreen!5!white,colframe=CSGreen!75!black,colbacktitle=CSGreen!80!black,
title=\faicon{#1},fonttitle=\bfseries,
boxed title style={size=small,colframe=CSGreen!50!black} ]
\noindent\textit{#2}
\end{tcolorbox}
}
\newcommand{\notealticon}[2]{
\begin{tcolorbox}[enhanced,
attach boxed title to top right={xshift=-3mm,yshift=-3mm,yshifttext=-1mm},
colback=CSOrange!5!white,colframe=CSOrange!75!black,colbacktitle=CSOrange!80!black,
title=\faicon{#1},fonttitle=\bfseries,
boxed title style={size=small,colframe=CSOrange!50!black} ]
\noindent\textit{#2}
\end{tcolorbox}
}
% This command uses the \faicon from the fontawesome package. These are some icons of interest:
% arrow-circle-down
% bullhorn
% cog
% cogs
% comment
% comment-o
% commenting
% commenting-o
% file
% file-o
% hand-o-right
\newcommand{\yellowbox}[2]{
\begin{tcolorbox}[enhanced, attach boxed title to top right={xshift=-3mm,yshift=-3mm,yshifttext=-1mm},
colback=CSOrange!5!white,colframe=CSOrange!75!black,colbacktitle=CSOrange!80!black,
title=#1,fonttitle=\bfseries,
boxed title style={size=small,colframe=CSOrange!50!black} ]
\noindent\textit{#2}
\end{tcolorbox}
}
\newcommand{\maroonbox}[2]{
\begin{tcolorbox}[enhanced, attach boxed title to top right={xshift=-3mm,yshift=-3mm,yshifttext=-1mm},
colback=CSMaroon!5!white,colframe=CSMaroon!75!black,colbacktitle=CSMaroon!80!black,
title=#1,fonttitle=\bfseries,
boxed title style={size=small,colframe=CSMaroon!50!black} ]
\noindent\textit{#2}
\end{tcolorbox}
}
\newcommand{\redbox}[2]{
\begin{tcolorbox}[enhanced, attach boxed title to top right={xshift=-3mm,yshift=-3mm,yshifttext=-1mm},
colback=CSRed!5!white,colframe=CSRed!75!black,colbacktitle=CSRed!80!black,
title=#1,fonttitle=\bfseries,
boxed title style={size=small,colframe=CSRed!50!black} ]
\noindent\textit{#2}
\end{tcolorbox}
}
\newcommand{\greenbox}[2]{
\begin{tcolorbox}[enhanced, attach boxed title to top right={xshift=-3mm,yshift=-3mm,yshifttext=-1mm},
colback=CSGreen!5!white,colframe=CSGreen!75!black,colbacktitle=CSGreen!80!black,
title=#1,fonttitle=\bfseries,
boxed title style={size=small,colframe=CSGreen!50!black} ]
\noindent\textit{#2}
\end{tcolorbox}
}
%- Quotations -------------------------------------------------------------
\newcommand{\quoteright}[1]{
\begin{quotation}
\hspace{4cm}\parbox{10.4cm}
{\noindent\textit{\color{CSMaroon}\small#1}}
\end{quotation}
}
\newcommand{\quotefront}[2]{
\begin{quotation}
\hspace{4cm}\parbox{10.4cm}
{\noindent\textit{\color{CSMaroon}\small#1}\hfill\textrm{\cite{#2}}}
\end{quotation}
}
\newcommand{\quotefrontp}[3]{
\begin{quotation}
\hspace{4cm}\parbox{10.4cm}
{\noindent\textit{\color{CSMaroon}\small#1}\hfill\textrm{ \mbox{\cite[#3]{#2}}}}
\end{quotation}
}
\newcommand{\quotecite}[2]{
\begin{quotation}
\noindent\textit{\small#1}\hfill\textrm{\cite{#2}}
\end{quotation}
}
\newcommand{\quotecitep}[3]{
\begin{quotation}
\noindent\textit{\small#1}\hfill\textrm{\cite[#3]{#2}}
\end{quotation}
}
\newcommand{\quoteciteg}[2]{
\begin{quotation}
\noindent\textit{\color{CSGreen}\small#1}\hfill\textrm{{#2}}
\end{quotation}
}
\newcommand{\quotecitem}[2]{
\begin{quotation}
\noindent\textit{\color{CSMaroon}\small#1}\hfill\textrm{{#2}}
\end{quotation}
}
\newcommand{\quoteciter}[2]{
\begin{quotation}
\noindent\textit{\color{CSRed}\small#1}\hfill\textrm{{#2}}
\end{quotation}
}
% Hyperlinks ---------------------------------------------------
\hypersetup{
unicode,
colorlinks = true,
linkcolor = URLcolor,
citecolor = URLcolor,
urlcolor = URLcolor,
linkbordercolor = {white},
pdfauthor={CORESENSE},
pdfproducer={CORESENSE}
}
% Fonts --------------------------------------------------------
%\setmainfont{Ubuntu Light}
%\setsansfont[Scale=MatchLowercase]{Ubuntu}
%\setmonofont[Scale=MatchLowercase]{Fira Code}
\setmainfont{Ubuntu Light}
%\setmainfont{Charis SIL}
%\setmainfont{Noto Serif}
\setsansfont{Montserrat}
\setmonofont[Scale=1.1]{Ubuntu Mono}
%\setmonofont{Ubuntu Mono}
%\setmonofont{Fira Code}
\setmathrm{Ubuntu Light}
\setmathfont(Digits,Latin){Ubuntu Light}
% Floats -------------------------------------------------
%\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox{CSLightGray}{\parbox{\textwidth-2mm}{\textbf{#1}#2#3}}}
%\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
\captionsetup[lstlisting]{format=listing}
\newcommand{\tabtitle}[1]{\cellcolor{CSGreen}\color{white}\textbf{#1}\rule{0pt}{20pt}}
\newcommand{\ltt}[1]{\cellcolor{CSGreen}\color{white}\textbf{#1}\rule{0pt}{8pt}}
\newcommand{\rtabtitle}[1]{\cellcolor{CSRed}\color{white}\textbf{#1}\rule{0pt}{20pt}}
\newcommand{\bkg}{\cellcolor{CSGreen}}
\newcommand{\bkr}{\cellcolor{CSRed}}
\newcommand{\bkl}{\cellcolor{CSUltraLightGreen}}
\newcommand{\bkm}{\cellcolor{CSUltraLightMaroon}}
\newcommand{\bko}{\cellcolor{CSUltraLightOrange}}
\newcommand{\bkx}{\cellcolor{CSUltraLightGray}}
\newcommand{\bkgr}{\rowcolor{CSGreen}}
\newcommand{\bkrr}{\rowcolor{CSRed}}
\newcommand{\bklr}{\rowcolor{CSUltraLightGreen}}
\newcommand{\bkmr}{\rowcolor{CSUltraLightMaroon}}
\newcommand{\bkor}{\rowcolor{CSUltraLightOrange}}
\newcommand{\bkxr}{\rowcolor{CSUltraLightGray}}
\newcolumntype{C}[1]{>{\centering\arraybackslash\baselineskip=11pt}p{#1}}
\newcolumntype{L}[1]{>{\RaggedRight\arraybackslash\baselineskip=11pt}p{#1}}
\newcolumntype{R}[1]{>{\RaggedLeft\arraybackslash\baselineskip=11pt}p{#1}}
\newcolumntype{P}[1]{>{\baselineskip=11pt}p{#1}}
% Listings --------------------------------------------------------
\lstset{
backgroundcolor=\color{CSUltraLightGreen}, % choose the background color
basicstyle=\ttfamily\small, % the size of the fonts that are used for the code
% breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=false, % sets automatic line breaking
captionpos=false, % sets the caption-position to top
commentstyle=\color{CSMaroon}, % comment style
deletekeywords={...}, % if you want to delete keywords from the given language
extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
firstnumber=10, % start line enumeration with line 1000
frame=none, % remove frame around the code. Use "single" for simple border
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code
keywordstyle=\color{CSRed}, % keyword style
language=Python, % the language of the code
morekeywords={*,...}, % if you want to add more keywords to the set
numbers=left, % where to put the line-numbers; possible values are (none, left, right)
numbersep=5pt, % how far the line-numbers are from the code
numberstyle=\tiny\color{CSGray}, % the style that is used for the line-numbers
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
showtabs=false, % show tabs within strings adding particular underscores
stepnumber=2, % the step between two line-numbers. If it's 1, each line will be numbered
stringstyle=\color{CSGreen}, % string literal style
tabsize=4, % sets default tabsize to 4 spaces
title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title
}
\lstdefinestyle{default}{
backgroundcolor=\color{CSUltraLightGreen}, % choose the background color
basicstyle=\ttfamily\small, % the size of the fonts that are used for the code
% breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=false, % sets automatic line breaking
captionpos=false, % sets the caption-position to top
commentstyle=\color{CSMaroon}, % comment style
deletekeywords={...}, % if you want to delete keywords from the given language
extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
firstnumber=10, % start line enumeration with line 1000
frame=none, % remove frame around the code. Use "single" for simple border
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code
keywordstyle=\color{CSRed}, % keyword style
language=Python, % the language of the code
morekeywords={*,...}, % if you want to add more keywords to the set
numbers=left, % where to put the line-numbers; possible values are (none, left, right)
numbersep=5pt, % how far the line-numbers are from the code
numberstyle=\tiny\color{CSGray}, % the style that is used for the line-numbers
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
showtabs=false, % show tabs within strings adding particular underscores
stepnumber=2, % the step between two line-numbers. If it's 1, each line will be numbered
stringstyle=\color{CSGreen}, % string literal style
tabsize=4, % sets default tabsize to 4 spaces
title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title
}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.3,0.3,0.3}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{numbergray}{rgb}{0.5,0.5,0.5}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\definecolor{commandcolour}{rgb}{0.1,0.4,0.2}
\lstdefinestyle{program}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{numbergray},
identifierstyle=\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
frame=leftline,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstdefinestyle{codegreen}{
commentstyle = \color{codegreen},
keywordstyle = \color{codegreen},
identifierstyle = \color{codegreen},
stringstyle = \color{codegreen},
basicstyle =\ttfamily\footnotesize\color{codegreen},
breaklines = true
}
\lstdefinestyle{codepurple}{
commentstyle = \color{codepurple},
keywordstyle = \color{codepurple},
identifierstyle = \color{codepurple},
stringstyle = \color{codepurple},
basicstyle =\ttfamily\footnotesize\color{codepurple},
breaklines = true
}
\lstdefinestyle{console}{
commentstyle=\color{black},
keywordstyle=\color{black},
identifierstyle=\color{black},
stringstyle=\color{black},
numbers=none,
}
\lstdefinelanguage{SysML}{
morekeywords = [1]{part, def, action, state},
morekeywords = [2]{package, metadata},
morekeywords = [3]{entry, then, do, exit, transition, first},
morekeywords = [4]{ISQ, ArrayList},
keywordstyle = [1]\color{CSGreen},
keywordstyle = [2]\color{CSRed},
keywordstyle = [3]\color{CSMaroon},
keywordstyle = [4]\color{CSOrange},
sensitive = true,
morecomment = [l]{//},
morecomment = [s]{/*}{*/},
morecomment = [s]{/**}{*/},
commentstyle = \color{CSUltraLightGreen},
morestring = [b]",
morestring = [b]',
stringstyle = \color{purple}
}
\lstdefinelanguage{SysMLv2}{
keywords={
about, abstract, accept, action, actor, after, alias, all, allocate, allocation, analysis, and, as, assign, assert, assoc, assume, at, attribute, bind, binding, block, by, calc, case, comment, concern, connect, connection, constraint, crosses, decide, def, default, defined, dependency, derived, do, doc, else, end, entry, enum, event, exhibit, exit, expose, filter, first, flow, for, fork, frame, from, hastype, if, implies, import, in, include, individual, inout, interface, istype, item, join, language, loop, merge, message, metadata, nonunique, not, objective, occurrence, of, or, ordered, out, package, parallel, part, perform, port, private, protected, public, readonly, redefines, ref, references, render, rendering, rep, require, requirement, return, satisfy, send, snapshot, specializes, stakeholder, state, subject, subsets, succession, terminate, then, timeslice, to, transition, until, use, variant, variation, verification, verify, via, view, viewpoint, when, while, xor},
morekeywords = [1]{
AcceptActionUsage, ActionDefinition, ActionUsage, ActorMembership, AllocationDefinition, AllocationUsage,
AnalysisCaseDefinition, AnalysisCaseUsage, AnnotatingElement, Annotation, AssertConstraintUsage,
AssignmentActionUsage, Association, AssociationStructure, AttributeDefinition, AttributeUsage, Behavior, BindingConnector,
BindingConnectorAsUsage, BooleanExpression, CalculationDefinition, CalculationUsage, CaseDefinition, CaseUsage,
Class, Classifier, CollectExpression, Comment, ConcernDefinition, ConcernUsage, ConjugatedPortDefinition,
ConjugatedPortTyping, Conjugation, ConnectionDefinition, ConnectionUsage, Connector, ConnectorAsUsage,
ConstraintDefinition, ConstraintUsage, ControlNode, DataType, DecisionNode, Definition, Dependency, Differencing,
Disjoining, Documentation, Element, ElementFilterMembership, EndFeatureMembership, EnumerationDefinition,
EnumerationUsage, EventOccurrenceUsage, ExhibitStateUsage, Expose, Expression, Feature, FeatureChainExpression,
FeatureChaining, FeatureDirectionKind, FeatureInverting, FeatureMembership, FeatureReferenceExpression, FeatureTyping,
FeatureValue, Featuring, FlowConnectionDefinition, FlowConnectionUsage, ForkNode, ForLoopActionUsage,
FramedConcernMembership, Function, IfActionUsage, Import, IncludeUseCaseUsage, Interaction, InterfaceDefinition,
InterfaceUsage, Intersecting, Invariant, InvocationExpression, ItemDefinition, ItemFeature, ItemFlow, ItemFlowEnd, ItemUsage,
JoinNode, LibraryPackage, LifeClass, LiteralBoolean, LiteralExpression, LiteralInfinity, LiteralInteger, LiteralRational,
LiteralString, LoopActionUsage, Membership, MembershipExpose, MembershipImport, MergeNode, Metaclass,
MetadataAccessExpression, MetadataDefinition, MetadataFeature, MetadataUsage, Multiplicity, MultiplicityRange,
Namespace, NamespaceExpose, NamespaceImport, NullExpression, ObjectiveMembership, OccurrenceDefinition,
OccurrenceUsage, OperatorExpression, OwningMembership, Package, ParameterMembership, PartDefinition, PartUsage,
PerformActionUsage, PortConjugation, PortDefinition, PortionKind, PortUsage, Predicate, Redefinition, ReferenceSubsetting,
ReferenceUsage, Relationship, RenderingDefinition, RenderingUsage, RequirementConstraintKind,
RequirementConstraintMembership, RequirementDefinition, RequirementUsage, RequirementVerificationMembership,
ResultExpressionMembership, ReturnParameterMembership, SatisfyRequirementUsage, SelectExpression,
SendActionUsage, Specialization, StakeholderMembership, StateDefinition, StateSubactionKind,
StateSubactionMembership, StateUsage, Step, Structure, Subclassification, SubjectMembership, Subsetting, Succession,
SuccessionAsUsage, SuccessionFlowConnectionUsage, SuccessionItemFlow, TextualRepresentation,
TransitionFeatureKind, TransitionFeatureMembership, TransitionUsage, TriggerInvocationExpression, TriggerKind, Type,
TypeFeaturing, Unioning, Usage, UseCaseDefinition, UseCaseUsage, VariantMembership, VerificationCaseDefinition,
VerificationCaseUsage, ViewDefinition, ViewpointDefinition, ViewpointUsage, ViewRenderingMembership, ViewUsage,
VisibilityKind, WhileLoopActionUsage},
% Library elements
morekeywords = [2]{Anything, SysML, KerML, AttributeValue, attributeValues, Occurrence, occurrences, Occurrences::happensBeforeLinks, Item, items, Part, parts, Port, ports, Connection, connections, BinaryConnection, binaryConnections, Links::SelfLink, Interface, interfaces, BinaryInterface, binaryInterfaces, Allocation, allocations, MessageAction, messages, Flows::Flow, Flows::flows, SuccessionFlowConnection, Flows::successionFlows, Action, actions, ControlAction, Actions::Action::controls, DecisionTransitionAction, Actions::Action::decisionTransitions, SendAction, AcceptAction, AssignmentAction, TerminateAction, IfThenAction, IfThenElseAction, LoopAction, WhileLoopAction, ForLoopAction, StateAction, stateActions, StateTransitionAction, Calculation, calculations, Constraint, ConstraintCheck, assertedConstraintChecks, negatedConstraintChecks, RequirementCheck, requirementChecks, ConcernCheck, concernChecks, Case, cases, AnalysisCase, analysisCases, VerificationCase, verificationCases, UseCase, useCases, UseCases::UseCase::includedUseCases, View, views, Viewpoint, viewpoints, Rendering, renderings,
MetadataItem, metadataItems, SemanticMetadata},
sensitive=true,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]",
morestring=[b]',
keywordstyle=\color{red}\bfseries,
keywordstyle = [1]\color{CSGreen},
keywordstyle = [2]\color{CSRed},
% keywordstyle = [3]\color{CSMaroon},
% keywordstyle = [4]\color{CSOrange},
commentstyle=\color{gray}\itshape,
stringstyle=\color{blue},
backgroundcolor=\color{CSUltraLightGray}, % choose the background color
basicstyle=\ttfamily\footnotesize,
breaklines=true,
showstringspaces=false
}
%\newcommand{\command}[1]{{\color{CSGray}\texttt{#1}}}
%\newcommand{\program}[1]{{\textbf{\texttt{#1}}}}
\newverbcommand{\code}{\color{CSMaroon}}{}
% To be used in arguments where \verb cannot be used
\newcommand{\xcode}[1]{{\color{CSMaroon}\texttt{#1}}}