Transform your notes into beautiful LaTeX-style documents with proper typography, equation numbering, and academic formatting.
## Usage
Add the following to your document's YAML frontmatter:
```yaml
---
cssclasses:
- latex
---
```
## Features
### Typography
- LaTeX-style fonts (MathJax Main for reading, DM Mono for editing)
- Justified text alignment
- Configurable paragraph indentation
- Proper letter spacing for academic documents
### Tables
- Clean horizontal borders (top and bottom only)
- Centered headers
- Adjustable font sizes for preview and editor modes
- Professional academic table styling
### Code Blocks
- Distinctive top and bottom borders
- Transparent background
- LaTeX document aesthetic
### Math Equations
- Automatic equation numbering: (1), (2), (3)...
- Proper spacing and alignment
- LaTeX-style mathematical typography
### Headers
- Consistent LaTeX font family
- Clean styling without background colors
- Proper line height for academic documents
## Settings
The following variables can be customized through Style Settings:
- **Font Size**: Base document font size (default: 14pt)
- **Reading Font**: Font family for reading mode
- **Source Font**: Font family for editor mode
- **Text Indent**: Paragraph first-line indentation (default: 0em)
- **Table Font Sizes**: Separate sizing for preview and editor modes
## Compatibility
Works in both reading mode and live preview. Some advanced table styling is optimized for reading mode.
## Example
````markdown
---
cssclass: latex
---
# Introduction
This document demonstrates the LaTeX CSSClass styling.
## Mathematical Equations
$E = mc^2$
$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$
## Data Table
| Variable | Value | Unit |
|----------|-------|------|
| Speed of Light | 299,792,458 | m/s |
| Planck Constant | 6.626 × 10⁻³⁴ | J⋅s |
## Code Example
```python
def calculate_energy(mass, c=299792458):
return mass * c**2
````
> This is a blockquote with proper LaTeX-style indentation and spacing.