From bc4a246d8757e9c6e1a938ce98b78841e5114935 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 26 Jul 2007 18:12:09 +0000 Subject: disser update (23jul07) git-svn-id: svn://tug.org/texlive/trunk@4658 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/disser/README | 27 ++++- Master/texmf-dist/doc/latex/disser/README.ru | 30 ++++- Master/texmf-dist/doc/latex/disser/changelog.txt | 16 ++- Master/texmf-dist/doc/latex/disser/nomake.cmd | 42 +++++-- .../doc/latex/disser/templates/bachelor/1.tex | 65 ++++++++--- .../doc/latex/disser/templates/bachelor/nomake.cmd | 24 ++-- .../doc/latex/disser/templates/bachelor/thesis.bib | 6 +- .../doc/latex/disser/templates/bachelor/thesis.tex | 2 +- .../latex/disser/templates/candidate/nomake.cmd | 24 ++-- .../latex/disser/templates/candidate/thesis.bib | 6 +- .../doc/latex/disser/templates/doctor/nomake.cmd | 24 ++-- .../doc/latex/disser/templates/doctor/thesis.bib | 6 +- .../doc/latex/disser/templates/latex.fig.mk | 12 +- .../texmf-dist/doc/latex/disser/templates/latex.mk | 3 +- .../doc/latex/disser/templates/master/nomake.cmd | 24 ++-- .../doc/latex/disser/templates/master/thesis.bib | 6 +- .../doc/latex/disser/templates/nomake.cmd | 2 +- Master/texmf-dist/source/latex/disser/Makefile | 29 +++-- .../texmf-dist/source/latex/disser/candidate.dtx | 6 +- Master/texmf-dist/source/latex/disser/chapter.dtx | 43 ++++++- Master/texmf-dist/source/latex/disser/custom.dtx | 26 ++--- Master/texmf-dist/source/latex/disser/disser.dtx | 12 +- Master/texmf-dist/source/latex/disser/floats.dtx | 7 +- Master/texmf-dist/source/latex/disser/gost732.dtx | 6 +- Master/texmf-dist/source/latex/disser/master.dtx | 4 +- Master/texmf-dist/source/latex/disser/page.dtx | 128 +++++++++++++-------- Master/texmf-dist/source/latex/disser/part.dtx | 4 +- Master/texmf-dist/source/latex/disser/sections.dtx | 7 ++ .../texmf-dist/source/latex/disser/titledefs.dtx | 35 ------ Master/texmf-dist/source/latex/disser/toc.dtx | 2 +- Master/texmf-dist/tex/latex/disser/candidate.rtx | 4 +- Master/texmf-dist/tex/latex/disser/disser.cls | 91 ++++++++++----- Master/texmf-dist/tex/latex/disser/master.rtx | 4 +- Master/texmf-dist/tex/latex/disser/titledefs.rtx | 16 --- 34 files changed, 455 insertions(+), 288 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/disser/README b/Master/texmf-dist/doc/latex/disser/README index 48049b4615f..9d75d81ccc4 100644 --- a/Master/texmf-dist/doc/latex/disser/README +++ b/Master/texmf-dist/doc/latex/disser/README @@ -1,9 +1,23 @@ Overview -------- -This is a LaTeX document class and set of templates for creating dissertations. +disser is a LaTeX document class and set of templates for creating dissertations. It is oriented on Russian-speaking users. +Dependencies +------------ + +This class uses the third party packages. It is recommended to install all of +the following: amssymb, amsmath, graphicx, natbib, floatflt, pscyr, hyperref, +hypernat, subfig, caption, cmap + +Getting latest version +---------------------- + +You can obtain the latest version of the package from SVN-repository. +Just install Subversion (if you don't have one) and run the following command: +> svn export https://svn.sourceforge.net/svnroot/disser/ ./disser-latest + Installation ------------ @@ -24,14 +38,19 @@ Manually > mkdir /path/to/texmf/tex/latex/disser 2. Generate class files +> cd src > latex disser.ins -3. Copy disser.cls and *.rtx -> cp disser.cls *.rtx /path/to/texmf/tex/latex/disser +3. Copy *.cls and *.rtx to destination directory +> cp *.cls *.rtx /path/to/texmf/tex/latex/disser + +4. Copy disser.dvi to documentation directory +> cp *.cls *.rtx /path/to/texmf/doc/latex/disser -4. Refresh filename database +5. Refresh filename database > mktexlsr + License ------- diff --git a/Master/texmf-dist/doc/latex/disser/README.ru b/Master/texmf-dist/doc/latex/disser/README.ru index 2c73eedadaa..659d4e7ff4e 100644 --- a/Master/texmf-dist/doc/latex/disser/README.ru +++ b/Master/texmf-dist/doc/latex/disser/README.ru @@ -1,3 +1,23 @@ +Введение +-------- + +Пакет disser предназначен для верстки дипломов и диссертаций. Ориентирован +на рускоязычных пользователей. + +Зависимости +----------- + +Класс disser.cls использует стронние пакеты. Для корректной сборки шаблонов +следует установить всё нижеперечисленное: amssymb, amsmath, graphicx, natbib, +floatflt, pscyr, hyperref, hypernat, subfig, caption, cmap + +Получение последней версии +-------------------------- + +Наиболее свежую версию пакета можно получить из SVN-репозитория. +Для этого достаточно установить Subversion и выполнить команду +> svn export https://svn.sourceforge.net/svnroot/disser/ + Установка --------- @@ -20,10 +40,13 @@ 2. Генерируем файлы класса > latex disser.ins -3. Копируем disser.cls и *.rtx в созданный каталог. -> cp disser.cls *.rtx /путь/к/texmf/tex/latex/disser +3. Копируем *.cls и *.rtx в созданный каталог. +> cp *.cls *.rtx /путь/к/texmf/tex/latex/disser -4. Обновляем базу имен файлов +4. Копируем disser.dvi в каталог с документацией. +> cp disser.dvi /путь/к/texmf/doc/latex/disser + +5. Обновляем базу имен файлов > mktexlsr Лицензия @@ -42,4 +65,3 @@ Тхис програм ис дистрибутед ин тхе хопе тхат ит вилл бе усефул, бут ВИТХОУТ АНЫ ВАРРАНТЫ; витхоут евен тхе имплиед варранты оф МЕРЧАНТАБИЛИТЫ ор ФИТНЕСС ФОР А ПАРТИЦУЛАР ПУРПОСЕ. - diff --git a/Master/texmf-dist/doc/latex/disser/changelog.txt b/Master/texmf-dist/doc/latex/disser/changelog.txt index 9b0d57e5a39..0c63924e262 100644 --- a/Master/texmf-dist/doc/latex/disser/changelog.txt +++ b/Master/texmf-dist/doc/latex/disser/changelog.txt @@ -2,7 +2,19 @@ disser changelog Copyright (C) 2004-2007 Stanislav Kruchinin ------------------------------------------- -Changes in version 1.0.2 (2006-03-04): +Changes in version 1.0.3 (2007-07-11): + +Class: ++ Major improvements in Makefile/nomake.cmd infrastructure. ++ subfig package is used instead of obsolete subfigure. ++ Added some parametrizations for page styles and headings. + +Templates: ++ Added more examples with figures to bachelor template. +* Fix: thesis.bib EOLN changed to LF. + + +Changes in version 1.0.2 (2007-03-04): Class: + Added class gost732. @@ -12,7 +24,7 @@ Class: http://disser.svn.sourceforge.net/viewvc/disser/). Templates: -+ Candidate and doctor: added templates of author's abstracts (autoreferats). ++ Candidate and doctor: added templates of author's abstracts. * Candidate and doctor: fixed \title. diff --git a/Master/texmf-dist/doc/latex/disser/nomake.cmd b/Master/texmf-dist/doc/latex/disser/nomake.cmd index 3ed3c9711f3..aa1d1770b9d 100644 --- a/Master/texmf-dist/doc/latex/disser/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/nomake.cmd @@ -1,38 +1,62 @@ @echo off set target=disser + if %texmf%.==. set texmf=d:\programs\miktex\local set destdir=%texmf%\tex\latex\%target% -set clean=*.rtx *.cls *.log *.out *.aux *.dvi *.idx *.glo *.toc *.ind *.ilg *.bak +set docdir=%texmf%\doc\latex\%target% +set clean=*.rtx *.cls *.log *.out *.aux *.dvi *.idx *.glo *.toc *.ind *.ilg *.bak *.bbl *.blg if %1.==. ( -:make +:default + goto :all +) + +:start +if %1.==. goto :eof + +if %1.==all. ( +:all latex %target%.ins - echo. - echo Now run '%~n0 install' - echo. + call :doc goto :eof ) -if %1.==. goto :eof +if %1.==class. ( +:class + latex %target%.ins +goto :eof +) if %1.==clean. ( +:clean del %clean% goto :eof +goto :end ) if %1.==install. ( +:install if not exist %target%.cls ( echo You must run 'nomake' first goto :eof ) if not exist %destdir% mkdir %destdir% - copy /y *.rtx %destdir% > nul - copy /y *.cls %destdir% > nul - goto :eof + if not exist %docdir% mkdir %docdir% + xcopy /y /f *.rtx %destdir% + xcopy /y /f *.cls %destdir% + xcopy /y /f *.dvi %docdir% +goto :end ) if %1.==doc. ( +:doc + chcp 1251 latex %target%.dtx latex -src-specials %target%.dtx +goto :end ) + +if %1. neq . (echo Don't know how to make %1 ) +:end +shift & goto :start diff --git a/Master/texmf-dist/doc/latex/disser/templates/bachelor/1.tex b/Master/texmf-dist/doc/latex/disser/templates/bachelor/1.tex index 86f80000056..8fa1954e017 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/bachelor/1.tex +++ b/Master/texmf-dist/doc/latex/disser/templates/bachelor/1.tex @@ -3,30 +3,30 @@ Внутритекстовая формула $\frac{1}{\epsilon^*}=\frac{1}{\epsilon_\infty}-\frac{1}{\epsilon_0}$. Внутритекстовая формула в стиле выделенной $\dfrac{1}{\epsilon_\infty}$. -Ссылки на литературу~\cite{Efros-FTP16-82-1209,Yoffe-AP42-93-173,Kayanuma-PRB38-88-9797}. +Ссылки на литературу~\cite{Efros-1982-FTP16-82-1209,Yoffe-1993-AP-42-173,Kayanuma-1988-PRB-38-9797}. Ссылка на формулу~\eqref{eq:e} \begin{equation}\label{eq:e} \vec P=\sqrt{\frac{N_0 m_r \Omega_{LO}}{4\pi\epsilon^*}}(\vec u_+ - \vec u_-). \end{equation} Ссылка на рис.~\ref{fig:f} -\begin{figure}[h] +\begin{figure}[!ht] \centering -\includegraphics{fig} +\includegraphics[width=4cm]{fig} \caption{\label{fig:f}% Подпись к рисунку. } \end{figure} -\begin{floatingfigure}{0.4\textwidth} +\begin{floatingfigure}{0.3\textwidth} \centering - \includegraphics{fig} + \includegraphics[width=4cm]{fig} \caption{\label{fig:ff}Рисунок <<в оборку>>.} \end{floatingfigure} -Если разность энергий электронно-дыроч\-ных уровней $E_2-E_1$ близка к энергии предельного оптического фонона $\hbar\Omega_{LO}$, то в разложении волновых функций полного гамильтониана можно ограничиться нулевым приближением для всех состояний, за исключением близких по значению к $E_2$. Волновые функции последних представляют собой следующие комбинации почти вырожденных состояний. +Если разность энергий электронно-дырочных уровней $E_2-E_1$ близка к энергии предельного оптического фонона $\hbar\Omega_{LO}$, то в разложении волновых функций полного гамильтониана можно ограничиться нулевым приближением для всех состояний, за исключением близких по значению к $E_2$. Волновые функции последних представляют собой следующие комбинации почти вырожденных состояний. Ссылка на таблицу~\ref{tab:t1}. -\begin{table}[h] +\begin{table}[!ht] \centering \caption{Пример таблицы}\label{tab:t1} \vskip1.em @@ -41,18 +41,51 @@ \end{tabular} \end{table} -\begin{figure}[h] +\begin{figure}[!ht] \centering - \subfigure[]{\includegraphics{fig}\label{fig:sub1}}\quad - \subfigure[]{\includegraphics{fig}\label{fig:sub2}}\quad - \subfigure[]{\includegraphics{fig}\label{fig:sub3}} - \caption{Подчиненная нумерация рисунков: - \subref{fig:sub1} ссылка 1, - \subref{fig:sub2} ссылка 2, - \subref{fig:sub3} ссылка 3. - } + \begin{minipage}{5cm} + \centering + \includegraphics[width=4cm]{fig} + \caption{Рисунок с отдельным названием} + \end{minipage} + \quad + \begin{minipage}{5cm} + \centering + \includegraphics[width=4cm]{fig} + \caption{Рисунок с отдельным названием} + \end{minipage} + \quad + \begin{minipage}{5cm} + \centering + \includegraphics[width=4cm]{fig} + \caption{Рисунок с отдельным названием} + \end{minipage} \end{figure} + +\begin{figure}[!ht] +\centering + \begin{minipage}{5cm} + \centering + \includegraphics[width=4cm]{fig} + \end{minipage} + \quad + \begin{minipage}{5cm} + \centering + \includegraphics[width=4cm]{fig} + \end{minipage} + \caption{Рисунки с единым названием} +\end{figure} + Ссылка на внутренний рисунок (рис.~\ref{fig:sub1}) + +\begin{figure}[!ht] +\centering + \subfloat[][]{\label{fig:sub1}\includegraphics[width=4cm]{fig}}\quad + \subfloat[][]{\label{fig:sub2}\includegraphics[width=4cm]{fig}}\quad + \subfloat[][]{\label{fig:sub3}\includegraphics[width=4cm]{fig}} +\caption{Рисунки с единым названием и подчинённой нумерацией} +\end{figure} + \subsection{Название подсекции} Текст подсекции \subsubsection{Название подподсекции} diff --git a/Master/texmf-dist/doc/latex/disser/templates/bachelor/nomake.cmd b/Master/texmf-dist/doc/latex/disser/templates/bachelor/nomake.cmd index 8ed500ecaa6..47506aac7c5 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/bachelor/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/templates/bachelor/nomake.cmd @@ -32,6 +32,7 @@ set arc=rar set arcflags=a -r -x%target%.pdf -x%target%.prj set tex=%texmf%\miktex\bin\latex +set pdftex=%texmf%\miktex\bin\pdflatex set texflags=-src-specials set bibtex=%texmf%\miktex\bin\bibtex8 @@ -54,6 +55,7 @@ set suffix=$$ if %1/==/ ( :make + chcp 1251 %tex% %target%.tex %bibtex% %bibtexflags% %target% %tex% %target%.tex @@ -65,13 +67,17 @@ if %1/==/ goto :eof if %1/==pdf/ ( :pdf - set tex=pdflatex - call :make + chcp 1251 + %pdftex% %target%.tex + %bibtex% %bibtexflags% %target% + %pdftex% %target%.tex + %pdftex% %texflags% %target%.tex +goto :eof ) +rem Make source distribution if %1/==srcdist/ ( :srcdist - echo Making source distribution... if not exist %clsdir% mkdir %clsdir% xcopy %clssrc% %clsdir% /S xcopy %bstsrc%\%bstfile% . /S @@ -96,9 +102,9 @@ if %1/==cleansvn/ ( goto :end ) +rem Fix bounding boxes of EPS files if %1/==fixbb/ ( :fixbb - echo Fixing bounding boxes of EPS files... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :fix %%n goto :end :fix @@ -108,9 +114,9 @@ goto :end goto :eof ) +rem Convert EPS to PDF if %1/==epstopdf/ ( :epstopdf - echo Converting EPS to PDF... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :conv %%n goto :end :conv @@ -143,13 +149,6 @@ if %1/==djvu/ ( %pdftodjvu% %pdftodjvuflags% %target%.pdf goto :end ) -rem Create OCRed DjVu file -if %1/==ocr/ ( -:ocr - if not exist %target%.djvu call :djvu - %djvuocr% %djvuocrflags% %target%.djvu %target%-ocr.djvu -goto :end -) rem Create backup if %1/==backup/ ( :backup @@ -158,6 +157,7 @@ if %1/==backup/ ( goto :end ) +if %1/ neq / (echo Don't know how to make %1 ) :end shift & goto :start diff --git a/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.bib b/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.bib index a85ee17ba6f..0b1c94af0dc 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.bib +++ b/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.bib @@ -1,4 +1,4 @@ -@ARTICLE{Yoffe-AP42-93-173, +@ARTICLE{Yoffe-1993-AP-42-173, Author = {A. D. Yoffe}, Journal = {Adv. Phys.}, Pages = {173}, @@ -6,7 +6,7 @@ Year = {1993} } -@ARTICLE{Kayanuma-PRB38-88-9797, +@ARTICLE{Kayanuma-1988-PRB-38-9797, Author = {Y. Kayanuma}, Journal = {Phys. Rev. B}, Pages = {9797}, @@ -14,7 +14,7 @@ Year = {1988} } -@ARTICLE{Efros-FTP16-82-1209, +@ARTICLE{Efros-1982-FTP16-82-1209, Author = {Ал. Л. Эфрос and А. Л. Эфрос}, Journal = {Физика и техника полупроводников}, Pages = {1209}, diff --git a/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.tex b/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.tex index d275587edb5..3cb15edc17f 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.tex +++ b/Master/texmf-dist/doc/latex/disser/templates/bachelor/thesis.tex @@ -50,6 +50,6 @@ \input{concl} % ---------------------------------------------------------------- \bibliography{thesis} -\bibliographystyle{disser} +\bibliographystyle{gost71u} \end{document} % ---------------------------------------------------------------- diff --git a/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd b/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd index 8ed500ecaa6..902f2a22ab2 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/templates/candidate/nomake.cmd @@ -32,6 +32,7 @@ set arc=rar set arcflags=a -r -x%target%.pdf -x%target%.prj set tex=%texmf%\miktex\bin\latex +set pdftex=%texmf%\miktex\bin\pdflatex set texflags=-src-specials set bibtex=%texmf%\miktex\bin\bibtex8 @@ -54,6 +55,7 @@ set suffix=$$ if %1/==/ ( :make + chcp 1251 %tex% %target%.tex %bibtex% %bibtexflags% %target% %tex% %target%.tex @@ -65,13 +67,17 @@ if %1/==/ goto :eof if %1/==pdf/ ( :pdf - set tex=pdflatex - call :make + chcp 1251 + %pdftex% %target%.tex + %bibtex% %bibtexflags% %target% + %pdftex% %target%.tex + %pdftex% %texflags% %target%.tex +goto :eof ) +rem Make source distribution if %1/==srcdist/ ( :srcdist - echo Making source distribution... if not exist %clsdir% mkdir %clsdir% xcopy %clssrc% %clsdir% /S xcopy %bstsrc%\%bstfile% . /S @@ -96,9 +102,9 @@ if %1/==cleansvn/ ( goto :end ) +rem Fix bounding boxes of EPS files if %1/==fixbb/ ( :fixbb - echo Fixing bounding boxes of EPS files... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :fix %%n goto :end :fix @@ -108,9 +114,9 @@ goto :end goto :eof ) +rem Convert EPS to PDF if %1/==epstopdf/ ( :epstopdf - echo Converting EPS to PDF... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :conv %%n goto :end :conv @@ -143,13 +149,6 @@ if %1/==djvu/ ( %pdftodjvu% %pdftodjvuflags% %target%.pdf goto :end ) -rem Create OCRed DjVu file -if %1/==ocr/ ( -:ocr - if not exist %target%.djvu call :djvu - %djvuocr% %djvuocrflags% %target%.djvu %target%-ocr.djvu -goto :end -) rem Create backup if %1/==backup/ ( :backup @@ -158,6 +157,7 @@ if %1/==backup/ ( goto :end ) +echo Don't know how to make %1 :end shift & goto :start diff --git a/Master/texmf-dist/doc/latex/disser/templates/candidate/thesis.bib b/Master/texmf-dist/doc/latex/disser/templates/candidate/thesis.bib index a85ee17ba6f..0b1c94af0dc 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/candidate/thesis.bib +++ b/Master/texmf-dist/doc/latex/disser/templates/candidate/thesis.bib @@ -1,4 +1,4 @@ -@ARTICLE{Yoffe-AP42-93-173, +@ARTICLE{Yoffe-1993-AP-42-173, Author = {A. D. Yoffe}, Journal = {Adv. Phys.}, Pages = {173}, @@ -6,7 +6,7 @@ Year = {1993} } -@ARTICLE{Kayanuma-PRB38-88-9797, +@ARTICLE{Kayanuma-1988-PRB-38-9797, Author = {Y. Kayanuma}, Journal = {Phys. Rev. B}, Pages = {9797}, @@ -14,7 +14,7 @@ Year = {1988} } -@ARTICLE{Efros-FTP16-82-1209, +@ARTICLE{Efros-1982-FTP16-82-1209, Author = {Ал. Л. Эфрос and А. Л. Эфрос}, Journal = {Физика и техника полупроводников}, Pages = {1209}, diff --git a/Master/texmf-dist/doc/latex/disser/templates/doctor/nomake.cmd b/Master/texmf-dist/doc/latex/disser/templates/doctor/nomake.cmd index 8ed500ecaa6..902f2a22ab2 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/doctor/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/templates/doctor/nomake.cmd @@ -32,6 +32,7 @@ set arc=rar set arcflags=a -r -x%target%.pdf -x%target%.prj set tex=%texmf%\miktex\bin\latex +set pdftex=%texmf%\miktex\bin\pdflatex set texflags=-src-specials set bibtex=%texmf%\miktex\bin\bibtex8 @@ -54,6 +55,7 @@ set suffix=$$ if %1/==/ ( :make + chcp 1251 %tex% %target%.tex %bibtex% %bibtexflags% %target% %tex% %target%.tex @@ -65,13 +67,17 @@ if %1/==/ goto :eof if %1/==pdf/ ( :pdf - set tex=pdflatex - call :make + chcp 1251 + %pdftex% %target%.tex + %bibtex% %bibtexflags% %target% + %pdftex% %target%.tex + %pdftex% %texflags% %target%.tex +goto :eof ) +rem Make source distribution if %1/==srcdist/ ( :srcdist - echo Making source distribution... if not exist %clsdir% mkdir %clsdir% xcopy %clssrc% %clsdir% /S xcopy %bstsrc%\%bstfile% . /S @@ -96,9 +102,9 @@ if %1/==cleansvn/ ( goto :end ) +rem Fix bounding boxes of EPS files if %1/==fixbb/ ( :fixbb - echo Fixing bounding boxes of EPS files... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :fix %%n goto :end :fix @@ -108,9 +114,9 @@ goto :end goto :eof ) +rem Convert EPS to PDF if %1/==epstopdf/ ( :epstopdf - echo Converting EPS to PDF... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :conv %%n goto :end :conv @@ -143,13 +149,6 @@ if %1/==djvu/ ( %pdftodjvu% %pdftodjvuflags% %target%.pdf goto :end ) -rem Create OCRed DjVu file -if %1/==ocr/ ( -:ocr - if not exist %target%.djvu call :djvu - %djvuocr% %djvuocrflags% %target%.djvu %target%-ocr.djvu -goto :end -) rem Create backup if %1/==backup/ ( :backup @@ -158,6 +157,7 @@ if %1/==backup/ ( goto :end ) +echo Don't know how to make %1 :end shift & goto :start diff --git a/Master/texmf-dist/doc/latex/disser/templates/doctor/thesis.bib b/Master/texmf-dist/doc/latex/disser/templates/doctor/thesis.bib index a85ee17ba6f..0b1c94af0dc 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/doctor/thesis.bib +++ b/Master/texmf-dist/doc/latex/disser/templates/doctor/thesis.bib @@ -1,4 +1,4 @@ -@ARTICLE{Yoffe-AP42-93-173, +@ARTICLE{Yoffe-1993-AP-42-173, Author = {A. D. Yoffe}, Journal = {Adv. Phys.}, Pages = {173}, @@ -6,7 +6,7 @@ Year = {1993} } -@ARTICLE{Kayanuma-PRB38-88-9797, +@ARTICLE{Kayanuma-1988-PRB-38-9797, Author = {Y. Kayanuma}, Journal = {Phys. Rev. B}, Pages = {9797}, @@ -14,7 +14,7 @@ Year = {1988} } -@ARTICLE{Efros-FTP16-82-1209, +@ARTICLE{Efros-1982-FTP16-82-1209, Author = {Ал. Л. Эфрос and А. Л. Эфрос}, Journal = {Физика и техника полупроводников}, Pages = {1209}, diff --git a/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk b/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk index a3e37c98505..123cad7674e 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk +++ b/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk @@ -18,14 +18,10 @@ fixbb: *.eps echo "OK" ;\ done -pdf: *.eps - @echo -e "\nConverting figures to PDF...\n" - @for f in *.eps ; \ - do \ - echo -n "$$f..." ;\ - epstopdf $$f ;\ - echo "OK" ;\ - done +pdf: $(patsubst %.eps, %.pdf, $(wildcard *.eps)) + +%.pdf: %.eps + epstopdf "$<" clean: rm -f *.pdf diff --git a/Master/texmf-dist/doc/latex/disser/templates/latex.mk b/Master/texmf-dist/doc/latex/disser/templates/latex.mk index 1add498387b..8c1927f8f11 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/latex.mk +++ b/Master/texmf-dist/doc/latex/disser/templates/latex.mk @@ -56,7 +56,6 @@ help: $(TARGET).dvi: $(SRC) $(TEX) $(TEXFLAGS) $(TARGET).tex $(BIBTEX) $(BIBTEXFLAGS) $(TARGET) ;\ - $(TEX) $(TEXFLAGS) $(TARGET).tex counter=3 ; \ while egrep -s 'Rerun (LaTeX|to get)' $(TARGET).log && [ $$counter -gt 0 ] ;\ do \ @@ -71,8 +70,8 @@ $(TARGET).pdf: $(SRC) @$(MAKE) -C fig fixbb pdf $(PDFLATEX) $(TARGET).tex $(BIBTEX) $(BIBTEXFLAGS) $(TARGET) ;\ - $(PDFLATEX) $(TARGET).tex counter=3 ; \ + echo "counter=$counter" ; \ while egrep -s 'Rerun (LaTeX|to get)' $(TARGET).log && [ $$counter -gt 0 ] ;\ do \ $(PDFLATEX) $(TARGET).tex ;\ diff --git a/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd b/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd index 8ed500ecaa6..902f2a22ab2 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/templates/master/nomake.cmd @@ -32,6 +32,7 @@ set arc=rar set arcflags=a -r -x%target%.pdf -x%target%.prj set tex=%texmf%\miktex\bin\latex +set pdftex=%texmf%\miktex\bin\pdflatex set texflags=-src-specials set bibtex=%texmf%\miktex\bin\bibtex8 @@ -54,6 +55,7 @@ set suffix=$$ if %1/==/ ( :make + chcp 1251 %tex% %target%.tex %bibtex% %bibtexflags% %target% %tex% %target%.tex @@ -65,13 +67,17 @@ if %1/==/ goto :eof if %1/==pdf/ ( :pdf - set tex=pdflatex - call :make + chcp 1251 + %pdftex% %target%.tex + %bibtex% %bibtexflags% %target% + %pdftex% %target%.tex + %pdftex% %texflags% %target%.tex +goto :eof ) +rem Make source distribution if %1/==srcdist/ ( :srcdist - echo Making source distribution... if not exist %clsdir% mkdir %clsdir% xcopy %clssrc% %clsdir% /S xcopy %bstsrc%\%bstfile% . /S @@ -96,9 +102,9 @@ if %1/==cleansvn/ ( goto :end ) +rem Fix bounding boxes of EPS files if %1/==fixbb/ ( :fixbb - echo Fixing bounding boxes of EPS files... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :fix %%n goto :end :fix @@ -108,9 +114,9 @@ goto :end goto :eof ) +rem Convert EPS to PDF if %1/==epstopdf/ ( :epstopdf - echo Converting EPS to PDF... for /f "usebackq" %%n in (`dir *.eps /s /b`) do call :conv %%n goto :end :conv @@ -143,13 +149,6 @@ if %1/==djvu/ ( %pdftodjvu% %pdftodjvuflags% %target%.pdf goto :end ) -rem Create OCRed DjVu file -if %1/==ocr/ ( -:ocr - if not exist %target%.djvu call :djvu - %djvuocr% %djvuocrflags% %target%.djvu %target%-ocr.djvu -goto :end -) rem Create backup if %1/==backup/ ( :backup @@ -158,6 +157,7 @@ if %1/==backup/ ( goto :end ) +echo Don't know how to make %1 :end shift & goto :start diff --git a/Master/texmf-dist/doc/latex/disser/templates/master/thesis.bib b/Master/texmf-dist/doc/latex/disser/templates/master/thesis.bib index a85ee17ba6f..0b1c94af0dc 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/master/thesis.bib +++ b/Master/texmf-dist/doc/latex/disser/templates/master/thesis.bib @@ -1,4 +1,4 @@ -@ARTICLE{Yoffe-AP42-93-173, +@ARTICLE{Yoffe-1993-AP-42-173, Author = {A. D. Yoffe}, Journal = {Adv. Phys.}, Pages = {173}, @@ -6,7 +6,7 @@ Year = {1993} } -@ARTICLE{Kayanuma-PRB38-88-9797, +@ARTICLE{Kayanuma-1988-PRB-38-9797, Author = {Y. Kayanuma}, Journal = {Phys. Rev. B}, Pages = {9797}, @@ -14,7 +14,7 @@ Year = {1988} } -@ARTICLE{Efros-FTP16-82-1209, +@ARTICLE{Efros-1982-FTP16-82-1209, Author = {Ал. Л. Эфрос and А. Л. Эфрос}, Journal = {Физика и техника полупроводников}, Pages = {1209}, diff --git a/Master/texmf-dist/doc/latex/disser/templates/nomake.cmd b/Master/texmf-dist/doc/latex/disser/templates/nomake.cmd index 64de24ccfb2..ac159d29bc2 100644 --- a/Master/texmf-dist/doc/latex/disser/templates/nomake.cmd +++ b/Master/texmf-dist/doc/latex/disser/templates/nomake.cmd @@ -1,4 +1,4 @@ @echo off set subdirs=bachelor ..\master ..\candidate ..\doctor -for %%i in (%subdirs%) do cd %%i & nomake %1 \ No newline at end of file +for %%i in (%subdirs%) do cd %%i & nomake %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file diff --git a/Master/texmf-dist/source/latex/disser/Makefile b/Master/texmf-dist/source/latex/disser/Makefile index 2932ead94ab..222a4f34bbe 100644 --- a/Master/texmf-dist/source/latex/disser/Makefile +++ b/Master/texmf-dist/source/latex/disser/Makefile @@ -1,19 +1,30 @@ TARGET=disser TEXMF=/usr/share/texmf -DESTDIR=$(TEXMF)/tex/latex/disser -INSTFILES=$(TARGET).cls *.rtx -CLEANFILES=$(INSTFILES) *.log *.out *.aux *.dvi *.idx *.glo *.toc *.bak +DESTDIR=$(TEXMF)/tex/latex/$(TARGET) +DOCDIR=$(TEXMF)/doc/latex/$(TARGET) -$(TARGET).cls: $(TARGET).ins - latex $< +LATEX=latex -install: $(TARGET).cls +INSTFILES=*.cls *.rtx +DOCFILES=$(TARGET).dvi +CLEANFILES=$(INSTFILES) *.log *.out *.aux *.dvi *.idx *.glo *.toc *.bak *.bbl *.blg + +all: *.cls doc + +install: all mkdir -p $(DESTDIR) + mkdir -p $(DOCDIR) cp $(INSTFILES) $(DESTDIR) + cp $(DOCFILES) $(DOCDIR) + +%.cls: %.ins + $(LATEX) $< + +doc: $(TARGET).dvi -doc: $(TARGET).dtx - latex $< - latex -src-specials $< +$(TARGET).dvi: $(TARGET).dtx + $(LATEX) $< + $(LATEX) -src-specials $< clean: rm -f $(CLEANFILES) diff --git a/Master/texmf-dist/source/latex/disser/candidate.dtx b/Master/texmf-dist/source/latex/disser/candidate.dtx index 89fcb0bf41f..3c9febe209f 100644 --- a/Master/texmf-dist/source/latex/disser/candidate.dtx +++ b/Master/texmf-dist/source/latex/disser/candidate.dtx @@ -3,7 +3,7 @@ %<*candidate> % \end{macrocode} % \subsubsection{Титульный лист кандидатской диссертации} -% +% % Вертикальные интервалы между элементами титульного листа. % \begin{macrocode} \def\firstskip{\vskip1cm} @@ -29,7 +29,7 @@ % \end{macrocode} % Номер УДК % \begin{macrocode} - {\libcatname\;\@libcatnum} + {\libcatname\ \@libcatnum} \end{flushright} \begin{center} % \end{macrocode} @@ -46,7 +46,7 @@ % Шифр и наименование специальности % \begin{macrocode} \fourthskip - {\specfont\@specnum~--\;\@spec} + {\specfont\@specnum~--\ \@spec} % \end{macrocode} % Диссертация на соискание ученой степени... % \begin{macrocode} diff --git a/Master/texmf-dist/source/latex/disser/chapter.dtx b/Master/texmf-dist/source/latex/disser/chapter.dtx index d85b16a6c66..6739437674e 100644 --- a/Master/texmf-dist/source/latex/disser/chapter.dtx +++ b/Master/texmf-dist/source/latex/disser/chapter.dtx @@ -30,6 +30,8 @@ \providecommand\prechapter{} \providecommand\postchapter{\par\nobreak\vskip 20\p@} +\def\chapterpagestyle#1{\gdef\@chapterpagestyle{#1}}\chapterpagestyle{plain} + % \end{macrocode} % Параметры формата заголовка Приложения. % \begin{macrocode} @@ -60,7 +62,7 @@ \else \clearpage \fi - \thispagestyle{plain}% + \thispagestyle{\@chapterpagestyle}% \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter @@ -223,7 +225,8 @@ % \end{macrocode} % Команда для создания ненумеруемых глав, которые будут включены в % Содержание и PDF-закладки. Для того, чтобы закладка указывала именно на -% заголовок, а не на первый абзац под ним, нужно поместить |\phantomchapter| % и |\addcontentsline| внутри аргумента |\chapter*|. Честно говоря, мне это +% заголовок, а не на первый абзац под ним, нужно поместить |\phantomchapter| +% и |\addcontentsline| внутри аргумента |\chapter*|. Честно говоря, мне это % не нравится. Надо придумать что-то более простое и изящное. % \begin{macrocode} \newcommand\nchapter[1]{% @@ -233,5 +236,41 @@ \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}} } } + +% \end{macrocode} +% \subsubsection{Определения ненумеруемых глав, входящих в Содержание} +% \begin{itemize} +% +% \item Содержание +% \begin{macrocode} +\def\newcontentsname{\cyr\CYRS\cyro\cyrd\cyre\cyrr\cyrzh\cyra\cyrn\cyri\cyre} + +% \end{macrocode} +% \item Введение +% \begin{macrocode} +\def\introname{{\cyr\CYRV\cyrv\cyre\cyrd\cyre\cyrn\cyri\cyre}} +\newcommand\intro{\nchapter{\introname}} +% \end{macrocode} +% \item Заключение +% \begin{macrocode} +\def\conclusionname{% +{\cyr\CYRZ\cyra\cyrk\cyrl\cyryu\cyrch\cyre\cyrn\cyri\cyre} +} +\newcommand\conclusion{\nchapter{\conclusionname}} +% \end{macrocode} +% \item Используемые обозначения +% \end{itemize} +% \begin{macrocode} +\def\defsname{% +{\cyr\CYRI\cyrs\cyrp\cyro\cyrl\cyrsftsn\cyrz\cyru\cyre\cyrm\cyrery\cyre\ % +\cyro\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri\cyrya} +} +\newcommand\defs{\nchapter{\defsname}} +% +% Обзор литературы +% \begin{macrocode} +\def\reviewname{\cyr\CYRO\cyrb\cyrz\cyro\cyrr\ % +\cyrl\cyri\cyrt\cyre\cyrr\cyra\cyrt\cyru\cyrr\cyrery} +\newcommand\review{\nchapter{\reviewname}} % % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/disser/custom.dtx b/Master/texmf-dist/source/latex/disser/custom.dtx index b5595a2e0d0..072fe00fa2d 100644 --- a/Master/texmf-dist/source/latex/disser/custom.dtx +++ b/Master/texmf-dist/source/latex/disser/custom.dtx @@ -84,7 +84,9 @@ \pdfcompresslevel = 9 \fi \usepackage[pdftex]{graphicx} - \usepackage{cmap} + \IfFileExists{cmap.sty}{% + \usepackage{cmap} + }{} \else % \end{macrocode} % \item для \LaTeX{} @@ -102,28 +104,18 @@ % \begin{macrocode} \usepackage[rflt]{floatflt} % \end{macrocode} -% Пакет для вложенной нумерации объектов (например, 1.а) +% \paragraph{Пакет для вложенной нумерации плавающих объектов} % \begin{macrocode} \ifsubf - \usepackage[normalsize]{subfigure} + \usepackage[config,font=small,labelsep=period]{caption,subfig} % \end{macrocode} -% Формат постоянной части подписи для плавающих объектов с вложенной -% нумерацией. +% Формат счетчика. % \begin{macrocode} - \renewcommand*\@thesubfigure{\small\textit{\asbuk{subfigure}})} + \def\thesubfigure{\textit{\asbuk{subfigure}}} % \end{macrocode} -% Формат ссылки (через |\subref|). +% Формат ссылки через |\ref|. % \begin{macrocode} - \renewcommand*\@@thesubfigure{\textit{\asbuk{subfigure}})} -% \end{macrocode} -% Формат ссылки (через |\ref|). -% \begin{macrocode} - \renewcommand*\thesubfigure{,~\textit{\asbuk{subfigure}}} -% \end{macrocode} -% Еще раз формат метки (нужно указать два раза из-за странной ошибки в пакете -% |subfigure|). -% \begin{macrocode} - \renewcommand*\@thesubfigure{\small\textit{\asbuk{subfigure}})} + \def\p@subfigure{\thefigure, } \fi % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/disser/disser.dtx b/Master/texmf-dist/source/latex/disser/disser.dtx index 2e6adff6c7b..085d8a80736 100644 --- a/Master/texmf-dist/source/latex/disser/disser.dtx +++ b/Master/texmf-dist/source/latex/disser/disser.dtx @@ -3,7 +3,7 @@ %% %% disser -- LaTeX document class for dissertations. %% -%% Copyright (c) 2004-2006 Stanislav Kruchinin +%% Copyright (c) 2004-2007 Stanislav Kruchinin %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -28,10 +28,10 @@ \usepackage[english,russian]{babel} \usepackage[unicode, - pdftitle = {Documentation for the disser package}, + pdftitle = {Documented source code of the disser package}, pdfauthor = {Stanislav Kruchinin}, pdfsubject = {disser}, - pdfstartview = {FitH}, + pdfstartview = {FitH}, pdfborder = {0 0 0}, bookmarksopen = true, bookmarksnumbered = true, @@ -45,7 +45,7 @@ \renewcommand\ttdefault{cmtt} \renewcommand\rmdefault{ftm} }{} -\usepackage{tabularx,doc} +\usepackage{doc} \IfFileExists{url.sty}{\RequirePackage{url}}{\newcommand\url{\texttt}} \hypersetup{ @@ -90,7 +90,7 @@ % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% \def\fileversion{1.0.2} +% \def\fileversion{1.0.3} % % \title{|disser| "--- класс \LaTeX{} для оформления диссертаций} % \author{Станислав Кручинин\\[6pt] @@ -125,7 +125,7 @@ % \begin{macrocode} %\NeedsTeXFormat{LaTeX2e} -%\ProvidesClass{disser}[2006/09/06 Document class for dissertations.] +%\ProvidesClass{disser}[2007/06/15 Document class for dissertations.] %\ProvidesPackage{disser} %\ProvidesFile{bachelor.rtx} diff --git a/Master/texmf-dist/source/latex/disser/floats.dtx b/Master/texmf-dist/source/latex/disser/floats.dtx index f989fbd24cb..7268a644f21 100644 --- a/Master/texmf-dist/source/latex/disser/floats.dtx +++ b/Master/texmf-dist/source/latex/disser/floats.dtx @@ -30,7 +30,7 @@ % \DescribeMacro{\captionlabelfont} % Шрифт метки. % \begin{macrocode} -\newcommand\captionlabelfont{\small\bfseries\selectfont} +\newcommand\captionlabelfont{\small\selectfont} % \end{macrocode} % \DescribeMacro{\@makecaption} % Формат подписи. @@ -48,7 +48,10 @@ } % \end{macrocode} -% Рисунок. +% +% \subsection{Рисунок} +% +% Формат номера. % \begin{macrocode} \renewcommand\thefigure{\ifnum \c@chapter>\z@\thechapter.\fi\@arabic\c@figure} diff --git a/Master/texmf-dist/source/latex/disser/gost732.dtx b/Master/texmf-dist/source/latex/disser/gost732.dtx index 9e6ed3dbaa0..984af148791 100644 --- a/Master/texmf-dist/source/latex/disser/gost732.dtx +++ b/Master/texmf-dist/source/latex/disser/gost732.dtx @@ -7,9 +7,9 @@ % 7.32-2001} % % Насколько известно автору, на данный момент отсутствуют какие-либо ГОСТы, -% регламентирующие структуру и правила оформления диссертаций. Наиболее -% подходящим среди существующих стандартов следует считать ГОСТ 7.32-2001 -% <<Отчет о научно-исследовательской работе>>, реализованный в настоящем +% регламентирующие структуру и правила оформления диссертаций. Наиболее +% подходящим среди существующих стандартов следует считать ГОСТ 7.32-2001 +% <<Отчет о научно-исследовательской работе>>, реализованный в настоящем % классе. % % \begin{macrocode} diff --git a/Master/texmf-dist/source/latex/disser/master.dtx b/Master/texmf-dist/source/latex/disser/master.dtx index db5c8bafd99..0d6107e39b2 100644 --- a/Master/texmf-dist/source/latex/disser/master.dtx +++ b/Master/texmf-dist/source/latex/disser/master.dtx @@ -50,8 +50,8 @@ % % Выполнил студент гр. номер... % \begin{macrocode} - \studentlabel\;\groupname\;\@group\hspace{2cm}\= - \makebox[8.5cm][l]{\hrulefill\;\@author} + \studentlabel\ \groupname\ \@group\hspace{2cm}\= + \makebox[8.5cm][l]{\hrulefill\ \@author} \\[9pt] % \end{macrocode} % diff --git a/Master/texmf-dist/source/latex/disser/page.dtx b/Master/texmf-dist/source/latex/disser/page.dtx index 5002679d69b..c17b6edf331 100644 --- a/Master/texmf-dist/source/latex/disser/page.dtx +++ b/Master/texmf-dist/source/latex/disser/page.dtx @@ -1,39 +1,6 @@ % \begin{macrocode} %<*page> -% \end{macrocode} -% -% \subsection{Параметры страниц} -% -% Интервал между колонками текста. -% \begin{macrocode} -\setlength\columnsep{10\p@} -% \end{macrocode} -% -% Ширина разделителя (линии) между колонками текста (по умолчанию его нет). -% \begin{macrocode} -\setlength\columnseprule{0\p@} -% \end{macrocode} -% Стиль оформления колонтитулов страницы. -% \begin{macrocode} -\pagestyle{plain} -% \end{macrocode} -% Стиль нумерации страниц. -% \begin{macrocode} -\pagenumbering{arabic} -% \end{macrocode} -% Для односторонних документов разрешается делать страницы с разной высотой -% текста. -% \begin{macrocode} -\if@twoside\else\raggedbottom\fi -% \end{macrocode} -% Для двухколоночных документов: -% |\flushbottom| запрещает делать страницы с разной высотой текста, -% |\sloppy| включает менее жесткие ограничения на разрывы строк. -% \begin{macrocode} -\if@twocolumn\twocolumn\sloppy\flushbottom -\else\onecolumn\fi - % \end{macrocode} % % \subsection{Определение стилей страниц} @@ -50,34 +17,38 @@ % \begin{itemize} % \item Колонтитулы: % \begin{itemize} -% \item на нечетных страницах снизу. +% \item нижний на четных страницах. +% \begin{macrocode} + \let\@evenfoot\@empty +% \end{macrocode} +% \item нижний на нечетных страницах. % \begin{macrocode} - \let\@oddfoot\@empty\let\@evenfoot\@empty + \let\@oddfoot\@empty % \end{macrocode} -% \item на четных страницах сверху. +% \item верхний на четных страницах. % \begin{macrocode} - \def\@evenhead{\thepage\hfil\slshape\leftmark}% + \def\@evenhead{\thepage\hfil\evenheadfont\leftmark}% % \end{macrocode} -% \item на нечетных страницах сверху. +% \item верхний на нечетных страницах. % \begin{macrocode} - \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \def\@oddhead{{\oddheadfont\rightmark}\hfil\thepage}% \let\@mkboth\markboth % \end{macrocode} % \end{itemize} -% \item Постоянная часть заголовка главы. +% \item Формат заголовков глав в колонтитулах. % \begin{macrocode} \def\chaptermark##1{% - \markboth{\textsc{% + \markboth{{\chaptermarkfont % \ifnum \c@secnumdepth >\m@ne \@tocseccntformat{chapter} \ % \fi ##1}}{}% }% % \end{macrocode} -% \item Постоянная часть заголовка секции. +% \item Формат заголовков секций в колонтитулах. % \begin{macrocode} \def\sectionmark##1{% - \markright{\MakeUppercase{% + \markright{{\sectionmarkfont % \ifnum \c@secnumdepth >\z@ \@tocseccntformat{section}% \fi @@ -107,7 +78,7 @@ % \item Формат маркера главы. % \begin{macrocode} \def\chaptermark##1{% - \markright {\textsc{% + \markright {{\chaptermarkfont % \ifnum\c@secnumdepth >\m@ne \@tocseccntformat{chapter} \ % \fi @@ -116,8 +87,7 @@ % \item Формат маркера секции. % \begin{macrocode} \def\sectionmark##1{% - \markright{ - \MakeUppercase{ + \markright{{\sectionmarkfont % \ifnum \c@secnumdepth >\z@ \@tocseccntformat{section} \ % \fi @@ -136,11 +106,73 @@ % \begin{macrocode} \def\ps@myheadings{% \let\@oddfoot\@empty\let\@evenfoot\@empty - \def\@evenhead{\thepage\hfil\slshape\leftmark}% - \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \def\@evenhead{\thepage\hfil\evenheadfont\leftmark}% + \def\@oddhead{{\oddheadfont\rightmark}\hfil\thepage}% \let\@mkboth\@gobbletwo \let\chaptermark\@gobble \let\sectionmark\@gobble } +% \end{macrocode} +% \subsection{Параметры страниц} +% +% Интервал между колонками текста. +% \begin{macrocode} +\setlength\columnsep{10\p@} +% \end{macrocode} +% +% Ширина разделителя (линии) между колонками текста (по умолчанию его нет). +% \begin{macrocode} +\setlength\columnseprule{0\p@} +% \end{macrocode} +% Стиль оформления колонтитулов страницы. +% \begin{macrocode} +\pagestyle{plain} +% \end{macrocode} +% Стиль нумерации страниц. +% \begin{macrocode} +\pagenumbering{arabic} +% \end{macrocode} +% Для односторонних документов разрешается делать страницы с разной высотой +% текста. +% \begin{macrocode} +\if@twoside\else\raggedbottom\fi +% \end{macrocode} +% Для двухколоночных документов: +% |\flushbottom| запрещает делать страницы с разной высотой текста, +% |\sloppy| включает менее жесткие ограничения на разрывы строк. +% \begin{macrocode} +\if@twocolumn\twocolumn\sloppy\flushbottom +\else\onecolumn\fi +% \end{macrocode} +% \DescribeMacro{\evenheadfont} +% \DescribeMacro{\evenfootfont} +% \DescribeMacro{\oddheadfont} +% \DescribeMacro{\oddfootfont} +% Шрифт колонтитулов. +% \begin{itemize} +% \item Верхний, на четных страницах. +% \begin{macrocode} +\newcommand\evenheadfont{\slshape} +% \end{macrocode} +% \item Нижний, на четных страницах. +% \begin{macrocode} +\newcommand\evenfootfont{} +% \end{macrocode} +% \item Верхний, на нечетных страницах. +% \begin{macrocode} +\newcommand\oddheadfont{\slshape} +% \end{macrocode} +% \item Нижний, на нечетных страницах. +% \begin{macrocode} +\newcommand\oddfootfont{} +% \end{macrocode} +% \end{itemize} +% +% \DescribeMacro{\chaptermarkfont} +% \DescribeMacro{\sectionmarkfont} +% \begin{macrocode} +\newcommand\chaptermarkfont{\slshape} +\newcommand\sectionmarkfont{\MakeUppercase} + % % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/disser/part.dtx b/Master/texmf-dist/source/latex/disser/part.dtx index 59163401f16..da96ab70055 100644 --- a/Master/texmf-dist/source/latex/disser/part.dtx +++ b/Master/texmf-dist/source/latex/disser/part.dtx @@ -47,7 +47,7 @@ % \end{macrocode} % Стиль страницы, на которой расположен заголовок части. % \begin{macrocode} -\providecommand\partpagestyle{empty} +\def\partpagestyle#1{\gdef\@partpagestyle{#1}}\partpagestyle{empty} % \end{macrocode} % % Интерфейс. @@ -58,7 +58,7 @@ \else \clearpage \fi - \thispagestyle{\partpagestyle}% + \thispagestyle{\@partpagestyle}% \if@twocolumn \onecolumn \@tempswatrue diff --git a/Master/texmf-dist/source/latex/disser/sections.dtx b/Master/texmf-dist/source/latex/disser/sections.dtx index 8145b01a9be..22dd0dfe787 100644 --- a/Master/texmf-dist/source/latex/disser/sections.dtx +++ b/Master/texmf-dist/source/latex/disser/sections.dtx @@ -234,5 +234,12 @@ \newcommand\subparagraph{% \@startsection{subparagraph}{5}{\parindent}% {\presubparagraph}{\postsubparagraph}{\subparagraphfont\subparagraphalign}} + +% \end{macrocode} +% Команда для создания ненумеруемых секций, которые будут включены в Содержание. +% \begin{macrocode} +\newcommand\nsection[1]{% + \section*{\phantomsection\addcontentsline{toc}{section}{#1}#1} +} % % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/disser/titledefs.dtx b/Master/texmf-dist/source/latex/disser/titledefs.dtx index d8fd6d6d046..77c47e52c06 100644 --- a/Master/texmf-dist/source/latex/disser/titledefs.dtx +++ b/Master/texmf-dist/source/latex/disser/titledefs.dtx @@ -260,40 +260,5 @@ \newcommand\datefield[1][\number\year]{<<\rule[0pt]{1cm}{.5pt}\,>>% \rule[0pt]{3cm}{0.5pt}\ #1~\yearname} -% \end{macrocode} -% Определения ненумеруемых глав, входящих в Содержание: -% \begin{itemize} -% -% \item Содержание -% \begin{macrocode} -\def\newcontentsname{\cyr\CYRS\cyro\cyrd\cyre\cyrr\cyrzh\cyra\cyrn\cyri\cyre} - -% \end{macrocode} -% \item Введение -% \begin{macrocode} -\def\introname{{\cyr\CYRV\cyrv\cyre\cyrd\cyre\cyrn\cyri\cyre}} -\newcommand\intro{\nchapter{\introname}} -% \end{macrocode} -% \item Заключение -% \begin{macrocode} -\def\conclusionname{% -{\cyr\CYRZ\cyra\cyrk\cyrl\cyryu\cyrch\cyre\cyrn\cyri\cyre} -} -\newcommand\conclusion{\nchapter{\conclusionname}} -% \end{macrocode} -% \item Используемые обозначения -% \end{itemize} -% \begin{macrocode} -\def\defsname{% -{\cyr\CYRI\cyrs\cyrp\cyro\cyrl\cyrsftsn\cyrz\cyru\cyre\cyrm\cyrery\cyre\ % -\cyro\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri\cyrya} -} -\newcommand\defs{\nchapter{\defsname}} -% -% Обзор литературы -% \begin{macrocode} -\def\reviewname{\cyr\CYRO\cyrb\cyrz\cyro\cyrr\ % -\cyrl\cyri\cyrt\cyre\cyrr\cyra\cyrt\cyru\cyrr\cyrery} -\newcommand\review{\nchapter{\reviewname}} % % \end{macrocode} diff --git a/Master/texmf-dist/source/latex/disser/toc.dtx b/Master/texmf-dist/source/latex/disser/toc.dtx index bbe055dadcd..a4ce657af46 100644 --- a/Master/texmf-dist/source/latex/disser/toc.dtx +++ b/Master/texmf-dist/source/latex/disser/toc.dtx @@ -66,10 +66,10 @@ \else \@restonecolfalse \fi - \thispagestyle{empty} \chapter*{\contentsname% \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname} }% + \thispagestyle{empty} \@starttoc{toc}% \if@restonecol\twocolumn\fi \clearpage diff --git a/Master/texmf-dist/tex/latex/disser/candidate.rtx b/Master/texmf-dist/tex/latex/disser/candidate.rtx index 302b794a9f7..ae0173d2523 100644 --- a/Master/texmf-dist/tex/latex/disser/candidate.rtx +++ b/Master/texmf-dist/tex/latex/disser/candidate.rtx @@ -29,7 +29,7 @@ \begin{flushright} \firstskip \asmanuscriptname\\ - {\libcatname\;\@libcatnum} + {\libcatname\ \@libcatnum} \end{flushright} \begin{center} \secondskip @@ -37,7 +37,7 @@ \thirdskip {\topicfont\@topic\par} \fourthskip - {\specfont\@specnum~--\;\@spec} + {\specfont\@specnum~--\ \@spec} \fifthskip {\titlefont\@title} \end{center} diff --git a/Master/texmf-dist/tex/latex/disser/disser.cls b/Master/texmf-dist/tex/latex/disser/disser.cls index abe2c3e130e..13d25579cf1 100644 --- a/Master/texmf-dist/tex/latex/disser/disser.cls +++ b/Master/texmf-dist/tex/latex/disser/disser.cls @@ -27,7 +27,7 @@ %% %% disser -- LaTeX document class for dissertations. %% -%% Copyright (c) 2004-2006 Stanislav Kruchinin +%% Copyright (c) 2004-2007 Stanislav Kruchinin %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -44,7 +44,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{disser}[2006/09/06 Document class for dissertations.] +\ProvidesClass{disser}[2007/06/15 Document class for dissertations.] \ProvidesPackage{disser} @@ -341,14 +341,14 @@ \providecommand\prepart{} \providecommand\postpart{\par} -\providecommand\partpagestyle{empty} +\def\partpagestyle#1{\gdef\@partpagestyle{#1}}\partpagestyle{empty} \newcommand\part{ \if@openright \cleardoublepage \else \clearpage \fi - \thispagestyle{\partpagestyle}% + \thispagestyle{\@partpagestyle}% \if@twocolumn \onecolumn \@tempswatrue @@ -430,6 +430,8 @@ \providecommand\prechapter{} \providecommand\postchapter{\par\nobreak\vskip 20\p@} +\def\chapterpagestyle#1{\gdef\@chapterpagestyle{#1}}\chapterpagestyle{plain} + \providecommand\tocpretheappendix{\protect\appendixname~} \providecommand\tocposttheappendix{.\@postskip} \providecommand\tocappendixfill{\tocfill{.}} @@ -454,7 +456,7 @@ \else \clearpage \fi - \thispagestyle{plain}% + \thispagestyle{\@chapterpagestyle}% \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter @@ -598,6 +600,23 @@ } } +\def\newcontentsname{\cyr\CYRS\cyro\cyrd\cyre\cyrr\cyrzh\cyra\cyrn\cyri\cyre} + +\def\introname{{\cyr\CYRV\cyrv\cyre\cyrd\cyre\cyrn\cyri\cyre}} +\newcommand\intro{\nchapter{\introname}} +\def\conclusionname{% +{\cyr\CYRZ\cyra\cyrk\cyrl\cyryu\cyrch\cyre\cyrn\cyri\cyre} +} +\newcommand\conclusion{\nchapter{\conclusionname}} +\def\defsname{% +{\cyr\CYRI\cyrs\cyrp\cyro\cyrl\cyrsftsn\cyrz\cyru\cyre\cyrm\cyrery\cyre\ % +\cyro\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri\cyrya} +} +\newcommand\defs{\nchapter{\defsname}} +\def\reviewname{\cyr\CYRO\cyrb\cyrz\cyro\cyrr\ % +\cyrl\cyri\cyrt\cyre\cyrr\cyra\cyrt\cyru\cyrr\cyrery} +\newcommand\review{\nchapter{\reviewname}} + \providecommand\tocprethesection{} \providecommand\tocpostthesection{.\@postskip} \providecommand\tocsectionfill{\tocfill{.}} @@ -781,6 +800,10 @@ \@startsection{subparagraph}{5}{\parindent}% {\presubparagraph}{\postsubparagraph}{\subparagraphfont\subparagraphalign}} +\newcommand\nsection[1]{% + \section*{\phantomsection\addcontentsline{toc}{section}{#1}#1} +} + \if@twocolumn \setlength\leftmargini {2em} \else @@ -826,7 +849,7 @@ \setlength\belowcaptionskip{0\p@} \newcommand\captionlabeldelim{.} \newcommand\captionfont{\small} -\newcommand\captionlabelfont{\small\bfseries\selectfont} +\newcommand\captionlabelfont{\small\selectfont} \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \sbox\@tempboxa{{\captionlabelfont #1\captionlabeldelim} {\captionfont #2}}% @@ -929,29 +952,22 @@ \newenvironment{figure}{\@float{figure}}{\end@float} \newenvironment{figure*}{\@dblfloat{figure}}{\end@dblfloat} -\setlength\columnsep{10\p@} -\setlength\columnseprule{0\p@} -\pagestyle{plain} -\pagenumbering{arabic} -\if@twoside\else\raggedbottom\fi -\if@twocolumn\twocolumn\sloppy\flushbottom -\else\onecolumn\fi - \if@twoside \def\ps@headings{% - \let\@oddfoot\@empty\let\@evenfoot\@empty - \def\@evenhead{\thepage\hfil\slshape\leftmark}% - \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \let\@evenfoot\@empty + \let\@oddfoot\@empty + \def\@evenhead{\thepage\hfil\evenheadfont\leftmark}% + \def\@oddhead{{\oddheadfont\rightmark}\hfil\thepage}% \let\@mkboth\markboth \def\chaptermark##1{% - \markboth{\textsc{% + \markboth{{\chaptermarkfont % \ifnum \c@secnumdepth >\m@ne \@tocseccntformat{chapter} \ % \fi ##1}}{}% }% \def\sectionmark##1{% - \markright{\MakeUppercase{% + \markright{{\sectionmarkfont % \ifnum \c@secnumdepth >\z@ \@tocseccntformat{section}% \fi @@ -968,14 +984,13 @@ }% \let\@mkboth\markboth \def\chaptermark##1{% - \markright {\textsc{% + \markright {{\chaptermarkfont % \ifnum\c@secnumdepth >\m@ne \@tocseccntformat{chapter} \ % \fi ##1}}{}} \def\sectionmark##1{% - \markright{ - \MakeUppercase{ + \markright{{\sectionmarkfont % \ifnum \c@secnumdepth >\z@ \@tocseccntformat{section} \ % \fi @@ -988,12 +1003,26 @@ \def\ps@myheadings{% \let\@oddfoot\@empty\let\@evenfoot\@empty - \def\@evenhead{\thepage\hfil\slshape\leftmark}% - \def\@oddhead{{\slshape\rightmark}\hfil\thepage}% + \def\@evenhead{\thepage\hfil\evenheadfont\leftmark}% + \def\@oddhead{{\oddheadfont\rightmark}\hfil\thepage}% \let\@mkboth\@gobbletwo \let\chaptermark\@gobble \let\sectionmark\@gobble } +\setlength\columnsep{10\p@} +\setlength\columnseprule{0\p@} +\pagestyle{plain} +\pagenumbering{arabic} +\if@twoside\else\raggedbottom\fi +\if@twocolumn\twocolumn\sloppy\flushbottom +\else\onecolumn\fi +\newcommand\evenheadfont{\slshape} +\newcommand\evenfootfont{} +\newcommand\oddheadfont{\slshape} +\newcommand\oddfootfont{} +\newcommand\chaptermarkfont{\slshape} +\newcommand\sectionmarkfont{\MakeUppercase} + \newcommand\today{} @@ -1104,10 +1133,10 @@ \else \@restonecolfalse \fi - \thispagestyle{empty} \chapter*{\contentsname% \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname} }% + \thispagestyle{empty} \@starttoc{toc}% \if@restonecol\twocolumn\fi \clearpage @@ -1206,7 +1235,9 @@ \pdfcompresslevel = 9 \fi \usepackage[pdftex]{graphicx} - \usepackage{cmap} + \IfFileExists{cmap.sty}{% + \usepackage{cmap} + }{} \else \ifhref\usepackage[hypertex,colorlinks=false,hyperfigures=true]{hyperref}\fi \usepackage{graphicx} @@ -1214,11 +1245,9 @@ \ifhref\usepackage{hypernat}\fi \usepackage[rflt]{floatflt} \ifsubf - \usepackage[normalsize]{subfigure} - \renewcommand*\@thesubfigure{\small\textit{\asbuk{subfigure}})} - \renewcommand*\@@thesubfigure{\textit{\asbuk{subfigure}})} - \renewcommand*\thesubfigure{,~\textit{\asbuk{subfigure}}} - \renewcommand*\@thesubfigure{\small\textit{\asbuk{subfigure}})} + \usepackage[config,font=small,labelsep=period]{caption,subfig} + \def\thesubfigure{\textit{\asbuk{subfigure}}} + \def\p@subfigure{\thefigure, } \fi \lccode `\-=`\- diff --git a/Master/texmf-dist/tex/latex/disser/master.rtx b/Master/texmf-dist/tex/latex/disser/master.rtx index 3c6d1940742..6c252ee2862 100644 --- a/Master/texmf-dist/tex/latex/disser/master.rtx +++ b/Master/texmf-dist/tex/latex/disser/master.rtx @@ -34,8 +34,8 @@ \end{tabbing} \fifthskip \begin{tabbing} - \studentlabel\;\groupname\;\@group\hspace{2cm}\= - \makebox[8.5cm][l]{\hrulefill\;\@author} + \studentlabel\ \groupname\ \@group\hspace{2cm}\= + \makebox[8.5cm][l]{\hrulefill\ \@author} \\[9pt] \field{sa} \\[9pt] diff --git a/Master/texmf-dist/tex/latex/disser/titledefs.rtx b/Master/texmf-dist/tex/latex/disser/titledefs.rtx index a299171e582..682766b7303 100644 --- a/Master/texmf-dist/tex/latex/disser/titledefs.rtx +++ b/Master/texmf-dist/tex/latex/disser/titledefs.rtx @@ -98,22 +98,6 @@ \newcommand\datefield[1][\number\year]{<<\rule[0pt]{1cm}{.5pt}\,>>% \rule[0pt]{3cm}{0.5pt}\ #1~\yearname} -\def\newcontentsname{\cyr\CYRS\cyro\cyrd\cyre\cyrr\cyrzh\cyra\cyrn\cyri\cyre} - -\def\introname{{\cyr\CYRV\cyrv\cyre\cyrd\cyre\cyrn\cyri\cyre}} -\newcommand\intro{\nchapter{\introname}} -\def\conclusionname{% -{\cyr\CYRZ\cyra\cyrk\cyrl\cyryu\cyrch\cyre\cyrn\cyri\cyre} -} -\newcommand\conclusion{\nchapter{\conclusionname}} -\def\defsname{% -{\cyr\CYRI\cyrs\cyrp\cyro\cyrl\cyrsftsn\cyrz\cyru\cyre\cyrm\cyrery\cyre\ % -\cyro\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri\cyrya} -} -\newcommand\defs{\nchapter{\defsname}} -\def\reviewname{\cyr\CYRO\cyrb\cyrz\cyro\cyrr\ % -\cyrl\cyri\cyrt\cyre\cyrr\cyra\cyrt\cyru\cyrr\cyrery} -\newcommand\review{\nchapter{\reviewname}} \endinput %% %% End of file `titledefs.rtx'. -- cgit v1.2.3