From 219d5c2a6d4840bf9c52bae955f40cf5ed6de936 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Mon, 26 Oct 2015 13:23:54 +0000 Subject: Update to v1.1 Wrong factor in (13) Typos Update style files, add DOIs to the bibliography --- BBlog.sty | 10 ++- Gallavotti_Jauslin_2015.tex | 4 +- bibliography.BBlog.tex | 20 ++---- iansecs.sty | 144 +++++++++++++++++++++++++++++++++++++++----- toolbox.sty | 7 ++- 5 files changed, 149 insertions(+), 36 deletions(-) diff --git a/BBlog.sty b/BBlog.sty index 56f542b..e5e6703 100644 --- a/BBlog.sty +++ b/BBlog.sty @@ -4,7 +4,7 @@ %% length used to display the bibliography \newlength{\rw} -\setlength{\rw}{1.5cm} +\setlength{\rw}{1.75cm} %% read header \IfFileExists{header.BBlog.tex}{\input{header.BBlog}}{} @@ -28,6 +28,14 @@ %% an empty definition for the aux file \def\BBlogcite#1{} +%% an entry +\long\def\BBlogentry#1#2#3{ + \hrefanchor + \outdef{label@cite#1}{#2} + \parbox[t]{\rw}{[\cite{#1}]}\parbox[t]{\colw}{#3}\par + \bigskip +} + %% display the bibliography \long\def\BBlography{ \newlength{\colw} diff --git a/Gallavotti_Jauslin_2015.tex b/Gallavotti_Jauslin_2015.tex index e39a636..c0eb89c 100644 --- a/Gallavotti_Jauslin_2015.tex +++ b/Gallavotti_Jauslin_2015.tex @@ -112,7 +112,7 @@ and find that with \begin{equation}\begin{array}{r@{\quad}l} O_{0,\eta}^{[\le 0]}(\Delta):=\frac12\mathbf A^{[\le 0]}_\eta(\Delta)\cdot\bm\tau,& O_{1,\eta}^{[\le 0]}(\Delta):=\frac12\mathbf A^{[\le 0]}_\eta(\Delta)^2,\\[0.3cm] -O_{4,\eta}^{[\le 0]}(\Delta):=\frac12\mathbf A^{[\le 0]}_\eta(\Delta)\cdot\bm\omega,& O_{5,\eta}^{[\le 0]}(\Delta):=\frac12\mathbf \bm\tau\cdot\bm\omega,\\[0.3cm] +O_{4,\eta}^{[\le 0]}(\Delta):=\frac12\mathbf A^{[\le 0]}_\eta(\Delta)\cdot\bm\omega,& O_{5,\eta}^{[\le 0]}(\Delta):=\frac12 \bm\tau\cdot\bm\omega,\\[0.3cm] O_{6,\eta}^{[\le 0]}(\Delta):=\frac12(\mathbf A^{[\le 0]}_\eta(\Delta)\cdot\bm\omega)(\bm\tau\cdot\bm\omega),& O_{7,\eta}^{[\le 0]}(\Delta):=\frac12(\mathbf A^{[\le 0]}_\eta(\Delta)^2)(\bm\tau\cdot\bm\omega) \end{array}\label{eqOdef}\end{equation} (the numbering is meant to recall that in [\cite{BGJ15}]) in which $\bm\tau=(\tau^1,\tau^2,\tau^3)$ and $\mathbf A_\eta^{[\le 0]}(\Delta)$ is a vector of polynomials in the fields whose $j$-th component for $j\in\{1,2,3\}$ is @@ -123,7 +123,7 @@ $\psi_\alpha^{[\le 0]\pm}:=\sum_{m\le0}2^{\frac m2}\psi_\alpha^{[m]\pm}$, and \begin{equation}\begin{array}{r@{\ }>{\displaystyle}l} C=&\cosh(\tilde h),\quad \ell_0^{[0]}=\frac1C\frac{\lambda_0}{\tilde h}\sinh(\tilde h),\quad \ell_1^{[0]}=\frac1C\frac{\lambda_0^2}{12\tilde h}(\tilde h\cosh(\tilde h)+2\sinh(\tilde h))\\[0.3cm] -\ell_4^{[0]}=&\frac1C\lambda_0\sinh(\tilde h),\quad \ell_5^{[0]}=\frac1C\sinh(\tilde h),\quad +\ell_4^{[0]}=&\frac1C\lambda_0\sinh(\tilde h),\quad \ell_5^{[0]}=\frac2C\sinh(\tilde h),\quad \ell_6^{[0]}=\frac1C\frac{\lambda_0}{\tilde h}(\tilde h\cosh(\tilde h)-\sinh(\tilde h))\\[0.3cm] \ell_7^{[0]}=&\frac1C\frac{\lambda_0^2}{12\tilde h^2}(\tilde h^2\sinh(\tilde h)+2\tilde h\cosh(\tilde h)-2\sinh(\tilde h)) \end{array}\label{eqinitcd}\end{equation} diff --git a/bibliography.BBlog.tex b/bibliography.BBlog.tex index 431556e..343e496 100644 --- a/bibliography.BBlog.tex +++ b/bibliography.BBlog.tex @@ -1,16 +1,4 @@ -\hrefanchor -\outdef{citeAn61}{An61} -\hbox{\parbox[t]{\rw}{[\cite{An61}]}\parbox[t]{\colw}{P.W. Anderson - {\it Localized magnetic states in metals}, Physical Review, Vol.~124, n.~1, p.~41-53, 1961.}}\par -\bigskip -\hrefanchor -\outdef{citeAn80}{An80} -\hbox{\parbox[t]{\rw}{[\cite{An80}]}\parbox[t]{\colw}{N. Andrei - {\it Diagonalization of the Kondo Hamiltonian}, Physical Review Letters, Vol.~45, n.~5, 1980.}}\par -\bigskip -\hrefanchor -\outdef{citeBGJ15}{BGJ15} -\hbox{\parbox[t]{\rw}{[\cite{BGJ15}]}\parbox[t]{\colw}{G. Benfatto, G. Gallavotti, I. Jauslin - {\it Kondo effect in a Fermionic hierarchical model}, arXiv 1506.04381, 2015.}}\par -\bigskip -\hrefanchor -\outdef{citeKo64}{Ko64} -\hbox{\parbox[t]{\rw}{[\cite{Ko64}]}\parbox[t]{\colw}{J. Kondo - {\it Resistance minimum in dilute magnetic alloys}, Progress of Theoretical Physics, Vol.~32, n.~1, 1964.}}\par -\bigskip +\BBlogentry{An61}{An61}{P.W. Anderson - {\it Localized magnetic states in metals}, Physical Review, Vol.~124, n.~1, p.~41-53, 1961, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1103/PhysRev.124.41}{10.1103/PhysRev.124.41}}.} +\BBlogentry{An80}{An80}{N. Andrei - {\it Diagonalization of the Kondo Hamiltonian}, Physical Review Letters, Vol.~45, n.~5, 1980, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1103/PhysRevLett.45.379}{10.1103/PhysRevLett.45.379}}.} +\BBlogentry{BGJ15}{BGJ15}{G. Benfatto, G. Gallavotti, I. Jauslin - {\it Kondo effect in a Fermionic hierarchical model}, to appear in the Journal of Statistical Physics, 2015, doi:{\color{blue}\href{http://dx.doi.org/10.1007/s10955-015-1378-7}{10.1007/s10955-015-1378-7}}.} +\BBlogentry{Ko64}{Ko64}{J. Kondo - {\it Resistance minimum in dilute magnetic alloys}, Progress of Theoretical Physics, Vol.~32, n.~1, 1964, doi:{\tt\color{blue}\href{http://dx.doi.org/10.1143/PTP.32.37}{10.1143/PTP.32.37}}.} diff --git a/iansecs.sty b/iansecs.sty index ee6ab04..24894ad 100644 --- a/iansecs.sty +++ b/iansecs.sty @@ -40,6 +40,16 @@ \eject } +%% prevent page breaks +\newcount\prevpostdisplaypenalty +\def\nopagebreakaftereq{ + \prevpostdisplaypenalty=\postdisplaypenalty + \postdisplaypenalty=10000 +} +\def\restorepagebreakaftereq{ + \postdisplaypenalty=\prevpostdisplaypenalty +} + %% hyperlinks % hyperlinkcounter \newcounter{lncount} @@ -64,15 +74,21 @@ %% 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\label#1{\expandafter\outdef{label@#1}{\safe\tag}} + +%% make a custom link at any given location in the document +\def\makelink#1#2{ + \hrefanchor + \outdef{label@#1}{#2} +} \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}% +\ifcsname label@#1@hl\endcsname% +\hyperlink{ln.\csname label@#1@hl\endcsname}{{\color{blue}\safe\csname label@#1\endcsname}}% \else% -\ifcsname #1\endcsname% -\csname #1\endcsname% +\ifcsname label@#1\endcsname% +{\color{blue}\csname #1\endcsname}% \else% {\bf ??}% \fi% @@ -143,11 +159,9 @@ \ifsubseqcount% \setcounter{seqcount}0% \fi% -% space before subsection (if not first) -\ifnum\thesubsectioncount>1% +% space before subsection \subseqskip% \penalty-500% -\fi% % hyperref anchor \hrefanchor % define tag (for \label) @@ -180,11 +194,13 @@ \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\medskip + \par\penalty\itemizepenalty\medskip\penalty\itemizepenalty \addtolength\current@itemizeskip{\itemizeskip} \leftskip\current@itemizeskip } @@ -202,6 +218,31 @@ \hskip-\itempt@total\itemizept\hskip\itemizeseparator } +%% enumerate +\newcounter{enumerate@count} +\def\enumerate{ + \setcounter{enumerate@count}0 + \let\olditem\item + \let\olditemizept\itemizept + \def\item{ + % counter + \stepcounter{enumerate@count} + % set header + \def\itemizept{\theenumerate@count.} + % hyperref anchor + \hrefanchor + % define tag (for \label) + \xdef\tag{\theenumerate@count} + \olditem + } + \itemize +} +\def\endenumerate{ + \enditemize + \let\item\olditem + \let\itemizept\olditemizept +} + %% points \def\point{ \stepcounter{pointcount} @@ -229,6 +270,17 @@ % 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} @@ -265,7 +317,7 @@ \setlength\figwidth\textwidth \addtolength\figwidth{-2.5cm} -\def\figcount#1{% +\def\caption#1{% \stepcounter{figcount}% % hyperref anchor \hrefanchor% @@ -279,7 +331,25 @@ % define tag (for \label) \xdef\tag{\figformat}% % write -\hfil fig \figformat: \parbox[t]{\figwidth}{\small#1}% +\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% } @@ -290,10 +360,48 @@ \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\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} @@ -317,6 +425,10 @@ \delimtitle{\bf #1 \formattheo} } \let\endtheo\enddelim +%% theorem headers with name +\def\theoname#1#2{ + \theo{#1}\hfil({\it #2})\par\penalty10000\medskip% +} %% start appendices \def\appendix{% @@ -381,12 +493,12 @@ \stepcounter{tocsectioncount} \setcounter{tocsubsectioncount}{0} % write - \smallskip\hyperlink{ln.\csname toc@sec.\thetocsectioncount\endcsname}{{\bf \tocsectionprefix\thetocsectioncount}.\hskip5pt #1\leaderfill#2}\par + \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 {\small #1}\leaderfill#2}}\par + {\hskip10pt\hyperlink{ln.\csname toc@subsec.\thetocsectioncount.\thetocsubsectioncount\endcsname}{{\bf \thetocsubsectioncount}.\hskip5pt {\color{blue}\small #1}\leaderfill#2}}\par } \def\tocappendices{ \medskip @@ -397,6 +509,6 @@ } \def\tocreferences#1{ \medskip - {\hyperlink{ln.\csname toc@references\endcsname}{{\bf References}\leaderfill#1}}\par + {\hyperlink{ln.\csname toc@references\endcsname}{{\color{blue}\bf References}\leaderfill#1}}\par \smallskip } diff --git a/toolbox.sty b/toolbox.sty index 620ed50..7f5738e 100644 --- a/toolbox.sty +++ b/toolbox.sty @@ -34,8 +34,13 @@ \@beginparpenalty=\prevparpenalty } +%% stack relations in subscript or superscript +\def\mAthop#1{\displaystyle\mathop{\scriptstyle #1}} %% array spanning the entire line -\def\largearray{\begin{array}{@{}>{\displaystyle}l@{}}\hphantom{\hspace{\textwidth}}\\[-.5cm]} +\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}} -- cgit v1.2.3-54-g00ecf