Miscellaneous Resources

A collection of LaTeX preambles, course materials, question solutions, and reference textbooks.

LaTeX Preambles

Ready-to-use LaTeX preambles that I use for homework, proposals, and journal submissions. A preamble is not a full document: download it next to your own main.tex, load it with \input{<file name>}, and write your content after \begin{document}. Each file explains its own usage in the header comments. Free to use, modify, and share under the MIT License.

arXiv Preprint | Project and Research Proposals

2026-10-22

The look of the popular arXiv preprint style in one self-contained file, with no separate .sty to upload. Good for arXiv preprints, project proposals, research proposals, and course project reports. Compile with XeLaTeX; it uses the free TeX Gyre fonts and has an optional block for Chinese text. Your main.tex starts with \documentclass{article} and then inputs this file.

Three pages of a demo document typeset with the arXiv preamble: title page, figure and results table, references.

Homework | Single Column

2026-10-22

A 12pt single-column layout with a title rule, a running head with the date, and a page footer. Mostly for homework and problem sets, and also fine for lecture notes and short reports. Compile with pdfLaTeX and biber; it already sets the document class.

Three pages of a demo document typeset with the single-column homework preamble.

Homework | Double Column

2026-10-22

The two-column, 11pt version of the homework preamble, with narrow margins so more fits on a page. Mostly for homework and problem sets, and also for compact reports. Compile with pdfLaTeX and biber; it already sets the document class.

Two pages of a demo document typeset with the double-column homework preamble.

Add-on | Answer Boxes and Code Listings

2026-10-27

Load after any preamble above. Adds an answerpart environment that sets your answers apart from the questions in a homework, plus colored code listings for Python and JSON.

Journal | ACS (American Chemical Society)

2026-10-22

For manuscripts submitted to ACS journals: ACS-style numbered citations, Scheme and Chart floats, and chemical formulas with \ch{}. Compile with pdfLaTeX and biber; needs the biblatex-chem package and a references.bib file.

Three pages of a demo document typeset with the ACS journal preamble.

Journal | IOP Publishing

2026-10-22

For manuscripts submitted to IOP Publishing journals, with chemistry, SI units, and code listings ready. Needs iopjournal.cls from IOP's author template in the same folder; the title and author block goes right after \begin{document}, as shown in the file.

Course Materials

MIT 6.8610 | NLP – The 100-Question Challenge

2026-07-05

Exam review for MIT 6.8610 Quantitative Methods for Natural Language Processing: 100 questions with answers, from embeddings and attention to Transformers, RLHF, RAG, and LM agents. Ed's personal notes from MIT 6.8610, not official course material.

Three pages of the NLP review handout: title page with the 12-chapter contents, the Embedding chapter, and the Retrieval and RAG chapter.

MIT 6.6000 | CMOS Analog and Mixed-Signal Circuit Design

2025-12-10

Lecture notes for advanced topics in electrical engineering at MIT.

Reference Textbooks

Design of Analog CMOS Integrated Circuits

2026-02-06

2nd Edition by Behzad Razavi. Published by McGraw-Hill Education in 2017. Comprehensive reference for analog CMOS circuit design and semiconductor device physics.

Mathematics for Machine Learning

2026-02-06

1st Edition by Marc Peter Deisenroth, A. Aldo Faisal, and Cheng Soon Ong. Published by Cambridge University Press in 2020. Essential reference for linear algebra, vector calculus, optimization, probability, and statistics as applied to machine learning.