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.
25
questions
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]{...
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 ...
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 ...
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 ...
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 ...
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
\...
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{...
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 ...
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....
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}
\...
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 ...
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{...
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{...
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 \...
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 ...
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}...
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 ...
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}
\...
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]{...
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 ...
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 ...
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 ...
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?
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 ...
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 ...