<div dir="ltr">I just looked at tikz files today and the solution is so simple. just put this before \begin{document}:<br><br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">\makeatletter</p>
<p style="margin: 0px; text-indent: 0px;">\let\pgfutil@minipage\minipage</p>
<p style="margin: 0px; text-indent: 0px;">\let\pgfutil@endminipage\endminipage</p>
<p style="margin: 0px; text-indent: 0px;">\makeatother</p><br clear="all"><br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>