4 * A role based on an existing role.
6 .. role:: custom(literal)
8 :custom:`one` :custom:`two` :custom:`three`
14 :customnew:`one two three`
16 * A role with class attribute.
21 :customclass:`interpreted text`
23 * A language-switching role:
27 Let's count in German :language-de:`eins zwei drei`.
29 * A role with multiple class attributes, styled with raw directives:
32 :class: green sc language-en-GB
36 \newcommand{\DUrolegreen}[1]{\textcolor{green}{#1}}
37 \newcommand{\DUrolesc}[1]{\textsc{#1}}
39 The following works in most browsers but does not validate
40 (``<style>`` is only allowed in the document head)::
44 <style type="text/css"><!--
45 .green {color: green;}
46 .sc {font-variant: small-caps;}
49 :customx:`British colourful text in small-caps`.