Skip to main content

New answers tagged

0 votes

Smileys in LaTeX

Caramdir's solution didn't work for me, so i used a shotgun: With this python script: #!/usr/bin/env python3 import json import argparse parser = argparse.ArgumentParser( prog='...
user27221's user avatar
  • 121
6 votes
Accepted

What is the definition of \partial (∂) by using \DeclareMathSymbol

You can find the default definition in fontmath.ltx, part of the base distribution: \DeclareMathSymbol{\partial}{\mathord}{letters}{"40} This tells us that the symbol, by default, will be taken ...
cfr's user avatar
  • 208k
0 votes

Specifying bullet type when using itemize

Set options in each environment like \begin{itemize}[label=+] is a direct way. But \setlist command from enumitem package is more effective if you need to use multiple itemizes. %\usepackage{enumitem} ...
cppHusky's user avatar
6 votes
Accepted

Adding a vertical line on an existing symbol to define a new one

The idea here is to superimpose a slightly raised | to the Z. \documentclass{article} \usepackage{amsmath} \makeatletter \NewDocumentCommand{\Zb}{}{{\mathpalette\Zb@\relax}} \newcommand{\Zb@}[2]{% \...
egreg's user avatar
  • 1.1m
3 votes

Adding a vertical line on an existing symbol to define a new one

One character spacing is a bit arbitrary since it depends on the chosen character, font, font size, etc. Here are two renditions of your proposed symbol: \documentclass{article} \usepackage[T1]{...
Gargantuar's user avatar
  • 1,241
4 votes

Create a new math symbol

Old question, but the given answer has the defect of forcing MnSymbol which is rarely desired. \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \NewDocumentCommand{\triangleLeft}{}{%...
egreg's user avatar
  • 1.1m
2 votes

Filled in \diamond without XeLaTeX

A poor man's solution could be not rotate \square but a framed color box and to avoid any difference with \diamond, make the white diamond also with a rotated framed color box. With the default font, ...
Fran's user avatar
  • 82.7k
3 votes
Accepted

Filled in \diamond without XeLaTeX

The \diamond symbol, as defined by amssymb is an operation symbol, but apparently you want it as an ordinary symbol. \documentclass{article} \usepackage{graphicx} \usepackage{amssymb} \newcommand{\...
egreg's user avatar
  • 1.1m
1 vote

Is there a LaTeX symbol for 'order'?

An additional possibility for "order" on this request that is worth disambiguating here is the symbol for the "precedence" relational operator or lexicographic order in formal ...
Eric's user avatar
  • 111
5 votes

Filled in \diamond without XeLaTeX

The stix2 package splits the Unicode Stix two math font in to Pdftex compatible fonts and gives them TeX names compatible with unicode-math. The unicode math names for U+2B25 and U+2B26 are \...
David Carlisle's user avatar
4 votes
Accepted

How can I replace the single quotation mark with another one in the listings package?

You could use the upquote package to get upright quotes in verbatim: \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{listings} \...
samcarter_is_at_topanswers.xyz's user avatar
1 vote

How would we write code for a smile with a dot underneathe it?

Here's an approach with stackengine and scalerel packages. \documentclass{article} \usepackage{amsmath,stackengine,scalerel} \newcommand\smiledot{\mathrel{\ThisStyle{\ensurestackMath{\stackunder[0pt]{%...
Steven B. Segletes's user avatar
4 votes

How would we write code for a smile with a dot underneathe it?

Assuming you want a relation symbol that compares to \smile: \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\smiledot}{\mathrel{\smiledot@}} \DeclareRobustCommand{\smiledot@}{\...
egreg's user avatar
  • 1.1m
0 votes

Are there concave up and concave down symbols in beamer?

Do you mean \smile and \frown? \documentclass{beamer} \begin{document} \begin{frame} Convex: $\smile$ Concave: $\frown$ \end{frame} \end{document}
egreg's user avatar
  • 1.1m
0 votes
Accepted

Are there concave up and concave down symbols in beamer?

There are various package which provide \cup and \cap symbols in different shapes and sizes. You could pick one which you like. In the following an example with mathabx. If you need full control over ...
samcarter_is_at_topanswers.xyz's user avatar
2 votes

Typesetting d'Alembertian symbol

I might be late to the party, but I thought to mention that the newtxmath package provides the \dAlembertian command which produces a nice d'Alembertian: \documentclass{article} \usepackage[amsthm, ...
Shai Avr's user avatar
  • 909
0 votes

Problem when combining \widebar and \mathring

I'd not use that complicated code by Hendrik Vogt. \documentclass{article} \usepackage{amsmath} % see https://tex.stackexchange.com/a/364929/4427 \DeclareFontFamily{U}{mathx}{} \...
egreg's user avatar
  • 1.1m
2 votes

How to typeset Dijkstra choice with TeX Gyre Termes and STIX Two Math? Other font suggestions are welcome

This answer focuses on the following part of the question: Moreover, for both fonts, the symbol isn't exactly right-aligned in the column with the keywords denoting the statement to which the choice ...
Skillmon's user avatar
  • 61.6k
2 votes

Nice looking empty set?

You could use the package unicode-math to change a specific math symbol's font without changing other symbols'. Here is how I used: \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} \...
Zoël Li's user avatar
0 votes

Preventing Ångström symbol being italicised in pythontex

I presume the question is about creating a string for something like a matplotlib label, where there is a latex interpreter so you can use a latex environment by putting text between $$. The suggested ...
Laurence Lurio's user avatar
-2 votes

How can I get the Russian ruble sign?

This question is eight years old (by this answering date), but I want to point out that there's now \textpeso which can feed the need. \textpeso forms part of textcomp – LATEX support for the Text ...
gildux's user avatar
  • 538
10 votes
Accepted

How to typeset Dijkstra choice with TeX Gyre Termes and STIX Two Math? Other font suggestions are welcome

The question is rather too long and unspecific, and not unreasonably got closed as opinion-based, but I asked for it to be re-opened as I think there is a TeX question (or at least a TeX font question)...
David Carlisle's user avatar

Top 50 recent answers are included