macros.tex 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. %outils, langages : \textsf
  2. %acronymes : \textsc
  3. \newcommand{\dotnet}{\textsf{.NET}\xspace}
  4. \newcommand{\aadl}{\textsf{AADL}\xspace}
  5. \newcommand{\ada}{\textsf{Ada}\xspace}
  6. \newcommand{\adele}{\textsf{Adele}\xspace}
  7. \newcommand{\agg}{\textsf{AGG}\xspace}
  8. \newcommand{\antlr}{\textsf{ANTLR}\xspace}
  9. %\newcommand{\antlrf}{\textsf{ANTLR}\xspace}
  10. %\newcommand{\antlrc}{\textsc{ANTLR}\xspace}
  11. %\newcommand{\antlrc}{\textsc{Antlr}\xspace}
  12. \newcommand{\asf}{\textsf{ASF}\xspace}
  13. \newcommand{\asfsdf}{\textsf{ASF+SDF}\xspace}
  14. \newcommand{\AST}{\textsf{AST}\xspace}
  15. \newcommand{\atl}{\textsf{ATL}\xspace}
  16. \newcommand{\awk}{\textsf{AWK}\xspace}
  17. %\newcommand{\bnf}{\textsf{BNF}\xspace}
  18. \newcommand{\btollvm}{\textsf{b2llvm}\xspace}
  19. \newcommand{\B}{\textsf{B}\xspace}
  20. \newcommand{\C}{\textsf{C}\xspace}
  21. \newcommand{\cadp}{\textsf{CADP}\xspace}
  22. \newcommand{\caml}{\textsf{Caml}\xspace}
  23. \newcommand{\csharp}{\textsf{C\#}\xspace}
  24. %\newcommand{\cmof}{\textsf{CMOF}\xspace}
  25. \newcommand{\cmof}{\textsc{CMOF}\xspace}
  26. \newcommand{\coq}{\textsf{Coq}\xspace}
  27. \newcommand{\crystalreports}{\textsf{Crystal Reports}}
  28. \newcommand{\cwm}{\textsf{CWM}\xspace}
  29. \newcommand{\dart}{\textsf{Dart}\xspace}
  30. %\newcommand{\dsml}{\textsf{DSML}\xspace}
  31. \newcommand{\dsml}{\textsc{DSML}\xspace}
  32. \newcommand{\dsmls}{\textsf{DSMLs}\xspace}
  33. %\newcommand{\dsl}{\textsf{DSL}\xspace}
  34. \newcommand{\dsl}{\textsc{DSL}\xspace}
  35. \newcommand{\dsls}{\textsf{DSLs}\xspace}
  36. %\newcommand{\ebnf}{\textsf{EBNF}\xspace}
  37. \newcommand{\eclipse}{\textsf{Eclipse}\xspace}
  38. %\newcommand{\mtom}{\textsf{M2M}\xspace}
  39. \newcommand{\great}{\textsf{GReAT}\xspace}
  40. \newcommand{\mtom}{\textsc{M2M}\xspace}
  41. \newcommand{\eclipsemmt}{\textsf{Eclipse MMT}\xspace}
  42. \newcommand{\eclipsemtom}{\textsf{Eclipse M2M}\xspace}
  43. \newcommand{\eclipsemmtoqvt}{\textsf{Eclipse MMT Operational QVT}\xspace}
  44. \newcommand{\eclipsemtomoqvt}{\textsf{Eclipse M2M Operational QVT}\xspace}
  45. \newcommand{\ecore}{\textsf{Ecore}\xspace}
  46. \newcommand{\elan}{\textsf{Elan}\xspace}
  47. \newcommand{\emf}{\textsf{EMF}\xspace}
  48. %\newcommand{\emof}{\textsf{EMOF}\xspace}
  49. \newcommand{\emof}{\textsc{EMOF}\xspace}
  50. \newcommand{\epsilonlanguage}{\textsf{Epsilon}\xspace}
  51. \newcommand{\etl}{\textsf{ETL}\xspace}
  52. \newcommand{\fiacre}{\textsf{Fiacre}\xspace}
  53. %\newcommand{\fnrae}{\textsf{FNRAE}\xspace}
  54. \newcommand{\fnrae}{\textsc{FNRAE}\xspace}
  55. \newcommand{\gms}{\textsf{GMS}\xspace}
  56. \newcommand{\gom}{\textsf{Gom}\xspace}
  57. \newcommand{\gomantlradapter}{\textsf{GomAntlrAdapter}\xspace}
  58. %\newcommand{\gpl}{\textsf{GPL}\xspace}
  59. \newcommand{\gpl}{\textsc{GPL}\xspace}
  60. \newcommand{\haskell}{\textsf{Haskell}\xspace}
  61. \newcommand{\henshin}{\textsf{Henshin}\xspace}
  62. %\newcommand{\idm}{\textsf{IDM}\xspace}
  63. \newcommand{\idm}{\textsc{IDM}\xspace}
  64. \newcommand{\isabelle}{\textsf{Isabelle/HOL}\xspace}
  65. \newcommand{\java}{\textsf{Java}\xspace}
  66. \newcommand{\jcheck}{\textsf{JCheck}\xspace}
  67. \newcommand{\jjtrav}{\textsf{JJTraveler}\xspace}
  68. \newcommand{\jqvt}{\textsf{JQVT}\xspace}
  69. \newcommand{\junit}{\textsf{JUnit}\xspace}
  70. \newcommand{\junitquickcheck}{\textsf{JUnit-quickcheck}\xspace}
  71. \newcommand{\kermeta}{\textsf{Kermeta}\xspace}
  72. \newcommand{\kmf}{\textsf{KMF}\xspace}
  73. \newcommand{\kevoree}{\textsf{Kevoree}\xspace}
  74. \newcommand{\lemuridae}{\textsf{Lemuridae}}
  75. \newcommand{\lkms}{\textsf{LKMS}}
  76. \newcommand{\llvm}{\textsf{LLVM}\xspace}
  77. \newcommand{\maude}{\textsf{Maude}\xspace}
  78. %\newcommand{\mda}{\textsf{MDA}\xspace}
  79. \newcommand{\mda}{\textsc{MDA}\xspace}
  80. %\newcommand{\mde}{\textsf{MDE}\xspace}
  81. \newcommand{\mde}{\textsc{MDE}\xspace}
  82. \newcommand{\mediniqvt}{\textsf{Medini-QVT}\xspace}
  83. \newcommand{\mediniqvtr}{\textsf{Medini-QVT-Relations}\xspace}
  84. \newcommand{\miniml}{\textsf{MiniML}}
  85. \newcommand{\mps}{\textsf{MPS}\xspace}
  86. %\newcommand{\mof}{\textsf{MOF}\xspace}
  87. \newcommand{\mof}{\textsc{MOF}\xspace}
  88. \newcommand{\moflon}{\textsf{Moflon}\xspace}
  89. \newcommand{\moment}{\textsf{MOMENT}\xspace}
  90. \newcommand{\momenttwo}{\textsf{MOMENT2}\xspace}
  91. \newcommand{\mt}{\textsf{MT}\xspace}
  92. \newcommand{\ocaml}{\textsf{OCaML}\xspace}
  93. \newcommand{\ocl}{\textsf{OCL}\xspace}
  94. %\newcommand{\omg}{\textsf{OMG}\xspace}
  95. \newcommand{\omg}{\textsc{OMG}\xspace}
  96. \newcommand{\optimalj}{\textsf{OptimalJ}\xspace}
  97. \newcommand{\osate}{\textsf{Osate}\xspace}
  98. \newcommand{\osatetwo}{\textsf{Osate2}\xspace}
  99. \newcommand{\pluscal}{\textsf{+CAL}\xspace}
  100. \newcommand{\pluscaltwo}{\textsf{+CAL 2.0}\xspace}
  101. %\newcommand{\pluscal}{\textsf{PlusCal-2}\xspace}
  102. \newcommand{\perl}{\textsf{Perl}\xspace}
  103. \newcommand{\propcheck}{\textsf{PropCheck}\xspace}
  104. \newcommand{\python}{\textsf{Python}\xspace}
  105. \newcommand{\quarteft}{\textsf{quarteFt}\xspace}
  106. \newcommand{\quickcheck}{\textsf{QuickCheck}\xspace}
  107. \newcommand{\qvt}{\textsf{QVT}\xspace}
  108. \newcommand{\qvtc}{\textsf{QVT-Core}\xspace}
  109. \newcommand{\qvto}{\textsf{QVT-Operational}\xspace}
  110. \newcommand{\qvtr}{\textsf{QVT-Relations}\xspace}
  111. \newcommand{\rascal}{\textsf{Rascal}\xspace}
  112. \newcommand{\rodin}{\textsf{Rodin}}
  113. \newcommand{\rtfiacre}{\textsf{RT-Fiacre}\xspace}
  114. \newcommand{\ruby}{\textsf{Ruby}\xspace}
  115. \newcommand{\rushcheck}{\textsf{RushCheck}\xspace}
  116. \newcommand{\scala}{\textsf{Scala}\xspace}
  117. \newcommand{\scalacheck}{\textsf{ScalaCheck}\xspace}
  118. \newcommand{\sdf}{\textsf{SDF}\xspace}
  119. \newcommand{\smartqvt}{\textsf{SmartQVT}\xspace}
  120. \newcommand{\spoofax}{\textsf{Spoofax}\xspace}
  121. \newcommand{\sdl}{\textsf{SDL}\xspace}
  122. \newcommand{\sed}{\textsf{sed}\xspace}
  123. \newcommand{\sql}{\textsf{SQL}\xspace}
  124. \newcommand{\stratego}{\textsf{Stratego}\xspace}
  125. \newcommand{\strategoxt}{\textsf{Stratego/XT}\xspace}
  126. \newcommand{\tamed}{\textsf{TaMeD}}
  127. \newcommand{\tefkat}{\textsf{Tefkat}\xspace}
  128. \newcommand{\tina}{\textsf{TINA}\xspace}
  129. \newcommand{\tlaplus}{\textsf{TLA+}\xspace}
  130. \newcommand{\tom}{\textsf{Tom}\xspace}
  131. %\newcommand{\tom}{\textsc{Tom}\xspace}
  132. \newcommand{\tomemf}{{\tom}-{\emf}}
  133. \newcommand{\tomjava}{{\tom}+{\java}}
  134. \newcommand{\topcased}{\textsc{TOPCASED}\xspace}
  135. \newcommand{\txl}{\textsf{TXL}\xspace}
  136. \newcommand{\uml}{\textsf{UML}\xspace}
  137. \newcommand{\viatra}{\textsf{VIATRA2}\xspace}
  138. \newcommand{\xbase}{\textsf{Xbase}\xspace}
  139. \newcommand{\xmi}{\textsf{XMI}\xspace}
  140. \newcommand{\xml}{\textsf{XML}\xspace}
  141. \newcommand{\xpend}{\textsf{Xpend}\xspace}
  142. \newcommand{\xquery}{\textsf{XQuery}\xspace}
  143. \newcommand{\xqueryuf}{\textsf{XQuery Update Facility}\xspace}
  144. \newcommand{\xslt}{\textsf{XSLT}\xspace}
  145. \newcommand{\xtext}{\textsf{Xtext}\xspace}
  146. \newcommand{\xtend}{\textsf{XTend}\xspace}
  147. \newcommand{\ie}{\textit{i.e.}\xspace}
  148. \newcommand{\etc}{\textit{etc.}\xspace}
  149. \newcommand{\eg}{\textit{e.g.}\xspace}
  150. \newcommand{\adhoc}{\textit{ad-hoc}\xspace}
  151. \newcommand{\via}{\textit{via}\xspace}
  152. \newcommand{\vs}{\textit{vs}\xspace}
  153. \newcommand{\acontrario}{\textit{a contrario}\xspace}
  154. \newcommand{\defacto}{\textit{de facto}\xspace}
  155. \newcommand{\lex}[1]{{\textrm{\textbf{#1}}}}
  156. \newcommand{\todo}[1]{\textcolor{red}{#1}}
  157. \newcommand{\ttodo}[1]{\textcolor{red}{[TODO: #1]}}
  158. \newcommand{\needcite}{\textcolor{red}{$^{[citation\ needed]}$}}
  159. %\newcommand{\figureref}[1]{(Figure~\ref{#1})}
  160. %\newcommand{\figurerefit}[1]{(\textit{Fig.~\ref{#1}})}
  161. \newcommand{\keyword}[1]{\textbf{\textsf{\footnotesize{#1}}}\xspace}
  162. \newcommand{\verbemph}[1]{\textcolor{red}{\textbf{\ttfamily #1}}}
  163. %\newcommand{\verbemph}[1]{\textbf{\scriptsize{\ttfamily\bfseries #1}}}
  164. \newcommand{\code}[1]{{\footnotesize {\sffamily #1}}\xspace}
  165. \newcommand{\figcode}[1]{{\scriptsize {\sffamily #1}}\xspace}
  166. \newcommand{\minicode}[1]{{\tiny {\sffamily #1}}\xspace}
  167. \newcommand{\nnbb}[2]{
  168. \fbox{\bfseries\sffamily\scriptsize#1}
  169. {\sf\small$\blacktriangleright$\textit{#2}$\blacktriangleleft$}
  170. }
  171. \newcommand{\jcb}[1]{\nnbb{Jean-Christophe}{#1}}
  172. %\newcommand{\pem}[1]{\nnbb{Pierre-Etienne}{#1}}
  173. %\newcommand{\mp}[1]{\nnbb{Marc}{#1}}
  174. \newcommand{\compresslist}{
  175. \setlength{\itemsep}{0pt}
  176. \setlength{\parskip}{0pt}
  177. \setlength{\parsep}{0pt}
  178. %\setlength{\topsep}{0pt}
  179. %\setlength{\partopsep}{0pt}
  180. }
  181. %\renewcommand*\arraystretch{1.0}
  182. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  183. \newcommand{\tomgray}[1]{\color{gray}{\ttfamily{#1}}}
  184. \newcommand{\tomred}[1]{\color{red}{\ttfamily{#1}}}
  185. \newcommand{\javablue}[1]{\color{blue}{\ttfamily{#1}}}
  186. \newcommand{\hlred}[1]{\color{red}{\ttfamily{\footnotesize{#1}}}}
  187. \newcommand{\tomblue}[1]{\color{blue}{\ttfamily{\footnotesize{#1}}}}
  188. \definecolor{darkgreen}{HTML}{129d1c}
  189. \definecolor{mydarkred}{HTML}{a41313}
  190. \definecolor{myred}{HTML}{d01e1e}
  191. \definecolor{myblue}{HTML}{0000FF}
  192. \newcommand{\colcode}[2]{\color{#1}{\ttfamily{#2}}\color{black}}
  193. \newcommand{\colcodetwo}[2]{\color{#1}{\ttfamily{\footnotesize{#2}}}\color{black}}
  194. \newcommand{\customComment}[2]{\noindent ---#1: \marginpar{$\bullet$}\small #2}
  195. \newcommand{\commentPEM}[1]{\todo{\customComment{PEM}{#1}}}
  196. \newcommand{\commentJCB}[1]{\todo{\customComment{JCB}{#1}}}
  197. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  198. \lstset{basicstyle={\ttfamily},
  199. keywordstyle={\rmfamily\bfseries},
  200. columns=flexible}
  201. \lstdefinelanguage{gom}{
  202. escapechar={\#},
  203. alsoletter={\%},
  204. morekeywords={\%match,module,imports,abstract,
  205. syntax,make,make_insert,realMake},
  206. sensitive=true,
  207. morecomment=[l]{//},
  208. morecomment=[s]{/*}{*/},
  209. morestring=[b]",
  210. }
  211. \lstnewenvironment{gomcode}[1][]%
  212. {\lstset{language={gom},
  213. captionpos=b,
  214. escapechar={\#},
  215. frame=tb,#1}}
  216. {}
  217. \lstnewenvironment{gomcode1}[1][]%
  218. {\lstset{language={gom},
  219. captionpos=b,
  220. numberblanklines=false,
  221. numberstyle=\tiny,
  222. numbers=left,
  223. escapechar={\#},
  224. frame=tb,#1}}
  225. {}
  226. \lstdefinelanguage{tom}{
  227. showtabs=false,
  228. escapechar={\#},
  229. alsoletter={\%,-,>,`},
  230. morekeywords={\%typeterm,\%op,\%oplist,\%oparray,\%strategy,\%match,
  231. is_fsym,get_slot,get_head,get_tail,is_empty,implement,equals,
  232. \%transformation,make,make_empty,make_insert,realMake,\%gom,visit,
  233. get_default,make_append,module,imports,abstract,syntax,is_sort,
  234. definition,traversal,\%tracelink,\%resolve,get_element,get_size,`,->},
  235. sensitive=true,
  236. captionpos=b,
  237. columns=flexible,
  238. showspaces=false,
  239. extendedchars=true,
  240. showstringspaces=false,
  241. morecomment=[l]{//},
  242. morecomment=[s]{/*}{*/},
  243. morestring=[b]",
  244. breaklines=false,
  245. }
  246. \lstnewenvironment{tomcode}[1][]%
  247. {\lstset{%language={java},
  248. language={tom},
  249. keywordstyle={\scriptsize\bfseries},
  250. %basicstyle=\scriptsize,
  251. basicstyle={\ttfamily\scriptsize},
  252. numberblanklines=false,
  253. numberstyle=\tiny,
  254. numbers=left,
  255. escapechar={\#},
  256. numbersep=4pt,
  257. frame=tb,#1}}
  258. {}
  259. \lstnewenvironment{tomcode2}[1][]%
  260. {
  261. \lstset{language={tom},
  262. keywordstyle={\scriptsize\bfseries},
  263. % keywordstyle={\sffamily\scriptsize\bfseries},
  264. basicstyle={\ttfamily\scriptsize},
  265. escapechar={\#},
  266. aboveskip=\baselineskip,#1}}
  267. {}
  268. \lstnewenvironment{tomcode3}[1][]%
  269. {\lstset{%language={java},
  270. language={tom},
  271. keywordstyle={\bfseries},
  272. %basicstyle=\scriptsize,
  273. basicstyle={\ttfamily},
  274. numberblanklines=true,
  275. numberstyle=\tiny,
  276. numbers=left,
  277. escapechar={\#},
  278. %numbersep=4pt,
  279. frame=tb,#1}}
  280. {}
  281. \lstnewenvironment{tomcode4}[1][]%
  282. {\lstset{%language={java},
  283. language={tom},
  284. keywordstyle={\bfseries},
  285. %basicstyle=\scriptsize,
  286. basicstyle={\ttfamily},
  287. escapechar={\#},
  288. frame=tb,#1}}
  289. {}
  290. \lstdefinelanguage{gr}{}
  291. \lstnewenvironment{ebnf}[1][]%
  292. {\lstset{#1}\lstset{
  293. language={gr},
  294. frame=tb,
  295. basicstyle={\scriptsize\ttfamily},
  296. morekeywords={context, free, rules, lexical},
  297. keywordstyle=\sffamily\bfseries,
  298. escapechar={\#},
  299. captionpos=b
  300. }}
  301. {}
  302. \lstdefinelanguage{tomwovisit}{
  303. escapechar={\#},
  304. alsoletter={\%,-,>,`},
  305. morekeywords={\%typeterm,\%op,\%oplist,\%oparray,\%strategy,\%match,
  306. is_fsym,get_slot,get_head,get_tail,is_empty,implement,equals,
  307. \%transformation,make,make_empty,make_insert,realMake,\%gom,
  308. get_default,make_append,module,imports,abstract,syntax,is_sort,
  309. definition,traversal,\%tracelink,\%resolve,get_element,get_size,`,->},
  310. sensitive=true,
  311. morecomment=[l]{//},
  312. morecomment=[s]{/*}{*/},
  313. morestring=[b]",
  314. }
  315. \lstnewenvironment{tomcodewovisit}[1][]%
  316. {\lstset{language={tomwovisit},
  317. keywordstyle={\scriptsize\bfseries},
  318. %basicstyle=\scriptsize,
  319. basicstyle={\ttfamily\scriptsize},
  320. columns=flexible,
  321. numberblanklines=false,
  322. numberstyle=\tiny,
  323. numbers=left,
  324. numbersep=4pt,
  325. captionpos=b,
  326. showtabs=false,
  327. showspaces=false,
  328. showstringspaces=false,
  329. extendedchars=true,
  330. breaklines=false,
  331. escapechar={\#},
  332. alsoletter={\%,`,-,>},
  333. morekeywords={\%typeterm,\%op,\%oplist,\%oparray, \%strategy,\%match,
  334. is_fsym,get_slot,get_head,get_tail,is_empty,implement,equals,
  335. \%transformation, make,make_empty,make_insert,realMake,\%gom,
  336. get_default, make_append, module,imports,abstract,syntax,is_sort,
  337. definition, traversal, \%tracelink, \%resolve, get_element, get_size, `, ->},
  338. frame=tb,#1}}
  339. {}
  340. \lstnewenvironment{codesource}[1][]%
  341. {\lstset{%language={java},
  342. tabsize=4,
  343. basicstyle={\ttfamily\scriptsize},
  344. %basicstyle={\footnotesize\sffamily},
  345. numberblanklines=true,
  346. %numberstyle=\scriptsize ,
  347. numberstyle=\tiny,
  348. numbersep=4pt,
  349. numbers=left,
  350. %firstnumber=auto,
  351. %upquote=true,
  352. aboveskip={1.0\baselineskip},
  353. columns=flexible,
  354. showstringspaces=false,
  355. extendedchars=true,
  356. breaklines=false,
  357. prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
  358. %frame=tb,
  359. showtabs=false,
  360. showspaces=false,
  361. showstringspaces=false,
  362. %keywordstyle=\bfseries,
  363. keywordstyle={\scriptsize\bfseries},
  364. %identifierstyle=\ttfamily,
  365. %stringstyle=\ttfamily,
  366. commentstyle=\textit,
  367. captionpos=b,
  368. escapechar={\#},
  369. frame=tb,#1}}
  370. {}
  371. \lstnewenvironment{codesource2}[1][]%
  372. {\lstset{%language={java},
  373. tabsize=4,
  374. basicstyle={\ttfamily},
  375. %basicstyle={\footnotesize\sffamily},
  376. numberblanklines=true,
  377. %numberstyle=\scriptsize ,
  378. numberstyle=\tiny,
  379. %numbersep=4pt,
  380. numbers=left,
  381. %firstnumber=auto,
  382. %upquote=true,
  383. aboveskip={1.0\baselineskip},
  384. columns=flexible,
  385. showstringspaces=false,
  386. extendedchars=true,
  387. breaklines=false,
  388. prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
  389. %frame=tb,
  390. showtabs=false,
  391. showspaces=false,
  392. showstringspaces=false,
  393. keywordstyle=\bfseries,
  394. %identifierstyle=\ttfamily,
  395. %stringstyle=\ttfamily,
  396. commentstyle=\textit,
  397. captionpos=b,
  398. escapechar={\#},
  399. frame=tb,#1}}
  400. {}
  401. \lstnewenvironment{mycode}[1][]%
  402. {\lstset{basicstyle={\footnotesize\ttfamily},
  403. columns=flexible,
  404. captionpos=b,
  405. showtabs=false,
  406. showspaces=false,
  407. showstringspaces=false,
  408. extendedchars=true,
  409. breaklines=false,
  410. escapechar={\#},
  411. frame=none,#1}}
  412. {}
  413. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  414. \newtheorem{thm-fr}{Th\'eor\`eme}
  415. \newtheorem{definition}[thm-fr]{D\'efinition}
  416. \newtheorem{example}[thm-fr]{Exemple}
  417. \newcommand{\caV}{\ensuremath{\mathcal{V}}\xspace}
  418. \newcommand{\caS}{\ensuremath{\mathcal{S}}\xspace}
  419. \newcommand{\caT}{\ensuremath{\mathcal{T}}\xspace}
  420. \newcommand{\caF}{\ensuremath{\mathcal{F}}\xspace}
  421. \newcommand{\caE}{\ensuremath{\mathcal{E}}\xspace}
  422. \newcommand{\caX}{\ensuremath{\mathcal{X}}\xspace}
  423. \newcommand{\caP}{\ensuremath{\mathcal{P}}\xspace}
  424. \newcommand{\caR}{\ensuremath{\mathcal{R}}\xspace}
  425. \newcommand{\TFX}{\ensuremath{\caT(\caF,\caX)}\xspace}
  426. \newcommand{\TF}{\ensuremath{\caT(\caF)}\xspace}
  427. \newcommand{\SF}{\ensuremath{(\caS,\caF)}\xspace}
  428. \newcommand{\rarrow}{\rightarrow_{\mathcal{R}}\xspace}
  429. \newcommand{\aphiarrow}{\rightarrow^{\phi}_{\mathcal{A}}\xspace}
  430. \newcommand{\phiarrow}[1]{\rightarrow^{\phi_{#1}}\xspace}
  431. \newcommand{\piarrow}{\rightarrow^{\pi}\xspace}
  432. \newcommand{\caO}{\ensuremath{\mathcal{O}}\xspace}
  433. \newcommand{\caA}{\ensuremath{\mathcal{A}}\xspace}
  434. \newcommand{\nat}{\ensuremath{\mathbb{N}}\xspace}
  435. \newcommand{\var}[1]{\ensuremath{\caV}ar(#1)\xspace}
  436. \newcommand{\match}{\mathrel{\mbox{$~<\hspace{-1.1em}<~$}}}
  437. \newcommand{\nmatch}{\mathrel{\mbox{$\match\hspace{-1.1em}/~$}}}
  438. \newcommand{\dom}[1]{\mathcal{D}om(#1)\xspace}
  439. \newcommand{\refltransclo}
  440. {\mathrel{\mbox{$\rightarrow$\hspace{-0.8em}{\footnotesize $^*$}$~$}}}
  441. \newcommand{\symrefltransclo}
  442. {\mathrel{\mbox{$\leftrightarrow$\hspace{-0.7em}{\footnotesize $^*$}$~$}}}
  443. \newcommand{\rightarrowrule}[1]%{\overset{#1}{\longrightarrow}}
  444. {\mathrel{\mbox{$\rightarrow$\hspace{-0.8em}{\footnotesize $^{#1}$}$~$}}}
  445. % Pour mes grands titres
  446. \newcommand{\grandtitre}[1]{%
  447. \begin{flushleft}
  448. \textbf{\huge #1}
  449. \par\rule{\textwidth}{1pt}
  450. \end{flushleft}
  451. }
  452. % Pour mes titres
  453. \newcommand{\titre}[1]{%
  454. \begin{flushleft}
  455. \rule{\textwidth}{1pt}
  456. \par\vspace{0.1cm}
  457. \textbf{\large #1}
  458. \par\rule{\textwidth}{1pt}
  459. \end{flushleft}
  460. }
  461. %\newcommand{\myul}[2][black]{\setulcolor{#1}\ul{#2}\setulcolor{black}}
  462. %\def\mathunderline#1#2{\color{#1}\underline{{\color{black}#2}}\color{black}}
  463. \newcommand{\myul}[2]{\color{#1}\underline{{\color{black}#2}}\color{black}\xspace}