Skip to content

Commit

Permalink
Footnotesizegate -- easier to control + consistent baselining
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasWrigstad committed Jul 4, 2021
1 parent b2e1da0 commit c43bc27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions javascript/latexContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export const preamble = `\\documentclass[7x10]{../mitpress/mit}
%% NOTE! the following are redefined (and changed back again) below
\\def\\INLINECODESIZE{\\fontsize{10.6pt}{13pt}\\selectfont}
\\def\\inlinecodesize{\\protect\\INLINECODESIZE}
\\def\\inlineexercisecodesize{\\fontsize{9.5pt}{11pt}\\selectfont}
\\def\\inlinefootnotecodesize{\\fontsize{9pt}{10pt}\\selectfont}
\\def\\inlineexercisecodesize{\\fontsize{9.5pt}{12pt}\\selectfont}
\\def\\inlinefootnotecodesize{\\fontsize{9pt}{11pt}\\selectfont}
\\def\\normaloutputcodesize{\\fontsize{9.8}{11pt}\\selectfont}
\\def\\exerciseoutputcodesize{\\fontsize{9}{10pt}\\selectfont}
Expand Down
14 changes: 7 additions & 7 deletions mitpress/mit.cls
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
}

\newcommand\footnotesize{%
\@setfontsize\footnotesize{9\p@}{10.5\p@}%
\@setfontsize\footnotesize{9\p@}{11\p@}%
\abovedisplayskip 6\p@%
\abovedisplayshortskip \z@%
\belowdisplayshortskip 3\p@%
Expand Down Expand Up @@ -1311,12 +1311,12 @@ ItalicFont=SyntaxLTStd-Italic,
\usepackage[splitrule]{footmisc}%
\def\splitfootnoterule{\kern-3\p@ \hbox to 0.5\textwidth{\hrulefill} \kern3.6\p@}

\AtBeginDocument{\renewcommand\@makefntext[1]{%
\fontsize{9\p@}{11\p@}\selectfont\def\@textsuperscript{}%\global\baselineskip=9pt%
\parindent10pt%
\noindent\ignorespaces%\hspace*{10pt}\ignorespaces
\hbox{\@makefnmark.}\ignorespaces\hspace{4\p@}\ignorespaces#1}
}%
% \AtBeginDocument{\renewcommand\@makefntext[1]{%
% \fontsize{9.5\p@}{11.3\p@}\selectfont\def\@textsuperscript{}%\global\baselineskip=9pt%
% \parindent10pt%
% \noindent\ignorespaces%\hspace*{10pt}\ignorespaces
% \hbox{\@makefnmark.}\ignorespaces\hspace{4\p@}\ignorespaces#1}
% }%
\def\@makefnmark{\hbox{\smash{\@textsuperscript{\normalfont\@thefnmark}}}}

%%End Note Definition%%%
Expand Down

0 comments on commit c43bc27

Please sign in to comment.