Eu tenho esta peça neste MWE:
\documentclass[11pt]{article}
\usepackage{amsmath}
\begin{document}
My equation
\begin{equation*}
\setlength{\unitlength}{1cm}
\fbox{\begin{picture}(17,5)(-1.5,0)
\thicklines
\put(3.2,3){$x_5$}
\put(3.2,1){$x_6$}
\put(4,3){\line(1,-1){1}}
\put(4,1){\line(1,1){1}}
\put(5,2){\circle*{0.15}}
\put(5,2){\line(1,0){2}}
\put(5.9,1.5){$x_9$}
\put(7,2){\circle*{0.15}}
\put(7,2){\line(1,1){1}}
\put(7.6,2.2){$x_8$}
\put(8,3){\line(2,1){1}}
\put(8,3){\line(2,-1){1}}
\put(8,3){\circle*{0.15}}
\put(9.3,3.5){$x_9$}
\put(9.3,2.3){$x_7$}
\put(7,2){\line(2,-1){2}}
\put(9.3,0.9){$x_7$}
\end{picture}}
\end{equation*}
\end{document}
Isso produz este layout (a linha vermelha vertical vem do visualizador xdvi):
Minha pergunta é: como posso recortar a figura (remover o espaço extra ao redor dela)?
Responder1
O tamanho da foto está especificado nas opções do ambiente, seu 17 ficou superdimensionado
\documentclass[11pt]{article}
\usepackage{amsmath}
\begin{document}
My equation
\begin{equation*}
\setlength{\unitlength}{1cm}
\fbox{\begin{picture}(7,3.5)(3,0.5)
\thicklines
\put(3.2,3){$x_5$}
\put(3.2,1){$x_6$}
\put(4,3){\line(1,-1){1}}
\put(4,1){\line(1,1){1}}
\put(5,2){\circle*{0.15}}
\put(5,2){\line(1,0){2}}
\put(5.9,1.5){$x_9$}
\put(7,2){\circle*{0.15}}
\put(7,2){\line(1,1){1}}
\put(7.6,2.2){$x_8$}
\put(8,3){\line(2,1){1}}
\put(8,3){\line(2,-1){1}}
\put(8,3){\circle*{0.15}}
\put(9.3,3.5){$x_9$}
\put(9.3,2.3){$x_7$}
\put(7,2){\line(2,-1){2}}
\put(9.3,0.9){$x_7$}
\end{picture}}
\end{equation*}
\end{document}