Parcourir la source

adding frames to example figures

Jeremy Siek il y a 3 ans
Parent
commit
7f5da72cab
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      book.tex

+ 2 - 1
book.tex

@@ -2426,13 +2426,14 @@ errors.
   as the exit code.}
   as the exit code.}
 
 
 \begin{figure}[tbp]
 \begin{figure}[tbp]
-\begin{lstlisting}
+\begin{lstlisting}[frame=single]
 	.globl main
 	.globl main
 main:
 main:
 	movq	$10, %rax
 	movq	$10, %rax
 	addq	$32, %rax
 	addq	$32, %rax
 	retq
 	retq
 \end{lstlisting}
 \end{lstlisting}
+
 \caption{An x86 program that computes
 \caption{An x86 program that computes
   \racket{\code{(+ 10 32)}}\python{10 + 32}.}
   \racket{\code{(+ 10 32)}}\python{10 + 32}.}
 \label{fig:p0-x86}
 \label{fig:p0-x86}