summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ufrgscca/latex/ufrgscca-lists.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ufrgscca/latex/ufrgscca-lists.sty')
-rw-r--r--macros/latex/contrib/ufrgscca/latex/ufrgscca-lists.sty118
1 files changed, 118 insertions, 0 deletions
diff --git a/macros/latex/contrib/ufrgscca/latex/ufrgscca-lists.sty b/macros/latex/contrib/ufrgscca/latex/ufrgscca-lists.sty
new file mode 100644
index 0000000000..b419ea04f1
--- /dev/null
+++ b/macros/latex/contrib/ufrgscca/latex/ufrgscca-lists.sty
@@ -0,0 +1,118 @@
+%%%==============================================================================
+%% Copyright 2022 by Alceu Frigeri
+%%
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status “maintained”.
+%%
+%% The Current Maintainer of this work is Alceu Frigeri
+%%
+%% This is version 1.0 (2022/09/01)
+%%
+%%
+%% This work consists of the files
+%%
+%% ufrgscca.cls main class (bundle)
+%%
+%% ufrgscca-abnt.sty abnt page geometry, and chapter/sectioning/etc. settings
+%% ufrgscca-core.sty core macros (students related data, advisor, work title, etc.)
+%% ufrgscca-cover.sty cover pages macros
+%% ufrgscca-lists.sty New float environments (for code listing, for instance)
+%% ufrgscca-gen.sty a switch/case macro construct and
+%% 'macro factory', for instance to create commands used in the .def files.
+%% ufrgscca-forms.sty forms creation macros (course specific)
+%% ufrgscca-coord.sty student work coordenation related macros (course specific)
+%% ufrgscca-ppc.sty ppc specific macros (ppc stands for Course Pedagogic Project)
+%% ufrgscca-curr.sty curricula specific macros (as a set of semesters and class dependency lists)
+%% ufrgscca-curr-tab.sty curricula tabular macros (to display the curricula as tables)
+%% ufrgscca-curr-graph.sty curricula graph macros (to display the curricula as a dependency graph)
+%%
+%% ufrgscca-en-base.def locale, English, base def's (for babel)
+%% ufrgscca-en-core.def locale, English, for -core.sty
+%% ufrgscca-en-forms.def locale, English, for -forms.sty
+%% ufrgscca-en-coord.def locale, English, for -coord.sty
+%%
+%% ufrgscca-ptBR-base.def locale, Portuguese, base def`s (for babel)
+%% ufrgscca-ptBR-core.def locale, Portuguese, for -core.sty
+%% ufrgscca-ptBR-forms.def locale, Portuguese, for -forms.sty
+%% ufrgscca-ptBR-coord.def locale, Portuguese, for -coord.sty
+%%
+%% README.md quick introduction
+%%
+%% ufrgscca.tex LaTeX documentation
+%% ufrgscca.pdf documentation in PDF form
+%%
+%% UFRGS stands for "Federal University of Rio Grande do Sul" in south Brazil
+%% EE stands for "Engineering School"
+%% CCA stands for "Control and Automation Engineering Course" (Portuguese acronym)
+%%
+%%%==============================================================================
+\NeedsTeXFormat{LaTeX2e}[2022/06/01]
+\def\tc@tmp@packname{ufrgscca-lists}
+\def\tc@tmp@altpackname{ufrgsccalists}
+\def\tc@tmp@packdesc{UFRGS/CCA auxiliary lists commands}
+\def\tc@tmp@packdate{2022/09/01}
+\def\tc@tmp@packversion{1.0}
+\let\@exp\expandafter
+\@exp\edef\csname\tc@tmp@altpackname version\endcsname{\tc@tmp@packversion}
+\@exp\@exp\@exp\ProvidesPackage\@exp\@exp\@exp{\@exp\tc@tmp@packname\@exp}\@exp[\tc@tmp@packdate\space v\tc@tmp@packversion\space\tc@tmp@packdesc]
+
+
+\DeclareKeys[ufrgscca-lst]{
+ relnum.usage = load,
+ relnum.if = tcif@relnum,
+}
+\ProcessKeyOptions[ufrgscca-lst]\relax
+
+%%%%%%%%%%%%%%%%%%%%%
+%%% Packages Loading
+%%%%%%%%%%%%%%%%%%%%%
+
+\RequirePackage{newfloat}
+\RequirePackage{listings}%
+\RequirePackage{xcolor}%
+
+%%%
+%%% command to declare a new 'list of ...' things {package newfloat}
+%%%
+\NewDocumentCommand{\DeclareNewFloat}{mmmm}{%
+ \DeclareFloatingEnvironment[%
+ fileext={#2},%
+ listname={#4},%
+ name={#3},%
+ placement=htb,%
+ chapterlistsgaps=off]{#1} %
+ \iftcif@relnum\SetupFloatingEnvironment{#1}{within=chapter}%
+ \else\SetupFloatingEnvironment{#1}{within=none}%
+ \fi %
+}%
+
+
+%
+%%%%\def\listoflistings{\lstlistoflistings}%
+\definecolor{lstgray}{rgb}{0.965,0.965,0.965}%
+\lstset{basicstyle=\ttfamily\small,%
+ columns=fullflexible,%
+ keepspaces=true,%
+ frame=tb,%
+ inputencoding=latin1,%
+% inputencoding=utf8,%
+ extendedchars=true,%
+ backgroundcolor=\color{lstgray},%
+ breaklines=true,%
+% xleftmargin=7pt,%
+% xrightmargin=7pt%
+}%
+%
+\def\listingname{Listing}%
+\def\listlistingname{List of Listings}%
+\DeclareNewFloat{codelist}{lox}{\listingname}{\listlistingname}%%
+
+