Quarto

Table of Contents

HTML

  1. include-code-files is a addin that allows you to include a separate file in your document. Use {.python include="option.py" filename="option.py"} beside the code block.
title:
subtitle:
author:
filters:
   - include-code-files
format:
  html:
    # toc: true
    # toc-depth: 2
    embed-resources: true
    smooth-scroll: true
    highlight-style: arrow
    font-size: 20
    linestretch: 2
    code-overflow: scroll

Beamer

  1. mathspec makes better looking math equations.
  2. echo controls whether show the code. eval controls whether run the code. output controls whether to show the output.
title:
author:
date: today
date-format: MMM YYYY
execute: 
  echo: false
  eval: false
  output: true
format:
  beamer:
    highlight-style: atom-one
    theme: 'Madrid'
    mathspec: true
    include-in-header:
      - file: 'preamble.tex'

Other infile Tricks

To hide some content.

:::{.content-hidden}
This is hidden.
:::
Yiming Zhang
Yiming Zhang
Quantitative Researcher Associate, JP Morgan