cmd-defs.sty 1.2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
\usepackage{xspace} % have spaces after some commands if appropriate.

%% we define convenience commands for all kind of stuff.

% This is an example for our new \brand{…} command that we use to
% format brand names. So we will e.g. write \brand{Google}.
% The advantage of havin a special command for this is that we have
% semantic markup in our source code and may change our mind about
% how it looks later.
\newcommand{\brand}{\textsc}

\newcommand{\cmd}{\texttt}

14
15
16
17
% create a href and additionally set the url as footnote (for print)
\newcommand{\fhref}[2]{\href{#1}{#2}\footnote{\url{#1}}}

\newcommand{\furl}[1]{\footnote{\url{#1}}}
18
19
20
21
22

% We mark the parts that are about how to write the thesis
\newenvironment{howtoThesis}{%
  \begingroup\color{black!70!green}}{%
  \endgroup}
23

Klaus Stein's avatar
Klaus Stein committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\newenvironment{center*}{\par
  \smallskip\begingroup\centering}{\par\endgroup\medskip}

\DeclareCiteCommand{\citetitlehref}{}{%
  \href{\thefield{url}}{\thefield{title}}%
}{}{}

\newcommand{\citehreft}[1]{%
  \enquote{\citetitlehref{#1}}\,\footnote{\citeurl{#1}}
%  \enquote{\fhref{\citefield{#1}{url}}{\citefield{#1}{title}}}%
}

\DeclareMathOperator{\cogsys}{cogsys}


39
40
41
42
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "thesisdoc"
%%% End: