{symbols} is about specific non-alphabetic symbols or math symbols, e.g., about looking-up, constructing, or using symbols. For questions about {fonts} or alphabetic {characters} use the respective tag instead.

learn more… | top users | synonyms (3)

258
votes
11answers
31k views

How to look up a symbol or identify a math symbol or character?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
128
votes
4answers
5k views

What is the use of percent signs (%) at the end of lines?

I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines?
43
votes
2answers
4k views

Importing a Single Symbol From a Different Font

Is there a general way to change the font of a particular symbol without switching packages? For example, suppose I'm using Computer Modern for my entire document, but I want the "subset" operator to ...
37
votes
6answers
3k views

\subseteq + \circ as a single symbol (“open subset”)

I'm trying to create symbols \opn for "open subset" and \cls "closed subset". I want them to look like this: My current solution is: ...
32
votes
3answers
42k views

Escape character in LaTeX

I need to output the below text but since \ is a special character, I cannot: [RegularExpression(@"\d+")] Also sometimes I need use dollar sign $ as well but it seems to be a special char, too. ...
325
votes
9answers
396k views

How does one insert a backslash or a tilde (~) into LaTeX?

How does one insert a "\" (backslash) into the text of a LaTeX document? And how does one insert a "~" (tilde)? (If you insert \~, it will give you a tilde as an accent over the following letter.) ...
66
votes
10answers
29k views

Good way to make \textcircled numbers?

I'm trying to make some good-looking numbers in a circle, using the simple command: \textcircled{1} However, the circle is misaligned vertically with the number, and look a bit sloppy: Any ...
87
votes
6answers
109k views

How can I get bold math symbols?

To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do ...
79
votes
4answers
121k views

Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation (¡) or question mark (¿)?

When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.
25
votes
2answers
5k views

How to superimpose LaTeX on a picture?

I know how to add a picture to my LaTeX file, e.g. \includegraphics[width=7cm]{curve.pdf}. What I'd now like to do is place some latex symbols onto the picture. Like a \gamma to name a curve. I do not ...
39
votes
2answers
7k views

“Closed” (square) root symbol

I found a cool trick in the LaTeX wikibook which allows the square root sign to be altered such that it "closes" over its contents. Here's an example: ("closed" root on the left, normal one on the ...
32
votes
2answers
9k views

Can I get a \widebar without using the mathabx package?

One can use \bar to put a bar over a letter in math mode, but often the bar isn't wide enough. An alternative is \overline, but this isn't an accent, so it doesn't take into account the skew of the ...
54
votes
2answers
5k views

How to get rid of navigation symbols in beamer?

When creating presentations in beamer, those little symbols that you can click on and will take you to different parts of your presentation are automatically included on your slides. I don't like ...
22
votes
3answers
5k views

Overlay symbol with another

Is it possible to overlay a symbol with another? I want to write an equal sign with a question mark overlayed (or the other way around). Note I don't want \stackrel{?}{=} I want the question ...
70
votes
7answers
25k views

Correctly typesetting a tilde

How do I set the tilde (~) character correctly in LaTeX? There’s a question discussing that on Stack Overflow, with a lot of answers. But dare I say it? They all suck: \textasciitilde is too high, ...
41
votes
4answers
45k views

How to type special/accented letters in LaTeX?

How to type these special letters from European languages in latex? ä, é, and L'?
66
votes
3answers
97k views

Absolute Value Symbols

What is the "best LaTeX practices" for writing absolute value symbols? Are there any packages which provide good methods? Some options include |x| and \mid x \mid, but I'm not sure which is best...
24
votes
4answers
6k views

What is the best way to use quotation mark glyphs?

There are several types of quotation marks in the English language (and in other languages there are even more). There are also several ways in LaTeX to represent these. I have seen editors, that are ...
13
votes
2answers
2k views

How do I lower the \widetilde accent, i.e., move it closer to the variable?

I sometimes find that the \widetilde accents sits too high above the math letter it is applied to. An example: To me it looks as if the first tilde is sitting just in between the two lines; it is ...
63
votes
8answers
14k views

How to typeset $:=$ correctly?

I like to use $:=$ for "is defined to be equal to", but this is never typeset with the symmetry one would like, as the colon is always too low relatively to the equals sign. Is there any way of ...
62
votes
4answers
31k views

\mid, | (vertical bar), \vert, \lvert, \rvert, \divides

What's the difference between the different vertical bars? $S = \{\, x \mid x \not= 17 \,\}$ $a \vert b$ implies $a \leq b$ when $b \ne 0$ $a|b$ implies $a \leq b$ when $b \ne 0$ $\lvert x \rvert$ is ...
53
votes
4answers
53k views

Command for argmin or argmax?

How can you get the argmin or argmax in Latex? Two solutions I found are: \underset{x}{\operatorname{argmax}} \DeclareMathOperator*{\argmin}{arg\,min} Any other ideas? [1] ...
16
votes
1answer
2k views

Colored symbols

First of all, I apologize if this is a repetitive question. I searched, but couldn't find it. I was wondering if I can change the color of symbols in latex. For example \ast always give me a black ...
75
votes
6answers
8k views

Prettiest way to typeset “C++” (cplusplus)?

Writing "C++" in plain text results in an ugly setting, as the '+' signs are too big and too spaced: I've seen around the web several marcos for typesetting the "C++" symbol, ranging from mild ...
26
votes
6answers
22k views

Mathematical symbol for disjoint set union

In our lecture script, we use the notion of disjoint set union. It uses a special symbol to differentiate the disjoint from the usual set union, where we add an extra dot inside of the \cup symbol. Is ...
23
votes
1answer
1k views

How can I use a symbol provided by a package without changing the entire mathematics font?

I wish to use a symbol provided by the package MnSymbol but if I have a \usepackage{MnSymbol} in my document then many other symbols change, including even the equals sign (=), which appears much ...
14
votes
3answers
1k views

Can I change the font and colour of a letter permanently?

For my lectures, I like to colour the symbols in the equations to make it easier to follow what's going on - a bit like syntax highlighting. So all vector spaces are one colour, all sets another, e ...
17
votes
3answers
3k views

Nice-looking p-th roots

When I take the pth root, the bottom of the p comes very close to the \sqrt symbol. In the New Century Schoolbook font (which I am using), the p actually intersects the \sqrt symbol, which looks even ...
22
votes
2answers
2k views

How to get a \mid binary relation that grows

This question relates to one about getting a vertical bar longer than \mid. How to get a vertical bar which is longer than \mid ? However while the given \middle| solution works for me, it no longer ...
25
votes
4answers
3k views

How to typeset special Apple Mac keyboard symbols?

Is there a standard way to typeset the special symbols of the Apple Mac keyboard? That is, the curly rectangle ⌘ and the others? If there is none, what would you suggest as workarounds?
27
votes
2answers
23k views

Big integral sign

Is there a possibility to draw large integral signs? I have found the package bigints but I have the feeling it is not very professional... Any better idea?
16
votes
3answers
2k views

How to type NOT \delta and NOT \ll

In proximity theory, we use \delta and \ll as binary relations on the power set of a set X. How can one display NOT \delta or NOT \ll similar to how we can do \not\in. Using \not\delta and \not\ll ...
12
votes
2answers
211 views

Is there such a thing as a `\mathrule`? (rounded endcaps)

When I am creating hybrid math glyphs, I will find myself often times stacking \rules about the place. But if you look at a collection of CM math symbols (top row), and compare it to a \rule (2nd ...
39
votes
4answers
63k views

“inputenc Error: Unicode char \u8” error while trying to write a degree symbol (invisible character)

No matter how I try to do it I always get the following error : ! Package inputenc Error: Unicode char \u8:­ not set up for use with LaTeX. I have tried using ­­­$^{\circ}$, \deg, \textdegree, ...
25
votes
1answer
36k views

How to typset the symbol “^” (caret/circumflex/hat)

I need to display the symbol '^' d <- dist(fascores, method = "euclidean")^2 How do I do that?
15
votes
3answers
6k views

How to add a custom symbol to LaTeX?

Suppose I need some crazy custom symbol for personal use. e.g. when I write \foobar, LaTeX should show . How do I achieve this? Update: I was writing Klingon writing system for fun. Thank you very ...
7
votes
2answers
7k views

Really wide hat symbol

Is there any way to get a hat wider than widehat? Why doesn't \widehat{abcdefghijklmnopqrstuvwxyz} really go over all of it?
19
votes
3answers
3k views

Big tilde in math mode

How do I get a really wide tilde? I need to cover at least abcdefghijklmnopqrstuvwxyz The \widetilde command does not work. Nor using \stackrel with \sim.
9
votes
2answers
2k views

What packages will let me use Cyrillic characters in math mode?

Note I'm not actually planning on writing any, for instance, Russian prose or even any Russian words. It's just that, on paper, I've always had the habit of denoting sets by uppercase roman letters, ...
9
votes
5answers
7k views

Why can I only use some capital greek letters inside my equations?

For example: \begin{equation} \delta % ok \Delta % ok \epsilon % ok \Epsilon % error \end{equation}
5
votes
3answers
1k views

Replace hyphenation character by a backwards arrow

I am setting e.g. directory names in a typewriter font. These names can become long. With the hyphenat package, I enabled hyphenation. Now, what is missing, is that the hyphenation character is ...
4
votes
2answers
570 views

Despite using backslash dollar sign, error persists

\documentclass[a4paper,12pt]{article} \begin{document} \title{Kubuntu Setup} Don't forget your architecture is not i386, but x86_64. Better to use {\tt \$(uname -i)} instead of manually specifying ...
34
votes
5answers
7k views

Something between \frownie and \smiley

Inside a beamer presentation, I would like to compare and contrast several alternatives. For each, I would like to highlight the "pros" (with a \item[\Large\smiley]), the "cons" (with a ...
12
votes
3answers
1k views

Generating a table of glyphs with XeTeX

I am trying to get XeTeX to generate a table of all the possible glyphs of a given font, but can not figure out how to make XeTeX know how many glyphs the font has, so I have to specify an exact ...
20
votes
4answers
3k views

variable-sized “such that” pipe

I am looking for a pipe symbol that can be made to vary in height automatically. One of the common ways of writing "such that" in mathematics is with the pipe symbol (|). The pipe can be represented ...
26
votes
3answers
26k views

Label equation with a symbol

I would like to label an equation with an arbitrary symbol, rather than a number, or letter. Is this possible?
13
votes
1answer
6k views

How can I have a bigger integral (\int) delimiter?

I'm writing some integrals and I don't like the way the \int symbol is displayed when it is followed by a big delimiter. Here's the code: \[ \int_S\biggl(\nabla\times\bar B - \mu_0\bar J - ...
6
votes
2answers
2k views

The standard \cup vs. the mathabx \cup

I'm interested in using the standard \cup, i.e. and the one given by importing the mathabx \cup in the same document. Does anyone know how to do that?
17
votes
7answers
8k views

Average integral symbol

Is there in LaTeX a symbol or a macro for the average integral with a horizontal slash? I know about \strokedint, but I'd prefer the dash to be horizontal.
4
votes
1answer
274 views

Typing Following notation in Latex [duplicate]

I need to generate following notation in LaTeX. It's used in differential geometry to denote vector fields. I can't find documentation and detexify is not helpful either.