Guest User

Untitled

a guest
May 24th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. dereference : Heap, Object α → α, // Rückverweis auf Wert
  2.  
  3. documentclass{article}
  4. %usepackage[cp437]{inputenc}%%% if you do this, store your file in the DOS encoding
  5. usepackage[utf8]{inputenc}
  6. usepackage[x11names]{xcolor}
  7. usepackage{listings}
  8. newcommand*{RightComment}[1]{hfillmakebox[4.0cm][l]{emph{color{green}#1}}}
  9. begin{document}
  10. % begin{lstlisting}[emph={Object,α,Heap},emphstyle={color{blue}sffamily},emph={[2]dereference},emphstyle={[2]color{red}sffamily},mathescape=true,escapechar=&,columns=flexible,extendedchars=true]
  11. % dereference : Heap, Object α → α, &RightComment{Rückverweis auf Wert}&
  12. % end{lstlisting}
  13. newcommand{emphalpha}{$color{blue}alpha$}
  14. begin{lstlisting}[emph={Object,$alpha$,Heap},emphstyle={color{blue}sffamily},emph={[2]dereference},emphstyle={[2]color{red}sffamily},mathescape=true,escapechar=&,columns=flexible,extendedchars=false]
  15. dereference : Heap, Object &emphalpha& $to$ &emphalpha& &RightComment{Rückverweis auf Wert}&
  16. end{lstlisting}
  17. end{document}
Add Comment
Please, Sign In to add comment