In ConTeXt mkii you need to specify \setupcolors[state=start]
. If on the other hand, you are using ConTeXt mkiv, and want to specify a color for the margin, it must be set in the options of said margin, or else it will reset to default. So the margin is set with \setupinmargin[color=red]
The example that follows is with whatever color you want in the document, while keeping the page numbering color.
The second option, which I assume that based in your comment is what you want, will let you specify the color for the whole document.
The third option is with ConTeXt mkiv.
The fourth option is with ConTeXt mkiv in which the margin is set throughout the document by \setupinmargin[line=13]
The fifth example will show you that footnotes are also possible.
In the following, we will use ConTeXt mkii to set footnotes throughout the document. To do so, the footnotes must be enclosed within an environment which is set with the command \placelocalfootnotes
or else the footnotes won't appear in the document.
The sixth example is also with ConTeXt mkii, in which the \color
command will take over. This time around the \color
is grouped within the footnote, while the footnote is set in the preamble of the document. The option state=start
must be specified, as well as the color
option for the margin.
\setupinmargin[location=right,style=slanted,color=red]
\setupcolors[state=start]
\starttext
\startcolor[red]
\section{A test}
\inmargin{Just a test}
\input tufte
\input zapf
\section{Another test}
\input knuth
a test
\dorecurse{2}{\input zapf \par \input tufte}
\stoptext
\setupinmargin[location=right,style=slanted,color=red]
\setupcolors[state=start,textcolor=red]
\starttext
\section{A test}
\inmargin{a test}adjust your margins to accommodate the type.
\input tufte
\input zapf
\section{Another test}
\input knuth
a test
\dorecurse{2}{\input zapf \par \input tufte}
\stoptext
\setupcolors[textcolor=red]
\setupinmargin[color=red,style=slanted]
\starttext
\section{A test}
\inmargin{a test}
\input tufte
\input zapf
\section{Another test}
\input knuth
a test
\dorecurse{2}{\input zapf \par \input tufte}
\stoptext
\setupcolors[textcolor=red]
\setupinmargin[line=13,color=red,style=slanted,]
\starttext
\section{A test}
\inmargin{a test}
\input tufte
\input zapf
\section{Another test}
\inmargin{another\\ test}
\input knuth
a test
\dorecurse{2}{\input zapf \inmargin{ another\\ test\\ of tests} \par \input tufte}
\stoptext
\setupcolors[state=start,textcolor=red,]
\setupfootnotes[,conversion=Romannumerals,]
\starttext
\section{A Test}
\dorecurse{2}{\input zapf \par \startlocalfootnotes Nota \footnote[]{Bene}\stoplocalfootnotes \input tufte}
\placelocalfootnotes
\pagebreak
\dorecurse{2}{\input tufte \par \input zapf}
\stoptext
\setupcolors[state=start,textcolor=red]
\setupinmargin[line=23,color=darkgreen,]
\setupfootnotes[color=green]
\starttext
a test\footnote{\red some nonsense text to test it out.}
\dorecurse{4}{\input hawking \footnote{ \darkblue If in 2600 you stacked all the new books being published next to
each other, you would have to move at ninety miles an hour just to
keep up with the end of the line. Of course, by 2600 new artistic
and scientific work will come in electronic forms, rather than as
physical books and paper. Nevertheless, if the exponential growth
continued, there would be ten papers a second in my kind of
theoretical physics, and no time to read them.}}\inright{This artificial \\ Wild West\\ became America's Iliad.}
\stoptext
\textit
is command that takes an argument, it also is short, meaning you cannot have multiple paragraphs in there. A proper way would be to use \itshape
and use it in a group, best to define your own environment.
There are many ways to make this material stand out and recognized not to be part of the usual text. Below, i decided to use lines as well as a shift into the margin to make a clear distinction.
\listfiles
\documentclass{article}
\usepackage{blindtext}
\usepackage{scrextend}
\usepackage{mathtools}[2015/06/17]
\newenvironment{suppmat}{\begin{addmargin}[1cm]{-1cm}\noindent\rule{\linewidth}{.3pt}\smallbreak\itshape}{%
\smallbreak\noindent\rule{\linewidth}{.3pt}\end{addmargin}\medbreak}
\begin{document}
\blindtext
\begin{suppmat}
\begin{equation}
p=mv
\end{equation}
Muss man wissen!
\end{suppmat}
\blindtext
\begin{suppmat}
This could be some explaining text, we need it to show
that this stuff can break. \blindtext
\begin{align}
E &=mc^2
\shortintertext{this is short text}
a^2 + b^2 &= c^2
\end{align}
\blindtext
\end{suppmat}
\blindtext
\end{document}
Best Answer
This is very easy with (Xe|Lua)LaTeX:
With
pdflatex
it's a bit more complicated:Be careful of not using
\itshape
between paragraphs, though.