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

learn more… | top users | synonyms (1)

11
votes
1answer
5k 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 ...
11
votes
1answer
627 views

Are there typographical drawbacks to using .otf font files?

Recently I've been messing around with different fonts in LaTeX and tonight got set up with the fontspec package which allows you to use .otf fonts in your LaTeX documents (in my case compiling with ...
11
votes
1answer
647 views

Using both a double-story and single-story g in math mode

I am writing some mathematics in which I want to use both typographic variants of the lowercase 'g' in math mode. See the Wikipedia page to see the two variants. There is a single-story and a ...
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
969 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
556 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
380 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 ...
10
votes
2answers
341 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
928 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
9k 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
704 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
156 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
661 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
334 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
392 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
611 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
913 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
9k 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 ...
10
votes
1answer
393 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
292 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
227 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
887 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
444 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
948 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
3answers
687 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
430 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
1k 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
699 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
334 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
1answer
145 views

Is there a group/organization/network of people who create TeX/LaTeX-based versions of old or public domain texts?

Simply put, is there a Project Gutenberg for TeX and Friends?
9
votes
2answers
325 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
798 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
523 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
428 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
154 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
704 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
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
324 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
544 views

Why is Latex giving this odd output?

This is my code. \documentclass{article} \begin{document} The substance used in this experiment is 1,1-diphenyl-2-picryl-hydrazyl (DPPH). This organic compound is a relatively stable free ...
8
votes
4answers
778 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
336 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
219 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
835 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
423 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 ...