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
1 vote
1 answer
27 views

Problems Encountered Trying to Vertically Stretch a Scaled Bold Smallcaps Title in a Usual Way

Consider the code \documentclass{book} \usepackage{scalerel} % For Vertical Stretch \usepackage{scalefnt} \usepackage[T1]{fontenc} % Allows to make bold the smallcaps text. \begin{document} \...
user avatar
  • 4,875
3 votes
2 answers
77 views

How to fix the size of variable-size operators

When using variable-size operators such as \prod, \sum, \bigcup, and \bigcap, their sizes are usually not quite predictable, which makes me pretty annoyed. I just want to make their sizes fixed ...
user avatar
  • 413
1 vote
1 answer
73 views

Different ⟨,⟩ symbol (scalerel issue)

My teacher uses angle brackets ⟨,⟩ both for inner product and for linear combinations. I'd like to use different, but similar symbols for this scope: so I wrote \documentclass{article} \usepackage{...
user avatar
3 votes
1 answer
121 views

Scalerel package: to stretch, correctly, the `\benz` symbol

Starting from this question Symbol for Fourier pair as per Brigham, "The Fast Fourier Transform" and my humble answer with this code, \documentclass[a4paper,12pt]{article} \usepackage{...
user avatar
  • 46.1k
3 votes
1 answer
108 views

Scale symbol only in displaystyle

Is it possible to scale a symbol with its default name only in displaystyle? For example, when calling \int_{a}^{b}, the results should be \mathlarger{\mathlarger{\int}}_{a}^{b} scaled with two \...
user avatar
  • 1,627
1 vote
1 answer
85 views

Is it possible to replace the angle bracket delimiters with a macro from scalerel?

The fonts available to me do not support angle brackets that span more than a few lines. Sometimes, lists delimited by angle brackets can reach a large height, in particular if they contain multi-line ...
user avatar
0 votes
1 answer
178 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}...
user avatar
  • 275
1 vote
1 answer
55 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 ...
user avatar
  • 533
0 votes
1 answer
98 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} \...
user avatar
  • 2,069
7 votes
3 answers
673 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]{...
user avatar
  • 3,063
4 votes
2 answers
165 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 ...
user avatar
  • 53.3k
0 votes
1 answer
89 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 ...
user avatar
  • 1,217
2 votes
1 answer
177 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 ...
user avatar
  • 1,217
4 votes
1 answer
520 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?
user avatar
  • 2,903
4 votes
1 answer
196 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 ...
user avatar
2 votes
1 answer
249 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 ...
user avatar