Skip to main content
22 votes

Why can't LaTeX (seem to?) Support Arbitrary Text Sizes?

The original TeX fonts aren’t just scaled up or down. They’re redesigned at each size. Here we see Computer Modern at 6pt and 12pt, scaled to the same height: \documentclass{article} \usepackage{...
Davislor's user avatar
  • 45.5k
20 votes

Why can't LaTeX (seem to?) Support Arbitrary Text Sizes?

Memoir now offers additional sizes. From memoir.cls: \DeclareOption{9pt}{\renewcommand*{\@ptsize}{9}\renewcommand*{\@memptsize}{9}} \DeclareOption{10pt}{\renewcommand*{\@ptsize}{0}\renewcommand*{\@...
cfr's user avatar
  • 207k
8 votes
Accepted

xfrac and anyfontsize cause missing superscripts in $\frac{1}{x^2}$

The start of anyfontsize.sty is \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{anyfontsize}[2007/11/22 anyfontsize.sty by pts] In more than sixteen years, many things have changed. In particular, the ...
egreg's user avatar
  • 1.1m
6 votes
Accepted

Environment to change the font size to a certain value

Is not enough just an environment with \fontsize{#1}{#2}\selectfont ? \documentclass[twocolumn]{article} \usepackage{lipsum,parskip} \usepackage{dejavu,xcolor} \newenvironment{fsize}[2]{\par\fontsize{#...
Fran's user avatar
  • 82.6k
5 votes
Accepted

Set subscript and superscript font size to 10pt?

It's not “closer” to 8pt, they are 8pt. The standard declarations are \DeclareMathSizes{5}{5}{5}{5} \DeclareMathSizes{6}{6}{5}{5} \DeclareMathSizes{7}{7}{5}{5} \DeclareMathSizes{8}{8}{6}{5} \...
egreg's user avatar
  • 1.1m
5 votes
Accepted

Using LaTeX with TikZDevice in R: is it possible to set the font for Tikzfigures to 10 while 12 for the text?

Edit (Complete rewrite of the original answer since the question show code that allow a better understanding of the issues.) A) First, you have a problem with R code. It seems that you created a "...
Fran's user avatar
  • 82.6k
5 votes
Accepted

Unexpected behavior with `\Huge' and `\tiny' command when using anyfontsize package

Let's have a look at anyfontsize.sty % anyfontsize.sty -- allow font size substitutions % by Péter Szabó <[email protected]> at Sat Feb 3 13:56:49 CET 2007 [...] %** Overrides \externalfont by ...
egreg's user avatar
  • 1.1m
5 votes

Erroneous width of widetilde, scrartcl, amsmath, lmodern

You forgot one option, namely fixcmex. \documentclass{scrartcl} \usepackage{amsmath} \usepackage{lmodern} \usepackage{fixcmex} % does make a difference \begin{document} \begin{equation} \widetilde{...
egreg's user avatar
  • 1.1m
5 votes

Change the font size of siunitx output

Your problem is that the math mode font is a different size to the body font. I've fix that by scaling, for example \documentclass[10pt,a4paper]{article} \usepackage{siunitx} \usepackage{fontspec} \...
Joseph Wright's user avatar
  • 262k
5 votes
Accepted

How can I change the size of icons in ModernCV?

The icons macros (e.g. \faHandPointUp) from the fontawesome5 package are defined with the \faPreselectedIcon macro. Since moderncv print the icons in a group, you can patch \faPreselectedIcon to also ...
Udi Fogiel's user avatar
  • 4,479
4 votes
Accepted

How change Lucida font size to 8.5pt on 11.7pt?

\fontsize{8.5}{11.7}\selectfont will select that font size. You may want to redefine \normalsize to use that, and may also want to redefine \small and friends to be suitable relative sizes. eg size10....
David Carlisle's user avatar
4 votes
Accepted

How to automatically scale and align /tikzpicture with font size

My suggestion is not to use a node shape to draw such a simple symbol, because TikZ nodes don't scale with the coordinate system in any case. Instead, I'd just draw the triangle using coordinates with ...
Jasper Habicht's user avatar
4 votes

Subsection fontsize

Sorry, but you're committing too many beginner's sins. Never scale tables or equations Never use \\ to manually break lines, unless where it is needed, such as in align or similar environments. Don'...
egreg's user avatar
  • 1.1m
4 votes

Arrow Label Size Issue in Tikz-CD

Quick and dirty hack: \documentclass{standalone} \usepackage{tikz-cd,mathtools} \newcommand{\CompB}[1]{\overbracket[.5pt][1pt]{#1}} \begin{document} \begin{tikzcd} \CompB{M} \ar[rr,"\text{$\...
samcarter_is_at_topanswers.xyz's user avatar
4 votes
Accepted

Arrow Label Size Issue in Tikz-CD

The problem is that \overbracket puts the contents in a box, forgetting the style on the outside. So you need to capture the external math style and place it inside the box. There are several ways to ...
Sandy G's user avatar
  • 46.6k
4 votes

Erroneous width of widetilde, scrartcl, amsmath, lmodern

The difference you see with KOMA-Script only appears because KOMA-Script use 11pt fonts by default, while article uses 10pt. Load the article class with 11pt you'll see the same thing. \widetilde is a ...
jlab's user avatar
  • 3,911
3 votes

Which fontsize does "em" refer to in Tikz?

Apparently, TikZ first switches to the current font (as valid outside the picture) and computes the 5em; only later it does \footnoteseize. \documentclass{article} \usepackage{tikz} \def\ttt{aa bb cc ...
egreg's user avatar
  • 1.1m
3 votes
Accepted

memoir: changing the default font size after loading the package

This is a hack only, because I don't know any official way to do it: \documentclass[11pt]{memoir} \newif\ifmycondition \myconditiontrue \thispagestyle{empty} \newcommand{\setmemoirfontsize}[1]{% \...
cabohah's user avatar
  • 14k
3 votes
Accepted

Change font size of page numbers

Since you employ the amsart document class and since your document's preamble indicates that you employ the so-called "plain" page style, I suggest you add the following code to your ...
Mico's user avatar
  • 514k
3 votes
Accepted

mathpalette-version for fontstyle instead of fontsize

The current math family is in the TeX primitive \fam register, for which LaTeX introduces the \mathgroup wrapper. The kind of problem you describe arises every time a macro sets its math content in a ...
campa's user avatar
  • 31.7k
3 votes

Setting font size of amsart documentclass have no effect

The amsart class only supports 8pt 9pt 10pt 11pt 12pt as font size options. The first two just for preprints when you really want to save paper at the expense of readability. An unknown option is ...
egreg's user avatar
  • 1.1m
3 votes
Accepted

Font size problem with \sfrac in figure caption

The problem is with the obsolete package anyfontsize: % anyfontsize.sty -- allow font size substitutions % by Péter Szabó <[email protected]> at Sat Feb 3 13:56:49 CET 2007 The right package to ...
egreg's user avatar
  • 1.1m
3 votes
Accepted

Correct line spacing when changing font size without causing the end of the paragraph

You can record the position of the end of the small text and then back up to start the large text at that position, takes two runs. \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{lipsum}...
David Carlisle's user avatar
3 votes

How to reduce the height of the capitals in the sans math font in newtx version ≥ 1.724?

Asking \showthe\textfont8 reveals \T1/cmss/m/n/10, instead of using the same font as \sffamily. I'm not sure why newtx.sty doesn't set the \mathsf font, while newtxmath.sty does it. Fix it and report. ...
egreg's user avatar
  • 1.1m
3 votes

Use \large and \large environment twice simultaneously

You're asking for small caps, actually. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \noindent \textsc{Notation}: $\mathbb{R}$ denotes the real numbers \bigskip \noindent \...
egreg's user avatar
  • 1.1m
3 votes

Arrow Label Size Issue in Tikz-CD

Teach \CompB to preserve the current math style, using \mathpalette. \documentclass{article} \usepackage{mathtools} \usepackage{tikz-cd} \makeatletter \NewDocumentCommand{\CompB}{m}{{% the inner ...
egreg's user avatar
  • 1.1m
3 votes

Change the font size of siunitx output

My suggestion would be to load siunitx with the option mode=text. That way, the text font (here: Verdana) will be used automatically in \num and \unit directives. % !TEX TS-program = lualatex \...
Mico's user avatar
  • 514k
2 votes

66 characters per line using Lawtex

You mentioned that you used expanded spacing on a Word Processor. You can do something similar with microtype, which you've loaded, but... with your specified 1 inch margin, the output isn't pretty. ...
Willie Wong's user avatar
  • 25.7k
2 votes

Switching to different font size(s) locally

You can easily change the font size using the fontscale package. (Full disclosure: I am the package author.) I show how to locally change the font size commands from \tiny to \normalsize to \Huge. ...
User23456234's user avatar
  • 1,886
2 votes

How do I expand the table on the next page when the previous page is full?

Please always provide MWE (Minimal Working Example), a small complete document, which we can compiles it is. The sum of the given columns width exceed default size of the \textwidth when article ...
Zarko's user avatar
  • 300k

Only top scored, non community-wiki answers of a minimum length are eligible