Initial commit
This commit is contained in:
commit
ee72175941
46
BBlog.sty
Normal file
46
BBlog.sty
Normal file
@ -0,0 +1,46 @@
|
||||
%%
|
||||
%% 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{}
|
||||
|
||||
%% an entry
|
||||
\long\def\BBlogentry#1#2#3{
|
||||
\hrefanchor
|
||||
\outdef{cite#1}{#2}
|
||||
\parbox[t]{\rw}{[\cite{#1}]}\parbox[t]{\colw}{#3}\par
|
||||
\bigskip
|
||||
}
|
||||
|
||||
%% 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/3x2_skel.pdf
Normal file
BIN
Figs/3x2_skel.pdf
Normal file
Binary file not shown.
BIN
Figs/3x2_subskel.pdf
Normal file
BIN
Figs/3x2_subskel.pdf
Normal file
Binary file not shown.
BIN
Figs/Lshape.pdf
Normal file
BIN
Figs/Lshape.pdf
Normal file
Binary file not shown.
BIN
Figs/Lshape_label.pdf
Normal file
BIN
Figs/Lshape_label.pdf
Normal file
Binary file not shown.
BIN
Figs/bethe.pdf
Normal file
BIN
Figs/bethe.pdf
Normal file
Binary file not shown.
BIN
Figs/boundary_circuit.pdf
Normal file
BIN
Figs/boundary_circuit.pdf
Normal file
Binary file not shown.
BIN
Figs/boundary_circuit_label.pdf
Normal file
BIN
Figs/boundary_circuit_label.pdf
Normal file
Binary file not shown.
BIN
Figs/boundary_circuit_naked.pdf
Normal file
BIN
Figs/boundary_circuit_naked.pdf
Normal file
Binary file not shown.
BIN
Figs/circuit.pdf
Normal file
BIN
Figs/circuit.pdf
Normal file
Binary file not shown.
BIN
Figs/comb.pdf
Normal file
BIN
Figs/comb.pdf
Normal file
Binary file not shown.
BIN
Figs/enclosed_example.pdf
Normal file
BIN
Figs/enclosed_example.pdf
Normal file
Binary file not shown.
BIN
Figs/enclosed_example_auxiliary_cover.pdf
Normal file
BIN
Figs/enclosed_example_auxiliary_cover.pdf
Normal file
Binary file not shown.
BIN
Figs/enclosed_example_cover.pdf
Normal file
BIN
Figs/enclosed_example_cover.pdf
Normal file
Binary file not shown.
BIN
Figs/enclosed_example_directed.pdf
Normal file
BIN
Figs/enclosed_example_directed.pdf
Normal file
Binary file not shown.
BIN
Figs/enclosed_example_monomer_auxiliary_cover.pdf
Normal file
BIN
Figs/enclosed_example_monomer_auxiliary_cover.pdf
Normal file
Binary file not shown.
BIN
Figs/enclosed_example_monomer_cover.pdf
Normal file
BIN
Figs/enclosed_example_monomer_cover.pdf
Normal file
Binary file not shown.
BIN
Figs/etareplace_cross.pdf
Normal file
BIN
Figs/etareplace_cross.pdf
Normal file
Binary file not shown.
BIN
Figs/etareplace_empty.pdf
Normal file
BIN
Figs/etareplace_empty.pdf
Normal file
Binary file not shown.
BIN
Figs/etareplace_occupied.pdf
Normal file
BIN
Figs/etareplace_occupied.pdf
Normal file
Binary file not shown.
BIN
Figs/etareplace_r.pdf
Normal file
BIN
Figs/etareplace_r.pdf
Normal file
Binary file not shown.
BIN
Figs/even_example.pdf
Normal file
BIN
Figs/even_example.pdf
Normal file
Binary file not shown.
BIN
Figs/even_example_auxcover.pdf
Normal file
BIN
Figs/even_example_auxcover.pdf
Normal file
Binary file not shown.
BIN
Figs/even_example_auxiliary.pdf
Normal file
BIN
Figs/even_example_auxiliary.pdf
Normal file
Binary file not shown.
BIN
Figs/even_example_cover.pdf
Normal file
BIN
Figs/even_example_cover.pdf
Normal file
Binary file not shown.
BIN
Figs/even_example_label.pdf
Normal file
BIN
Figs/even_example_label.pdf
Normal file
Binary file not shown.
BIN
Figs/even_example_label_pre.pdf
Normal file
BIN
Figs/even_example_label_pre.pdf
Normal file
Binary file not shown.
BIN
Figs/even_example_monomer.pdf
Normal file
BIN
Figs/even_example_monomer.pdf
Normal file
Binary file not shown.
BIN
Figs/extended_dimer.pdf
Normal file
BIN
Figs/extended_dimer.pdf
Normal file
Binary file not shown.
BIN
Figs/extended_dimer_triangle.pdf
Normal file
BIN
Figs/extended_dimer_triangle.pdf
Normal file
Binary file not shown.
BIN
Figs/minimal_circuit.pdf
Normal file
BIN
Figs/minimal_circuit.pdf
Normal file
Binary file not shown.
BIN
Figs/noncoverable.pdf
Normal file
BIN
Figs/noncoverable.pdf
Normal file
Binary file not shown.
BIN
Figs/oddrepl_aft.pdf
Normal file
BIN
Figs/oddrepl_aft.pdf
Normal file
Binary file not shown.
BIN
Figs/oddrepl_bef.pdf
Normal file
BIN
Figs/oddrepl_bef.pdf
Normal file
Binary file not shown.
BIN
Figs/simple_example.pdf
Normal file
BIN
Figs/simple_example.pdf
Normal file
Binary file not shown.
BIN
Figs/simple_example_auxiliary.pdf
Normal file
BIN
Figs/simple_example_auxiliary.pdf
Normal file
Binary file not shown.
BIN
Figs/simple_example_labels.pdf
Normal file
BIN
Figs/simple_example_labels.pdf
Normal file
Binary file not shown.
BIN
Figs/simple_example_monomers.pdf
Normal file
BIN
Figs/simple_example_monomers.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_3.pdf
Normal file
BIN
Figs/triangle_3.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_3_Xcover1.pdf
Normal file
BIN
Figs/triangle_3_Xcover1.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_3_Xcover3.pdf
Normal file
BIN
Figs/triangle_3_Xcover3.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_3_cover1.pdf
Normal file
BIN
Figs/triangle_3_cover1.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_3_cover3.pdf
Normal file
BIN
Figs/triangle_3_cover3.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_3_pre.pdf
Normal file
BIN
Figs/triangle_3_pre.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_4.pdf
Normal file
BIN
Figs/triangle_4.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_4_pre.pdf
Normal file
BIN
Figs/triangle_4_pre.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_5.pdf
Normal file
BIN
Figs/triangle_5.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_5_directed.pdf
Normal file
BIN
Figs/triangle_5_directed.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_5_pre.pdf
Normal file
BIN
Figs/triangle_5_pre.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_groups_l.pdf
Normal file
BIN
Figs/triangle_groups_l.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_groups_lr.pdf
Normal file
BIN
Figs/triangle_groups_lr.pdf
Normal file
Binary file not shown.
BIN
Figs/triangle_groups_r.pdf
Normal file
BIN
Figs/triangle_groups_r.pdf
Normal file
Binary file not shown.
1642
Giuliani_Jauslin_Lieb_2015.tex
Normal file
1642
Giuliani_Jauslin_Lieb_2015.tex
Normal file
File diff suppressed because it is too large
Load Diff
53
README
Normal file
53
README
Normal file
@ -0,0 +1,53 @@
|
||||
* Typeset
|
||||
|
||||
In order to typeset the LaTeX document, run
|
||||
pdflatex Giuliani_Jauslin_Lieb_2015.tex
|
||||
pdflatex Giuliani_Jauslin_Lieb_2015.tex
|
||||
pdflatex Giuliani_Jauslin_Lieb_2015.tex
|
||||
|
||||
|
||||
* Files
|
||||
|
||||
Giuliani_Jauslin_Lieb.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
|
||||
|
||||
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.
|
33
bibliography.BBlog.tex
Normal file
33
bibliography.BBlog.tex
Normal file
@ -0,0 +1,33 @@
|
||||
\BBlogentry{Ai82}{Ai82}{M. Aizenman - {\it Geometric analysis of $\varphi^4$ fields and Ising models}, Communications in Mathematical Physics, Vol.~86, n.~1, p.~1-48, 1982, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1007/BF01205659}{10.1007/BF01205659}}.}
|
||||
\BBlogentry{AD}{AD}{M. Aizenman, H. Duminil-Copin - private communication.}
|
||||
\BBlogentry{ACM14}{ACM14}{D. Alberici, P. Contucci, E. Mingione - {\it A mean-field monomer-dimer model with attractive interaction: Exact solution and rigorous results}, Journal of Mathematical Physics, Vol.~55, n.~063301, 2014, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1063/1.4881725}{10.1063/1.4881725}}.}
|
||||
\BBlogentry{AF14}{AF14}{N. Allegra, J. Fortin - {\it Grassmannian representation of the two-dimensional monomer-dimer model}, Physical Review E, Vol.~89, n.~062107, 2014, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1103/PhysRevE.89.062107}{10.1103/PhysRevE.89.062107}}.}
|
||||
\BBlogentry{CHI15}{CHI15}{D. Chelkak, C. Hongler, K. Izyurov - {\it Conformal invariance of spin correlations in the planar Ising model}, Annals of Mathematics, Vol.~181, n.~3, p.~1087-1138, 2015, doi:{\tt\color{blue}\href{http://dx.doi.org/10.4007/annals.2015.181.3.5}{10.4007/annals.2015.181.3.5}}.}
|
||||
\BBlogentry{Du11}{Du11}{J. Dub\'edat - {\it Exact bosonization of the Ising model}, arXiv:1112.4399, 2011.}
|
||||
\BBlogentry{Du15}{Du15}{J. Dub\'edat - {\it Dimers and families of Cauchy-Riemann operators I}, Journal of the American Mathematical Society, Vol.~28, n.~4, p.~1063-1167, 2015, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1090/jams/824}{10.1090/jams/824}}.}
|
||||
\BBlogentry{FS63}{FS63}{M.E. Fisher, J. Stephenson - {\it Statistical Mechanics of Dimers on a Plane Lattice. II. Dimer Correlations and Monomers}, Physical Review, Vol.~132, n.~4, p.~1411-1431, 1963, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1103/PhysRev.132.1411}{10.1103/PhysRev.132.1411}}.}
|
||||
\BBlogentry{FH69}{FH69}{M. Fisher, R. E. Hartwig - in Stochastic Processes in Chemical Physics, ed. K. E. Shuler, John Wiley and Sons, New York, 1969, Vol. 15, p.333.}
|
||||
\BBlogentry{GGM12}{GGM12}{A. Giuliani, R.L. Greenblatt, V. Mastropietro - {\it The scaling limit of the energy correlations in non-integrable Ising models}, Journal of Mathematical Physics, Vol.~53, n.~095214, 2012, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1063/1.4745910}{10.1063/1.4745910}}.}
|
||||
\BBlogentry{GMT15b}{GMT15}{A. Giuliani, V. Mastropietro, F. Toninelli - {\it Height fluctuations in non-integrable classical dimers}, EPL (Europhysics Letters), Vol.~109, n.~6, p.~60004, 2015, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1209/0295-5075/109/60004}{10.1209/0295-5075/109/60004}}.}
|
||||
\BBlogentry{GMT15}{GMT15b}{A. Giuliani, V. Mastropietro, F.L. Toninelli - {\it Height fluctuations in interacting dimers}, Annales de l'Institut Henri Poincar\'e, Probability and Statistics, in press, arXiv:1406.7710, 2015.}
|
||||
\BBlogentry{Ha66}{Ha66}{R.E. Hartwig - {\it Monomer Pair Correlations}, Journal of Mathematical Physics, Vol.~7, n.~2, p.~286-299, 1966, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1063/1.1704931}{10.1063/1.1704931}}.}
|
||||
\BBlogentry{HL70}{HL70}{O.J. Heilmann, E.H. Lieb - {\it Monomers and dimers}, Physical Review Letters, Vol.~24, n.~25, p.~1412-1414, 1970, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1103/PhysRevLett.24.1412}{10.1103/PhysRevLett.24.1412}}.}
|
||||
\BBlogentry{HL72}{HL72}{O.J. Heilmann, E.H. Lieb - {\it Theory of monomer-dimer systems}, Communications in Mathematical Physics, Vol.~25, n.~3, p.~190-232, 1972, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1007/BF01877590}{10.1007/BF01877590}}.}
|
||||
\BBlogentry{Je87}{Je87}{M. Jerrum - {\it Two-dimensional monomer-dimer systems are computationally intractable}, Journal of Statistical Physics, Vol.~48, n.~1-2, 1987, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1007/BF01010403}{10.1007/BF01010403}}.}
|
||||
\BBlogentry{Ka63}{Ka63}{P.W. Kasteleyn - {\it Dimer statistics and phase transitions}, Journal of Mathematical Physics, Vol.~4, n.~2, p.~287-293, 1963, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1063/1.1703953}{10.1063/1.1703953}}.}
|
||||
\BBlogentry{KRS96}{KRS96}{C. Kenyon, D. Randall, A. Sinclair - {\it Approximating the number of monomer-dimer coverings of a lattice}, Journal of Statistical Physics, Vol.~83, n.~3-4, 1996, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1007/BF02183743}{10.1007/BF02183743}}.}
|
||||
\BBlogentry{Ke00}{Ke00}{R. Kenyon - {\it Conformal invariance of domino tiling}, The Annals of Probability, Vol.~28, n.~2, p.~759-795, 2000.}
|
||||
\BBlogentry{Ke01}{Ke01}{R. Kenyon - {\it Dominos and the Gaussian free field}, The Annals of Probability, Vol.~29, n.~3, p.~1128-1137, 2001.}
|
||||
\BBlogentry{Ko06c}{Ko06}{Y. Kong - {\it Monomer-dimer model in two-dimensional rectangular lattices with fixed dimer density}, Physical Review E, Vol.~74, n.~061102, 2006.}
|
||||
\BBlogentry{Kr06}{Kr06}{W. Krauth - {\it Statistical mechanics: Algorithms and computations}, Oxford Masters Series in Statistical, Computational, and Theoretical Physics, Oxford University Press, 2006.}
|
||||
\BBlogentry{Li67}{Li67}{E.H. Lieb - {\it Solution of the dimer problem by the transfer matrix method}, Journal of Mathematical Physics, Vol.~8, n.~12, p.~2339-2341, 1967, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1063/1.1705163}{10.1063/1.1705163}}.}
|
||||
\BBlogentry{Li68}{Li68}{E.H. Lieb - {\it A theorem on Pfaffians}, Journal of Combinatorial Theory, Vol.~5, p.~313-319, 1968, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1016/S0021-9800(68)80078-X}{10.1016/S0021-9800(68)80078-X}}.}
|
||||
\BBlogentry{LL93}{LL93}{E.H. Lieb, M. Loss - {\it Fluxes, Laplacians, and Kasteleyn's Theorem}, Duke Mathematical Journal, Vol.~71, n.~2, p.~337-363, 1993.}
|
||||
\BBlogentry{PS}{PS}{H. Pinson, T. Spencer - {\it Universality and the two-dimensional Ising model}, unpublished.}
|
||||
\BBlogentry{PR08}{PR08}{V.B. Priezzhev, P. Ruelle - {\it Boundary monomers in the dimer model}, Physical Review E, Vol.~77, n.~061126, 2008, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1103/PhysRevE.77.061126}{10.1103/PhysRevE.77.061126}}.}
|
||||
\BBlogentry{Sm01}{Sm01}{S. Smirnov - {\it Critical percolation in the plane: conformal invariance, Cardy's formula, scaling limits}, Comptes Rendus de l'Acad\'emie des Sciences - Series I - Mathematics, Vol.~333, n.~3, p.~239-244, 2001, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1016/S0764-4442(01)01991-7}{10.1016/S0764-4442(01)01991-7}}.}
|
||||
\BBlogentry{Sm10}{Sm10}{S. Smirnov - {\it Conformal invariance in random cluster models. I. Holomorphic fermions in the Ising model}, Annals of Mathematics, Vol.~172, n.~2, p.~1435-1467, 2010, doi:{\tt\color{blue}\href{http://dx.doi.org/10.4007/annals.2010.172.1435}{10.4007/annals.2010.172.1435}}.}
|
||||
\BBlogentry{Sp00}{Sp00}{T. Spencer - {\it A mathematical approach to universality in two dimensions}, Physica A, Vol.~279, p.~250-259, 2000, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1016/S0378-4371(00)00011-X}{10.1016/S0378-4371(00)00011-X}}.}
|
||||
\BBlogentry{TF61}{TF61}{H.N.V. Temperley, M.E. Fisher - {\it Dimer problem in statistical mechanics - an exact result}, Philosophical Magazine, Vol.~6, n.~68, p.~1061-1063, 1961.}
|
||||
\BBlogentry{TW03}{TW03}{W. Tzeng, F.Y. Wu - {\it Dimers on a simple-quartic net with a vacancy}, Journal of Statistical Physics, Vol.~110, n.~3-6, p.~671-689, 2003, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1023/A:1022155701655}{10.1023/A:1022155701655}}.}
|
||||
\BBlogentry{Wu06}{Wu06}{F.Y. Wu - {\it Pfaffian solution of a dimer-monomer problem: single monomer on the boundary}, Physical Review E, Vol.~74, n.~020104, 2006, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1103/PhysRevE.74.020104}{10.1103/PhysRevE.74.020104}}.}
|
15
header.sty
Normal file
15
header.sty
Normal file
@ -0,0 +1,15 @@
|
||||
%%
|
||||
%% Load packages
|
||||
%%
|
||||
|
||||
\usepackage{xcolor}
|
||||
\usepackage[hidelinks]{hyperref}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{amsfonts}
|
||||
\usepackage{amssymb}
|
||||
\usepackage{array}
|
||||
\usepackage{etoolbox}
|
||||
\usepackage{dsfont}
|
||||
\usepackage{array}
|
||||
\usepackage{bm}
|
||||
|
509
iansecs.sty
Normal file
509
iansecs.sty
Normal file
@ -0,0 +1,509 @@
|
||||
%%
|
||||
%% 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}{{\color{blue}\safe\csname #1\endcsname}}%
|
||||
\else%
|
||||
\ifcsname #1\endcsname%
|
||||
{\color{blue}\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\caption#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%
|
||||
}
|
||||
%% short caption: centered
|
||||
\def\captionshort#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: {\small#1}%
|
||||
\par\bigskip%
|
||||
}
|
||||
|
||||
%% environment
|
||||
\def\figure{
|
||||
\par\penalty-500
|
||||
}
|
||||
\def\endfigure{
|
||||
\par\penalty-1000
|
||||
}
|
||||
|
||||
%% 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}
|
||||
|
||||
%% callable by ref
|
||||
\def\delimtitleref#1{\par%
|
||||
% hyperref anchor
|
||||
\hrefanchor%
|
||||
% define tag (for \label)
|
||||
\xdef\tag{#1}%
|
||||
\leavevmode%
|
||||
\raise.3em\hbox to\hsize{%
|
||||
\lower0.3em\hbox{\vrule height0.3em}%
|
||||
\hrulefill%
|
||||
\ \lower.3em\hbox{\bf #1}\ %
|
||||
\hrulefill%
|
||||
\lower0.3em\hbox{\vrule height0.3em}%
|
||||
}\par\penalty10000}
|
||||
|
||||
%% no title
|
||||
\def\delim{\par%
|
||||
\leavevmode\raise.3em\hbox to\hsize{%
|
||||
\lower0.3em\hbox{\vrule height0.3em}%
|
||||
\hrulefill%
|
||||
\lower0.3em\hbox{\vrule height0.3em}%
|
||||
}\par\penalty10000}
|
||||
|
||||
%% end delim
|
||||
\def\enddelim{\par\penalty10000%
|
||||
\leavevmode%
|
||||
\raise.3em\hbox to\hsize{%
|
||||
\vrule height0.3em\hrulefill\vrule height0.3em%
|
||||
}\par}
|
||||
|
||||
\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
|
||||
%% theorem headers with name
|
||||
\def\theoname#1#2{
|
||||
\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\ \rm(\it #2\rm)}
|
||||
}
|
||||
|
||||
%% 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 {\color{blue}#1}\leaderfill#2}\par
|
||||
}
|
||||
\def\tocsubsection #1#2{
|
||||
\stepcounter{tocsubsectioncount}
|
||||
% write
|
||||
{\hskip10pt\hyperlink{ln.\csname toc@subsec.\thetocsectioncount.\thetocsubsectioncount\endcsname}{{\bf \thetocsubsectioncount}.\hskip5pt {\color{blue}\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}{{\color{blue}\bf References}\leaderfill#1}}\par
|
||||
\smallskip
|
||||
}
|
47
kiss.cls
Normal file
47
kiss.cls
Normal 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
|
46
toolbox.sty
Normal file
46
toolbox.sty
Normal file
@ -0,0 +1,46 @@
|
||||
%%
|
||||
%% 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
|
||||
}
|
||||
|
||||
%% stack relations in subscript or superscript
|
||||
\def\mAthop#1{\displaystyle\mathop{\scriptstyle #1}}
|
||||
|
||||
%% 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}}
|
||||
|
Loading…
Reference in New Issue
Block a user