diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-13 22:07:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-13 22:07:05 +0000 |
commit | b5f3209624cdaeceec32d0878fc3bfa5b3585670 (patch) | |
tree | c5c457a935ea3bbda4e98d9a80ab3bbc6366af82 /Master/texmf-dist/doc/support/lyluatex/lyluatexbase.cls | |
parent | 60225bd10db8028303b99b5992eb3c9d60e89763 (diff) |
lyluatex (13mar18)
git-svn-id: svn://tug.org/texlive/trunk@46952 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/lyluatex/lyluatexbase.cls')
-rw-r--r-- | Master/texmf-dist/doc/support/lyluatex/lyluatexbase.cls | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/lyluatex/lyluatexbase.cls b/Master/texmf-dist/doc/support/lyluatex/lyluatexbase.cls new file mode 100644 index 00000000000..48d6040c055 --- /dev/null +++ b/Master/texmf-dist/doc/support/lyluatex/lyluatexbase.cls @@ -0,0 +1,38 @@ +%Lyluatex LaTeX class. +% +% Copyright (C) 2015-2018 jperon and others (see CONTRIBUTORS.md) +% License: MIT +% This file is part of lyluatex. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{lyluatexbase}[2018/03/12 v1.0b] %%LYLUATEX_DATE LYLUATEX_VERSION + +\LoadClass[DIV=11]{scrartcl} +\RequirePackage{lyluatex} +\RequirePackage{blindtext} +\RequirePackage{libertine} +\RequirePackage{listings} +\RequirePackage{minted} +\RequirePackage{pgffor} +\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}}}} |