Skip to content

Question: Is it possible to use shortcodes in LaTeX macros? #1047

@ramiromagno

Description

@ramiromagno

Let us say my _quarto.yml has this snippet:

format:
  pdf:
    documentclass: book
    include-in-header:
      - tex/preamble.tex
      - tex/macros.tex
    include-before-body:
      - tex/firstpages.tex

And inside macros.tex I have:

\newcommand{\mytitle}{{{< meta title >}}}
\newcommand{\myfullname}{{{< var author.fullname >}}}
\newcommand{\myshortname}{{{< var author.shortname >}}}

This won't work... Is there any way of replacing these shortcodes in the LaTeX files..?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions