hod2
This commit is contained in:
16
flake.nix
16
flake.nix
@@ -1,4 +1,3 @@
|
||||
# flake.nix
|
||||
{
|
||||
description = "LaTeX compilation environment for thesis and beamer presentation";
|
||||
|
||||
@@ -15,11 +14,15 @@
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
texlive = pkgs.texlive.combine {
|
||||
inherit (pkgs.texlive) scheme-full;
|
||||
inherit (pkgs.texlive)
|
||||
scheme-full
|
||||
biber
|
||||
latexmk
|
||||
;
|
||||
};
|
||||
|
||||
# Build a TEXMF tree for fibeamer so LaTeX can find it
|
||||
fibeamerTexmf = pkgs.runCommand "fibeamer-texmf" {} ''
|
||||
mkdir -p $out/tex/latex/fibeamer
|
||||
cp -r ${fibeamer}/* $out/tex/latex/fibeamer/
|
||||
@@ -28,13 +31,10 @@
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "latex-env";
|
||||
buildInputs = [
|
||||
texlive
|
||||
pkgs.biber
|
||||
];
|
||||
buildInputs = [ texlive pkgs.biber pkgs.texlab ];
|
||||
shellHook = ''
|
||||
export TEXMFHOME="${fibeamerTexmf}:"
|
||||
echo "LaTeX environment loaded (pdflatex + biber + fibeamer)"
|
||||
echo "LaTeX environment loaded"
|
||||
pdflatex --version | head -1
|
||||
'';
|
||||
};
|
||||
|
||||
19
hod2/.auctex-auto/main.el
Normal file
19
hod2/.auctex-auto/main.el
Normal file
@@ -0,0 +1,19 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
(TeX-add-style-hook
|
||||
"main"
|
||||
(lambda ()
|
||||
(TeX-add-to-alist 'LaTeX-provided-class-options
|
||||
'(("book" "12pt" "a4paper")))
|
||||
(TeX-add-to-alist 'LaTeX-provided-package-options
|
||||
'(("fontenc" "T1") ("inputenc" "utf8") ("babel" "slovak" "shorthands=off") ("lipsum" "") ("fancyhdr" "")))
|
||||
(TeX-run-style-hooks
|
||||
"latex2e"
|
||||
"book"
|
||||
"bk12"
|
||||
"inputenc"
|
||||
"babel"
|
||||
"lipsum"
|
||||
"fancyhdr"))
|
||||
:latex)
|
||||
|
||||
BIN
hod2/compiled/main.pdf
Normal file
BIN
hod2/compiled/main.pdf
Normal file
Binary file not shown.
3
hod2/compiled/main.toc
Normal file
3
hod2/compiled/main.toc
Normal file
@@ -0,0 +1,3 @@
|
||||
\babel@toc {nil}{}\relax
|
||||
\contentsline {chapter}{\numberline {1}kratky nazov}{W}{}%
|
||||
\contentsline {chapter}{\numberline {2}kratky nazov}{Y}{}%
|
||||
32
hod2/main.tex
Normal file
32
hod2/main.tex
Normal file
@@ -0,0 +1,32 @@
|
||||
\documentclass[12pt, a4paper]{book}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[slovak,shorthands=off]{babel}
|
||||
% \usepackage[T1]{fontenc}
|
||||
\usepackage{lipsum}
|
||||
\usepackage{fancyhdr}
|
||||
\pagenumbering{Alph}
|
||||
|
||||
\pagestyle{fancy}
|
||||
\fancyfoot{222}
|
||||
\fancyhead[LE,RO]{545}
|
||||
|
||||
\renewcommand{\headrulewidth}{5pt}
|
||||
|
||||
|
||||
|
||||
\begin{document}
|
||||
\tableofcontents
|
||||
|
||||
|
||||
\chapter[kratky nazov]{dlhy velmi dlhy nazov}
|
||||
|
||||
|
||||
\lipsum{2-4}
|
||||
|
||||
|
||||
\setcounter{page}{23}
|
||||
\chapter[kratky nazov]{\lipsum{2-4}}
|
||||
|
||||
\lipsum{2-4}
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user