# Tag Info

## New answers tagged fontsize

0

As you are loading sectsty you can use its commands: \documentclass[a4paper,12pt]{book} \renewcommand{\contentsname}{Contents} \usepackage{fontspec} \usepackage{fullpage} \usepackage{geometry} \usepackage{sectsty} \usepackage[hidelinks]{hyperref} \hypersetup{ colorlinks, citecolor=black, filecolor=black, linkcolor=black, urlcolor=black } \...

2

If you have a \basesymbol (placeholder) of some arbitrary size, \scalerel can be used to scale it to a standard size, as long as you define what "standard" is. Here, in the first example, \scaledsymbol takes the base symbol and always makes it the height of x, in the current math style. In the 2nd example, it mimics the size of the + sign, and takes on \...

2

We can insert many things (texts, formulae, tables, images, etc) of LaTeX inside TikZ's node with plenty of options. One of the best option is scale that much flexible than LaTeX ones: \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, \Huge(maybe Stefan Kottwitz mentioned in his answer). In summary, let us scale of node ...

2

The solution is to correctly change the font size. \scriptsize does not take an argument and changes the font size for all text afterwards. If it is enclosed in braces (e.g., insinde the argument of \circled{·}), the font size change is only local. Changed code: \documentclass{article} \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ ...

1

Put the size specification inside the \textit. \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \hspace*{5mm}w_{c} = {\textit{\LARGE f}} _{w,c} * \frac{\log(|C|)}{\int _{w,C}} \end{align} \end{document}

1

A simple solution is to change your document class to one of the KOMA-script classes that corresponds to the document class you use (book=scrbook, report=scrreprt and article=scrartcl). Then, you may use KOMA-script’s build in commands to format the captions. I have listed most of KOMA-script’s caption format commands in the MWE. The two commands that I ...

2

Use a special index style: \begin{filecontents*}{\jobname.mst} delim_0 ", \\indexnumbersize{" delim_1 ", \\indexnumbersize{" delim_2 ", \\indexnumbersize{" delim_n ", \\indexnumbersize{" delim_t "}" \end{filecontents*} \documentclass{article} \usepackage[index]{kantlipsum} \usepackage{imakeidx} \usepackage{hyperref} \newcommand{\indexnumbersize}[1]{{\...

6

Instead of shrinking the font size, it is generally better to use a line break. For that purpose the amsmath package provides the multline environment. From the documentation: The multline environment is a variation of the equation environment used for equations that don't fit on a single line. The first line of a multline will be at the left margin ...

0

Checking the .log file shows that the error you were getting about font sizes not available is for some legacy 7- and 8-bit math fonts that fontspec doesn’t change from the defaults. You can fix this bug by loading any package that sets up scalable math fonts, such as unicode-math (which I personally recommend), newtxmath or lmodern. Your text font was ...

2

LaTeX is trying to give you helpful warnings, in this case it works. Just remember to always look at the first thing LaTeX says about something. So we start with an MWE and compile that with pdflatex. \documentclass[ paper=a6, 8.5pt, ]{scrartcl} \usepackage{lipsum} \begin{document} \lipsum[1] \end{document} LaTeX tells us LaTeX Warning: ...

3

You could load package scrextend with option fontsize=6pt. And you need a font which provides the needed sizes. \documentclass[a4paper]{article} \usepackage[fontsize=6pt]{scrextend} \usepackage{blindtext} \begin{document} \blinddocument \end{document} Result:

1

You can use \scalebox from the graphicx package for this. The command takes two arguments, the scale (less than one scales down, more than one scales up) and the content. Note that the content needs to be set in math mode even when you are already in math mode. The scale can be set arbitrarily large or small. For convenience you can define a new command ...

2

I'm not really sure about the pedagogical usefulness of this idea. I'm pretty sure the output is as ugly as it can be. ;-) \documentclass{article} \usepackage{fourier} \usepackage{amsmath} \DeclareMathOperator{\Div}{div} \newcommand{\ransom}[2]{\mbox{#1$#2$}} \begin{document} $\Div\mathrm{E}=\ransom{\tiny}{4\pi k}\rho$ \$\ransom{\huge}{\mathrm{a}}=\...

Top 50 recent answers are included