Re: formattazione box

#26741
Up
0
Down
::


Allora questo è il codice tex del corpo del testo:

\begin{myshadedbox}

\begin{example}

Let us consider the process $\varphi(\omega,t)=W^{2}(T,\omega)$;
the Wiener-Ito chaos expansion is derived in the following.

Let us assume that $Y(t)=W^{2}(t,\omega)$ and $X(t)=W(t,\omega)$,
so by applying the Ito-Lemma we obtain:

\[
dY(t)=1dt+2W(t)dW(t)\]

Moreover we have that $W(t)=\int_{0}^{t}1dW(t)$; thus we can rewrite
the previous equation in the following integral form

\[
Y(T)=Y(0)+\int_{0}^{T}1dt+2\int_{0}^{T}\int_{0}^{t}1dW(t)\]

By substituting $Y(T)$and $Y(0)$ with its former representation

\[
W^{2}(T,\omega)=T+2\int_{0}^{T}\int_{0}^{t}1dW(t)=T+I_{2}(1).\]

Thus we have obtained the Wiener-Ito chaos expansion.

\end{example}

\end{myshadedbox}

Mentre nel preambolo ho inserito il seguente codice (trovato su wiki.lyx.org):

%boxgrigio
\usepackage{color,calc}
\definecolor{shade}{gray}{0.8}
\newenvironment{myshadedbox}[1][]%
{
%\setlength{\fboxstep}{-\fboxrule}%
\footnotesize\normalfont
\setlength{\rightmargin}{\leftmargin}
\setlength{\itemsep}{-12pt}
\setlength{\parsep}{20pt}
\begin{lrbox}{\@tempboxa}%
\begin{minipage}{\linewidth-2\fboxsep}
}%
{
\end{minipage}%
\end{lrbox}%
\fcolorbox{black}{shade}{\usebox{\@tempboxa}}\newline\newline
}%

Il mio problema è evitare che il box abbia i bordi neri. Inoltre ora mi è sorto un nuovo problema:
i box che ho inserito, una volta che compilo il pdf, vengono fatti rientrare; ho provato a risolvere il problema con il comando \noindent xò questo funziona solo con i box inseriti tramite interfaccia mentre se lo inserisco prima di \begin{myshadedbox} non funge.

spero possiate aiutarmi
grazie
marco

Go to top