Just after there is one code which has been proposed to me in this site.
Instead of using \begin{MyFrame}[1.5cm][2pt][1.3cm][blue][2][8ex], I would like to use something more friendly like \begin{MyFrame}[lenght = 1.5cm , thickness = 2pt , distH = 1.3cm , color = blue, factor = 2 , distV = 8ex].
If it is possible, how can I do that ?
% Source : http://tex.stackexchange.com/questions/33078/frame-with-only-crosses-in-two-opposite-corners/33087#33087
\documentclass{article}
\usepackage{xparse}
\usepackage{xcolor}
% Meaning of the variables
% #1 --> Length : this controls the length of the rules used (default = 1cm)
% #2 --> Thickness of the rule (default = 0.4pt)
% #3 --> Horizontal distance between the rules and the text (default = 0.8cm)
% #4 --> Color of the rule using the xcolor package (default = black)
% #5 --> Factor is a number controlling the point of intersection of each pair
% of rules used for the cross (default = 3)
% #6 --> Vertical distance between the rules and the text (default = 2ex)
\DeclareDocumentEnvironment{MyFrame}{O{1cm}O{0.4pt}O{0.8cm}O{black}O{3}O{2ex}}
{%
\par\hfill\rlap{%
\bgroup\color{#4}%
\hskip-\dimexpr#1-#3\relax\rule{#1}{#2}%
\hskip-\dimexpr#1/#5\relax\rule[-\dimexpr#1-\dimexpr#1/#5\relax]{#2}{#1}%
\egroup
}%
\vskip-\dimexpr#1/#5+\dimexpr#1/#5-#6\relax%
}
{%
\par\nobreak\offinterlineskip\vskip-\dimexpr#1/#5+\dimexpr#1/#5-#6\relax\noindent%
\hskip-#3\bgroup\color{#4}%
\rule{#1}{#2}\hskip-\dimexpr#1-\dimexpr#1/#5-#2\relax%
\rule[-\dimexpr#1/#5-#2\relax]{#2}{#1}\egroup\par
}
% Just to generate text for the example.
\usepackage{lipsum}
\begin{document}
\begin{MyFrame}[1.5cm][2pt][1.3cm][blue][6][8ex]
\lipsum[1]
\end{MyFrame}
\end{document}


xkeyvalwill do what you want, I imagine. – Seamus Oct 30 '11 at 11:06