Skip to content
Discussion options

You must be logged in to vote

This worked fine for me to both PDF and html. I am also using TinyTex. Note since the command is latex not math, I don't have it defined in a math environment.

---
title: Test
format:
  pdf: 
    documentclass: scrartcl
  html: default
---

\newcommand\mcy{{\mathcal{y}}}

Will this work? $\mcy = 3$.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@dmbates
Comment options

@dmbates
Comment options

Comment options

You must be logged in to vote
4 replies
@cscheid
Comment options

@eeholmes
Comment options

@kjohnsen
Comment options

@evangorstein
Comment options

Answer selected by cscheid
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 html Issues with HTML and related web technology (html/css/scss/js)
5 participants