From d353732e1471dc25e37f355334dcefc707e8f77b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 14 Aug 2011 22:56:46 +0000 Subject: new polish doc package przechlewski-book (15jul11) git-svn-id: svn://tug.org/texlive/trunk@23552 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/przechlewski-book/upmgr.cls | 34 +++ .../tex/latex/przechlewski-book/wkmgr.cls | 328 +++++++++++++++++++++ 2 files changed, 362 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/przechlewski-book/upmgr.cls create mode 100644 Master/texmf-dist/tex/latex/przechlewski-book/wkmgr.cls (limited to 'Master/texmf-dist/tex/latex/przechlewski-book') diff --git a/Master/texmf-dist/tex/latex/przechlewski-book/upmgr.cls b/Master/texmf-dist/tex/latex/przechlewski-book/upmgr.cls new file mode 100644 index 00000000000..6d01ea19a4a --- /dev/null +++ b/Master/texmf-dist/tex/latex/przechlewski-book/upmgr.cls @@ -0,0 +1,34 @@ + +%% identyfikacja +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{upmgr}[2010/18/05 v1.13, Praca magisterska UP] + +%% deklarowanie opcji +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} +\PassOptionsToClass{a4paper,twoside,openany}{report} + +\DeclareOption{licencjacka}{\def\@rodzajpracy{licencjacka}} +\DeclareOption{magisterska}{\def\@rodzajpracy{magisterska}} + +%% wykonanie opcji +\ExecuteOptions{magisterska} +\ProcessOptions +\LoadClass{report} %% tylko w przypadku pliku klas + +%% zaladowanie pakietow +%%\RequirePackage{graphicx} +\RequirePackage[font=small,justification=raggedright]{caption} +\RequirePackage{polski} + +%% kod glowny +\textwidth\paperwidth \advance\textwidth -55mm +\oddsidemargin-1in \advance\oddsidemargin 30mm +\evensidemargin-1in \advance\evensidemargin 25mm +\topmargin -1in \advance\topmargin 25mm +\setlength\textheight{48\baselineskip} +%% ... itd ... %% + + + +%% +%% diff --git a/Master/texmf-dist/tex/latex/przechlewski-book/wkmgr.cls b/Master/texmf-dist/tex/latex/przechlewski-book/wkmgr.cls new file mode 100644 index 00000000000..ad0e3b3755c --- /dev/null +++ b/Master/texmf-dist/tex/latex/przechlewski-book/wkmgr.cls @@ -0,0 +1,328 @@ +% Klasa dokument\'ow do sk{\l}adu prac magisterskich/licencjackich +% +% This work may be distributed under the terms of the LaTeX Project +% Public License, as described in lppl.txt in the base LaTeX +% distribution. Either version 1.0 or, at your option, any later version. +% +% Klasa wkmgr mo\.ze by\'c rozpowszechniana na zasadach publicznej +% licencji LaTeX Project (The LaTeX project public license, LPPL, +% por. http://www.latex-project.org/lppl/) +% Istota LPPL sprowadza si\k{e} do tego, \.ze modyfikacje pliku dozwolone +% s\k{a} wylacznie pod warunkiem zmiany jego nazwy. +% +% Copyright (c) T. Przechlewski (rudolf.von.ems@gmail.com), 2002--2004, 2005, 2008, 2009, 2011 +% +% Poprawki (bez polskich znakow zeby sie dawalo czytac w roznych systemach): +% +% Dzi\k{e}kuj\k{e} Marcinowi Woli\'nskiemu za zgod\k{e} na wykorzystanie +% fragment\'ow jego klasy opracowanej w tym samym celu co niniejsza +% dla Wydzia\{l}u Matematyki, Informatyki i Mechaniki, UW. +% +%% +\def\ThisClassVersionId{v1.0} +% +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{wkmgr}[2011/07/01 \ThisClassVersionId, Praca magisterska/licencjacka] +%% +\def\@baseclass{report} +\def\@rodzajpracy{magisterska} +\def\@BInterlinia{\relax} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\@baseclass}} +\PassOptionsToClass{a4paper,twoside,openany,11pt}{\@baseclass} +% +\newif\if@wkmgrDratfMode \@wkmgrDratfModefalse +% +\DeclareOption{licencjacka}{\def\@rodzajpracy{licencjacka}} +\DeclareOption{brudnopis}{\@wkmgrDratfModetrue } +\DeclareOption{xodstep}{\AtEndOfClass{\linespread{1.3}}} +\ProcessOptions +% +\LoadClass{\@baseclass} +% +\if@wkmgrDratfMode \RequirePackage{prelim2e} +\renewcommand{\PrelimWords}{\ThisDocVersionId}\linespread{1.0} +\fi +% +\usepackage{graphicx} +% +\textwidth\paperwidth +\advance\textwidth -55mm +\oddsidemargin-1in +\advance\oddsidemargin 30mm +\evensidemargin-1in +\advance\evensidemargin 25mm +\topmargin -1in +\advance\topmargin 25mm +\setlength\textheight{48\baselineskip} +\addtolength\textheight{\topskip} +\marginparwidth15mm +% +\widowpenalty999999 +\tolerance450 +\pretolerance250 +\hfuzz=1.5pt +\hbadness1450 +% +\def\AndNextAuthor{\ifnum\language=0\& \else i \fi} +\newcount\authornumber +\authornumber=0 +% +\def\author#1{% + \global\advance\authornumber\@ne + \expandafter\def\csname theauthor\number\authornumber\endcsname + {\ignorespaces#1\unskip}% + \expandafter\def\csname theauthorid\number\authornumber + \endcsname{???\ClassError{wkmgr}{Brak numeru albumu}\@ehc}% + \expandafter\let\csname thenetaddress\number\authornumber\endcsname\relax } +% +\def\nralbumu#1{% + \expandafter\def\csname theauthorid\number\authornumber\endcsname + {\ignorespaces#1\unskip}} +\def\email#1{% -- opcjonalny -- + \expandafter\def\csname thenetaddress\number\authornumber\endcsname + {\ignorespaces#1\unskip}} + +\def\@author{\@defaultauthorlist} + +\newcount\count@@ + +\def\@defaultauthorlist{% + \count@=\authornumber + \count@@=0 + \loop + \ifnum\count@>0 + \advance\count@@ by 1 + \begingroup \Large\bf + \ignorespaces\csname theauthor\number\count@@\endcsname\par + \normalsize \rm nr~albumu: + \ignorespaces\csname theauthorid\number\count@@\endcsname\par + % adres email nie jest drukowany -- ale si{\e} przyda + %%\ignorespaces\csname thenetaddress\number\count@@\endcsname + \par + \medskip \endgroup + \advance\count@ by -1 + \repeat + } + + % << +\def\UniversityName#1{\def\Univ@Name{#1}} +\def\Univ@Name{????Nazwa szko{\l}y????}% <-- wstawic nazwe szkoly <--- + % << +\renewcommand\maketitle{% + \begin{titlepage}% + \let\footnotesize\small + \let\footnoterule\relax + \let \footnote \thanks + \begin{center}% + {\large \textbf{\Univ@Name}\par} + \par + \end{center}% + \vspace{1cm plus 1fill} + \begin{flushleft}% + {\@author\par} + \end{flushleft}% + \vspace{8mm plus 1mm minus 2mm} + \begin{center}% + {\huge\textbf{\@title}\par} + \vspace{2cm plus 1.5fill} + \begin{flushright}\large + \begin{tabular}{l} + Praca \@rodzajpracy{} na kierunku:\\[3pt] + \MakeUppercase{\@kierunek}\\[3pt] + Promotor: \\[3pt] + \bfseries \@opiekun + \end{tabular} + \end{flushright} + \vspace{15mm plus .1fill} + {\large \@miejsce\space \@date\par} + \end{center} + \@thanks + \end{titlepage}% + % + \setcounter{footnote}{0}% + \global\let\thanks\relax + \global\let\maketitle\relax + \global\let\@thanks\@empty + \global\let\@author\@empty + \global\let\@date\@empty + \global\let\@title\@empty + \global\let\title\relax + \global\let\author\relax + \global\let\date\relax + \global\let\and\relax + % + % Jezeli podano slowa kluczowe wydrukuj + \clearpage + \thispagestyle{empty} + \ifvoid\abspagebox \@latex@warning{*** Nie podano streszczenia ***}% + \else \InsertAbstractHere \fi + \ifx\@keywords\EmptyKwsList \@latex@warning{*** Nie podano slow kluczowych ***}% + \else \section*{S{\l}owa kluczowe} + \@keywords + \fi + \cleardoublepage %% + \tableofcontents + %\listoftables + %\listoffigures +} %% --renewcommand: maketitle -- + +%%\def\nralbumu#1{\gdef\@nralbumu{#1}} +%%\def\@nralbumu{???\ClassError{wkmgr}{Brak numeru albumu}\@ehc} +\def\kierunek#1{\gdef\@kierunek{#1}} +\def\@kierunek{???\ClassError{wkmgr}{Nie podano kierunku studiow}\@ehc} +\def\opiekun#1{\gdef\@opiekun{#1}} +\def\@opiekun{???\ClassError{wkmgr}{Brak danych opiekuna pracy}\@ehc} +\def\miejsce#1{\gdef\@miejsce{#1}} +\def\@miejsce{???? Miejsce ????} %% <-- wstawic nazwe miejsca <--- +% +\def\keywords#1{\gdef\@keywords{#1}} +% slowa kluczowe sa opcjonalne: +%%\def\@keywords{???\ClassError{wkmgr}{Brak slow kluczowych}\@ehc} +\def\@keywords{????} +\def\EmptyKwsList{????} +%% +\def\klasyfikacja#1{\gdef\@klasyfikacja{#1}} +\def\@klasyfikacja{???\ClassError{wkmgr}{Brak klasyfikacji tematycznej}\@ehc} +% +\newbox \abspagebox %% *tp ** +\def\InsertAbstractHere{\unvbox \abspagebox} +% +\renewenvironment{abstract}{\global + \setbox \abspagebox \vbox \bgroup + \section*{Streszczenie} } + {\egroup} +% +\renewcommand*\@seccntformat[1]{\csname the#1\endcsname.\enspace} +\def\numberline#1{\hb@xt@\@tempdima{#1.\hfil}} +\renewcommand*\l@chapter[2]{% + \ifnum \c@tocdepth >\m@ne + \addpenalty{-\@highpenalty}% + \vskip 1.0em \@plus\p@ + \setlength\@tempdima{1.5em}% + \begingroup + \parindent \z@ \rightskip \@pnumwidth + \parfillskip -\@pnumwidth + \leavevmode \bfseries + \advance\leftskip\@tempdima + \hskip -\leftskip + #1\nobreak\mdseries + \leaders\hbox{$\m@th + \mkern \@dotsep mu\hbox{.}\mkern \@dotsep + mu$}\hfill + \nobreak\hb@xt@\@pnumwidth{\hss #2}\par + \penalty\@highpenalty + \endgroup + \fi} +% +\def\@makechapterhead#1{% + %\vspace*{50\p@}% + {\parindent \z@ \raggedright \normalfont + \ifnum \c@secnumdepth >\m@ne + \normalsize \bfseries \MakeUppercase{\@chapapp}\space \thechapter + \par\nobreak + \vskip\baselineskip + \fi + \interlinepenalty\@M + \LARGE \bfseries #1\par\nobreak + \vskip 40\p@ + }} +% +\def\@makeschapterhead#1{% + %\vspace*{50\p@}% + {\parindent \z@ \raggedright + \normalfont + \interlinepenalty\@M + \LARGE \bfseries #1\par\nobreak + \vskip 40\p@ + }} +% +\renewcommand{\section}{\@startsection{section}{1}{\z@}% + {-3.5ex \@plus -1ex \@minus -.2ex}% + {2.3ex \@plus.2ex}% + {\reset@font\Large\bfseries\raggedright}} +\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% + {-3.25ex\@plus -1ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {\reset@font\large\bfseries\raggedright}} +%\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}% +% {-3.25ex\@plus -1ex \@minus -.2ex}% +% {1.5ex \@plus .2ex}% +% {\reset@font\normalsize\bfseries\raggedright}} +\renewcommand{\subsubsection}{???\ClassError{wkmgr}{Zbyt duzo srodtytulow}\@ehc} +\renewcommand{\paragraph}{???\ClassError{wkmgr}{Zbyt duzo srodtytulow}\@ehc}% +% +% Skorowidz: dodanie kresek w pozycjach skorowidza stopnia drugiego +\renewenvironment{theindex}{% + \clearpage \refstepcounter{chapter}% potrzebne do prawid{\l}owego + % dzia{\l}ania zak{\l}adek w dokumencie PDF + \columnseprule \z@ \columnsep 35\p@ + \twocolumn[\@makeschapterhead{\indexname}]% + \@mkboth{\indexname}{\indexname}% + \addcontentsline{toc}{chapter}{\indexname}% + \thispagestyle{plain}\parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \let\item\@idxitem } + {\clearpage } +\def\indexemdashes{% +\def\@idxitem{\par\hangindent 0pt} +\def\subitem{\par\hangindent 0pt --- } +\def\subsubitem{\par\hangindent 0pt --- --- } +\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}} +\indexemdashes +% +% Wprowadzenie/zako\'nczenie +\newcommand{\introduction}{%\doublepage + \chapter*{\IntroName\@mkboth{\IntroName}{\IntroName}}% +\addcontentsline{toc}{chapter}{\IntroName}} +% +\newcommand{\summary}{%\doublepage + \chapter*{\SummaryName\@mkboth{\SummaryName}{\SummaryName}}% +\addcontentsline{toc}{chapter}{\SummaryName}} +% O\'swiadczenie (dodane 7.4.2005) +\def\oswiadczenieText{% +Ja, ni\.zej podpisany(a) o\'swiadczam, i\.z przed{\l}o\.zona praca +dyplomowa zosta{\l}a wykonana przeze mnie samodzielnie, +nie narusza praw autorskich, interes\'ow prawnych +i~materialnych innych os\'ob.\endgraf } +% +\long\def\oswiadczenie{%%\newpage +\if@twocolumn \onecolumn \fi +%%\centerline{\large\textbf{O\'swiadczenie}} +%%\vspace*{50mm} +\chapter*{O\'swiadczenie}% +\addcontentsline{toc}{chapter}{O\'swiadczenie}% +\par +\vskip6mm +\noindent +\oswiadczenieText +\par\vskip12mm +\centerline{\vbox{% +\hbox to.8\textwidth{\hbox to45mm{\dotfill}\hss + \hbox to45mm{\dotfill}} +\hbox to.8\textwidth{\hbox to45mm{\hss data\hss}\hss +\hbox to45mm{\hss podpis\hss}}% +}}\par +\newpage } +% + +\def\source#1{\par \begin{flushleft}\small \SourceName:~#1\end{flushleft}} +% +% Oznakowanie wersji dokumentu na ka\.zdej stronie w postaci +% adresu e-mail pierwszego autora (je\.zeli jest zdefiniowany) lub imienia +% i nazwiska pierwszego autora + tego co autor wpisa{\l} jako +% argument polecenia \nrwersji + bie{\.z}\k{a}ca data. +\def\nrwersji#1{\def\ThisDocVersion{#1}}\nrwersji{????}% +\def\ThisDocVersionId{% + \expandafter \ifx \csname theauthor1 \endcsname \undefined + \else \csname theauthor1\endcsname \fi + %% adres moze zawierac nie-litery (np `_' powoduje blad), pomijam + %\expandafter \ifx \csname thenetaddress1\endcsname \undefined + %\else \csname thenetaddress1\endcsname \fi + \space --\space wersja \ThisDocVersion\space z\space + \number\day/\number\month/\number\year~r. } +%% +\def\IntroName{Wprowadzenie} +\def\SummaryName{Zako\'nczenie} +\def\SourceName{\'Zr\'od{\l}o} +%% +\endinput -- cgit v1.2.3