Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [scalerel]

Routines for constrained scaling and stretching of object, relative to a reference object or in absolute terms.

Filter by
Sorted by
Tagged with
6
votes
3answers
447 views

How to “center” a math operator defined by re-scaling a symbol?

Consider this MWE: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{scalerel} \usepackage{amsmath} \usepackage{scalerel} \newcommand{\smallrel}[1]{...
4
votes
2answers
119 views

How to transfer math style in \hbox_set?

This question is kind of follow up question of the following How to capture the current math style? Is there a test for the different styles inside maths mode? Cache math content in savebox and ...
4
votes
1answer
116 views

\ThisStyle \SavedStyle painfully slow … alternatives?

While working with customised hat glyphs using the first version of this solution, pdflatex started taking a long time compiling a document. That linked answer notes that it's a slower solution, but ...
2
votes
1answer
185 views

Cache math content in savebox and account for math style

I am using Create a \savebox in a Group and have it available outside of group to cache some math content. However, I realized that there may be a case where the same math content needs to be cached ...
2
votes
1answer
117 views

How to programmatically insert new line in equation environment?

I have a macro that generates the set former {x|P(x)} in several different styles. Some of my equations are too long, and I would like to split them. I added code to emit \\ after the such that ...
2
votes
1answer
129 views

Customize font size

What is the best way of using (large) custom font sizes in latex documents (e.g., for title pages)? I thought of using \scalebox. I have also seen there exists a \newfont command - can this be used?
1
vote
1answer
34 views

Problem with newcommand subscrip doubleprime

Some time ago I wrote a command that I used many times, today I realize that it could be written correctly. in particular, the command is selected as "not in a mathematical environment". I looked for ...
0
votes
1answer
31 views

Alternative to scalerel? Issues in combination with table of contents

Issue: My Latex files are pretty big already, but lately I added the scalerel package and since then get the error message ! Undefined control sequence.\calc@initB ->\calc@B\calc@A \addtocontents{toc}...
0
votes
1answer
49 views

Using the `stackrel` package with `&` within the `align` environment

It appears that the stackrel package and the align environment are incompatible. The following example illustrates: \documentclass{amsart} \usepackage{scalerel} \begin{document} \...
0
votes
1answer
71 views

Why does scalerel generate bad output in programmed multline environment

I have a command that generates a long line in math mode, and want it to generate split lines in a multline environment when the command is called with an optional asterisk. The code for the split ...