Skip to content

Instantly share code, notes, and snippets.

@icm7216
Created June 13, 2016 14:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icm7216/989bbbe8f9d0be4ac08913f155a0440f to your computer and use it in GitHub Desktop.
Save icm7216/989bbbe8f9d0be4ac08913f155a0440f to your computer and use it in GitHub Desktop.
PandocとLuaLaTeXを使ったPDF出力でコードブロックをきれいに表示する。 lstlisting 環境の設定ファイル。
\usepackage{luatexja}
\usepackage[ipa]{luatexja-preset}
\usepackage[a4paper,margin=2cm,truedimen]{geometry}
\usepackage{amsmath,amssymb}
\usepackage{listings}
\usepackage{xcolor}
\lstset{
basicstyle=\ttfamily,
keywordstyle=\color[RGB]{33,74,135}\bfseries,
stringstyle=\color[RGB]{79,153,5},
commentstyle=\color[RGB]{143,89,2}\itshape,
numberstyle=\footnotesize,
numbers=none,
stepnumber=1,
numbersep=15pt,
backgroundcolor=\color[RGB]{251,251,251},
frame=single,
frameround=ffff,
framesep=5pt,
rulecolor=\color[RGB]{148,150,152},
breaklines=true,
breakautoindent=true,
breakatwhitespace=true,
breakindent=25pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
captionpos=b,
linewidth=\textwidth,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment