2011年9月13日 星期二

[TEX] lstset


%\lstset{ %

%basicstyle=\tiny,       % the size of the fonts that are used for the code

%breaklines=true,

%}

%

%\lstset{

% basicstyle=\tiny,

% numbers=left,

% numberstyle=\tiny,

% stepnumber=1,

% numbersep=5pt,

% backgroundcolor=\color{white},

% showspaces=false,

% showstringspaces=false,

% showtabs=false,

% tabsize=2,

% captionpos=b,

% breaklines=true,

% breakatwhitespace=true,

% breakautoindent=true,

% escapeinside={\%}{)},

% linewidth=\huge

% }





\lstset{

       % keywordstyle=\color{RedViolet},

       basicstyle=\small\sffamily,

       columns=fullflexible,

       commentstyle=\color{Gray}\textit,

       numberstyle=\tiny,

       %extendedchars=true,

       breaklines=true,

       frame=b,

       numbers=left,

       numberstyle=\tiny,

       stepnumber=1,

       numbersep=5pt,

       %xleftmargin=3pt,

       %xrightmargin=3pt,

       framextopmargin=10pt,

       %framexleftmargin=17pt,

       %framexrightmargin=5pt,

       %framexbottommargin=4pt,

       morecomment=[l]{//},

       stringstyle=\color{DarkGray}\textit,

       belowskip=10pt,

       belowskip=10pt

}



 



Reference :




  1. Cool code listings in LaTex

0 意見:

張貼留言