summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/spanish/lshort-spanish/ldesc2e.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-doc/doc/spanish/lshort-spanish/ldesc2e.sty')
-rw-r--r--Master/texmf-doc/doc/spanish/lshort-spanish/ldesc2e.sty184
1 files changed, 184 insertions, 0 deletions
diff --git a/Master/texmf-doc/doc/spanish/lshort-spanish/ldesc2e.sty b/Master/texmf-doc/doc/spanish/lshort-spanish/ldesc2e.sty
new file mode 100644
index 00000000000..2286aca97c6
--- /dev/null
+++ b/Master/texmf-doc/doc/spanish/lshort-spanish/ldesc2e.sty
@@ -0,0 +1,184 @@
+\ProvidesPackage{ldesc2e}
+\RequirePackage{verbatim}
+\RequirePackage{fancyhdr}
+
+%
+% Pongamos algunas cosas curiosillas en las cabeceras :-)
+%
+\pagestyle{fancyplain}
+\addtolength{\headwidth}{\marginparwidth}
+\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
+\renewcommand{\sectionmark}[1]{\markright{\thesection{} #1}}
+\lhead[\fancyplain{}{\bfseries\thepage}]
+ {\fancyplain{}{\bfseries\rightmark}}
+\rhead[\fancyplain{}{\bfseries\leftmark}]
+ {\fancyplain{}{\bfseries\thepage}}
+\cfoot[]{}
+\addtolength{\headheight}{1.6pt}
+%
+%
+% Antes, los p'arrafos se separaban con algo de espacio
+%
+%\setlength{\parindent}{0pt}
+%\setlength{\parskip}{1.5ex plus 0.7ex minus 0.6ex}
+
+\newcommand{\manual}{Manual de \emph{\LaTeX{}}~\cite{manual}}
+\newcommand{\companion}{\emph{The \LaTeX{} Companion}~\cite{companion}}
+\newcommand{\guia}{\emph{Gu\'{\i}a Local}~\cite{local}}
+\newcommand{\contrib}[3]{#1\quad$<$\texttt{#2}$>$%
+{\small\\\quad\textit{#3}}\\[1ex]}
+%
+% Algunas instrucciones para ayudar a la creaci'on del 'indice de
+% materias.
+%
+%\newcommand{\bs}{\symbol{'134}}%Print backslash
+\ifx\bs\undefined
+ \newcommand{\bs}{\symbol{92}}%Print backslash
+\else
+ \renewcommand{\bs}{\symbol{92}}%Print backslash
+\fi
+%\newcommand{\bs}{\ensuremath{\mathtt{\backslash}}}%Imprime barra invertida
+% Entrada en el 'indice para una orden
+\newcommand{\cih}[1]{%
+\index{instrucciones!#1@\texttt{\bs#1}}%
+\index{#1@\texttt{\hspace*{-1.2ex}\bs #1}}}
+\newcommand{\ci}[1]{\cih{#1}\texttt{\bs#1}}
+%Package
+\newcommand{\pai}[1]{%
+\index{paquetes!#1@\textsf{#1}}%
+\index{#1@\textsf{#1}}%
+\textsf{#1}}
+% Entrada en el 'indice de entorno
+\newcommand{\ei}[1]{%
+\index{entornos!\texttt{#1}}%
+\index{#1@\texttt{#1}}%
+\texttt{#1}}
+% Entrada en el 'indice para mensajes
+\newcommand{\wni}[1]{%
+\index{mensaje!\texttt{#1}}%
+\texttt{#1}}
+% Entrada en el 'indice de una palabra
+\newcommand{\wi}[1]{\index{#1}#1}
+%
+% Instrucciones de composici'on
+%
+\newenvironment{command}%
+ {\nopagebreak\par\small\addvspace{3.2ex plus 0.8ex minus 0.2ex}%
+ \vskip -\parskip
+ \noindent%
+ \begin{tabular}{|l|}\hline\rule{0pt}{1em}\ignorespaces}%
+ {\\\hline\end{tabular}\par\nopagebreak\addvspace{3.2ex plus 0.8ex
+ minus 0.2ex}%
+ \vskip -\parskip}
+%
+% Composici'on de fragmentos de c'odigo
+%
+\newenvironment{code}{\begin{quote}}{\end{quote}}
+%
+% Entorno Intro
+\newenvironment{intro}{\sffamily}{\vspace*{2ex minus 1.5ex}}
+%
+%
+% Entrada de s'imbolo para la tabla de s'imbolos matem'aticos
+%
+\newcommand{\X}[1]{$#1$&\texttt{\string#1}\hspace*{1ex}}
+% Text normal....
+\newcommand{\SC}[1]{#1&\texttt{\string#1}\hspace*{1ex}}
+% para los acentos en modo texto
+\newcommand{\A}[1]{#1&\texttt{\string#1}\hspace*{1ex}}
+\newcommand{\B}[2]{#1#2&\texttt{\string#1{} #2}\hspace*{1ex}}
+
+\newcommand{\W}[2]{$#1{#2}$&
+ \texttt{\string#1}\texttt{\string{\string#2\string}}\hspace*{1ex}}
+\newcommand{\Y}[1]{$\big#1$ &\texttt{\string#1}} %
+% Tabla de s'imbolos matem'aticos
+\newsavebox{\symbbox}
+\newenvironment{symbols}[1]%
+{\par\vspace*{2ex}
+\renewcommand{\arraystretch}{1.1}
+\begin{lrbox}{\symbbox}
+\hspace*{4ex}\begin{tabular}{@{}#1@{}}}%
+{\end{tabular}\end{lrbox}\makebox[\textwidth]{\usebox{\symbbox}}\par\medskip}
+%
+% Preparaci'on especial para imprimir los s'imblos de la AMS
+% Si no se encuentra AMS, deber'ia funcionar.
+%
+
+% No se tienen versiones PS de los tipos rsfs.
+% Por ello, esto no no se puede hacer para pdf
+\ifx\pdfoutput\undefined % No estamos corriendo pdftex
+\IfFileExists{mathrsfs.sty}
+ {\RequirePackage{mathrsfs}\let\MathRSFS\mathscr\let\mathscr\relax}{}
+\fi
+\IfFileExists{amssymb.sty}
+ {\let\noAMS\relax \RequirePackage{amssymb}}
+ {\def\noAMS{\endinput}\RequirePackage{latexsym}}
+
+\IfFileExists{euscript.sty}
+ {\RequirePackage{euscript}}{}
+%\IfFileExists{eufrak.sty}
+% {\RequirePackage{eufrak}}{}
+
+
+%
+% Imprimir |--| para mostrar distancia
+%
+\newcommand{\demowidth}[1]{\rule{0.3pt}{1.3ex}\rule{#1}{0.3pt}\rule{0.3pt}{1.3ex}}
+%
+%
+% --- ejemplo ----
+% Este es un entorno para mostrar ejemplso en LaTeX.
+% En la parte izquierda se muestra el texto fuente
+% y en la derecha la composici'on.
+%
+% \begin{example}
+% \Large Esto es grande
+% \end{example}
+%
+% Esta parte procede de verbaim.sty de FMi
+%
+\newwrite\example@out
+\newenvironment{example}%
+ {\begingroup% Lets Keep the Changes Local
+ \@bsphack
+ \immediate\openout \example@out \jobname.exa
+ \let\do\@makeother\dospecials\catcode`\^^M\active
+ \def\verbatim@processline{%
+ \immediate\write\example@out{\the\verbatim@line}}%
+ \verbatim@start}%
+ {\immediate\closeout\example@out\@esphack\endgroup%
+%
+% Y aqu'i lo que se ha a~nadido
+%
+ \par\small\addvspace{3ex plus 1ex}\vskip -\parskip
+ \noindent
+ \makebox[0.45\linewidth][l]{%
+ \begin{minipage}[t]{0.45\linewidth}
+ \vspace*{-2ex}
+ \setlength{\parindent}{0pt}
+ \setlength{\parskip}{1ex plus 0.4ex minus 0.2ex}
+ \begin{trivlist}
+ \item\input{\jobname.exa}
+ \end{trivlist}
+ \end{minipage}}%
+ \hfill%
+ \makebox[0.5\linewidth][l]{%
+ \begin{minipage}[t]{0.50\linewidth}
+ \vspace*{-1ex}
+ \verbatiminput{\jobname.exa}
+ \end{minipage}}
+ \par\addvspace{3ex plus 1ex}\vskip -\parskip
+}
+
+\newenvironment{lined}[1]%
+ {\begin{center}\begin{minipage}{#1}\hrule\medskip}
+ {\vspace{-1ex}\hrule \end{minipage}\end{center}}
+% Esto es para eliminar las cabeceras en las p'aginas creadas con
+% clearpage.
+
+\renewcommand{\cleardoublepage}
+ {\clearpage\if@twoside \ifodd\c@page\else
+ \hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
+
+\newcommand{\BibTeX}
+ {\textsc{Bib}\TeX}