[Tex/LaTex] Left position of minipage

minipagepositioning

I'm trying to put an optimization problem inside a box.
After some research I found this method (please fill free to propose a better method if you know something better):

\documentclass[11pt,a4paper,twoside,openright]{report}

\usepackage{tikz}
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{verbatim}
\usepackage{caption}


\definecolor{mygray}{rgb}{0.9,0.9,0.9} % cyan
\tikzstyle{mybox} = [draw=black, fill=mygray!20, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=5pt]
\tikzstyle{fancytitle} =[draw=black,   thick, fill=white, text=black]

\usepackage{tikz}
\usepackage{pgfplots}


\captionsetup{font=scriptsize,labelfont=scriptsize}


\begin{document}
\section{Some Title}
Some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. 
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{1.1\textwidth}
\begin{align}
 \label{eqn:LCP}
 \sum_{k \in A_b} \rho^b_k U_a(j,k) + r^a_j = v_a &\;&\;&  \forall j \in A_a, \forall a,b \in \Psi, b \neq a \\
 \sum_{j \in A_a} \rho^a_j = 1 &\;&\;& \forall a \in \Psi \\
 \rho^a_j \geq 0    &\;&\;& \forall j \in A_a, \forall a \in \Psi \\
 r^a_j \geq 0   &\;&\;& \forall j \in A_a, \forall a \in \Psi \\
 \label{eqn:LCPcomplementarity}
 \rho^a_jr^a_j = 0  &\;&\;& \forall j \in A_a, \forall a \in \Psi
\end{align}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Some LCP};
\end{tikzpicture}

Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text.
\end{document}

However I want to position the box 5% left of the left margin of the text (as the box is 110% of text width).
If I try to use \begin{center} before \begin{tikzpicture} it seems not working as I want.

What can I do, then?

Best Answer

You can use adjustbox like

\begin{adjustbox}{center}

content

\end{adjustbox}

Code:

\documentclass[11pt,a4paper,twoside,openright]{report}

\usepackage{tikz}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{verbatim}
\usepackage{caption}
\usepackage{adjustbox}


\definecolor{mygray}{rgb}{0.9,0.9,0.9} % cyan
\tikzstyle{mybox} = [draw=black, fill=mygray!20, very thick,
    rectangle, rounded corners, inner sep=10pt, inner ysep=5pt]
\tikzstyle{fancytitle} =[draw=black,   thick, fill=white, text=black]

\usepackage{tikz}
\usepackage{pgfplots}


\captionsetup{font=scriptsize,labelfont=scriptsize}


\begin{document}
\section{Some Title}
Some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text. some text.

\begin{adjustbox}{center}
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{1.1\textwidth}
\begin{align}
 \label{eqn:LCP}
 \sum_{k \in A_b} \rho^b_k U_a(j,k) + r^a_j = v_a &\;&\;&  \forall j \in A_a, \forall a,b \in \Psi, b \neq a \\
 \sum_{j \in A_a} \rho^a_j = 1 &\;&\;& \forall a \in \Psi \\
 \rho^a_j \geq 0    &\;&\;& \forall j \in A_a, \forall a \in \Psi \\
 r^a_j \geq 0   &\;&\;& \forall j \in A_a, \forall a \in \Psi \\
 \label{eqn:LCPcomplementarity}
 \rho^a_jr^a_j = 0  &\;&\;& \forall j \in A_a, \forall a \in \Psi
\end{align}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Some LCP};
\end{tikzpicture}
\end{adjustbox}

Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text. Other text.
\end{document}

enter image description here