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

@@ -8,6 +8,28 @@
%%% Formatting code inclusion and snippets
%% "final" option to force it to display code
%% This default listings style make long lines wrap nicely
\lstdefinestyle{default}{
basicstyle=\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,
}
\usepackage{siunitx}
%% \SI{9.82}{\meter\per\second\square}
@@ -16,3 +38,9 @@
%% internal layouts: inline, margin, footnote, index, marginclue
%% % Warning! The pdf external layouts do not play well with hyperref
%% % and must be loaded by doing \fxuselayouts{}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% TeX-engine: luatex
%%% End: