packages for template format nicely

This commit is contained in:
2025-10-17 23:26:00 +00:00
parent 96f006efb6
commit c4a41cbcb6
3 changed files with 55 additions and 59 deletions

View File

@@ -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}