Skip to content
Discussion options

You must be logged in to vote

I found a way to customize a theorem, definition, conjecture, etc... by inserting LaTeX code in two places:

  1. Inside a include-in-header LaTeX includes to create new theorems, definitions, conjectures, etc... in a different style, and
  2. Using the title.tex LaTeX partial to redefine theorem, definition, conjecture, etc... to use the newly defined environments in the previous step.

In your _quarto.yml add template partials and LaTeX code as follows:

format:
  pdf:
    documentclass: scrreprt
    keep-tex: true
    template-partials:
      - title.tex
    include-in-header:
      - text: |
          \usepackage{amsthm}
          \definecolor{CASBlue}{rgb}{0.00,0.00,0.80}
          \newtheorems…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@eschirmacher
Comment options

@mcanouil
Comment options

mcanouil Sep 8, 2025
Collaborator

@eschirmacher
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by eschirmacher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
latex LaTeX engines related libraries and technologies
2 participants