2022 Developer Survey is open! Take survey.

Hot answers tagged

51 votes
Accepted

Math mode accents

Choose the one you like: % arara: lualatex \documentclass{article} \usepackage{unicode-math} \usepackage{mathtools} \setmathfont{XITS math} \begin{document} Accents above: \begin{itemize} \item \...
user avatar
  • 42.1k
36 votes

How to type special/accented letters in LaTeX?

Users looking to make common accents in regular text mode can do so with, for example, \'e. MWE: \documentclass[10pt]{article} \begin{document} Alfred Land\'e. \end{document} Output:
user avatar
27 votes
Accepted

Trying to use "\~" to generate tilde symbol in math mode

The immediate problem is solved by replacing the text-mode instruction \~{A} with the math-mode directive \tilde{A}. You may also want to make the equation both more compact and more readable by (a) ...
user avatar
  • 435k
26 votes

Which is the better way to do accents in LaTeX?

The only sane reason I can think of for giving in to your professor's preference concerns bibliographies and, specifically, bibliographies created with BibTeX and a bibliography style that sorts ...
user avatar
  • 435k
25 votes

What else do I need to produce two dots above o?

It is difficult to see in some editors, but in the first case you have \" acting on o, in the second: \' acting on ', hence the strange result. \documentclass{article} \begin{document} Toks\"{o}z ...
user avatar
21 votes
Accepted

How to bring bar and \sim symbol at the same level

By all means replace \overset{\sim}{u} with \tilde{u}. Optionally, replace \overline{\rho} with \bar{\rho}. Here's a screenshot of u with various math-mode adornments. \documentclass{article} \...
user avatar
  • 435k
19 votes
Accepted

Diacritics above dotted i (i with tittle)

In the definition files for output encodings, you can find the defined combinations that are substituted with precomposed accented characters; for instance, in t1enc.def we find \DeclareTextComposite{...
user avatar
  • 985k
19 votes

Americanist Phonetic Alphabet (APA) Glottalized Plosive

This is encoded in Unicode as "Combining Comma Above" (U+0313} and with a suitable font and XeLaTeX or LuaLaTeX can be entered directly. In the example below I've made a \glottal macro to make input ...
user avatar
  • 201k
17 votes
Accepted

Can LaTeX change the behavior of core TeX commands?

Firstly \" is not a tex primitive, it is a macro defined in plain tex and also a macro with a different definition defined in latex, so it isn't that latex changes this macro it just has a different ...
user avatar
17 votes
Accepted

What does `\a` do?

\a is a LaTeX core instruction for generating a letter with a diacritical mark. \a{accent}{letter} The command is intended for the case when the normal accent commands of the form \accent{letter} or \...
user avatar
  • 5,183
16 votes
Accepted

Double-tilde over symbol

One of these? \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{calc} \usepackage{accents} \newcommand{\dbtilde}[1]{\accentset{\approx}{#1}} \newcommand{\...
user avatar
  • 259k
14 votes

\bar vs. \overline - when to use what, semantically?

The accepted answer is great. The major practical considerations I’ve run into are when I’ve wanted to either put a bar over multiple symbols or put wide bars over two distinct adjacent symbols that ...
user avatar
  • 37.5k
14 votes
Accepted

How do I get two mathrings centered over a variable?

A modification of the \dddot macro of amsmath: \documentclass{article} \newcommand\ringring[1]{% {% make an Ord atom \mathop{\kern0pt #1}\limits^{% set a box over the variable \vbox to-1....
user avatar
  • 985k
14 votes
Accepted

Place a $\star$ over a letter as an accent

Some low level TeX is the easiest way: \documentclass{article} \makeatletter \newcommand{\generic}{\textsf{Gener\istar c}} \newcommand{\istar}{% \leavevmode \vbox{% \offinterlineskip \...
user avatar
  • 985k
14 votes
Accepted

How to place a dot below for example: e?

Line 84 of latex/base/tuenc.def is \relax\detokenize{#2}^^a0\else#2\fi Please edit to say \if\relax\detokenize{#2}\relax^^a0\else#2\fi I'll get an update to the release this evening, sorry.
user avatar
13 votes

pdfTeX warning: has been referenced but does not exist, replaced by a fixed one, with German Umlaut

I've had a similar problem, but I've "solved" it. Online some people seemed to suggest this is to do with hyperref, but, I'm not convinced. Loading hyperref last had no effect whatsoever. In the ....
user avatar
  • 131
13 votes

Accent in letters over a Letter

\documentclass{article} \usepackage{stackengine,graphicx} \begin{document} $\ensurestackMath{\stackengine{.5pt}{\tau}{\scriptscriptstyle e-m} {O}{c}{F}{F}{S}}$ or $\ensurestackMath{\stackengine{1pt}{...
user avatar
13 votes

Double-tilde over symbol

A variation on my answer here: double tilde symbol under letter. Here, \tsup takes an optional argument specifying the number of symbols to overset (default 2). \documentclass{article} \usepackage{...
user avatar
13 votes
Accepted

Fun titles by splitting in letters (or words)

You can make the argument of \aux delimited by a space, so it operates word-by-word, rather than token-by-token (which is why it doesn't work with accented characters: they are made of multiple tokens)...
user avatar
12 votes

Accented Character in ornamental drop-caps using Zallman Caps

If you are willing to buy a font, some sites let you search for the existence of a particular character (e.g., myfonts.com). But you won’t find many sets of ornamental initials that include Ś. If you ...
user avatar
  • 12.2k
12 votes
Accepted

Side by side hats

Here I provide \dhat{} and take the effort to account for the slant by adding an \hspace equal to 0.2\ht0 where the argument has been stuffed in the 0 box (I am assuming a slant value [tan(slantangle)]...
user avatar
12 votes
Accepted

How to denote the fifth derivative in Newton’s notation?

The problem is that each macro has to be defined, and there is only up to \ddddot. So I made two macros: \dddddot, and \multidots. For both of them I copied the definition of \ddddot and added dots. ...
user avatar
12 votes
Accepted

Engine problem? Creating dynamic diacritics using the Brill typeface

The XeTeX behavior is a combination of HarfBuzz “features” and font limitations. Unicode has something called canonical equivalence. When a certain code point sequence is said to be canonically ...
12 votes

How to write an equal sign above a letter

I'd like to suggest that you load the amsmath package and write \bar{\bar{I}} -- in math mode, naturally. \documentclass{article} % or some other suitable document class \usepackage{amsmath} \begin{...
user avatar
  • 435k
11 votes

Really wide hat symbol

An alternative (and very simple) solution consists in using the package yhmath (which, as far as I was able to understand from its documentation, requires the amsmath package). With such a package (i....
user avatar
11 votes

accent above a greek letter

Use \acute{} in mathmode: $\acute{\omega}$ Other accents in mathmode: \documentclass{article} \renewcommand{\arraystretch}{1.5} \begin{document} \section*{Accents in mathmode} $\begin{array}{...
user avatar
11 votes
Accepted

What does symbol ~ do in Latex?

As stated in the comments ~ inserts a non-breaking space. This means that you tell the typesetting algorithm that it should not insert a linebreak here. This is useful when making references. For ...
user avatar
  • 1,894
11 votes
Accepted

Missing Arabic Ligature due to diacritical marks in ConTeXt MarkIV

Ideally, one could fix the problem using an OpenType feature file loaded at runtime through a ConTeXt typescript. In practice, that's not (yet) possible; as Hans Hagen told me the new font loaders ...
user avatar
11 votes
Accepted

How to define MSB or LSB of a binary number

A combination of \overset and \substack lets you position the labels and the arrows above the respective digits. To assure that the presence of the labels doesn't affect the spacing of the digits, use ...
user avatar
  • 435k

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