% ross-thesis re-typeset — shared preamble \documentclass[11pt,letterpaper,oneside]{article} \usepackage[letterpaper,top=1.05in,bottom=1.0in,left=1.25in,right=1.25in,headheight=14pt,headsep=0.35in,footskip=0.4in]{geometry} \usepackage{fontspec} \setmainfont{Liberation Serif} \setsansfont{Liberation Sans} \newfontfamily\bnfont{FreeSerif}[Script=Bengali] \usepackage[Latin]{ucharclasses} % (kept for future automatic Bengali fallback) \usepackage{setspace} \usepackage{scrextend} % addmargin \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{xcolor} \usepackage{microtype} \usepackage[bookmarks,bookmarksnumbered=false,hidelinks,pdfusetitle]{hyperref} \hypersetup{pdftitle={The Evolution of the Printed Bengali Character from 1778 to 1978}, pdfauthor={Fiona Georgina Elisabeth Ross}, pdfsubject={Ph.D. thesis, SOAS, University of London, 1988 (re-typeset edition)}, pdfkeywords={Bengali, Bangla, typography, type design, printing history, Linotype, photocomposition}} % ---- page-number-faithful page environment ------------------------------- % \origpage{N} begins an output page carrying the ORIGINAL printed number N. % Every original page maps to exactly one output page. \newcommand{\origpage}[1]{\clearpage\setcounter{page}{#1}\hypertarget{page.#1}{}} \pagestyle{fancy}\fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancyhead[R]{\sffamily\bfseries\thepage} % original: bold sans numeral, top right \fancypagestyle{unnumbered}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}} % ---- footnotes: \fn{n}{text} forces the ORIGINAL footnote number n ------- \newcommand{\fn}[2]{\setcounter{footnote}{\numexpr#1-1\relax}\footnote{#2}} \renewcommand{\footnoterule}{\vspace*{4pt}} \usepackage[hang,flushmargin,bottom]{footmisc} \setlength{\footnotemargin}{1.4em} \renewcommand{\footnotesize}{\fontsize{8.5}{10}\selectfont} % ---- uncertain readings: rendered normally, but logged for user confirmation \newwrite\unsurefile \newcommand{\unsure}[1]{#1\write\unsurefile{p.\thepage: #1}} % ---- section heads as in original (bold, centred, same size as text) ----- \newcommand{\chaphead}[1]{\begin{center}\bfseries #1\end{center}\vspace{0.6em}} \newcommand{\subhead}[1]{\noindent\emph{#1}\par} % ---- plates ---------------------------------------------------------------- % \plate{N}{file}{caption}: image fills text block; caption typeset small below. \newcommand{\plate}[3]{% \begin{center}\vspace*{\fill} \includegraphics[width=\textwidth,height=0.86\textheight,keepaspectratio]{#2} \vspace*{\fill}\end{center} \vfill\noindent{\small #1. #3}\par} \setstretch{1.45} \setlength{\parindent}{0pt} \setlength{\parskip}{0.9em} \raggedbottom % ---- contents / list-of-plates lines ---------------------------------------- % \tocl{indent}{label}{title}{page} — page hyperlinked to page.N target \newcommand{\pg}[1]{\hyperlink{page.#1}{#1}} \newcommand{\tocl}[4]{\noindent\hspace*{#1}\makebox[0.55in][l]{#2}\parbox[t]{\dimexpr\textwidth-#1-0.55in-0.5in\relax}{\raggedright #3}\hfill\makebox[0.5in][r]{\pg{#4}}\par} \newcommand{\toclnp}[3]{\noindent\hspace*{#1}\makebox[0.55in][l]{#2}\parbox[t]{\dimexpr\textwidth-#1-0.55in-0.5in\relax}{\raggedright #3}\par} % \pl{no}{caption}{page} — list-of-plates entry \newcommand{\pl}[3]{\noindent\makebox[0.35in][r]{#1.}\hspace{0.12in}\parbox[t]{\dimexpr\textwidth-0.35in-0.12in-0.5in\relax}{\raggedright #2}\hfill\makebox[0.5in][r]{\pg{#3}}\par} % \ig{file} — inline glyph image cropped from the scan (for glyphs the original set as images) \newcommand{\ig}[1]{\raisebox{-0.35ex}{\includegraphics[height=1.35em]{#1}}} % \plx{no}{caption}{raw page cell} — as \pl but page cell is typeset verbatim \newcommand{\plx}[3]{\noindent\makebox[0.35in][r]{#1.}\hspace{0.12in}\parbox[t]{\dimexpr\textwidth-0.35in-0.12in-0.9in\relax}{\raggedright #2}\hfill\makebox[0.9in][r]{#3}\par}