Inicjalizacja repo: plan książki, spis treści, rozdziały, notatki, instrukcje

This commit is contained in:
2026-02-03 15:42:37 +01:00
commit fa5b4a9be6
36 changed files with 2757 additions and 0 deletions

101
pandoc-template.tex Normal file
View File

@@ -0,0 +1,101 @@
\usepackage{fancyhdr}
\usepackage{tocloft}
\usepackage{xcolor}
\usepackage{graphicx}
% --- 1. Obsługa podtytułu ---
\makeatletter
\providecommand{\subtitle}[1]{\gdef\@subtitle{#1}}
\providecommand{\@subtitle}{}
\makeatother
% --- 2. Usunięcie pustych stron ---
\let\cleardoublepage\clearpage
% --- 3. Konfiguracja Spisu Treści (TOC) ---
\renewcommand{\cftchapdotsep}{\cftdotsep}
\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
\setlength{\cftbeforechapskip}{6pt}
\setlength{\cftbeforesecskip}{1pt}
% --- 4. Konfiguracja stylów stron (Stopki) ---
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\newcommand{\drafttext}{PRACA W TOKU - NIE DO PUBLIKACJI}
% --- 5. WERSJA NUMERYCZNA (P+RRRRMMDD) ---
\newcommand{\versiontext}{P\the\year\ifnum\month<10 0\fi\the\month\ifnum\day<10 0\fi\the\day}
\newcommand{\datetext}{\the\day\ \ifcase\month\or stycznia\or lutego\or marca\or kwietnia\or maja\or czerwca\or lipca\or sierpnia\or września\or października\or listopada\or grudnia\fi\ \the\year}
% --- 6. Styl dla strony tytułowej (czysta, bez numerów) ---
\fancypagestyle{titlepage}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
}
% --- 7. Styl dla spisu treści (czysty, bez numerów) ---
\fancypagestyle{empty}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
}
% --- 8. Styl dla strony zaczynającej rozdział (plain) ---
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[LE,RO]{\textbf{\thepage}}
\fancyfoot[C]{\textit{\drafttext} \quad Wersja: \versiontext}
\renewcommand{\headrulewidth}{0pt}
}
% --- 9. Styl dla reszty strony (fancy) ---
\fancypagestyle{fancy}{
\fancyhf{}
\fancyfoot[LE,RO]{\textbf{\thepage}}
\fancyfoot[C]{\textit{\drafttext} \quad Wersja: \versiontext}
\renewcommand{\headrulewidth}{0pt}
}
% --- 10. Zarządzanie sekcjami ---
\let\origfrontmatter\frontmatter
\renewcommand{\frontmatter}{
\origfrontmatter
\pagestyle{empty} % Spis treści będzie czysty
}
\let\origmainmatter\mainmatter
\renewcommand{\mainmatter}{
\clearpage
\origmainmatter
\pagestyle{fancy} % Od teraz stopka z szkicem
}
% --- 11. Formatowanie Tytułu (Strona Tytułowa) ---
\makeatletter
\def\maketitle{
\begin{titlepage}
\centering
\vspace*{2cm}
\includegraphics[width=8cm]{soczewka.png}\par
\vspace{-0.3em}
% Tytuł: Duży i pogrubiony
{\fontsize{48}{58}\selectfont\bfseries \@title \par}
\ifx\@subtitle\@empty
\else
\vspace{1cm}
{\Large \textit{\@subtitle} \par}
\fi
\vfill
\noindent\colorbox[gray]{0.85}{%
\parbox{\dimexpr\textwidth-2\fboxsep}{\centering\color{black}\normalsize
\vspace{0.5em}\drafttext \\[0.5em]
Wersja: \versiontext \\[0.3em]
Dokument PDF wygenerowany: \datetext\vspace{0.5em}
}%
}
\end{titlepage}
% Po tytule strona ma być pusta (bez numeracji)
\thispagestyle{titlepage}
}
\makeatother