main tex to flakes

This commit is contained in:
Valentin Boettcher 2022-06-20 21:21:07 +02:00
parent 538f2810ff
commit 2d3258b70b
13 changed files with 93 additions and 35 deletions

View file

@ -1 +0,0 @@
use_nix shell.nix

View file

@ -0,0 +1,2 @@
use_flake
eval "$shellHook"

View file

@ -1,7 +0,0 @@
[doc]
name = 'energy_transfer'
bundle = 'https://data1.fullyjustified.net/tlextras-2021.3r1.tar'
[[output]]
name = 'default'
type = 'pdf'

42
tex/energy_transfer/flake.lock generated Normal file
View file

@ -0,0 +1,42 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1653893745,
"narHash": "sha256-0jntwV3Z8//YwuOjzhV2sgJJPt+HY6KhU7VZUL0fKZQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ed9fb1935d260de5fe1c2f7ee0ebaae17ed2fa1",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1655567057,
"narHash": "sha256-Cc5hQSMsTzOHmZnYm8OSJ5RNUp22bd5NADWLHorULWQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e0a42267f73ea52adc061a64650fddc59906fc99",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -2,8 +2,8 @@
description = "Typesetting for Valentin's Masters Thesis";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = github:numtide/flake-utils;
utils.inputs.nixpkgs.follows = "nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils }:
@ -11,21 +11,25 @@
let
pkgs = nixpkgs.legacyPackages.${system};
tex = pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-minimal latex-bin latexmk;
inherit (pkgs.texlive) scheme-medium latexmk koma-script babel-english
physics mathtools amsmath fontspec booktabs siunitx caption biblatex float
pgfplots microtype fancyvrb csquotes setspace newunicodechar hyperref
cleveref multirow bbold unicode-math biblatex-phys xpatch;
};
in rec {
packages = {
document = pkgs.stdenvNoCC.mkDerivation rec {
name = "latex-demo-document";
name = "masters-thesis";
src = self;
buildInputs = [ pkgs.coreutils tex ];
buildInputs = [ pkgs.coreutils tex pkgs.biber];
phases = ["unpackPhase" "buildPhase" "installPhase"];
buildPhase = ''
export PATH="${pkgs.lib.makeBinPath buildInputs}";
mkdir -p .cache/texmf-var
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
latexmk -interaction=nonstopmode -pdf -lualatex \
document.tex
OSFONTDIR=${pkgs.gyre-fonts}/share/fonts \
latexmk -interaction=nonstopmode \
./index.tex
'';
installPhase = ''
mkdir -p $out

View file

@ -84,8 +84,11 @@
\def\iu{\ensuremath{\mathrm{i}}}
\def\i{\iu}
\def\id{\ensuremath{\mathbb{1}}}
\def\NN{\ensuremath{\mathbb{N}}}
\def\RR{\ensuremath{\mathbb{R}}}
\def\CC{\ensuremath{\mathbb{C}}}
\def\dim{\ensuremath{\mathrm{dim}}}
\def\hilb{\ensuremath{\mathcal{H}}}
% fixme
\newcommand{\fixme}[1]{\textbf{\textcolor{red}{FIXME:~#1}}}
@ -98,3 +101,8 @@
\newcommand{\mat}[1]{\ensuremath{{\underline{\vb{#1}}}}}
\def\kmat{{\mat{k}}}
% Thermo
\newcommand{\ergo}[1]{\ensuremath{\mathcal{W}\qty[#1]}}
\newcommand{\qrelent}[2]{\ensuremath{S\qty(#1\,\middle|\middle|\,#2)}}

View file

@ -3,7 +3,6 @@
\usepackage[T1]{fontenc}
% load early
\usepackage[english]{babel}
%\usepackage{newpxtext,newpxmath}
\usepackage{physics}
\usepackage{graphicx, booktabs, float}
\usepackage[tbtags]{mathtools}
@ -14,17 +13,18 @@
\usepackage[list=true, font=small,
labelformat=brace, position=top]{subcaption}
\usepackage{tikz}
\usepackage{tikz-feynman}
\usepackage{wrapfig}
\usepackage{slashed}
\usepackage{pgfplots}
\usepackage{ifdraft}
\usepackage{microtype}
\usepackage[protrusion=true,expansion=true,tracking=true]{microtype}
\usepackage{fancyvrb}
\usepackage[autostyle=true]{csquotes}
\usepackage{setspace}
\usepackage{newunicodechar}
\usepackage[pdfencoding=auto,hidelinks,colorlinks=true]{hyperref} % load late
\usepackage[pdfencoding=auto,hidelinks,colorlinks=true,
linkcolor=blue,
filecolor=blue,
citecolor = black,
urlcolor=cyan,]{hyperref} % load late
\usepackage[capitalize]{cleveref}
\usepackage{multirow,tabularx}
\usepackage{bbold}
@ -38,12 +38,13 @@ labelformat=brace, position=top]{subcaption}
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic,
]
\setmathfont{texgyrepagella-math.otf}
\KOMAoptions{DIV=last}
\usepackage[autooneside]{scrlayer-scrpage}
%% use the current pgfplots
\pgfplotsset{compat=1.16}
%% fix p slash
\declareslashed{}{/}{0}{.15}{p}
%% Tikz
\usetikzlibrary{arrows,shapes,angles,quotes,arrows.meta,external}

View file

@ -1,11 +1,13 @@
\documentclass[fontsize=11pt,paper=a4,open=any,
\documentclass[fontsize=10pt,paper=b5,open=any,
,twoside=true,toc=listof,toc=bibliography,headings=optiontohead,
captions=nooneline,captions=tableabove,english,DIV=12,numbers=noenddot,final,parskip=half,
captions=nooneline,captions=tableabove,english,DIV=calc,numbers=noenddot,final,parskip=half,
headinclude=true,footinclude=false,BCOR=1cm]{scrbook}
\usepackage{../../hirostyle}
\usepackage{../../hiromacros}
\usepackage{hirostyle}
\usepackage{hiromacros}
\addbibresource{references.bib}
\synctex=1
@ -16,8 +18,12 @@ headinclude=true,footinclude=false,BCOR=1cm]{scrbook}
\maketitle
\tableofcontents
% Chapters
\include{src/index.tex}
\printbibliography{}
\end{document}
\end{document}
%%% Local Variables:
%%% mode: latex

View file

@ -0,0 +1,2 @@
$pdf_mode = 4;
@default_files = ('index.tex');

View file

@ -1,2 +0,0 @@
\printbibliography{}
\end{document}

View file

@ -794,7 +794,7 @@ some \(τ\geq 0\).
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "_preamble"
%%% TeX-master: "../index.tex"
%%% End:
% LocalWords: ergotropy

View file

@ -327,15 +327,18 @@ the expression
\end{equation}
This indicates, that we trade hierarchy depth for sample count in the
nonlinear method. The Markov limit may be related to
\(\Re[W_μ]\rightarrow\). In this case the extra term vanishes and
the nonlinear method looses its advantage (as the shift vanishes).
nonlinear method. Interestingly the divisor in
\cref{eq:steadynorm_nonlin} may vanish, leading to a breakdown of the
estimate. An interpretation would be, that for very strong coupling or
long bath correlation times the interaction \fixme{reference} with the
bath diverges and the method fails. On the other hand, the estimate
may simply be wrong and should account for the coupling to the lower
orders as well.
The relations \cref{eq:steadynorm,eq:steadynorm_nonlin} are recursive
and break off at \(ψ^0\), the norm of which can be assumed to be \(1\)
in the nonlinear method.
These ideas remain to be verified. Especially the assumptions should
be checked. For time dependent coupling, one may maximize the estimate
over all \(L(t)\).