Initial commit

This commit is contained in:
Ian Jauslin 2015-07-23 15:19:30 +00:00
commit 6e6a5d8d7d
18 changed files with 4766 additions and 0 deletions

38
BBlog.sty Normal file
View File

@ -0,0 +1,38 @@
%%
%% BBlog bibliography related commands
%%
%% length used to display the bibliography
\newlength{\rw}
\setlength{\rw}{1.75cm}
%% read header
\IfFileExists{header.BBlog.tex}{\input{header.BBlog}}{}
%% cite a reference
\def\cite#1{%
\ref{cite#1}%
%% add entry to citelist after checking it has not already been added
\ifcsname if#1cited\endcsname%
\expandafter\if\csname if#1cited\endcsname%
\else%
\csname if#1citedtrue\endcsname%
\immediate\write\@auxout{\noexpand\BBlogcite{#1}}%
\fi%
\else%
\expandafter\newif\csname if#1cited\endcsname%
\csname if#1citedtrue\endcsname%
\immediate\write\@auxout{\noexpand\BBlogcite{#1}}%
\fi%
}
%% an empty definition for the aux file
\def\BBlogcite#1{}
%% display the bibliography
\long\def\BBlography{
\newlength{\colw}
\setlength{\colw}{\textwidth}
\addtolength{\colw}{-\rw}
\IfFileExists{bibliography.BBlog.tex}{
\input{bibliography.BBlog}}{{\tt error: missing BBlog bibliography file}}
}

BIN
Figs/bands.pdf Normal file

Binary file not shown.

BIN
Figs/basegrid.pdf Normal file

Binary file not shown.

BIN
Figs/cellgraph.pdf Normal file

Binary file not shown.

Binary file not shown.

BIN
Figs/feynmantree-tree.pdf Normal file

Binary file not shown.

BIN
Figs/figferm.pdf Normal file

Binary file not shown.

BIN
Figs/hoppings.pdf Normal file

Binary file not shown.

BIN
Figs/spanningTree.pdf Normal file

Binary file not shown.

BIN
Figs/tree-root.pdf Normal file

Binary file not shown.

3909
Giuliani_Jauslin_2015.tex Normal file

File diff suppressed because it is too large Load Diff

56
README Normal file
View File

@ -0,0 +1,56 @@
* Typeset
In order to typeset the LaTeX document, run
pdflatex Giuliani_Jauslin_2015.tex
pdflatex Giuliani_Jauslin_2015.tex
pdflatex Giuliani_Jauslin_2015.tex
* Files
Giuliani_Jauslin.tex :
body of the paper.
bibliography.BBlog.tex :
list of references.
BBlog.sty :
bibliography related commands.
Figs :
figures
header.sty :
list of packages.
iansecs.sty :
main style file.
kiss.cls :
barebones class file
local.sty :
local command definitions
toolbox.sty :
collection of useful commands.
* Coding style
In the body of the paper, an effort has been made to keep the LaTeX code
'standard', avoiding self-defined commands whenever possible, and sticking to
TeX and basic LaTeX commands. In some instances however, such an approach would
have been too restrictive, and commands defined in the style files listed above
were used.
Many of the commands defined in 'iansecs.sty' are drop-in replacements for
standard LaTeX commands, though some functionality may be lost.
* Bibliography
The bibliography was generated by BBlog, which produced the
bibliography.BBlog.tex file. All of the required code to adequately typeset
the reference list and define the commands used to cite them are contained in
that file.

210
bibliography.BBlog.tex Normal file
View File

@ -0,0 +1,210 @@
\hrefanchor
\outdef{citearNE}{AR98}
\hbox{\parbox[t]{\rw}{[\cite{arNE}]}\parbox[t]{\colw}{A.~Abdesselam, V.~Rivasseau - {\it Explicit Fermionic tree expansions}, Letters in Mathematical Physics, Vol.~44, n.~1, p.~77-88, 1998.}}\par
\bigskip
\hrefanchor
\outdef{citebatEF}{BF84}
\hbox{\parbox[t]{\rw}{[\cite{batEF}]}\parbox[t]{\colw}{G.~Battle, P.~Federbush - {\it A note on cluster expansions, tree graph identities, extra $1/N!$ factors!!!}, Letters in Mathematical Physics, Vol.~8, p.~55-57, 1984.}}\par
\bigskip
\hrefanchor
\outdef{citebenNZ}{BG90}
\hbox{\parbox[t]{\rw}{[\cite{benNZ}]}\parbox[t]{\colw}{G.~Benfatto, G.~Gallavotti - {\it Perturbation theory of the Fermi surface in a quantum liquid - a general quasiparticle formalism and one-dimensional systems}, Journal of Statistical Physics, Vol.~59, n.~3-4, p.~541-664, 1990.}}\par
\bigskip
\hrefanchor
\outdef{citebenNFi}{BG95}
\hbox{\parbox[t]{\rw}{[\cite{benNFi}]}\parbox[t]{\colw}{G.~Benfatto, G.~Gallavotti - {\it Renormalization Group}, Princeton University Press, 1995.}}\par
\bigskip
\hrefanchor
\outdef{citebmZT}{BM02}
\hbox{\parbox[t]{\rw}{[\cite{bmZT}]}\parbox[t]{\colw}{G.~Benfatto, V.~Mastropietro - {\it On the density-density critical indices in interacting Fermi systems}, Communications in Mathematical Physics, Vol.~231, n.~1, p.~97-134, 2002.}}\par
\bigskip
\hrefanchor
\outdef{citebenZS}{BGM06}
\hbox{\parbox[t]{\rw}{[\cite{benZS}]}\parbox[t]{\colw}{G.~Benfatto, A.~Giuliani, V.~Mastropietro - {\it Fermi liquid behavior in the 2D Hubbard model}, Annales Henri Poincar\'e, Vol.~7, p.~809-898, 2006.}}\par
\bigskip
\hrefanchor
\outdef{citebrySeE}{BF78}
\hbox{\parbox[t]{\rw}{[\cite{brySeE}]}\parbox[t]{\colw}{D.~Brydges, P.~Federbush - {\it A new form of the Mayer expansion in classical statistical mechanics}, Journal of Mathematical Physics, Vol.~19, p.~2064, 1978.}}\par
\bigskip
\hrefanchor
\outdef{citebkESe}{BK87}
\hbox{\parbox[t]{\rw}{[\cite{bkESe}]}\parbox[t]{\colw}{D.~Brydges, T.~Kennedy - {\it Mayer expansions and the Hamilton-Jacobi equation}, Journal of Statistical Physics, Vol.~48, n.~1-2, p.~19-49, 1987.}}\par
\bigskip
\hrefanchor
\outdef{citedoeSeN}{DDe79}
\hbox{\parbox[t]{\rw}{[\cite{doeSeN}]}\parbox[t]{\colw}{R.~Doezema, W.~Datars, H.~Schaber, A.~Van~Schyndel - {\it Far-infrared magnetospectroscopy of the Landau-level structure in graphite}, Physical Review B, Vol.~19, n.~8, p.~4224-4230, 1979.}}\par
\bigskip
\hrefanchor
\outdef{citedreZT}{DD02}
\hbox{\parbox[t]{\rw}{[\cite{dreZT}]}\parbox[t]{\colw}{M.~Dresselhaus, G.~Dresselhaus - {\it Intercalation compounds of graphite}, Advances in Physics, Vol.~51, n.~1, p.~1-186, 2002.}}\par
\bigskip
\hrefanchor
\outdef{citefktZFa}{FKT04a}
\hbox{\parbox[t]{\rw}{[\cite{fktZFa}]}\parbox[t]{\colw}{J.~Feldman, H.~Kn\"orrer, E.~Trubowitz - {\it A two dimensional Fermi liquid. Part~1: Overview}, Communications in Mathematical Physics, Vol.~247, n.~1, p.~1-47, 2004.}}\par
\bigskip
\hrefanchor
\outdef{citefktZFb}{FKT04b}
\hbox{\parbox[t]{\rw}{[\cite{fktZFb}]}\parbox[t]{\colw}{J.~Feldman, H.~Kn\"orrer, E.~Trubowitz - {\it A two dimensional Fermi liquid. Part~2: Convergence}, Communications in Mathematical Physics, Vol.~247, n.~1, p.~49-111, 2004.}}\par
\bigskip
\hrefanchor
\outdef{citefktZFc}{FKT04c}
\hbox{\parbox[t]{\rw}{[\cite{fktZFc}]}\parbox[t]{\colw}{J.~Feldman, H.~Kn\"orrer, E.~Trubowitz - {\it A two dimensional Fermi liquid. Part~3: The Fermi surface}, Communications in Mathematical Physics, Vol.~247, n.~1, p.~113-177, 2004.}}\par
\bigskip
\hrefanchor
\outdef{citegalEFi}{GN85}
\hbox{\parbox[t]{\rw}{[\cite{galEFi}]}\parbox[t]{\colw}{G.~Gallavotti, F.~Nicol\`o - {\it Renormalization theory for four dimensional scalar fields}, Communications in Mathematical Physics, Vol.~100, p.~545-590 and Vol.~101, p.~247-282, 1985.}}\par
\bigskip
\hrefanchor
\outdef{citegeiZSe}{GN07}
\hbox{\parbox[t]{\rw}{[\cite{geiZSe}]}\parbox[t]{\colw}{A.~Geim, K.~Novoselov - {\it The rise of graphene}, Nature Materials, Vol.~6, p.~183-191, 2007.}}\par
\bigskip
\hrefanchor
\outdef{citegeOZ}{Ge10}
\hbox{\parbox[t]{\rw}{[\cite{geOZ}]}\parbox[t]{\colw}{A.~Geim - {\it Random walk to graphene}, Nobel lecture, 2010.}}\par
\bigskip
\hrefanchor
\outdef{citegenZO}{GM01}
\hbox{\parbox[t]{\rw}{[\cite{genZO}]}\parbox[t]{\colw}{G.~Gentile, V.~Mastropietro - {\it Renormalization group for one-dimensional fermions - a review on mathematical results}, Physics Reports, Vol.~352, p.~273-437, 2001.}}\par
\bigskip
\hrefanchor
\outdef{citegiuOZ}{GM10}
\hbox{\parbox[t]{\rw}{[\cite{giuOZ}]}\parbox[t]{\colw}{A.~Giuliani, V.~Mastropietro - {\it The two-dimensional Hubbard model on the honeycomb lattice}, Communications in Mathematical Physics, Vol.~293, p.~301-364, 2010.}}\par
\bigskip
\hrefanchor
\outdef{citegiuOZh}{Gi10}
\hbox{\parbox[t]{\rw}{[\cite{giuOZh}]}\parbox[t]{\colw}{A.~Giuliani - {\it The Ground State Construction of the Two-dimensional Hubbard Model on the Honeycomb Lattice}, Quantum Theory from Small to Large Scales, lecture notes of the Les Houches Summer School, Vol.~95, Oxford University Press, 2010.}}\par
\bigskip
\hrefanchor
\outdef{citegmpOZ}{GMP10}
\hbox{\parbox[t]{\rw}{[\cite{gmpOZ}]}\parbox[t]{\colw}{A.~Giuliani, V.~Mastropietro, M.~Porta - {\it Lattice gauge theory model for graphene}, Physical Review B, Vol.~82, n.~121418(R), 2010.}}\par
\bigskip
\hrefanchor
\outdef{citegmpOO}{GMP11}
\hbox{\parbox[t]{\rw}{[\cite{gmpOO}]}\parbox[t]{\colw}{A.~Giuliani, V.~Mastropietro, M.~Porta - {\it Absence of interaction corrections in the optical conductivity of graphene}, Physical Review B, Vol.~83, n.~195401, 2011.}}\par
\bigskip
\hrefanchor
\outdef{citegmpOOt}{GMP11b}
\hbox{\parbox[t]{\rw}{[\cite{gmpOOt}]}\parbox[t]{\colw}{A.~Giuliani, V.~Mastropietro, M.~Porta - {\it Lattice quantum electrodynamics for graphene}, Annals of Physics, Vol.~327, n.~2, p.~461-511, 2011.}}\par
\bigskip
\hrefanchor
\outdef{citegmpOT}{GMP12}
\hbox{\parbox[t]{\rw}{[\cite{gmpOT}]}\parbox[t]{\colw}{A.~Giuliani, V.~Mastropietro, M.~Porta - {\it Universality of conductivity in interacting graphene}, Communications in Mathematical Physics, Vol.~311, n.~2, p.~317-355, 2012.}}\par
\bigskip
\hrefanchor
\outdef{citeluOTh}{Lu13}
\hbox{\parbox[t]{\rw}{[\cite{luOTh}]}\parbox[t]{\colw}{L.~Lu - {\it Constructive analysis of two dimensional Fermi systems at finite temperature}, PhD dissertation, supervised by M.~Salmhofer, Institute for Theoretical Physics, Heidelberg, 2013.}}\par
\bigskip
\hrefanchor
\outdef{citemalZSe}{MNe07}
\hbox{\parbox[t]{\rw}{[\cite{malZSe}]}\parbox[t]{\colw}{L.~Malard, J.~Nilsson, D.~Elias, J.~Brant, F.~Plentz, E.~Alves, A.~Castro Neto, M.~Pimenta - {\it Probing the electronic structure of bilayer graphene by Raman scattering}, Physical Review B, Vol.~76, n.~201401, 2007.}}\par
\bigskip
\hrefanchor
\outdef{citemasOO}{Ma11}
\hbox{\parbox[t]{\rw}{[\cite{masOO}]}\parbox[t]{\colw}{V.~Mastropietro - {\it Conductivity between Luttinger liquids: coupled chains and bilayer graphene}, Physical Review B, Vol.~84, n.~035109, 2011.}}\par
\bigskip
\hrefanchor
\outdef{citemccZS}{MF06}
\hbox{\parbox[t]{\rw}{[\cite{mccZS}]}\parbox[t]{\colw}{E.~McCann, V.~Fal'ko - {\it Landau-level degeneracy and Quantum Hall Effect in a graphite bilayer}, Physical Review Letters, Vol.~86, 086805, 2006.}}\par
\bigskip
\hrefanchor
\outdef{citemccFiSe}{Mc57}
\hbox{\parbox[t]{\rw}{[\cite{mccFiSe}]}\parbox[t]{\colw}{J.~McClure - {\it Band structure of graphite and de Haas-van Alphen effect}, Physical review, Vol.~108, p.~612-618, 1957.}}\par
\bigskip
\hrefanchor
\outdef{citemisSeN}{MMD79}
\hbox{\parbox[t]{\rw}{[\cite{misSeN}]}\parbox[t]{\colw}{A.~Misu, E.~Mendez, M.S.~Dresselhaus - {\it Near Infrared Reflectivity of Graphite under Hydrostatic Pressure}, Journal of the Physical Society of Japan, Vol.~47, n.~1, p.~199-207, 1979.}}\par
\bigskip
\hrefanchor
\outdef{citengeZF}{NGe04}
\hbox{\parbox[t]{\rw}{[\cite{ngeZF}]}\parbox[t]{\colw}{K.~Novoselov, A.~Geim, S.~Morozov, D.~Jiang, Y.~Zhang, S.~Dubonos, I.~Grigorieva, A.~Firsov - {\it Electric field effect in atomically thin carbon films}, Science, vol.~306, p.~666-669, 2004.}}\par
\bigskip
\hrefanchor
\outdef{citengeZFi}{NGe05}
\hbox{\parbox[t]{\rw}{[\cite{ngeZFi}]}\parbox[t]{\colw}{K.~Novoselov, A.~Geim, S.~Morozov, D.~Jiang, M.~Katsnelson, I.~Grigorieva, S.~Dubonos, A.~Firsov - {\it Two-dimensional gas of massless Dirac fermions in graphene}, Nature, Vol.~438, n.~10, p.~197-200, 2005.}}\par
\bigskip
\hrefanchor
\outdef{citenovZS}{NMe06}
\hbox{\parbox[t]{\rw}{[\cite{novZS}]}\parbox[t]{\colw}{K.~Novoselov, E.~McCann, S.~Morozov, V.~Fal'ko, M.~Katsnelson, U.~Zeitler, D.~Jiang, F.~Schedin, A.~Geim - {\it Unconventional quantum Hall effect and Berry's phase of $\pi$ in bilayer graphene}, Nature Physics, Vol.~2, p.~177-180, 2006.}}\par
\bigskip
\hrefanchor
\outdef{citeparZS}{PP06}
\hbox{\parbox[t]{\rw}{[\cite{parZS}]}\parbox[t]{\colw}{B.~Partoens, F.~Peeters - {\it From graphene to graphite: electronic structure around the $K$ point}, Physical Review B, Vol.~74, n.~075404, 2006.}}\par
\bigskip
\hrefanchor
\outdef{citepsZE}{PS08}
\hbox{\parbox[t]{\rw}{[\cite{psZE}]}\parbox[t]{\colw}{W.~Pedra, M.~Salmhofer - {\it Determinant bounds and the Matsubara UV problem of many-fermion systems}, Communications in Mathematical Physics, Vol.~282, n.~3, p.~797-818, 2008.}}\par
\bigskip
\hrefanchor
\outdef{citesalOTh}{Sal13}
\hbox{\parbox[t]{\rw}{[\cite{salOTh}]}\parbox[t]{\colw}{M.~Salmhofer - {\it Renormalization: an introduction}, Springer Science \& Business Media, 2013.}}\par
\bigskip
\hrefanchor
\outdef{citesloFiE}{SW58}
\hbox{\parbox[t]{\rw}{[\cite{sloFiE}]}\parbox[t]{\colw}{J.~Slonczewski, P.~Weiss - {\it Band structure of graphite}, Physical Review, Vol.~109, p.~272-279, 1958.}}\par
\bigskip
\hrefanchor
\outdef{citetoySeSe}{TDD77}
\hbox{\parbox[t]{\rw}{[\cite{toySeSe}]}\parbox[t]{\colw}{W.~Toy, M.~Dresselhaus, G.~Dresselhaus - {\it Minority carriers in graphite and the H-point magnetoreflection spectra}, Physical Review B, Vol.~15, p.~4077-4090, 1977.}}\par
\bigskip
\hrefanchor
\outdef{citetriNT}{TMe92}
\hbox{\parbox[t]{\rw}{[\cite{triNT}]}\parbox[t]{\colw}{S.~Trickey, F.~M\"uller-Plathe, G.~Diercksen, J.~Boettger - {\it Interplanar binding and lattice relaxation in a graphite dilayer}, Physical Review B, Vol.~45, p.~4460-4468, 1992.}}\par
\bigskip
\hrefanchor
\outdef{citevafOZ}{Va10}
\hbox{\parbox[t]{\rw}{[\cite{vafOZ}]}\parbox[t]{\colw}{O.~Vafek - {\it Interacting Fermions on the honeycomb bilayer: from weak to strong coupling}, Physical Review B, Vol.~82, 205106, 2010.}}\par
\bigskip
\hrefanchor
\outdef{citewalFSe}{Wa47}
\hbox{\parbox[t]{\rw}{[\cite{walFSe}]}\parbox[t]{\colw}{P.~Wallace - {\it The band theory of graphite}, Physical Review, Vol.~71, n.~9, p.~622-634, 1947.}}\par
\bigskip
\hrefanchor
\outdef{citezteZFi}{ZTe05}
\hbox{\parbox[t]{\rw}{[\cite{zteZFi}]}\parbox[t]{\colw}{Y.~Zhang, Y.W.~Tan, H.~Stormer, P.~Kim - {\it Experimental observation of the quantum Hall effect and Berry's phase in graphene}, Nature, Vol.~438, n.~10, p.~201-204, 2005.}}\par
\bigskip
\hrefanchor
\outdef{citezhaZE}{ZLe08}
\hbox{\parbox[t]{\rw}{[\cite{zhaZE}]}\parbox[t]{\colw}{L.~Zhang, Z.~Li, D.~Basov, M.~Fogler, Z.~Hao, M.~Martin - {\it Determination of the electronic structure of bilayer graphene from infrared spectroscopy}, Physical Review B, Vol.~78, n.~235408, 2008.}}\par
\bigskip

12
header.sty Normal file
View File

@ -0,0 +1,12 @@
%%
%% Load packages
%%
\usepackage{color}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{array}
\usepackage{etoolbox}
\usepackage{dsfont}

434
iansecs.sty Normal file
View File

@ -0,0 +1,434 @@
%%
%% This file contains the main style commands
%%
%% Some options can be set by changing the \loaddefaults command
%%
\usepackage{color}
\usepackage{marginnote}
\def\loaddefaults{
\sectionstrue
\subseqcountfalse
\def\seqskip{\vskip1.5cm}
\def\subseqskip{\vskip1cm}
\resetpointattheofalse
\parindent=0pt
\def\indent{\hskip20pt}
}
% false if there are no sections
\newif\ifsections
% true if equation numbers should include the subsection number
\newif\ifsubseqcount
% true if there is a table of contents
\newif\iftoc
% true if point counting should reset at each theorem
\newif\ifresetpointattheo
% a prefix to put before the section number, e.g. A for appendices
\def\sectionprefix{}
\loaddefaults
%% style for the equation number
\def\eqnumstyle{}
%% correct vertical alignment at the end of a document
\AtEndDocument{
\vfill
\eject
}
%% prevent page breaks
\newcount\prevpostdisplaypenalty
\def\nopagebreakaftereq{
\prevpostdisplaypenalty=\postdisplaypenalty
\postdisplaypenalty=10000
}
\def\restorepagebreakaftereq{
\postdisplaypenalty=\prevpostdisplaypenalty
}
%% hyperlinks
% hyperlinkcounter
\newcounter{lncount}
% hyperref anchor
\def\hrefanchor{%
\stepcounter{lncount}%
\hypertarget{ln.\thelncount}{}%
}
%% define a command and write it to aux file
\def\outdef#1#2{%
% define command
\expandafter\xdef\csname #1\endcsname{#2}%
% hyperlink number
\expandafter\xdef\csname #1@hl\endcsname{\thelncount}%
% write command to aux
\immediate\write\@auxout{\noexpand\expandafter\noexpand\gdef\noexpand\csname #1\endcsname{\csname #1\endcsname}}%
\immediate\write\@auxout{\noexpand\expandafter\noexpand\gdef\noexpand\csname #1@hl\endcsname{\thelncount}}%
}
%% define a label for the latest tag
%% label defines a command containing the string stored in \tag
\AtBeginDocument{
\def\label#1{\expandafter\outdef{#1}{\safe\tag}}
\def\ref#1{%
% check whether the label is defined (hyperlink runs into errors if this check is ommitted)
\ifcsname #1@hl\endcsname%
\hyperlink{ln.\csname #1@hl\endcsname}{\safe\csname #1\endcsname}%
\else%
\ifcsname #1\endcsname%
\csname #1\endcsname%
\else%
{\bf ??}%
\fi%
\fi%
}
}
%% counters
\newcounter{sectioncount}
\newcounter{subsectioncount}
\newcounter{pointcount}
\newcounter{subpointcount}
\newcounter{subsubpointcount}
\newcounter{seqcount}
\newcounter{figcount}
\newcounter{Theocount}
\newcounter{tocsectioncount}
\newcounter{tocsubsectioncount}
%% section command
\newlength\secnumwidth
\newlength\sectitlewidth
\def\section#1{%
% reset counters
\stepcounter{sectioncount}%
\setcounter{subsectioncount}{0}%
\setcounter{pointcount}{0}%
\setcounter{subpointcount}{0}%
\setcounter{subsubpointcount}{0}%
\setcounter{figcount}{0}%
\setcounter{Theocount}{0}%
\setcounter{seqcount}{0}%
% space before section (if not first)
\ifnum\thesectioncount>1%
\seqskip%
\penalty-1000%
\fi%
% hyperref anchor
\hrefanchor%
% define tag (for \label)
\xdef\tag{\sectionprefix\thesectioncount}%
% get widths
\def\@secnum{{\bf\Large\sectionprefix\thesectioncount.\hskip10pt}}%
\settowidth\secnumwidth{\@secnum}%
\setlength\sectitlewidth\textwidth%
\addtolength\sectitlewidth{-\secnumwidth}%
% print name
\parbox{\textwidth}{%
\@secnum%
\parbox[t]{\sectitlewidth}{\Large\bf #1}}%
% write to table of contents
\iftoc%
% save lncount in aux variable which is written to toc
\immediate\write\tocoutput{\noexpand\expandafter\noexpand\edef\noexpand\csname toc@sec.\thesectioncount\endcsname{\thelncount}}%
\write\tocoutput{\noexpand\tocsection{#1}{\thepage}}%
\fi%
\par\penalty10000%
\bigskip\penalty10000%
}
%% subsection
\def\subsection#1{
% counters
\stepcounter{subsectioncount}%
\setcounter{pointcount}{0}%
\setcounter{subpointcount}{0}%
\setcounter{subsubpointcount}{0}%
\ifsubseqcount%
\setcounter{seqcount}0%
\fi%
% space before subsection
\subseqskip%
\penalty-500%
% hyperref anchor
\hrefanchor
% define tag (for \label)
\xdef\tag{\sectionprefix\thesectioncount.\thesubsectioncount}%
% get widths
\def\@secnum{{\bf\large\hskip.5cm\sectionprefix\thesectioncount.\thesubsectioncount.\hskip5pt}}%
\settowidth\secnumwidth{\@secnum}%
\setlength\sectitlewidth\textwidth%
\addtolength\sectitlewidth{-\secnumwidth}%
% print name
\parbox{\textwidth}{%
\@secnum%
\parbox[t]{\sectitlewidth}{\large\bf #1}}%
% write to table of contents
\iftoc%
% save lncount in aux variable which is written to toc
\immediate\write\tocoutput{\noexpand\expandafter\noexpand\edef\noexpand\csname toc@subsec.\thesectioncount.\thesubsectioncount\endcsname{\thelncount}}%
\write\tocoutput{\noexpand\tocsubsection{#1}{\thepage}}%
\fi%
\par\penalty10000%
\medskip\penalty10000%
}
%% itemize
\newlength\itemizeskip
% left margin for items
\setlength\itemizeskip{20pt}
% item symbol
\def\itemizept{\textbullet}
\newlength\itemizeseparator
% space between the item symbol and the text
\setlength\itemizeseparator{5pt}
% penalty preceding an itemize
\def\itemizepenalty{0}
\newlength\current@itemizeskip
\setlength\current@itemizeskip{0pt}
\def\itemize{
\par\penalty\itemizepenalty\medskip\penalty\itemizepenalty
\addtolength\current@itemizeskip{\itemizeskip}
\leftskip\current@itemizeskip
}
\def\enditemize{
\addtolength\current@itemizeskip{-\itemizeskip}
\par\leftskip\current@itemizeskip
\medskip
}
\newlength\itempt@total
\def\item{
\settowidth\itempt@total{\itemizept}
\addtolength\itempt@total{\itemizeseparator}
\par
\medskip
\hskip-\itempt@total\itemizept\hskip\itemizeseparator
}
%% enumerate
\newcounter{enumerate@count}
\def\enumerate{
\setcounter{enumerate@count}0
\let\olditemizept\itemizept%
\def\itemizept{\stepcounter{enumerate@count}\theenumerate@count.}
}
\def\endenumerate{
\let\itemizept\olditemizept
}
%% points
\def\point{
\stepcounter{pointcount}
\setcounter{subpointcount}{0}
% hyperref anchor
\hrefanchor
\indent{\bf \thepointcount\ - }
% define tag (for \label)
\xdef\tag{\thepointcount}
}
\def\subpoint{
\stepcounter{subpointcount}
\setcounter{subsubpointcount}0
% hyperref anchor
\hrefanchor
\indent\hskip.5cm{\bf \thepointcount-\thesubpointcount\ - }
% define tag (for \label)
\xdef\tag{\thepointcount-\thesubpointcount}
}
\def\subsubpoint{
\stepcounter{subsubpointcount}
% hyperref anchor
\hrefanchor
\indent\hskip1cm{\bf \thepointcount-\thesubpointcount-\thesubsubpointcount\ - }
% define tag (for \label)
\xdef\tag{\thepointcount-\thesubpointcount-\thesubsubpointcount}
}
\def\pspoint{
\stepcounter{pointcount}
\stepcounter{subpointcount}
\setcounter{subsubpointcount}0
% hyperref anchor
\hrefanchor
\indent\hskip.5cm{\bf \thepointcount-\thesubpointcount\ - }
% define tag (for \label)
\xdef\tag{\thepointcount-\thesubpointcount}
}
% reset points
\def\resetpointcounter{
\setcounter{pointcount}{0}
\setcounter{subpointcount}{0}
\setcounter{subsubpointcount}{0}
}
%% equation numbering
\def\seqcount{
\stepcounter{seqcount}
% the output
\edef\seqformat{\theseqcount}
% add subsection number
\ifsubseqcount
\let\tmp\seqformat
\edef\seqformat{\thesubsectioncount.\tmp}
\fi
% add section number
\ifsections
\let\tmp\seqformat
\edef\seqformat{\sectionprefix\thesectioncount.\tmp}
\fi
% define tag (for \label)
\xdef\tag{\seqformat}
% write number
\marginnote{\eqnumstyle\hfill(\seqformat)}
}
%% equation environment compatibility
\def\equation{\hrefanchor$$\seqcount}
\def\endequation{$$\@ignoretrue}
%% figures
\newlength\figwidth
\setlength\figwidth\textwidth
\addtolength\figwidth{-2.5cm}
\def\figcount#1{%
\stepcounter{figcount}%
% hyperref anchor
\hrefanchor%
% the number of the figure
\edef\figformat{\thefigcount}%
% add section number
\ifsections%
\let\tmp\figformat%
\edef\figformat{\sectionprefix\thesectioncount.\tmp}%
\fi%
% define tag (for \label)
\xdef\tag{\figformat}%
% write
\hfil fig \figformat: \parbox[t]{\figwidth}{\leavevmode\small#1}%
\par\bigskip%
}
%% environment
\def\figure{
\par\penalty-500
}
\def\endfigure{
\par\penalty-1000
}
\let\caption\figcount
%% delimiters
\def\delimtitle#1{\par \leavevmode\raise.3em\hbox to\hsize{\lower0.3em\hbox{\vrule height0.3em}\hrulefill\ \lower.3em\hbox{#1}\ \hrulefill\lower0.3em\hbox{\vrule height0.3em}}\par\penalty10000}
\def\delim{\par\leavevmode\raise.3em\hbox to\hsize{\vrule height0.3em\hrulefill\vrule height0.3em}\par\penalty10000}
\def\enddelim{\par\penalty10000\leavevmode\raise.3em\hbox to\hsize{\vrule height0.3em\hrulefill\vrule height0.3em}\par}
%% theorem headers
\def\theo#1{
\stepcounter{Theocount}
% reset points
\ifresetpointattheo\resetpointcounter\fi
% hyperref anchor
\hrefanchor
% the number
\def\formattheo{\theTheocount}
% add section number
\ifsections
\let\tmp\formattheo
\edef\formattheo{\sectionprefix\thesectioncount.\tmp}
\fi
% define tag (for \label)
\xdef\tag{\formattheo}
% write
\delimtitle{\bf #1 \formattheo}
}
\let\endtheo\enddelim
%% start appendices
\def\appendix{%
\vfill
\pagebreak
% counter
\setcounter{sectioncount}0%
% prefix
\def\sectionprefix{A}%
% write
{\bf \LARGE Appendices}\par\penalty10000\bigskip\penalty10000%
% add a mention in the table of contents
\iftoc%
\immediate\write\tocoutput{\noexpand\tocappendices}\penalty10000%
\fi%
%% uncomment for new page for each appendix
%\def\seqskip{\vfill\pagebreak}
}
%% start references
\def\references{%
\hrefanchor%
% write
{\bf \LARGE References}\par\penalty10000\bigskip\penalty10000%
% add a mention in the table of contents
\iftoc%
% save lncount in aux variable which is written to toc
\immediate\write\tocoutput{\noexpand\expandafter\noexpand\edef\noexpand\csname toc@references\endcsname{\thelncount}}%
\write\tocoutput{\noexpand\tocreferences{\thepage}}\penalty10000%
\fi%
}
%% table of contents
\newif\iftocopen
\def\tableofcontents{
{\bf \large Table of contents:}\par\penalty10000\bigskip\penalty10000%
% copy content from file
\IfFileExists{\jobname.toc}{\input{\jobname.toc}}{{\tt error: table of contents missing}}
% open new toc
\newwrite\tocoutput
\immediate\openout\tocoutput=\jobname.toc
\toctrue
}
%% close file
\AtEndDocument{
% close toc
\iftoc
\immediate\closeout\tocoutput
\fi
}
%% fill line with dots
\def\leaderfill{\leaders\hbox to 1em {\hss. \hss}\hfill}
%% same as sectionprefix
\def\tocsectionprefix{}
%% toc formats
\def\tocsection #1#2{
\stepcounter{tocsectioncount}
\setcounter{tocsubsectioncount}{0}
% write
\smallskip\hyperlink{ln.\csname toc@sec.\thetocsectioncount\endcsname}{{\bf \tocsectionprefix\thetocsectioncount}.\hskip5pt #1\leaderfill#2}\par
}
\def\tocsubsection #1#2{
\stepcounter{tocsubsectioncount}
% write
{\hskip10pt\hyperlink{ln.\csname toc@subsec.\thetocsectioncount.\thetocsubsectioncount\endcsname}{{\bf \thetocsubsectioncount}.\hskip5pt {\small #1}\leaderfill#2}}\par
}
\def\tocappendices{
\medskip
\setcounter{tocsectioncount}0
{\bf Appendices}\par
\smallskip
\def\tocsectionprefix{A}
}
\def\tocreferences#1{
\medskip
{\hyperlink{ln.\csname toc@references\endcsname}{{\bf References}\leaderfill#1}}\par
\smallskip
}

47
kiss.cls Normal file
View File

@ -0,0 +1,47 @@
%%
%% Barebones class declaration
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{kiss}
\setlength\paperheight {297mm}
\setlength\paperwidth {210mm}
%% fonts
\input{size11.clo}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
%% something is wrong with \thepage, redefine it
\gdef\thepage{\the\c@page}
%% array lines
\setlength\arraycolsep{5\p@}
\setlength\arrayrulewidth{.4\p@}
%% default offsets: 1in, correct with \hoffset and \voffset
\hoffset=-50pt
\voffset=-72pt
%% horizontal margins
%\oddsidemargin=31pt
%\evensidemargin=31pt
%% vertical margin
%\topmargin=20pt
%% body size
\textwidth=460pt
\textheight=704pt
%% header size and margin
%\headheight=12pt
%\headsep=25pt
%% footer size
%\footskip=30pt
%% margin size and margin
\marginparwidth=35pt
%\marginparsep=10pt

16
local.sty Normal file
View File

@ -0,0 +1,16 @@
\def\tb{\lower0.05cm\hbox{$\blacksquare$}\ }
\def\tbt{\lower0.05cm\hbox{\isquare{0.35cm}}\ }
\def\ta{{\lower0.08cm\hbox{\fontsize{22pt}{1em}$\bullet$}}\ }
\def\tat{{\fontsize{10pt}{1em}$\bigcirc$}\ }
\def\isquare#1{\hbox{\vrule width0.5ptheight#1\kern-0.25pt\vbox{\hrule height0.5ptwidth#1\kern-0.5pt\kern#1\hrule height0.5ptwidth#1\kern-0.25pt}\vrule width0.5ptheight#1}}
\definecolor{darkgreen}{rgb}{0.0,0.7,0.0}
\definecolor{darkyellow}{rgb}{0.7,0.7,0.0}
\definecolor{orange}{rgb}{0.9,0.45,0.0}
\def\coloro{blue}
\def\colort{darkgreen}
\def\colorth{darkyellow}
\def\colorf{orange}
\def\colorfi{red}

44
toolbox.sty Normal file
View File

@ -0,0 +1,44 @@
%%
%% A collection of useful commands
%%
%% can call commands even when they are not defined
\def\safe#1{%
\ifdefined#1%
#1%
\else%
{\color{red}\bf?}%
\fi%
}
%% larger skip
\newskip\hugeskipamount
\hugeskipamount=24pt plus8pt minus8pt
\def\hugeskip{\vskip\hugeskipamount}
%% penalty before large blocks
\def\preblock{
\penalty-500
}
%% listparpenalty prevents page breaks before lists
\newcount\prevparpenalty
\def\listparpenalty{
\prevparpenalty=\@beginparpenalty
\@beginparpenalty=10000
}
%% back to previous value
\def\unlistparpenalty{
\@beginparpenalty=\prevparpenalty
}
%% array spanning the entire line
\newlength\largearray@width
\setlength\largearray@width\textwidth
\addtolength\largearray@width{-10pt}
\def\largearray{\begin{array}{@{}>{\displaystyle}l@{}}\hphantom{\hspace{\largearray@width}}\\[-.5cm]}
\def\endlargearray{\end{array}}