LaTeX how-tos
142 tasks, from fractions to bibliographies, each with code you can copy.
Math
- Fractions in LaTeX
- Square root and nth root in LaTeX
- Exponents and subscripts in LaTeX
- Integrals in LaTeX
- Sums and products in LaTeX
- Limits in LaTeX
- Matrices in LaTeX
- Align equations in LaTeX
- Piecewise functions in LaTeX
- Number equations in LaTeX
- Break a long equation over several lines in LaTeX
- Bold math symbols in LaTeX
- Math fonts in LaTeX
- Text in math mode in LaTeX
- Large brackets in LaTeX
- Binomial coefficient in LaTeX
- Derivatives and partial derivatives in LaTeX
- Vectors in LaTeX
- Absolute value and norm in LaTeX
- Systems of equations in LaTeX
- Theorems, lemmas and proofs in LaTeX
- Spacing in math mode in LaTeX
- Inline and display math in LaTeX
- Units and numbers in LaTeX with siunitx
- Chemical formulas and reactions in LaTeX
- Underbrace and overbrace in LaTeX
- Cancel terms in an equation in LaTeX
- Define a math operator in LaTeX
- Box around an equation in LaTeX
- Degree symbol in LaTeX
Text
- Bold, italic and underlined text in LaTeX
- Change the font size in LaTeX
- Change the font in LaTeX
- Colored text in LaTeX
- Highlight text in LaTeX
- Strikethrough text in LaTeX
- Line break and new paragraph in LaTeX
- Paragraph indentation in LaTeX
- Line spacing in LaTeX
- Center, left-align and right-align text in LaTeX
- Bulleted and numbered lists in LaTeX
- Change list labels in LaTeX
- Description lists in LaTeX
- Footnotes in LaTeX
- Quotation marks in LaTeX
- Umlauts and accents in LaTeX
- Special characters in LaTeX: percent, underscore, ampersand, backslash
- Non-breaking space in LaTeX
- Hyphenation in LaTeX
- Hyphen, en dash and em dash in LaTeX
- Superscript and subscript in text in LaTeX
- Block quotes in LaTeX
- Comments in LaTeX source
- Horizontal and vertical space in LaTeX
Tables
- Create a table in LaTeX
- Merge table cells in LaTeX
- Set the column width of a table in LaTeX
- Table borders and lines in LaTeX
- Table caption and label in LaTeX
- Table across multiple pages in LaTeX
- Center a table in LaTeX
- Align text in table cells in LaTeX
- Color table rows, columns and cells in LaTeX
- Footnotes in a table in LaTeX
- Rotate a table in LaTeX
- Line break in a table cell in LaTeX
- Row height and cell padding in LaTeX tables
- Align numbers at the decimal point in LaTeX tables
- Fit a table that is too wide in LaTeX
Figures and images
- Insert an image in LaTeX
- Resize an image in LaTeX
- Figure placement in LaTeX
- Subfigures in LaTeX
- Figure caption and label in LaTeX
- Wrap text around an image in LaTeX
- Rotate an image in LaTeX
- Crop an image in LaTeX
- Place images side by side in LaTeX
- Set the image folder in LaTeX
- Include PDF pages in LaTeX
- Center an image in LaTeX
Page layout
- Set page margins in LaTeX
- Set paper size and orientation in LaTeX
- Rotate a single page to landscape in LaTeX
- Headers and footers in LaTeX
- Page numbers in LaTeX
- Two-column text in LaTeX
- Page break in LaTeX
- Line numbers in LaTeX
- Add a watermark in LaTeX
- Space between paragraphs in LaTeX
- Draw a box around text in LaTeX
- Place content side by side in LaTeX
- Change the format of section titles in LaTeX
Document structure
- Create a minimal document in LaTeX
- Sections, subsections and chapters in LaTeX
- Create a table of contents in LaTeX
- Create a title page in LaTeX
- Write an abstract in LaTeX
- Add an appendix in LaTeX
- Split a document into multiple files in LaTeX
- List of figures and list of tables in LaTeX
- Unnumbered sections in LaTeX
- Define your own commands in LaTeX
- Define your own environments in LaTeX
- Counters in LaTeX
- Create an index in LaTeX
- Glossary and list of acronyms in LaTeX
Cross-references and links
- Cross-references in LaTeX
- Insert hyperlinks in LaTeX
- Change link colours in LaTeX
- References with automatic names in LaTeX
- Refer to a page number in LaTeX
- Set PDF metadata in LaTeX
Bibliography
- Create a bibliography in LaTeX with biblatex and Biber
- Create a bibliography in LaTeX with BibTeX
- Citation styles in LaTeX
- Cite sources in LaTeX
- Write a .bib file in LaTeX
- Add the bibliography to the table of contents in LaTeX
- Cite with page numbers in LaTeX
- Bibliography without BibTeX in LaTeX
Source code
- Insert source code in LaTeX
- Inline code in LaTeX
- Write pseudocode in LaTeX
- Verbatim text in LaTeX
- Include source code from a file in LaTeX
Drawings and plots
- Draw with TikZ in LaTeX
- Draw a flowchart in LaTeX with TikZ
- Draw a graph with nodes and edges in LaTeX
- Plot a function in LaTeX
- Plot data from a file in LaTeX
- Create a bar chart in LaTeX
- Draw a tree diagram in LaTeX
- Draw a commutative diagram in LaTeX
Presentations
- Create a presentation in LaTeX
- Change the theme and colours of a beamer presentation in LaTeX
- Show slide content step by step in LaTeX