In TexSlide, global font settings are divided into two parts: LaTeX content fonts and text content fonts. These two parts need to be configured separately.
LaTeX Content
The font for LaTeX content needs to be configured in the preamble section.
Configuration Example
\usepackage{lmodern}
\usepackage{sansmath}
\sansmath
\usepackage{xcolor}Configuration Notes
To avoid frequent compilation, TexSlide caches the compilation results of inline formulas. This means:
- New formulas: After modifying the preamble, newly inserted formulas will use the new font settings.
- Existing formulas: Compiled formulas will continue to use cached results from the old settings, and the font will not update automatically.
It is recommended to complete font configuration in the preamble before starting to write content to ensure consistent formula styling throughout. We will add an option to recompile all LaTeX content in future versions, allowing you to update everything after modifying the preamble.
Text Content
Setting fonts in the menu bar only affects the currently selected target text box. To uniformly set fonts for all text boxes, follow these steps:
- Right-click on any text box.
- Select Edit Style, go to the Font tab, and set the font.
- Click Apply, and the settings will apply to all existing and new text boxes in the current document, ensuring globally consistent text styling.