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

learn more… | top users | synonyms (1)

10
votes
1answer
167 views

What is the difference between a typesetting language and a markup language

I remember, I read some article in a technical journal where the author drew the attention on the reader on a lot of people confusing typesetting languages and markup languages. How can I surely tell ...
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
626 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
153 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
988 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
589 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
309 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
726 views

Typography and style - good choices for font styles in TikZ or pgfplots graphics?

When creating graphics or graphs with TikZ and/or pgfplots, one can put several commands to format the text to his likings. My question is: what are sound possibilities to format the elements in said ...
10
votes
1answer
353 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
563 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
4k views

Vertical spacing before and after equation environment: empty line or not?

The vertical spacing in front of and behind the amsmath equation environment is different whether I insert a blank line or not (im using KOMA-Script with parskip=half if this is important). I'd like ...
10
votes
1answer
838 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
371 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
283 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
220 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
852 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
404 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
862 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
335 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
2answers
542 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 ...
9
votes
3answers
590 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
421 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
884 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
661 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
274 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
697 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
508 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
421 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
143 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
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
246 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
2answers
317 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
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
781 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
200 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
2answers
388 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
977 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
384 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
296 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
423 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 ...
8
votes
1answer
190 views

Looking for an ebook about typography that used to be part of a package

Sorry for asking, but an iron-curtain seems to have settled in my brain... I'm looking for a ebook about typography and how to best write/typeset a book. It used to be part of the documentation for ...
8
votes
2answers
628 views

What exactly are the semantics of noun case?

I'm a LaTeX and LyX beginner. One thing that's making me scratch my head is LyX's Toggle noun button. According to the manual, I should use noun case for people's names, and the default rendering ...
8
votes
2answers
401 views

Make \section unaffected by \parfillskip

To avoid widow words at the last line of a paragraph, I adjust parfillskip: \parfillskip 0pt plus 0.75\textwidth While this gives nicer paragraphs, it also stretches section titles a little, as you ...
8
votes
2answers
248 views

Special formatting for section numbers

In these Mathematical Writing notes prepared by Knuth et al. (worth checking out the first few pages if you write technical articles), they use a certain typography for Section numbers. Aside from the ...
8
votes
2answers
209 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 ...