diff options
Diffstat (limited to 'support/lyluatex/lyluatexbase.cls')
-rw-r--r-- | support/lyluatex/lyluatexbase.cls | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/support/lyluatex/lyluatexbase.cls b/support/lyluatex/lyluatexbase.cls new file mode 100644 index 0000000000..1e8b048dd8 --- /dev/null +++ b/support/lyluatex/lyluatexbase.cls @@ -0,0 +1,39 @@ +%Lyluatex LaTeX class. +% +% Copyright (C) 2015-2019 jperon and others (see CONTRIBUTORS.md) +% License: MIT +% This file is part of lyluatex. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{lyluatexbase}[2019/05/27 v1.0f] %%LYLUATEX_DATE LYLUATEX_VERSION + +\LoadClass[DIV=11]{scrartcl} +\RequirePackage{lyluatex} +\RequirePackage{blindtext} +\RequirePackage{libertine} +\RequirePackage{listings} +\RequirePackage{minted} +\RequirePackage{pgffor} +\RequirePackage{fancyvrb} +\RequirePackage[colorlinks=true]{hyperref} +\lysetoption{includepaths}{./, ly/} + + +% Common formatting elements for manual and examples +\usepackage{xcolor} +\newcommand{\highlight}[1]{\textcolor{blue}{#1}} +\newcommand{\cmd}[1]{\highlight{\texttt{\textbackslash #1}}} +\newcommand{\option}[1]{\highlight{\texttt{#1}}} +\newcommand{\lyMargin}[1]{% + +\medskip +\hspace*{-1em}% +\noindent% +\highlight{#1} +\nopagebreak +} + +\newcommand{\lyOption}[2]{\lyMargin{\texttt{#1} {\small \emph{(#2)}}\index{#1}}} +\newcommand{\lyCmd}[1]{% +\lyMargin{\texttt{\textbackslash #1}\index{\textbackslash #1}}} +\newcommand{\lyIssue}[1]{\lyMargin{\textbf{\textcolor{red}{#1}}}} |