Questions tagged [typography]
{typography} is for questions about the implementation of beautiful typography using TeX.
1,061
questions
0
votes
1
answer
61
views
Compiling the following tables?
Can someone compile the following three tables and attach the outputs as a photo?
Table 1:
\documentclass{article}
\usepackage{geometry}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}
\begin{...
0
votes
1
answer
56
views
Why are these figures taking multiple pages when they can be fitted in half the pages taken?
Consider the following:
\documentclass[12pt, a4paper]{report}
\usepackage{verbatim, mathtools,amssymb, amsthm, mathrsfs}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{subcaption}
\begin{...
0
votes
1
answer
33
views
How to flip this figure?
Consider:
\documentclass[12pt, a4paper]{report}
\usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath}
\usepackage{tikz}
\begin{document}
\begin{figure}...
0
votes
2
answers
89
views
Should I Use Sans Serif Fonts for Section Headers and Monospace Fonts for URLs
The font I use is Latin Modern.
I want to know if I should use sans serif family for the section headers.
Some people suggest to use sans serif for section headers but to me it looks a bit weird and ...
1
vote
1
answer
33
views
Formatting periods and capitals after dashed entries in the bibliography
Consider the following MWE.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\usepackage[style = authoryear-comp]{biblatex}
\usepackage{xpatch}
\xpatchbibmacro{date+...
2
votes
1
answer
80
views
How to align these sets of equations?
Consider the following:
\documentclass[12pt, a4paper]{report}
\usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath}
\begin{document}
\begin{align*}
h_1(t)&=b_{11}(...
0
votes
0
answers
57
views
Have you ever been paid for typesetting / developing tex code?
Hopefully not "off topic"... Kinda similar to the showcase.
People with solid *TeX skills, have you ever been paid for typesetting - i.e. someone else's "copy" (content) - and/or ...
0
votes
1
answer
45
views
Help need finding the exact typeface
I'm trying to find the exact same font used in this document. I tried finding it using online font-search tools by providing PNGs. But could not find the precise typeface.
I also suspect it could be ...
0
votes
0
answers
18
views
Aligning multiple equations that would run into the next page of a document?
Consider the MWE:
\documentclass[12pt, a4paper]{report}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{align*}
h_1(t)&=b_{11}(t)+\sum_{j\neq 1}\lvert b_{1 j}(t)\rvert\\[1ex]
&=-(\beta_A ...
3
votes
4
answers
190
views
How to write a long fractional expression in an ideal way?
Consider the following MWE:
\documentclass[12pt, a4paper]{report}
\usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath}
\begin{document}
\begin{align}
S_2^* &= \...
3
votes
4
answers
240
views
How to fix a long multiplicative expression?
Consider the following expression:
\documentclass[12pt, a4paper]{report}
\usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath}
\begin{document}
\begin{align*}
...
0
votes
2
answers
45
views
How to properly typeset numbers with multiple fonts? [closed]
In my documents, I use different fonts: one for the text, another for the math. Is there a rule to know for writing numbers? There are some examples:
1
vote
1
answer
68
views
Deseret Alphabet in LaTeX?
Is there a way that I could get the Deseret Alphabet in LaTex?
0
votes
1
answer
28
views
Manually typeset single and double quotations marks in dierect succession
Usually I use \usepackage{dirtytalk} to typeset quotation marks, however this usepackage does not seem to work within a \textcite[Section: "This needs quotation 'marks'"]{source1} ...
5
votes
1
answer
459
views
Typesetting functions: italics or non italics?
I've been typesetting all my functions in non-italics (even for $f(x)$), but am not sure if this is the correct convention. This website suggests that generic functions (e.g., $f(x), g(x)$ should be ...
2
votes
2
answers
203
views
Is there a way to automatically smash all inline maths (but only vertically)?
What it says on the tin.
In case it isn't clear enough, what I would like is for $...$ to be typeset as \smash{$...$}, except \smash also affects horizontal spacing (see the question I linked to below)...
0
votes
2
answers
46
views
Mixing two types of paragraphs
This is a general question about typesetting paragraphs. I was wondering if it is good (or acceptable) practice to mix two different kinds of paragraph skips in a document, e.g.
a "real" ...
0
votes
1
answer
69
views
Elegant way of creating a document class that changes between styles back and forth
I would like to create a book class, say class.cls, such that
It automatically acquires some style depending on the location of the code inside the main document. Something like one style for each: \...
1
vote
1
answer
39
views
Style file with option to change pagesizes
I would like to have a latex style file nutsi.sty that includes the my-definition feature. I also want to set the pagesize (21cm x 21cm) and sets the entire document in bold typeface.
Managed to make ...
0
votes
0
answers
27
views
Typographic question regarding the "transpose" symbol [duplicate]
This might seem like a petty question, but sometimes, I do care about good typography.
In this expression:
\mathsb{p}^\mathsf{T} A^\mathsf{T} A \mathsb{p}
($ \mathsb{p}^\mathsf{T} A^\mathsf{T} A \...
2
votes
1
answer
58
views
What is correct? `(-1)^a` or `{(-1)}^a`? [duplicate]
Essentially the title says it all.
The TeX linter ChkTeX recommends to group parentheses if sub-/superscripting. It makes the grouped content into an atom (my TeX knowledge is minimal), so it is ...
0
votes
0
answers
49
views
Should I increase the spacing between paragraphs?
By default, as far as I know, there is no spacing between paragraphs in Latex (I'm using Overleaf). The paragraphs look like this:
It is possible to set a spacing between paragraphs using
\setlength{\...
1
vote
2
answers
128
views
Proper Use of a Lettrine When the Paragraph Begins with a Roman Numeral
A typography consideration:
In a current project, I am encountering the situation where I would like to make use of a lettrine, but the paragraph in which it is to be used begins with a Roman numeral. ...
0
votes
0
answers
52
views
Setting up an XeLaTeX article
I am new to XeLaTeX . I am trying to set up an article template. The template output should look as follows.
In the header section, I need to place two logos flushed to each corner. The title should ...
0
votes
1
answer
32
views
Make paragraph-formatting apply to all environments but not to short paragraphs
I am aware that this is a hyper specific question but I have been playing around with making all paragraphs perfect rectangles just like in this StackExchange question. And as in these older threads I ...
7
votes
0
answers
147
views
Where can I put my LaTeX skills to good use?
I really hope such a non-technical question is allowed here...
I have recently finished big parts of my studies and as such I have been relaxing for a while. After reading this thread I am now ...
0
votes
2
answers
56
views
African language typo
please need to write this special caracter in latex:
(b, ɓ, c, d, ɗ, f, g, h, j, k, l, m, n, ny, ŋ, p, r, s, t, w, y, ƴ,’ mb, nd, ng, nj)''
thank for your help.
Table 6: Letters Used to Typeset ...
2
votes
1
answer
66
views
Ugly sfrac with newtx
I am using \sfrac with the newtx font package, and I get a very ugly result:
WHat I am doing wrong?
MWE:
\documentclass{standalone}
\usepackage[osf]{newtxtext}
\usepackage{xfrac}
\begin{document}
\...
2
votes
2
answers
63
views
toggle between old (lowercase) and classic (uppercase) style numbers?
I use the kpfonts font package, and I would like to use oldstylenums as default, but in tables showing data or graphs, I would like to use the classic (uppercase) letters. Instead of using the command ...
7
votes
5
answers
2k
views
What's the purpose of paragraph first-line indentation and where is it used?
I've asked a typesetter and she didn't even know about first line indentation on subsequent paragraphs.
Neither did I ever encounter it in "real" life but have to struggle with it's removal ...
0
votes
0
answers
26
views
How to avoid runts? [duplicate]
Sometimes, a paragraph will end in a short word that appears all by itself on the last line. I believe that such words are called runts in typography. Other times, a longer word is broken and only one ...
4
votes
1
answer
96
views
How to automatically make integral size fit the integrand?
The integral sign is too small in this MWE
\documentclass[12pt]{article}
\usepackage{amsmath}
%\usepackage{wasysym} provides \varint but did not work
\begin{document}
\begin{align*}
z_1(x) &= e^...
2
votes
0
answers
57
views
To Color or Not to Color the Small-Capped Letters Following a Two-Color Lettrine---A Typography Question
This question is directed to LateX typographers and is a bit of a follow-up to the one asked in Centering an Initfamily Letter within a Colorbox and Sizing It for Use as a Two-Color Lettrine.
As ...
2
votes
3
answers
90
views
Why does hyperref produce ugly boxes by default? [closed]
The goto solution for clickable links in documents (URLs, TOCs, cross references etc.) is \usepackage{hyperref} and it does just that, automatically in the case of stuff like \label{myfigure} and see ...
1
vote
1
answer
78
views
Margins are not Constant Throughout the Pages
I want my margins to be the same in every page. The problem is best described by this image:
For some reason my compiler decided to push every sentence on the second page to the right. Any ideas?
The ...
0
votes
0
answers
34
views
Csquotes Seems Not to be Able to Handle Three Nested Quotations
This csquotes question sort of relates to the one posed in How to Properly Typeset a Set of Nonclosed Quotations
I have not been able to get csquotes to properly handle a third level of nested ...
0
votes
1
answer
91
views
How to Properly Typeset a Set of Nonclosed Quotations
I would like to properly typeset (with csquotes, if possible) the nonclosed red quotations produced by the following code:
\documentclass{book}
\usepackage{csquotes}
\usepackage{xcolor}
\begin{...
25
votes
5
answers
2k
views
Why put figures on top or bottom of page?
In technical writing, I generally use LaTeX, and I'm generally happy with LaTeX's usual figure placement at the top or bottom of a page. However, some of my colleagues who are used to Microsoft Word ...
0
votes
1
answer
72
views
Fontspec Breaks the Whole Document
Lately I've been playing with the font catalogue and many of the fonts I'm interested in using use the fontspec package. Unfortunately, the compiler produces a ton of errors when I try to use any of ...
2
votes
1
answer
58
views
How to Deactivate Fonts From the Font Catalogue
For example, if I want to use https://tug.org/FontCatalogue/royalinitialen/ on the first letter of a story I'm writing, but every other letter afterward to be the default font. How can I go about this?...
10
votes
2
answers
277
views
When a Period Immediately Follows the Lettrine --- A Typography Question
Because of the usual manner in which the French word Monsieur is abbreviated, I have often encountered a chapter beginning something like this:
M. Nom
In typesetting such (making use of a lettrine), I ...
5
votes
1
answer
368
views
Best practices for typesetting pseudocode
I need to typeset the pseudocode of several pieces of code in latex.
I found in this answer a good overview of the three main packages available to render pseudocode.
In the following I will adopt the ...
0
votes
1
answer
44
views
Page: isn't inner margin + binding offset equal to outer margins?
As far as I can see, people always recommend to set inner margins smaller than outer margins, so that when a document is opened, the space between the two blocks of text basically looks like the left ...
1
vote
2
answers
87
views
How to make sure that -- print {\bf --}?
In French typography, a medium dash, with spaces before and after, is used in places where the English uses an em-dash.
But the medium dash of TeX is much thinner than the dashes used in French print ...
4
votes
1
answer
264
views
Should I put "\" or "{}" at the end of commands?
I have a discussion with a collegue if one should write \LaTeX\ format or \LaTeX{} format. After comparing the output, I find that the spacing in the second version is slightly wider than in the first....
0
votes
1
answer
167
views
Showcase of modern, beautiful and appealing styles for short documents
I'm helping someone to typeset in LaTeX a short non-technical document (at most 20 pages). This document should be nice to read, aesthetic, with nice pictures...
LaTeX is mostly used for technical ...
0
votes
0
answers
39
views
Is there an \allowenlargepage{...}?
I have sections that flow over into the following page by about 1 or 2 \baselineskips. This is easy to solve with an \enlargethispage{} and prevents the 2-line widows. Lateron, I may make a few more ...
16
votes
3
answers
487
views
Chat bubbles with picture and name attached
I'd like to modify the code from (the improved version of the top voted answer of) this post to make the sequence of speech bubbles look more like a chat window. Specifically, I'd like to include a ...
2
votes
1
answer
109
views
My setup is happy with UTF-8 or escaped LaTex typographic characters, should I use one or the other?
I’m using Pandoc for an initial conversion of Markdown files into LaTex. I have two questions:
I use UTF-8 in all my documents without any issues, and can output PDFs from LaTeX with either/both UTF-...
3
votes
2
answers
150
views
A Visual Comparison of Emphasized Text and Italicized Text---What is the Difference? [duplicate]
Please consider the output of the following code in book class:
\documentclass{book}
\begin{document}
\thispagestyle{empty}
\Huge
\noindent \emph{Emphasized Text} \\[10pt]
\textit{Italicized Text}
\\[...