source: SMC4LRT/utils.tex @ 3494

Last change on this file since 3494 was 2703, checked in by vronk, 11 years ago

adding figures, big reorganization of the content structure
some new text on Controlled Vocabularies, Underlying Infrastructure.

File size: 1.7 KB
Line 
1%%%%%%%%%%%%%%%
2% utils / commands
3
4\usepackage{pgf}                                       
5\usepackage{tikz}                                       % tikz graphics
6\usetikzlibrary{arrows,automata}
7
8 % disable
9\usepackage[textsize=footnotesize, textwidth=1in, colorinlistoftodos=1,                 bordercolor=todoborder, linecolor=todoborder, backgroundcolor=todobg]{todonotes}
10
11\newcommand{\todoin}[1]{\todo[inline]{#1}}
12\newcommand{\todocite}[1]{\todo[inline,backgroundcolor=cite]{#1}}
13\newcommand{\todoask}[1]{\todo[inline,backgroundcolor=ask]{#1}}
14\newcommand{\todocode}[1]{\todo[inline,backgroundcolor=code]{#1}} % anything that runs: installing, implementing, data transform
15\newcommand{\concept}[1]{\textsf{#1}}
16\newcommand{\code}[1]{\texttt{#1}}
17\newcommand{\xne}[1]{\textsf{#1}}
18\newcommand{\furl}[1]{\footnote{\url{#1}}}
19\newcommand{\ftodo}[1]{\footnote{\todoin{#1}}}
20
21\newenvironment{note}
22{\footnotesize \color{grey} \begin{it}}
23{ \end{it} \normalsize}
24
25
26% xml syntax highlighting
27% source http://snipt.org/vngf3
28\usepackage{listings}
29 
30\definecolor{grey}{rgb}{0.4,0.4,0.4}
31\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
32\definecolor{cyan}{rgb}{0.0,0.6,0.6}
33
34\definecolor{todobg}{rgb}{0.8,0.8,1}
35\definecolor{cite}{rgb}{0.8,1,0.8}
36\definecolor{ask}{rgb}{1,1,0.8}
37\definecolor{code}{rgb}{1,0.8,0.8}
38\definecolor{todoborder}{rgb}{0.8,0.4,0.4}
39
40 
41\lstset{
42  basicstyle=\ttfamily\footnotesize,
43  columns=fullflexible,
44  showstringspaces=false,
45  commentstyle=\color{grey}\upshape
46}
47 
48\lstdefinelanguage{XML}
49{
50  basicstyle=\ttfamily\color{darkblue}\bfseries\footnotesize,
51  morestring=[b]",
52  morestring=[s]{>}{<},
53  morecomment=[s]{<?}{?>},
54  stringstyle=\color{black},
55  identifierstyle=\color{darkblue},
56  keywordstyle=\color{cyan},
57  morekeywords={xmlns,version,type}% list your attributes here
58}
Note: See TracBrowser for help on using the repository browser.