{typography} is for questions about the implementation of beautiful typography using TeX.

learn more… | top users | synonyms (1)

11
votes
2answers
2k views

Rhythm: different values for parskip and baselineskip in scrartcl

I am writing some small demo files, each trying to implement a specific advice from Bringhurst's Elements of Typograhpic Style. He recommends to keep the vertical rhythm of the page, and to return to ...
10
votes
4answers
928 views

Typesetting coordinates

I'm trying to typeset coordinates like: (0 0 0) or (0, 0, 0) I'm not sure if LaTeX offers a package which can make the notation a bit more professional than just manually inserting spaces between ...
10
votes
3answers
1k views

When to indent a paragraph?

I use indentation of the first line for paragraphs. When a new paragraph starts after a code listing (or some other figure), this looks a bit unpleasant to me. What is the typographical convention for ...
10
votes
2answers
548 views

Why the question mark followed by a left quote produce another symbol?

See the following example: \documentclass{article} \begin{document} Hello?``world!'' \end{document} The ?` will be replaced by a bottom-up question mark, If add a space between them will avoid ...
10
votes
2answers
333 views

Is it more common to type period inside dollars or outside?

Which one is more common way to type LaTeX or are there any standards? Thus $x=2$. or Thus $x=2.$
10
votes
1answer
901 views

create elegant display of digits and symbols

I want to create a display of the duodecimal digits of \pi for printing on a T shirt. I've made some progress with help from SE: Fonts larger than \Huge?, How to increase the size of first character ...
10
votes
5answers
8k views

beautiful listing for CSharp

Does anyone have a nice typesetting style for the C# language using listings? I configure it in this way: \lstset{language=[Sharp]C,,basicstyle=\footnotesize, ...
10
votes
1answer
2k views

Angle notation for complex numbers in polar form

I am looking for suggestions on how to typeset complex numbers in the modulo-argument form, sometimes called phasor notation. Have already checked Conventions for typesetting complex vectors and ...
10
votes
1answer
656 views

Which typesetting programming language is most used in publishing?

Is TeX really used in publishing industry?If I have to learn a typesetting programming language to find a job in publishing industry is TeX a good choice or I should learn something else? I'm also ...
10
votes
1answer
155 views

biblatex translation with wrong ligature

I'm playing around with biblatex at the moment. It works nice, but there is a problem with a translation of "Ed." (edition) to "Aufl." (Auflage). The translation is correct but it has a wrong ligature ...
10
votes
2answers
1k views

Minimum length of last line of a paragraph

There is a more or less equivalent question to this: Ensure minimal length of last line, but I absolutely need a TeX solution. I more or less stumbled upon the problem mentioned in the discussion of ...
10
votes
1answer
617 views

Are the TeX Gyre fonts designed to match each other?

I'm currently testing out some fonts and found out that some fonts are designed to match each other (good serif+sans-serif+typewriter combinations). Are the TeX Gyre fonts, which provide at leats one ...
10
votes
2answers
321 views

Vertically aligning hyphens and en dash in a compound word

I was wondering if there is a way to make the hyphen and en dash in a compound word appear at the same "height." For instance the style guide I'm following suggests using en dash to reduce the ...
10
votes
1answer
371 views

Two letter variables with upright Delta

I'm using newtxmath with the slanted and libertine option in order to get standard slanted greek letters in mathmode as well as the option for upright greek letters. My question concerns a common two ...
10
votes
2answers
576 views

How should I typeset the physical dimensions of quantities?

As an example: The Newton's Law gives F=ma vs. dim F=MLT^{-2} My question is: Should I typeset the "MLT" in \mathit shape? You can contrast ...
10
votes
1answer
869 views

(Why) did the Gyre project fork the URW fonts rather than just extending them?

As I understand it: During the 1980s, the URW++ foundry created clones of the PostScript Core Font Set and gave those clones the following names: ╔════════════════════════╤══════════════════════╗ ║ ...
10
votes
1answer
379 views

Typesetting mixed-case acronyms with numbers

What are the various alternatives to typeset acronyms that contain lowercase letters, lowercase letters and numbers? For example, take the acronym SOA4All. The naive way would be to typeset it just ...
10
votes
1answer
289 views

How to (automatically) determine a visually appealing line spread?

I'm writing a "larger" document with a lot of mathematics. Occasionally, I use a notation like p \xrightarrow{\mathcal A^X} q which produces tall lines. LaTeX increases the line spread for those ...
10
votes
1answer
1k views

How to fake mid-caps with LaTeX? (I.e. How to stretch characters of a font?)

Background As discussed in this question, one would often like to use small caps for abbreviations, however, mixed case acronyms such as OpenMP look rather odd (see example 2 below): The problem ...
10
votes
1answer
225 views

Width threshold for space detection

I'm writing this stuff pdf2htmlEX, for each distance between two consecutive letters, I need to check if there should be a space character or not. Especially for PDF files generated by LaTeX, which ...
9
votes
1answer
870 views

Beautiful text - typography

Can anyone show me how to draw something like this. I am thinking of having a quote with similar font but have no idea where to start.
9
votes
3answers
414 views

Fixing fonts with LuaTeX feature files

Bringhurst urges us in Chapter 10 of The Elements of Typographic Style: Version 4.0 to fix the font files if needed. See below a summary of the chapter using the section titles. Bringhurst suggests ...
9
votes
2answers
900 views

Alignment of page numbers in table of contents

Consider the following example: \documentclass[a4paper,12pt]{article} \begin{document} \tableofcontents \newpage \section{test} \newpage \setcounter{page}{22} \section{introduction} \newpage ...
9
votes
2answers
353 views

Proper use of Backticks and Butterick's Practical Typography

In his book, Practical Typography, Butterick makes the following remark. Com­put­er sci­en­tists and doc­u­men­ta­tion writ­ers, take note: straight quotes and back­ticks in soft­ware code should ...
9
votes
3answers
628 views

Possible ways to format a specific century in LaTeX?

I'm writing I little bit of history in my report and I wonder which are the possible ways to format a century in LaTeX (e.g XX century) and in typography which is the most used and accepted. This is ...
9
votes
2answers
427 views

Table/Figure Layout

I'm interested in good practice for table (tabular) and figure layout, especially in good references. What do typographers have to say about this. Please provide references if you can. To focus the ...
9
votes
2answers
931 views

What typographic rules are there for indenting paragraphs?

I wonder what typographic rules there are for indenting. Does it require a certain amount of lines to be justified or should it be applied per default. In my opinion, the text colour is not very ...
9
votes
2answers
682 views

Use text font or math font for subscripts, diff operator etc.?

I have a typographical question concerning the use of text in math mode, for example for subscripts or the diff operator. Consider the following example, where I use XeLaTeX with Palatino as main font ...
9
votes
2answers
1k views

How to adjust the kerning around a forward slash in text

In contrast to \texttt{typewriter} normal text is "connected". When using a forward slash, I get for y/. this: while I would like to get something like that: which can be accomplished by ...
9
votes
2answers
296 views

Highlighting text through stacked colored underlines

I have sentences in which characters have been "marked" by some people and not by others. I'd like to present the markings simultaneously. Stacked colored underlining (in which a line represents each ...
9
votes
2answers
235 views

vertical equality in

How does one get inline or at least formula space typography of the following sort in an easy to parse (for the editor) way when writing formulas, for instance: Yes, I know, the equalities ... can ...
9
votes
2answers
745 views

Print a Notebook with LaTeX

I just came across something I missed a few years ago: I still use notebooks that do not have the correct margins for writing, i.e., the outer and bottom margins are the end of the page and the inner ...
9
votes
1answer
513 views

Mid-paragraph drop cap / float (lettrine)

I'm trying to typeset drop caps, but I have some instances where I need a drop cap to be mid-paragraph. I'm picturing something like: /\ *Some multiline text /==\ starts here and goes below, ...
9
votes
1answer
423 views

Mimicking the Microtype documentation

One of the nicest LaTeX examples I have seen is the Microtype documentation. The .dtx file is available here and I have been trying to recreate a document looking like this. Unfortunately it's not ...
9
votes
1answer
152 views

How can I cleanly/efficiently insert *half* of an inter-word skip?

The title question is plainly posed—is there a simpler way of doing this (or at least one that actually works? When dealing with em-dashes (—), I've read that it's important to keep a small ...
9
votes
2answers
691 views

Typesetting non-scientific material for the first time

I have used TeX and friends for many years to produce academic documents: assignments, reports, journal articles, etc. As a hobby project, I am going to try something different by typesetting a book ...
9
votes
1answer
8k views

Double-bar notation for second-order tensors

I want to use the double-bar notation for second-order tensors, which is common in continuum mechanics (e.g. for the strain and stress tensors). I've searched the Comprehensive LATEX Symbol List but ...
9
votes
1answer
1k views

Solution for typesetting interviews in LaTeX?

Are there any packages for typesetting interviews in LaTeX? Of course, I could manually format all the text but I am sure that there are typographical rules for interview sections that I would ...
9
votes
1answer
279 views

Introduce random imperfections to typeset' text

LaTeX does an outstanding job in typesetting things perfectly (as if that needed to be said yet one more time...). Now, I'd like to introduce certain imperfections to my text to make it look like it ...
8
votes
4answers
589 views

Using \fontsize in XeLaTeX and LuaLaTeX

In the Wikibooks/TeX article on fonts, it is stated that The \tiny...\Huge commands are often enough for most contents. These are fixed sizes however. In most document processors, you can usually ...
8
votes
2answers
322 views

Typography: floating vs inline illustrations

I understand the use and purpose of floats containing figures and tables. It makes a lot of sense if you think about the overall aesthetics of the page. However I find the graphical distance between ...
8
votes
2answers
206 views

Why does the non-breaking space produce a double space with babel and \og and how to use both \og and non-breaking space?

I am wondering if this is a normal situation or a bug! \documentclass{article} \usepackage[french]{babel} \begin{document} Ceci est \og entre guillemets \fg. Ceci est aussi \og~entre ...
8
votes
3answers
2k views

Sans-serif to go with EB Garamond (no math)?

Suggestions for a good sans-serif font to go with (compliment) EB Garamond? Math and non-Western European support are not required. Text is fiction, not academic or scientific. English with an ...
8
votes
2answers
802 views

How to punctuate multiline equations?

This might be off topic, yet I wouldn't know where else to ask. I want to keep up with the good habit of punctuating displayed equations. For example I know the comma (,) is compulsory in Here, we ...
8
votes
4answers
2k views

Can my LaTeX (maths) code be improved?

I feel that my code isn't written very efficiently. \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usepackage{wasysym} ...
8
votes
2answers
402 views

Using a negative space \! to differentiate between functions and products

In Physics, I often have functions like f(x), but also multiplications like y(-x). I would like my math to be easy to understand, so I am looking for a way to suggest function calls and ...
8
votes
2answers
996 views

Font and typesetting of EGA by Numdam

I very much like the typesetting in Numdam's writeup of Éléments de géométrie algébrique. I find the font particularily pleasing, and the headers are nice as well. I've heard this is how it looked in ...
8
votes
1answer
391 views

Kerning for arabic digits?

In most fonts, arabic digits have nonproportional width, meaning that 1 and 8 have exactly the same width even if the former has a smaller natural width. This is good for typesetting tables, but in ...
8
votes
1answer
361 views

Background notebook template with spiral

I would like to print a document with math text to look like the picture below: However, I would like to be able to edit : color of background the position of spiral grid on/off i tired this ...
8
votes
1answer
441 views

A bit of fun with logos: how to combine lines and letters in LaTeX (or just TeX)?

I was just having a bit of fun messing around with typesetting, and was able to produce a simple logo. However, it suffers from several issues that are illustrated in the MWE. I'm mainly just doing ...