gemini-2.5-flash| input-price: 0.3 output-price: 2.5 max-context-length: 128_000 (cost: $0.02) · Anfrage: 2025-08-17T15:34:43.287432
Generated by rs-summarizer Version unbekannt
Abstract:
This presentation, titled "Syntax ist nicht mein Freund – wie man es richtig macht" (Syntax is not my friend – how to do it correctly), is aimed at LaTeX users ("LaTeX fetishists") and provides a comprehensive guide to best practices in typesetting, particularly focusing on mathematical formulas and general text. Hans Schülerin, an experienced LaTeX user, delves into common pitfalls and demonstrates how to achieve professional-looking documents by adhering to established style guides (like APA, Chicago, IEEE, DIN, and ISO). The talk covers detailed aspects of mathematical notation (e.g., multiplication symbols, upright vs. italic text for variables/identifiers, unit representation, handling of special functions), general typographic nitpicks (e.g., proper use of quotation marks, dashes, emphasis, table design, figure placement), and recommends various LaTeX packages that streamline these best practices. The core message emphasizes consistency, readability, and the importance of following specific style guidelines for any given project.
Syntax is Not My Friend: How to Get It Right in LaTeX
* for multiplication; instead, use \cdot (center dot) for clearer mathematical notation, or omit for implicit multiplication.\theta vs. \vartheta), Rho (\rho vs. \varrho), and Phi (\phi vs. \varphi), and choose one variant consistently throughout the document.log, sin) directly; use their dedicated LaTeX commands (\log, \sin) for correct spacing and upright text. Custom operators can be defined using \DeclareMathOperator.\mathrm (math roman) for upright text within math mode (e.g., V_{\mathrm{E}}), as it respects the document's math font.\newcommand{\mat}{...}) for vectors and matrices to allow global changes between styles (e.g., bold or an arrow symbol), ensuring consistency and adherence to field-specific conventions.\left(...\right) for automatically scaling brackets to fit content. For manual control or consistent bracket sizes, use commands like \big, \Big. The modify_lr package helps correct inconsistent spacing around \left and \right brackets.siunitx for Units and Quantities (Highly Recommended): The siunitx package is introduced as essential for typesetting units and quantities correctly. It automatically ensures upright unit symbols, proper spacing between numbers and units, and intelligent formatting for prefixes (e.g., kHz).V [m/s] (where brackets signify "unit of"); instead, use V / (\meter\per\second) to clearly indicate a dimensionless quantity on axes or in text.siunitx allows setting the decimal marker to a comma (e.g., \num{3,14}) to comply with European conventions, preventing LaTeX from interpreting it as a list separator.\times for the multiplication symbol, not the letter x. siunitx handles this automatically with \qtyproduct.siunitx (\qty{36}{\degree}, \qty{36}{\celsius}) for degree and Celsius symbols, ensuring correct spacing and typographic appearance.d in integrals (e.g., dx) should be set upright. Recommended packages include physics or diffcoeff, or defining a custom math operator.\intercal or \mathrm{T} rather than a simple superscript T for better visual distinction and semantic clarity. Define a custom command for flexibility.align or split environments (from amsmath) for multi-line equations, ensuring proper alignment and a single equation number for a logical block. Avoid $$...$$ (TeX primitive).\[...\] or \begin{equation}...\end{equation} for display math and $...$ for inline math. $$...$$ bypasses LaTeX's formatting and package functionalities, leading to incorrect spacing and font issues..\@ after abbreviations that end a sentence (e.g., Dr.\@ Jones) to prevent LaTeX from adding extra spacing. Conversely, use \@. when an abbreviation doesn't end the sentence.\usepackage[utf8]{inputenc} with PDFLaTeX or xelatex/lualatex for direct Unicode input. For typographically correct quotation marks, use ```...''` (German/English style) or Unicode characters, avoiding straight quotes.\ldots or the Unicode ellipsis character for omissions, as standard ... often formats incorrectly. For dashes, use -- (en dash, –) for ranges and --- (em dash, —) for pauses/breaks, with specific spacing rules for German vs. English.babel: Always use \usepackage[<language>]{babel} (e.g., ngerman, english) to ensure correct hyphenation, quotation marks, and language-specific formatting.\textit{word} (italic) or \emph{word} (semantic emphasis, can be globally redefined) over \textbf{word} (bold) for emphasis, as bold text can disrupt reading flow.\hline, |); use the booktabs package (\toprule, \midrule, \bottomrule) for visually clean and professional tables without vertical rules. Avoid bold text in tables.[t]) or bottom ([b]) of pages, avoiding floating them mid-text. This improves readability by not breaking text flow, establishes clear hierarchy, and gives LaTeX more flexibility for optimal page layout.\WidowPenalty and \ClubPenalty (or use nowidows package) to prevent single lines of a paragraph from appearing alone at the top or bottom of a page, ensuring paragraph integrity.\textsc{ABC} for small capitals and \oldstylenums{123} for old-style (varying height) numerals. These are not always standard but can improve aesthetics.tikzplotlib: Generates LaTeX code for Matplotlib plots, making figures searchable, scalable vector graphics that use the document's font.menukeys: For displaying keyboard shortcuts or menu paths cleanly.bitfield: For drawing packet structures (e.g., TCP) with a LaTeX-like syntax.cleverref: Smart referencing package that automatically adds the type of reference (e.g., "Figure 15", "Equation 12") and handles plurals.todonotes: For adding in-document TODO notes that can be listed. Includes \missingfigure for placeholder images.siunitx (advanced): Can also align numbers in tables by decimal point or exponent.New Computer Modern font: A recommended alternative font, thicker than standard Computer Modern, for improved readability and Unicode support.latexindent: An external tool (not a LaTeX package) that automatically indents LaTeX code, improving readability and consistency of source files.listings package for formatting program code within LaTeX documents due to its consistency across different environments, although pygments offers more power but can be harder to manage locally.