typst-count 0.1.0

Count words and characters in Typst documents
Documentation
= Chapter 2: Advanced Features

Building on the basics covered in Chapter 1, this chapter explores some of the more advanced capabilities of Typst.

== Mathematical Typesetting

Typst excels at mathematical typesetting. You can write inline math and display equations with ease.

The quadratic formula is a fundamental tool in algebra. Complex mathematical expressions are rendered beautifully with proper spacing and alignment.

== Code Blocks

Typst supports syntax highlighting for code blocks, making it ideal for technical documentation and programming tutorials.

Code examples can be displayed with proper formatting and highlighting, enhancing readability for technical content.

== Tables and Figures

Creating tables and figures in Typst is straightforward. The system automatically handles numbering, captions, and cross-references.

=== Tables

Tables can be created with intuitive syntax. They support various alignment options, spanning cells, and custom styling.

=== Figures

Figures can include images, diagrams, or any other visual content. Cross-referencing makes it easy to refer to figures throughout your document.

== Custom Functions

One of Typst's most powerful features is the ability to define custom functions. This allows you to create reusable components and automate repetitive tasks.

Functions can accept parameters, perform calculations, and generate dynamic content based on your document's needs.

== Templates and Styling

Typst's templating system allows you to separate content from presentation. You can create professional-looking documents with consistent styling throughout.

=== Custom Templates

Templates can define the overall structure and appearance of your documents, including headers, footers, margins, and typography.

=== Theming

Color schemes and style variations can be applied globally, making it easy to maintain a consistent brand or aesthetic.

== Conclusion

These advanced features demonstrate why Typst is suitable for professional document preparation. From academic papers to technical manuals, Typst provides the tools needed for high-quality typesetting.

This chapter contains approximately 250-270 words.