diff paper/md2tex/first.tex @ 14:dff5f09c28c7

use listings
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 01 May 2020 13:07:45 +0900
parents 8f1d03a81516
children 2be09c284a2e
line wrap: on
line diff
--- a/paper/md2tex/first.tex	Thu Apr 30 20:24:26 2020 +0900
+++ b/paper/md2tex/first.tex	Fri May 01 13:07:45 2020 +0900
@@ -13,6 +13,30 @@
 
 \usepackage[dvips]{graphicx}
 \usepackage{latexsym}
+\usepackage{listings}
+\lstset{
+  language=C,
+  tabsize=2,
+  frame=single,
+  basicstyle={\tt\footnotesize}, %
+  identifierstyle={\footnotesize}, %
+  commentstyle={\footnotesize\itshape}, %
+  keywordstyle={\footnotesize\ttfamily}, %
+  ndkeywordstyle={\footnotesize\ttfamily}, %
+  stringstyle={\footnotesize\ttfamily},
+  breaklines=true,
+  captionpos=b,
+  columns=[l]{fullflexible}, %
+  xrightmargin=0zw, %
+  xleftmargin=1zw, %
+  aboveskip=1zw,
+  numberstyle={\scriptsize}, %
+  stepnumber=1,
+  numbersep=0.5zw, %
+  lineskip=-0.5ex,
+}
+\usepackage{caption}
+
 
 \def\Underline{\setbox0\hbox\bgroup\let\\\endUnderline}
 \def\endUnderline{\vphantom{y}\egroup\smash{\underline{\box0}}\\}
@@ -22,7 +46,7 @@
 %\setcounter{巻数}{59}%vol59=2018
 %\setcounter{号数}{10}
 %\setcounter{page}{1}
-
+\renewcommand{\lstlistingname}{Code}
 
 \begin{document}