Hot answers tagged

6

About Optical Sizes You said that you do not get the difference between optical size and weight. It is very simple. With weight a typographer means the thickness of the strokes which make up a glyph. A glyph with thicker strokes has more weight than one with thin strokes. Common weights are Bold or Light. To switch to a font with high weight in LaTeX ...


4

Your PDF viewer can provide this information. Here are some font listings provided by Okular, for example. In this PDF, all fonts are fully embedded. This means that all characters from the font are included, even if they are not used in the document. Full embedding violates many commercial font licences and increases the size of the resulting PDF. ...


3

Let's assume you have the following 259 page document, littered with text and images: \documentclass{article} \usepackage{graphicx,lipsum} \newcounter{lipsumcntr} \begin{document} \loop\unless\ifnum\value{lipsumcntr}=50 \stepcounter{lipsumcntr} \lipsum[1-\thelipsumcntr] {\centering \includegraphics[width=.8\linewidth]{example-image}\par} \repeat \...


3

\documentclass[a4, 12pt]{report} \usepackage{xcolor} \usepackage{pagecolor} \usepackage{lipsum} \pagecolor{black} \color{white} \begin{document} \lipsum \lipsum \lipsum \end{document} This gives you as global pagecolor black and as global textcolor white. I think that this is what you're looking for. For further information, you can also have a look ...


3

You should use the font family name (Cormorant Garamond), not the file name. The following example code works with the .otf version of the fonts. Note this font has small caps in regular and boldface, but not in italic and bold italic, as you see with otfinfo. \documentclass{article} \usepackage{verse} \usepackage{fontspec} \defaultfontfeatures{Ligatures=...


3

With setmainfont you're essential building case-sensitive font paths. Path=working directory for fonts BoldFont=filename segment of path ItalicFont=filename segment of path Extension=file extension of path You're code does not work because you are telling fontspec to look in all paths like this (example shows paths for bold font): /usr/local/texlive/...


2

Here, I vertically downsize the text slash to the height of a \textsc{e} in the current font size. (note: since scalerel processes arguments in math mode by default, using a $/$ actually processes the slash in text mode). \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[osf]{Baskervaldx} \usepackage{scalerel} \newcommand\scslash{\stretchrel*{$...


1

If you want non-math symbols inside a math environment, commands \mathrm or \text can be used. Which one to use?: Is there a preference of when to use \text and \mathrm? \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning} \usepackage{amsmath} \begin{document} \begin{tikzpicture} \node[draw] {$\overline{A}$}; \node[draw] at (1,0) {$...


1

By chance, I found the answer in a comment to an unrelated question. There is a mathastext package that uses a text font (usu­ally the doc­u­ment’s text font) for the let­ters of the Latin al­pha­bet needed when type­set­ting math­e­mat­ics. (Op­tion­ally, other char­ac­ters in the font may also be used). There are a number of examples available in ...


1

You can use a command for the slash: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[osf]{Baskervaldx} \usepackage{xpatch} \newcommand{\textslash}{/} \makeatletter \DeclareRobustCommand{\textslashsc}{% \check@mathfonts {\fontsize{\sf@size}{\z@}\selectfont/}% } \xapptocmd{\scshape}{\let\textslash\textslashsc}{}{} \makeatother \begin{...



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