From cf7081b6b5323c8dadab46f62a8d9354e82198e0 Mon Sep 17 00:00:00 2001 From: chhan11 Date: Sat, 10 Jun 2017 16:24:28 +0200 Subject: [PATCH] NEW ENVIRONMENT rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit '§' used instead of numbers / bullets --- commands.tex | 20 +++++++++++++++++++- structure.tex | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/commands.tex b/commands.tex index 6470799..0a312dc 100644 --- a/commands.tex +++ b/commands.tex @@ -108,4 +108,22 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-nc/2.5/}{CC BY-NC \newcommand{\txtreflect}[1]{\reflectbox{#1}} -\newcommand{\txtupdown}[1]{\raisebox{\depth}{\rotatebox{270}{\reflectbox{\rotatebox{90}{#1}}}}} \ No newline at end of file +\newcommand{\txtupdown}[1]{\raisebox{\depth}{\rotatebox{270}{\reflectbox{\rotatebox{90}{#1}}}}} + + +% http://www.troubleshooters.com/linux/lyx/ownlists.htm +\newenvironment{rules}{ +\begin{list} +{\bfseries{}§\hskip1mm\arabic{qcounter}:~} +{ +\usecounter{qcounter} +\bfseries +\setlength\labelwidth{1in} +\setlength\labelsep{0.27in} +\setlength\leftmargin{0.56in} +\setlength\listparindent{1in} +\setlength\itemindent{0.1in} +} +}{ +\end{list} +} diff --git a/structure.tex b/structure.tex index d63d577..acaff6c 100644 --- a/structure.tex +++ b/structure.tex @@ -39,6 +39,7 @@ \usepackage{titling} % makes available \thetitle \theauthor \thedate \usepackage[toc,acronym,footnote,nomain]{glossaries} % Load the package with the acronym option \usepackage{chngcntr} +\newcounter{qcounter} \usepackage[unicode=false, colorlinks=true, linkcolor=darkgray,