In a custom crossref, is it possible to set latex math font size (for equations) #13886
Replies: 3 comments 2 replies
-
|
Have you tried searching in more specialised platforms where this specific LaTeX might have already been answered? (Your question is a LaTeX question rather than a Quarto question.) |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I did try a number of options from general LaTeX forums. While, I agree that this is primarily a LaTeX issue, the way in which Quarto implements the custom cross-ref environments does make this a bit tricky (and I think relevant). When the custom \@ifpackageloaded{float}{}{\usepackage{float}}
\floatstyle{plain}
\@ifundefined{c@chapter}{\newfloat{eqn}{h}{loeqn}}{\newfloat{eqn}{h}{loeqn}[chapter]}
\floatname{eqn}{Equation}
\newcommand*\listofeqns{\listof{eqn}{List of Equations}}Therefore, customisations to that environment made in the LaTeX template will generally be overridden by the quarto-defined environment. I guess the more quarto-specific question, is how would we customise that environment (as I don't know of a template mechanism that will allow further environment customisation to be set before I guess, ideally it would be good for crossref to allow a hook to have some customisation of the environments created. |
Beta Was this translation helpful? Give feedback.
-
|
After a bit more digging, a workaround for this is to use the Theorem environment. That has a much better default math font size (using I do think it would be great to have the option of modifying some characteristics of custom crossref environments, but great to see there is an existing environment which meets most of the use-case. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am trying to increase the math font size in a custom quarto crossref environment.
Rendering to PDF, I have included an custom environment, to create floats for equations:
equations can then be added in the qmd file and they are properly floated, for example:
in the .tex file produced, this is correctly added to the environment:
However, I would like to increase the size of the math environment text for all equations.
I have tried some changes in the latex template and
header.tex, but none have worked.Tried:
DeclareMathSizesin preamble (LaTeX template):\DeclareMathSizes{10}{30}{16}{12}but it does not change text sizeheader.tex:\AddToHook{env/eqn/begin}{\LARGE}header.tex:None of these changes have increased the math font in the
eqnenvironment.Is there a way to modify the equation size using a custom crossref environment?
Beta Was this translation helpful? Give feedback.
All reactions