summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lps/lps.cls
blob: 99c60cb5b6996dc3a2cdb165dcc37f0d5b827867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
%%
%% This is file `lps.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lps.dtx  (with options: `class')
%% 
%%  Copyright 2005, 2006 Gustavo Cevolani, Gruppo Utilizzatori Italiani di TeX
%% 
%%  This program is provided under the terms of the
%%  LaTeX Project Public License distributed from CTAN
%%  archives in directory macros/latex/base/lppl.txt.
%% 
%%  Author: Gustavo Cevolani
%%          at g.cevolani@gmail.com
%% 
%%  This work has the LPPL maintenance status "author-maintained".
%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\par
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{lps}[2011/01/01 v0.7%
                    LaTeX document class for the L&PS journal]
\LoadClass[11pt,twoside,onecolumn]{article}
\RequirePackage{mathptmx}
\RequirePackage{geometry}
\RequirePackage[bf,center,tiny,nonindentfirst]{titlesec}
\RequirePackage{titletoc}
\RequirePackage{lastpage}
\RequirePackage[format=plain,labelsep=colon,%
                   labelfont=small,labelfont=sc,%
                   textfont=it, figurename=Fig.]{caption}
\newcommand{\the@shorttitle}{}
\newcommand{\the@title}%
 {\@latex@warning@no@line{L&PS warning: no \noexpand\Title given}}
\newcommand{\Title}[1]{\renewcommand{\the@title}{#1}%
\renewcommand{\the@shorttitle}{#1}}
\let\title\Title
\newcommand{\shorttitle}[1]{\renewcommand{\the@shorttitle}{#1}}
\newcommand{\the@shortauthor}%
{\@latex@warning@no@line{L&PS warning: no \noexpand\shortauthor given}}
\newcommand{\shortauthor}[1]{\renewcommand{\the@shortauthor}{#1}}
\renewcommand{\and}{%
  \end{tabular}%
  \vskip .5em \@plus.17fil%
  \begin{tabular}[t]{c}}%
\let\Author\author
\newcommand{\the@affiliation}%
 {\@latex@warning@no@line{No \noexpand\Affiliation given}}
\newcommand{\Affiliation}[1]{\renewcommand{\the@affiliation}{#1}}
\newcommand{\the@email}%
 {\@latex@warning@no@line{No \noexpand\Email given}}
\newcommand{\Email}[1]{\renewcommand{\the@email}{e-mail: #1}}
\newcommand{\the@volume}{I}
\newcommand{\Volume}[1]{\renewcommand{\the@volume}{#1}}
\newcommand{\the@number}{1}
\newcommand{\Number}[1]{\renewcommand{\the@number}{#1}}
\newcommand{\the@year}{2222}
\newcommand{\Year}[1]{\renewcommand{\the@year}{#1}}
\newcommand{\first@page}{101}
\newcommand{\FirstPage}[1]{\renewcommand{\first@page}{#1}%
                           \setcounter{page}{\first@page}}
\renewcommand{\@maketitle}{\newpage\null\vspace{4mm}
  {\centering
  \let\footnote\thanks
  {\LARGE \the@title}\vskip 10mm
  {\normalsize
      \begin{tabular}[t]{c}%
     \@author
\end{tabular}
    }
    \vskip 10mm}}
\renewcommand{\tableofcontents}{
  \begin{quotation}\small\noindent
    \@starttoc{toc}
  \end{quotation}}
\titlecontents{section}[1.4em]{}%
              {\contentslabel[\bfseries\thecontentslabel ]%
              {1.4em}}{\itshape}{}[]
\newcommand{\the@keywords}%
    {\@latex@warning@no@line{No \noexpand\keywords given}}
\newcommand{\keywords}[1]{\renewcommand{\the@keywords}{#1}}
\renewenvironment{abstract}%
      {\setlength{\parskip}{0pt}
       \begin{quotation}\noindent\small%
             \textsc{\MakeLowercase\abstractname}.}%
      {\vskip 1\baselineskip \noindent%
       \textsc{keywords}: \the@keywords%
       \end{quotation}\noindent}
\geometry{paperwidth=155mm,paperheight=230mm}
\geometry{textwidth=122mm,textheight=172.795mm}
\geometry{headsep=10mm,headheight=7mm,footskip=7mm}
\geometry{hcentering,top=33mm}
\newcommand{\ps@lps}{%
 \renewcommand{\@oddhead}%
  {\hfil\small\scshape\MakeLowercase\the@shorttitle\hfil}%
 \renewcommand{\@oddfoot}{\hfil\itshape\thepage\hfil}%
 \renewcommand{\@evenhead}%
  {\hfil\small\scshape\MakeLowercase\the@shortauthor\hfil}%
 \renewcommand{\@evenfoot}{\hfil\itshape\thepage\hfil}}
\renewcommand{\ps@plain}{%
\renewcommand{\@oddhead}%
 {\hfil\parbox[t]{80mm}{\centering\itshape%
 L\&PS -- Logic \& Philosophy of Science\\%
 Vol. \the@volume, No. \the@number, \the@year, %
 pp. \thepage -\pageref{LastPage}}\hfil}%
\renewcommand{\@oddfoot}{%
 \parbox[t]{80mm}{\footnotesize \copyright\ The Author \the@year\\
 Published by L\&PS -- Logic and Philosophy of Science\\
 http://www2.units.it/\~{}episteme/ -- ISSN:\thinspace 1826-1043}\hfil}%
\renewcommand{\@evenhead}{}%
\renewcommand{\@evenfoot}{\hfil\itshape\thepage\hfil}}
\titlelabel{\thetitle.\quad}
\titlespacing{\section}{0pt}{2\baselineskip plus .5ex minus .2ex}{1\baselineskip}
\renewcommand{\@makefntext}[1]%
  {\indent\makebox[7mm][r]{\@makefnmark}\hspace{2mm}#1}
\renewcommand{\footnoterule}%
  {\noindent\vspace*{-2pt}\rule{\textwidth}{.4pt}\vspace*{5pt}}
\setlength{\skip\footins}{6mm}
\renewcommand{\refname}%
  {\normalfont\textsc{References}}
\AtBeginDocument{\pagestyle{lps}}
\endinput
%%
%% End of file `lps.cls'.