From fc18c9d542b289d52e16907883bd300400764b31 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Fri, 16 May 2008 15:47:22 +0000 Subject: gaceta v1.06 (2008/05/14) git-svn-id: svn://tug.org/texlive/trunk@8179 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/gaceta/gaceta.cls | 167 ++++++++++++++++++++------ 1 file changed, 131 insertions(+), 36 deletions(-) (limited to 'Master/texmf-dist/tex/latex/gaceta') diff --git a/Master/texmf-dist/tex/latex/gaceta/gaceta.cls b/Master/texmf-dist/tex/latex/gaceta/gaceta.cls index 35912f9b745..82a823abf3a 100644 --- a/Master/texmf-dist/tex/latex/gaceta/gaceta.cls +++ b/Master/texmf-dist/tex/latex/gaceta/gaceta.cls @@ -1,8 +1,8 @@ %%% ==================================================================== %%% @LaTeX-file{ %%% filename = "gaceta.cls", -%%% version = "1.0", -%%% date = "2008/02/13", +%%% version = "1.06", +%%% date = "2008/05/14", %%% time = "00:00:00 EDT", %%% author = "Juan L. Varona", %%% address = "Dpto. Matem\'aticas y Computaci\'on, @@ -28,7 +28,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % -% Clase para La Gaceta de la RSME, ver. 1.0 % +% Clase para La Gaceta de la RSME, ver. 1.06 % % % % Real Sociedad Matem\'atica Esp\~nola % % http://www.rsme.es % @@ -51,9 +51,9 @@ %% By default, it is not loaded. % ---------------------- IDENTIFICACION -------------------------------% -\ProvidesFile{gaceta.cls}[2008/02/13, % - Clase para La Gaceta de la RSME, ver. 1.0] -\typeout{Clase para La Gaceta de la RSME, ver. 1.0, <2008/02/13>.} +\ProvidesFile{gaceta.cls}[2008/05/14, % + Clase para La Gaceta de la RSME, ver. 1.06] +\typeout{Clase para La Gaceta de la RSME, ver. 1.06, <2008/05/14>.} % ---------------------- CODIGO INICIAL -------------------------------% % - EN ARTICULOS SIN AUTORES (rese\~nas, ...) NO HAY \contact @@ -120,24 +120,27 @@ % ---------------------- CODIGO PRINCIPAL -----------------------------% -%% ESTAS COSAS, y el uso de crop, HABR\'IA QUE AJUSTARLAS CON LA IMPRENTA +%% ESTAS COSAS, y el uso de crop, EST\'A AJUSTADO CON LA IMPRENTA \RequirePackage{geometry} -\geometry{twoside, +\geometry{twoside, paperheight = 24.0cm, paperwidth = 17.0cm, columnsep = 1.0cm, % Separaci\'on cuando haya dos columnas textheight = 19.0cm, textwidth = 12.8cm, + centering, + marginparwidth = 1cm, % S\'olo notas al margen de 1cm; si no, se salen del papel top = 3.0cm -} +}% -%%% M\'AS PAR\'AMETROS DE geometry QUE PODR\'IA INTERESAR CAMBIAR: -% lmargin=1cm, % (margen izquierdo p\'aginas impares) -% % el anterior se convierte en "rmargin" en las pares -% tmargin=1cm, % (margen superior hasta el texto: 2.5+1.5+\headheight) -% headsep=1cm, % (espacio entre el "header" y el texto) -% marginparwidth=1cm, -% marginparsep=4mm %% Esto es un poquito m\'as de lo que hay por defecto. +%% IMPORTANTE: Todo est\'a pensado para usar pdflatex, no latex. +%% Si se quiere componer con latex, hay que poner +%% \documentclass[dvips]{gaceta} +%% para que "gaceta" le pase el "dvips" a "geometry". +%% De lo contrario, "geometry" no se entera del ancho del +%% papel y se piensa que es el a4 que tiene por defecto. +%% (Este problema no afecta a la caja de texto ni, por +%% tanto, a la paginaci\'on.) \def\journame#1{\def\thejourname{#1}} @@ -300,6 +303,21 @@ {\normalfont\normalsize\scshape}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% ABSTRACT +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +%% Esta definici\'on est\'a incluida desde gaceta.cls versi\'on 1.06: +\renewenvironment{abstract}{% + \quotation\small + % Imita el comportamiento de \paragraph*{\abstractname.}: + \noindent \textsc{\abstractname.\hspace{1em}}% +} +{\endquotation\vskip 1.5em plus 0.5em\relax} + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % ESPACIADO RELACIONADO CON LISTAS E ITEMIZES @@ -435,6 +453,26 @@ } %---------------------- +%---------------------- +%%%% Definimos un entorno con espaciado y forma similar a los de los teoremas, +%%%% pero asign\'andole el nombre justo en el momento. +%%%% Este entorno lo pongo en la versi\'on 1.06 de gaceta.cls +%%%% ----- +\def\pseudotheoremfont{\itshape} +\newenvironment{pseudotheorem}[2][]{% + \thm@indent + \pseudotheoremfont + \trivlist + \item[\hskip\labelsep + \the\thm@headfont #2\@ifempty{#1}{}{ \normalfont(#1)}\@addpunct{.}] + % \@addpunct{.} no pone el . si ya hay + \ignorespaces +}{% + \endtrivlist\@endpefalse % <- NO S\'E QU\'E ES ESTO, PERO LO USA amsthm +} +%%%% ----- +%---------------------- + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % "Captions" CON LETRA \small Y ESTRECHOS @@ -586,7 +624,7 @@ \ifautocontact% \newcommand{\makelastpage}{\printcontact} \else -\newcommand{\makelastpage}{\relax} % <<<< ?????? +\newcommand{\makelastpage}{\relax} % <<<< Para que no haga nada \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -638,9 +676,15 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Para controal si una secci\'on fija consta de dos art\'{\i}ulos +% Por si queremos indicar que la paginaci\'on es provisional: +\def\theprovisional{} +\def\provisional{% + \def\theprovisional{ (provisional)}% +} + +% Para controlar si una secci\'on fija consta de dos art\'{\i}ulos % independientes (cada uno con su cabecera/referencia), -% uno en un documento, y un segundo (o m\'as) en otro. +% uno en un documento, y un segundo (o m\'as) en otro: \newif\iffixedsectionwillcontinue \fixedsectionwillcontinuefalse @@ -668,7 +712,7 @@ % Para la cabecera de la primera p\'agina de cada secci\'on: \newcommand{\makefirstpageoffixedsection}{\markright{\footnotesize\scshape \thejourname, Vol.~\thevolume\ (\theyearofpublication), N\'um.~\theissuenumber, - P\'ags.~\thepage--\finalpageinfixedsectionhead} + P\'ags.~\thepage--\finalpageinfixedsectionhead\theprovisional} } % IMPORTANTE: Si el t\'{\i}tulo y el supert\'{\i}tulo est\'an en la misma p\'agina, % el encabezado del t\'{\i}tulo machaca al del supert\'{\i}tulo (que es lo normal, @@ -679,7 +723,7 @@ % Para la cabecera de la primera p\'agina de cada art\'{\i}culo: \newcommand{\makefirstpageofarticle}{\markright{\footnotesize\scshape \thejourname, Vol.~\thevolume\ (\theyearofpublication), N\'um.~\theissuenumber, - P\'ags.~\thepage--\pageref{LastPage}} + P\'ags.~\thepage--\pageref{LastPage}\theprovisional} } @@ -688,7 +732,8 @@ \def\leftheading#1{\def\theleftheading{#1}\makestandardpage} \newcommand{\makestandardpage}{% - \markboth{{\footnotesize\scshape \theleftheading}}{{\footnotesize\scshape \theshortjourname}}% + \markboth{{\footnotesize\scshape \theleftheading}}% + {{\footnotesize\scshape \theshortjourname}}% } % Redefino mejor el "\makestandardpage" para lograr poner t\'{\i}tulos cortos. @@ -696,12 +741,17 @@ \newif\ifshortleftheading \shortleftheadingfalse \def\theshortleftheading{} % <-- Inicializado por si acaso -\def\shorttitle#1{% +\def\shorttitle#1{% % (No hace nada si tengo "\supertitle") + \ifexistsfixedsectiontitle\else% + \shortleftheadingtrue% + \def\theshortleftheading{#1}% + \fi% + } +\def\shortsupertitle#1{% \shortleftheadingtrue% \def\theshortleftheading{#1}% } -\let\shortfixedsectiontitle\shorttitle -\let\shortsupertitle\shorttitle +\let\shortfixedsectiontitle\shortsupertitle % Tambi\'en quiero poder incluir (en las cabeceras derechas, % junto con el "La Gaceta"), los nombres de las partes en @@ -1263,10 +1313,6 @@ \let\makesupertitle\makefixedsectiontitle %-------------------------------------------------- -% Los inicializo as\'{\i}, por si acaso sirve para algo: -\fixedsectiontitle{} % <- Si no se rellena, se deja vac\'{\i}o -\fixedsectioneditor{} % <- Si no se rellena, se deja vac\'{\i}o - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % @@ -1282,10 +1328,10 @@ {\begin{quotation}\leftskip=1em\rightskip=1em\small\itshape\relax}% {\end{quotation}\smallskip} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % DEFINICIONES EXCLUSIVAS PARA ``PROBLEMAS Y SOLUCIONES'' -% (se pueden aprovecahr para las olimpiadas). % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1319,7 +1365,8 @@ \def\commentname{Nota} -%%%% DEJAR ESTE CON LETRA NORMAL O M\'AS PEQUEÑA ??????? +%%%% ANTE LA DISYUNTIVA DE DEJAR ESTE ENTORNO "comment" CON +%%%%% LETRA NORMAL O M\'AS PEQUEÑA, HEMOS OPTADO POR LA NORMAL. %%%% Los editores de la secci\'on de problemas lo prefieren con %%%% letra de tama\~no normal y sin it\'alica, para que ofrezca %%%% libertad total. @@ -1328,7 +1375,7 @@ %%%%% en cuenta para compilar. Pero creo que no va a tener %%%%% conflicto con nosotros.) \newenvironment{comment}[1][\commentname]{\par - % Se pdr\'{\i}a usar \normalsize, \small o \footnotesize ???? + % Se podr\'{\i}a usar \normalsize, \small o \footnotesize \normalfont \topsep6\p@\@plus6\p@\relax \trivlist \item[\hskip\labelsep @@ -1370,7 +1417,7 @@ %%% {alsosolved*} que no lo haga), pero de nuevo no merece la pena. \newenvironment{alsosolved}{\par\nopagebreak[2] - % Se pdr\'{\i}a usar \footnotesize o \small ???? + % Se pdr\'{\i}a usar \footnotesize o \small \normalfont \footnotesize \topsep2\p@\@plus1\p@\@minus0.5\p@\relax \trivlist \item[]\itshape\ignorespaces @@ -1384,6 +1431,36 @@ \vskip 1ex \@plus 0.3ex \@minus 0.1ex\nopagebreak[4]% } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DEFINICI\'ON EXCLUSIVA PARA LOS PROBLEMAS DE LAS ``OLIMPIADAS'' +% (se pueden aprovechar para las olimpiadas). +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%% Parecido a los problemas de la secci\'on de "Problemas y soluciones", +%%%% pero sin proponente y con la mitad de \topsep. +%%%% Tambi\'en podr\'{\i}a haber un usado un entorno de teoremas, pero bueno... +%%%% (lo que he usado deja m\'as espacio que los "teoremas", y he preferido +%%%% que la numeraci\'on no fuera autom\'atica). +%%%% Esta definici\'on est\'a ya incluida en gaceta.cls versi\'on 1.06: +%%%% ----- +\def\olimpicproblemname{Problema} +\newenvironment{olimpicproblem}[1]{\par\pagebreak[2] + % \normalfont \topsep12\p@\@plus8\p@\@minus4\p@\relax % <--- "Problemas y soluciones" + \normalfont \topsep6\p@\@plus4\p@\@minus2\p@\relax + \setcounter{equation}{0} % Contador de ecuaciones a 0 + \trivlist + \item[\hskip\labelsep + \scshape + \olimpicproblemname\ #1\@addpunct{.}] % \@addpunct{.} no pone el . si ya hay + \ignorespaces +}{ + \endtrivlist\@endpefalse % <- NO S\'E QU\'E ES ESTO, PERO LO USA amsthm +} +%%%% ----- + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % BIBLIOGRAF\'IA @@ -1540,7 +1617,10 @@ %%% art\'{\i}culo (con \decimalpoint, por ejemplo). %%%%% OLVIDO DE SPANISH 4.1: -\def\inf{\mathop{\operator@font \protect\es@op@i nf}} +\providecommand{\es@op@i}{\es@op@ac i} % <--- En spanish 5, \es@op@i ya no existe +\addto\es@operators{% (Estos %, aqu\'{\i} y luego, son importantes) + \def\inf{\mathop{\operator@font \protect\es@op@i nf}}% +}% %%%%% EL \pmod DE LA AMS (EN amsmath.sty) DEJA MENOS ESPACIO %%%%% DENTRO DE TEXTO NORMAL. SPANISH LO MACHACA CUANDO @@ -1570,18 +1650,33 @@ %%%%% \allowbreak\mkern18mu({\operator@font mod}\,\,#1)} %%%%% } %%%%% pero con menos espacio (siempre el peque\~no de amsmath). - +% %%%% Adem\'as, redefino el \mod de amsmath (cargado en este estilo) -%%%% para ponerle el acento, pues spanish no lo hace: +%%%% para ponerle el acento, pues spanish v4.2 no lo hace: %% ---- Parte recordatoria de lo que hay en amsmath: %\newcommand{\mod}[1]{\allowbreak\if@display\mkern18mu % \else\mkern12mu\fi{\operator@font mod}\,\,#1} %% ---- fin de la parte recordatoria. \addto\es@operators{% (Estos % son importantes) + % Para recuperar el mod no acentuado fuera de spanish, + % con spanish v4.2 necesito aqu\'{\i} un \babel@save\mod. + % Por el contrario, con spanish v5.0, el mismo \babel@save + % hace que el no acentuado no se recupere fuera de spanish. + % He optado por que funcione bien con la versi\'on 5. \renewcommand{\mod}[1]{\allowbreak\if@display\mkern18mu \else\mkern12mu\fi{\operator@font m\es@op@ac od}\,\,#1}% } +%%%% Finalmente, por si no estoy usando spanish, +%%%% redefino \pmod y \mod para que tengan el +%%%% mismo espaciado que los anteriores +%%%% (pero sin el acento en la o, claro) +\renewcommand{\pmod}[1]{% + \allowbreak\mkern8mu({\operator@font mod}\mkern6mu#1)}% +\renewcommand{\mod}[1]{\allowbreak\if@display\mkern18mu + \else\mkern12mu\fi{\operator@font mod}\,\,#1}% + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- cgit v1.2.3