47 lines
1.4 KiB
TeX
47 lines
1.4 KiB
TeX
%%%%% CUSTOM.STY %%%%%%%%%
|
|
%% Macros and packages to add functionality beyond the basic template
|
|
%% This is the intended location to put your own customizations
|
|
\newcommand{\formatemail}[1]{$<$\texttt{#1}$>$}
|
|
% Format email addresses consistently
|
|
|
|
\usepackage[final]{listings}
|
|
%%% 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}
|
|
|
|
\usepackage[layout=inline]{fixme}
|
|
%% FIXME system for reminders
|
|
%% 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:
|