packages for template format nicely
This commit is contained in:
21
code.tex
21
code.tex
@@ -16,27 +16,6 @@ go read the documentation and set these up as below. You
|
||||
will save yourself a lot of effort, especially if you have to fix
|
||||
anything.
|
||||
|
||||
%% This default style make long lines wrap nicely
|
||||
\lstdefinestyle{default}{
|
||||
%basicstyle=\footnotesize\ttfamily,%
|
||||
numbers=left,%
|
||||
numberstyle=\tiny,%
|
||||
numberfirstline=true,%
|
||||
stepnumber=2,%
|
||||
numbersep=5pt,%
|
||||
columns=fullflexible,%
|
||||
tabsize=4,%
|
||||
frame=lines,%
|
||||
breaklines=true,% break long lines
|
||||
prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookleftarrow}}, % red arrow
|
||||
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow}}, % red arrow
|
||||
% from http://tex.stackexchange.com/questions/116534/lstlisting-line-wrapping
|
||||
}
|
||||
\lstset{%
|
||||
language=,%default similar to verbatim
|
||||
style=default,
|
||||
}
|
||||
|
||||
%% The pre-defined languages we want to use.
|
||||
\lstloadlanguages{Java, XML}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user