packages for template format nicely
This commit is contained in:
28
custom.sty
28
custom.sty
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user