Code: Select all
[red]
[rgb][0.98,41.0,0.08]
[RGB][249,104,21]
Code: Select all
Package xcolor Error: Undefined color `RGB'.
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage{xcolor}
\ExplSyntaxOn
\NewDocumentEnvironment{that}{O{orange}ommm}
{
#3 #4 #5
\color{#1}{#2}
}
{}
\NewDocumentEnvironment{this}{O{orange}omm}
{
\begin{that}[#1][#2]{Something}{#3}[#4]
}
{
\end{that}
}
\ExplSyntaxOff
\begin{document}
\begin{this}[red]{Name}{Surname}
Some Text.
\end{this}
\begin{this}[RGB][249,104,21]{Name}{Surname}
Some Text.
\end{this}
\end{document}