From abba702ac6e8141fe1364692f01cc56faeddb652 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 30 Nov 2011 23:01:56 +0000 Subject: documentation (30nov11) git-svn-id: svn://tug.org/texlive/trunk@24708 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/documentation/documentation.sty | 124 +++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/documentation/documentation.sty (limited to 'Master/texmf-dist/tex/latex/documentation') diff --git a/Master/texmf-dist/tex/latex/documentation/documentation.sty b/Master/texmf-dist/tex/latex/documentation/documentation.sty new file mode 100644 index 00000000000..327c8064543 --- /dev/null +++ b/Master/texmf-dist/tex/latex/documentation/documentation.sty @@ -0,0 +1,124 @@ +%% +%% This is file `documentation.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% documentation.dtx (with options: `sty') +%% +%% ------------------------------------------------------------------- +%% LICENCE +%% ------------------------------------------------------------------- +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by Omar Salazar Morales +%% Laboratory for Automation, Microelectronics and Computational Intelligence +%% Engineering Department +%% Universidad Distrital ``Francisco José de Caldas'' +%% Bogotá, Colombia +%% http://www.udistrital.edu.co/ +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.2 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.2 or later is part of all distributions of +%% LaTeX version 1999/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Omar Salazar Morales. +%% +%% This work consists of the source files: +%% - documentation.dtx (documented LaTeX file) +%% - documentation.ins (installer) +%% +%% ------------------------------------------------------------------- +%% LICENCIA +%% ------------------------------------------------------------------- +%% +%% Este es un archivo generado. +%% +%% Derechos de autor (C) 2011 por Omar Salazar Morales +%% Laboratorio de Automática, Microelectrónica e Inteligencia Computacional +%% Facultad de Ingeniería +%% Universidad Distrital ``Francisco José de Caldas'' +%% Bogotá, Colombia. +%% http://www.udistrital.edu.co/ +%% +%% Este archivo puede ser redistribuido y/o modificado +%% bajo las condiciones de la Licencia Pública del Proyecto LaTeX, +%% versión 1.2 o cualquier versión superior (a su opción). +%% La última versión de esta licencia se encuentra en +%% http://www.latex-project.org/lppl.txt +%% y la versión 1.2 o superior es parte de todas las distribuciones +%% de LaTeX versión 1999/12/01 o superior. +%% +%% Este trabajo tiene el estado LPPL de `mantenido'. +%% +%% El responsable del mantenimiento de este trabajo es Omar Salazar Morales. +%% +%% Este trabajo consiste de los archivos fuente: +%% - documentation.dtx (archivo LaTeX documentado) +%% - documentation.ins (instalador) +%% +\NeedsTeXFormat{LaTeX2e}% +\ProvidesPackage{documentation}% +[2011/11/28 v0.1 Make the documentation for your source code]% +\newif\ifDOC@javalang \DOC@javalangfalse +\newif\ifDOC@Clang \DOC@Clangfalse +\newif\ifDOC@assemblerlang\DOC@assemblerlangfalse +\DeclareOption{java}{% + \DOC@javalangtrue \DOC@Clangfalse + \DOC@assemblerlangfalse + \gdef\DOC@changeccofcommentchar#1{\catcode`/=#1 + \catcode`*=#1}% + \gdef\DOC@definecsofcommentchar{\chardef\/=`/ + \chardef\*=`*}}% +\DeclareOption{c}{% + \DOC@javalangfalse \DOC@Clangtrue + \DOC@assemblerlangfalse + \gdef\DOC@changeccofcommentchar#1{\catcode`/=#1 + \catcode`*=#1}% + \gdef\DOC@definecsofcommentchar{\chardef\/=`/ + \chardef\*=`*}}% +\DeclareOption{assembler}{% + \DOC@javalangfalse \DOC@Clangfalse + \DOC@assemblerlangtrue + \gdef\DOC@changeccofcommentchar#1{\catcode`;=#1}% + \gdef\DOC@definecsofcommentchar{\chardef\;=`;}}% +\DeclareOption*{% + \PackageError{documentation}% + {Unknown option `\CurrentOption'}% + {See the documentation for more details}}% +\ExecuteOptions{c}\ProcessOptions\relax +\def\sourcecode{\DOC@changeccofcommentchar{12}% + \@verbatim \frenchspacing\@vobeyspaces \DOC@sourcecode}% +\def\endsourcecode{\if@newlist \leavevmode\fi\endtrivlist}% +\begingroup + \catcode`|=0 \catcode`[= 1 + \catcode`]=2 \catcode`\{=12 + \catcode`\}=12 \catcode`\\=12 + |catcode`/=12 |catcode`;=12 + |ifDOC@javalang + |gdef|DOC@sourcecode#1//\end{sourcecode}[#1|end[sourcecode]]% + |fi + |ifDOC@Clang + |gdef|DOC@sourcecode#1//\end{sourcecode}[#1|end[sourcecode]]% + |fi + |ifDOC@assemblerlang + |gdef|DOC@sourcecode#1;\end{sourcecode}[#1|end[sourcecode]]% + |fi +|endgroup +\def\inputsourcecode#1{% +\begingroup + \def\DOC@path{#1}% + \DOC@definecsofcommentchar + \DOC@changeccofcommentchar{10}% + \expandafter\input\DOC@path +\endgroup}% +\endinput +%% +%% End of file `documentation.sty'. -- cgit v1.2.3