From 730ab0a48a2b0fb75ba4cc091c50a4f02832287d Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Tue, 25 Oct 2022 12:59:54 +0400 Subject: =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B?= =?UTF-8?q?=20Lecture.cls=20=D0=B8=20preamble.sty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lecture.cls | 134 ++++++++++++++++-------------------------- cryptography/cryptography.pdf | Bin 0 -> 379912 bytes cryptography/cryptography.tex | 32 +--------- preamble.sty | 43 ++++---------- 4 files changed, 64 insertions(+), 145 deletions(-) create mode 100644 cryptography/cryptography.pdf diff --git a/Lecture.cls b/Lecture.cls index e983fa6..622ef41 100644 --- a/Lecture.cls +++ b/Lecture.cls @@ -1,97 +1,63 @@ -\LoadClass[a4paper,oneside]{article} +\LoadClass[14pt,a4paper,oneside]{extarticle} \RequirePackage[utf8]{inputenc} +\RequirePackage[english,russian]{babel} \RequirePackage[T2A]{fontenc} -\RequirePackage[russian]{babel} -\RequirePackage{hyperref} -\RequirePackage{underscore} -\RequirePackage{setspace} + +\usepackage[ + a4paper, mag=1000, + left=2.5cm, right=1.5cm, + top=3cm, bottom=3cm +]{geometry} + +\RequirePackage[hidelinks,colorlinks=false]{hyperref} +\RequirePackage{url} \RequirePackage{indentfirst} -\RequirePackage{cancel} -\RequirePackage[left=1.4cm,right=1.4cm, - top=2.3cm,bottom=2.3cm,bindingoffset=0cm]{geometry} -\singlespacing -\RequirePackage{float} + \RequirePackage{fancyhdr} -% \pagestyle{fancy} -% \pagestyle{headings} +\pagestyle{fancy} +\RequirePackage{setspace} +\singlespacing -%---------------------------------------------------------------------------------------- -% TITLE PAGE -%---------------------------------------------------------------------------------------- +% --- TITLE PAGE --- % \renewcommand{\maketitle} { +\afterpage{ +\newgeometry{ + a4paper, mag=1000, + left=1.5cm, right=1.5cm, + top=2cm, bottom=2cm +} -\begin{titlepage} % Suppresses displaying the page number on the title page and the subsequent page counts as page 1 - \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % Defines a new command for horizontal lines, change thickness here - - \center % Centre everything on the page - - %------------------------------------------------ - % Headings - %------------------------------------------------ - - % \textsc{\LARGE Саратовский Государственный Университет}\\[1.5cm] % Main heading such as the name of your university/college - \textsc{\LARGE Саратовский Государственный Университет}\\[0.2cm] % Main heading such as the name of your university/college - \textsc{\Large Факультет Компьютерных Наук и Информационных Технологий}\\[0.5cm] % Major heading such as course name - - % \textsc{\large 1214}\\[0.5cm] % Minor heading such as course title - - %------------------------------------------------ - % Title - %------------------------------------------------ - - \HRule\\[0.6cm] - % {\huge\bfseries Универсальная прикладная алгебра}\\[0.4cm] % Title of your document - {\huge\bfseries\textsc \@title}\\[0.4cm] % Title of your document - - \HRule\\[1.5cm] - - %------------------------------------------------ - % Author(s) - %------------------------------------------------ - - % \begin{minipage}{0.4\textwidth} - % \begin{flushleft} - % \large - % \textit{Законспектировали}\\ - % \textsc{Андрей Гущин\\Иван Улитин\\Роман Стаин\\Николай Шустов} % Your name - % \end{flushleft} - % \end{minipage} - % ~ - % \begin{minipage}{0.4\textwidth} - % \begin{flushright} - % \large - % % \textit{Редактор}\\ - % % \textsc{Боба} % Supervisor's name - % \end{flushright} - % \end{minipage} - - % If you don't want a supervisor, uncomment the two lines below and comment the code above - {\large\textit{Законспектировал}}\\ - \textsc{\@author} % Your name - - %------------------------------------------------ - % Date - %------------------------------------------------ - - \vfill\vfill\vfill\vfill\vfill % Position the date 3/4 down the remaining page - - {\large\the\year{} г.} % Date, change the \today to a set date if you want to be precise - - %------------------------------------------------ - % Logo - %------------------------------------------------ - - %\vfill\vfill - %\includegraphics[width=0.2\textwidth]{placeholder.jpg}\\[1cm] % Include a department/university logo - this will require the graphicx package - - %---------------------------------------------------------------------------------------- - - \vfill % Push the date up 1/4 of the remaining page - +% Suppresses displaying the page number on the title page and the subsequent page counts as page 1 +\begin{titlepage} + % Defines a new command for horizontal lines, change thickness here + \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} + \center + + % --- Headings --- % + \textsc{\Large Саратовский Государственный Университет}\\[0.2cm] + \textsc{\normalsize Факультет Компьютерных Наук и Информационных Технологий}\\[0.5cm] + + % --- Title --- % + \HRule\\[0.6cm] + {\LARGE \bfseries\textsc \@title}\\[0.3cm] + \HRule\\[1.5cm] + + % --- Author(s) --- % + {\large\textit{Законспектировано:}}\\ + \textsc{\@author} + + % --- Date --- % + % Position the date 3/4 down the remaining page + \vfill\vfill\vfill\vfill\vfill\vfill + {\large\@date} + % Push the date up 1/4 of the remaining page + \vfill \end{titlepage} +\clearpage +\restoregeometry +} } -%---------------------------------------------------------------------------------------- diff --git a/cryptography/cryptography.pdf b/cryptography/cryptography.pdf new file mode 100644 index 0000000..cfb58fa Binary files /dev/null and b/cryptography/cryptography.pdf differ diff --git a/cryptography/cryptography.tex b/cryptography/cryptography.tex index bc25193..6c51c60 100644 --- a/cryptography/cryptography.tex +++ b/cryptography/cryptography.tex @@ -1,32 +1,6 @@ -\documentclass[11pt,a4paper,oneside]{article} -\usepackage[utf8]{inputenc} -\usepackage[english,russian]{babel} -\usepackage[T2A]{fontenc} - -\usepackage[ - a4paper, mag=1000, - left=2.5cm, right=1.5cm, top=2cm, bottom=2cm, - bindingoffset=0cm, headheight=0cm, - footskip=1cm, headsep=0cm -]{geometry} - -\usepackage{graphicx} -\usepackage{longtable} -\usepackage{wrapfig} -\usepackage{rotating} -\usepackage{amsmath} -\usepackage{amssymb} -\usepackage{capt-of} -\usepackage{float} -\usepackage{indentfirst} -\usepackage{setspace} -\usepackage{underscore} -\usepackage{cancel} -\usepackage[colorlinks=false]{hyperref} -\usepackage[normalem]{ulem} - -\graphicspath{ {./images/} } -\singlespacing +\documentclass{../Lecture} + +\usepackage{../preamble} \title{Криптографические методы защиты информации} \author{Андрей Гущин} diff --git a/preamble.sty b/preamble.sty index 22c24ce..00516c1 100644 --- a/preamble.sty +++ b/preamble.sty @@ -1,12 +1,20 @@ \ProvidesPackage{../preamble} \RequirePackage{amsmath} -\RequirePackage{mathtools} +\RequirePackage{amsthm} \RequirePackage{amsfonts} +\RequirePackage{amssymb} +\RequirePackage{mathtools} + +\RequirePackage{wrapfig} +\RequirePackage[normalem]{ulem} +\RequirePackage{longtable} \RequirePackage{enumitem} -% \RequirePackage[standard]{ntheorem} -\RequirePackage{amsthm} \RequirePackage{tikz} +\RequirePackage{cancel} +\RequirePackage{underscore} +\RequirePackage{float} + \RequirePackage{graphicx} \graphicspath{ {./images/} } @@ -20,7 +28,6 @@ \newcommand{\R}{\mathbb{R}} \newcommand{\Z}{\mathbb{Z}} \renewcommand{\C}{\mathbb{C}} -\newcommand{\bb}[1]{\mathbb{#1}} \newcommand{\approach}[1]{\underset{#1}{\longrightarrow}} \newcommand{\series}[1]{\displaystyle\sum_{k=1}^\infty #1} @@ -29,51 +36,23 @@ \newcommand{\abs}[1]{\left|#1\right|} \renewcommand{\over}[2]{\stackrel{#1}{#2}} -% \theoremstyle{break} - % --- Теорема --- % -% \newtheoremstyle{break}% name -% {}% Space above, empty = `usual value' -% {}% Space below -% {\itshape}% Body font -% {}% Indent amount (empty = no indent, \parindent = para indent) -% {\bfseries}% Thm head font -% {.}% Punctuation after thm head -% {\newline}% Space after thm head: \newline = linebreak -% {}% Thm head spec -% \theorembodyfont{\normalfont} -% \theoremstyle{break} \newtheorem{theorem}{Теорема}[subsection] -% --------------- % -% --- Определение --- % -% \theorembodyfont{\normalfont} \theoremstyle{definition} \newtheorem{definition}{Определение}[subsection] -% ------------------- % - -% --- Пример --- % \theoremstyle{definition} \newtheorem*{example}{Пример} -% -------------- % -% --- Следствие --- % \theoremstyle{definition} \newtheorem*{corollary}{Следствие} -% ----------------- % -% --- Замечание --- % \theoremstyle{definition} \newtheorem*{remark}{Замечание} -% ----------------- % -% --- Лемма --- % \theoremstyle{definition} \newtheorem*{lemma}{Лемма} -% ----------------- % -% --- Лемма --- % \theoremstyle{definition} \newtheorem*{axiom}{Аксиома} -% ----------------- % -- cgit v1.2.3