Skip to main content

Questions tagged [scalerel]

{scalerel} is about questions regarding the scalerel package that provides 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
103 views

How to Type a Scaled Greek Letter to Fit an Arched Page of a Tikzpicture

MWE (compiles with XeLaTeX): \documentclass{tufte-book} \usepackage{xcolor} \definecolor{PrussianBlue}{cmyk}{1,.41,0,.67} \usepackage{geometry} \usepackage{scalerel,scalefnt} \usepackage[LGR,T1]{...
DDS's user avatar
  • 10.1k
0 votes
1 answer
76 views

Scaling dsfont without scalerel (any alternatives?)

My problem is as follows: I would like to use the upright fourier package symbols together with dsfont. This produces: I therefore want to scale the dsfont symbols down to the same size as the ...
studying mathematics 's user avatar
1 vote
1 answer
60 views

How to achive that subscripts/superscripts are scaled with the font size in a robust command?

I would like to use smaller fonts for the subscripts and superscripts in a user-defined LaTeX command. Do you have any ideas how to scale down the subscripts/superscripts proportionally? My MWE is the ...
TobiR's user avatar
  • 614
2 votes
1 answer
40 views

Undefined control sequence. <argument> \SavedStyle \mkern .2mu\AC

I am attempting to adapt the code for \reallywidehat from a 2016 post, What does \stackMath do?, into my fairly large project as I transition typesetting from LaTeX to LuaLaTeX. Typesetting the ...
RosesBouquet's user avatar
1 vote
1 answer
26 views

How to avoid lines overlapping when using scalerel with stackrel

I would like to avoid lines overlapping when using an overset asterisk according to the solution for scalerel posted here My document cannot see that it makes the symbols have a larger height, and so ...
Axl's user avatar
  • 13
2 votes
1 answer
125 views

Spacing problem of really wide tilde

Based on this answer, I implement two versions of \widetilde, which is wide enough to cover all the text I want: \documentclass{article} \usepackage{amsmath,amssymb,stackengine,scalerel} \newlength\A \...
Yijun Yuan's user avatar
1 vote
1 answer
41 views

error accessing new \integral command, I think it is due to syntax

error: Missing \endcsname inserted. ...ac{\frac{1}{2}}{\sqrt{e^{x^2}}}}{\theta}$} \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{...
Emilio Conforme Parrales's user avatar
1 vote
0 answers
42 views

Delimiter collides with letter using scalerel

In order to be able to use brackets from custom fonts, I am using scalerel package. Everything works great except the letter f is really curved and collides with delimiters. To make the issue more ...
Masum's user avatar
  • 1,049
1 vote
0 answers
50 views

Cannot Produce Contour Outlining on Pgothic Text

I compile the following code with pdflatex: \documentclass{book} \usepackage{xcolor} \usepackage{pgothic} \usepackage{cabin} \usepackage{pdfrender} \usepackage[outline]{contour} \contourlength{1....
DDS's user avatar
  • 10.1k
1 vote
1 answer
37 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} \...
DDS's user avatar
  • 10.1k
3 votes
2 answers
388 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 ...
Hermis14's user avatar
  • 423
1 vote
1 answer
194 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{...
Giordano Crimi's user avatar
3 votes
1 answer
351 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{...
Sebastiano's user avatar
  • 56.8k
3 votes
1 answer
244 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 \...
mert's user avatar
  • 1,667
1 vote
1 answer
163 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 ...
Felix Emanuel's user avatar
0 votes
1 answer
340 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}...
Quastiat's user avatar
  • 285
1 vote
1 answer
110 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 ...
Antonio's user avatar
  • 543
0 votes
1 answer
175 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} \...
Leo Simon's user avatar
  • 2,209
7 votes
3 answers
836 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]{...
bzm3r's user avatar
  • 3,215
4 votes
2 answers
210 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 ...
Tobi's user avatar
  • 57k
0 votes
1 answer
95 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 ...
shmuel's user avatar
  • 1,459
2 votes
1 answer
204 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 ...
shmuel's user avatar
  • 1,459
4 votes
1 answer
1k 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?
digital-Ink's user avatar
  • 3,103
5 votes
1 answer
269 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 ...
Evgeni Sergeev's user avatar
2 votes
1 answer
278 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 ...
Peter Grill's user avatar