Hot answers tagged symbols
13
Another clear case for the accents package: .
\documentclass{article}
\usepackage{accents}
\begin{document}
$\accentset{\bullet}{x}$
\end{document}
Note that, in contrast to \overset, the slant of the letters is taken care of automatically:
11
There are several options. The siunitx package provides an \ang command that typesets angles. Degrees, minutes and seconds should be separated by semi colons. Alternatively you can set the numbers in math-mode ($ ... $), and use ^\circ for the degree sign and ' or ^\prime for the minute mark.
\documentclass{article}
\usepackage{siunitx}
\begin{document}
...
10
As has been suggested in the comments: what you're getting as the output of an \& with your current font (Computer Modern) is simply one of many renditions of the symbol called an ampersand. Traditionally, type designers have always taken a lot more liberties with that glyph than with, say, a plain a. That's been a custom for several centuries, which is ...
10
There is no reason why in general one should write $\euro$ for getting the Euro € symbol. Just \euro in text mode works.
It might be a problem in case you need to use the symbol in math mode. The package doesn't cope with this case and effectively $\euro$ simply produces e.
A workaround is to modify the standard definition:
\usepackage{eurosym}
...
7
It's a bug in the TXfonts distribution. When the bold font metrics were built the dollar (character 36, octal 44) received the information for the ampersand (character 38, octal 46), as it is evident from the property list files derived from t1xb.tfm and txb.tfm (the fonts used for boldface in the T1 and OT1 encodings respectively). What happens because of ...
7
If the preferred math font does not contain the symbol, it can be provided by putting \cup and \cdot together:
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\providecommand*{\cupdot}{%
\mathbin{%
\mathpalette\@cupdot{}%
}%
}
\newcommand*{\@cupdot}[2]{%
\ooalign{%
$\m@th#1\cup$\cr
\hidewidth$\m@th#1\cdot$\hidewidth
}%
}
...
7
How about using the graphicx package, and then \rotatebox[origin=c]{45}{$\subseteq$}? I don't know how to include examples of output here though, but that seems to be what you require.
\documentclass{article}
\usepackage{amssymb,amsthm,amsmath}
\usepackage{graphicx}
\newcommand{\dsubseteq}{\mathrel{
\rotatebox[origin=c]{45}{$\subseteq$}}
}
...
6
OK, you really want to know how to create your own tfm file with new extensible symbols? Then here are some explanations. I only give some toy example, working with the standard Computer Modern fonts. Here's the output I can produce; I don't claim that it's nice or useful:
Here's the LaTeX code:
\documentclass[12pt]{article}
\usepackage{amsmath}
...
6
For formatting tags like <tag> prefer to wrap them into \verb|<tag>|.
Also, I'd recommend to create a custom command, like this (this will allow you to change the typesetting of all XML tags at once):
\documentclass[varwidth]{standalone}
\usepackage{xcolor}
...
6
This depends on the font, If I use SimSun (as I had used it in a previous answer) I see no gap if I use the input you show (2 em dashes) I do see a gap if I use the classic TeX input ------ Unicode 6.1 introduces U+2E3A (TWO-EM DASH) but that might be a bit new to be in commonly distributed fonts, I get no visible character in that slot). Sorry about the ...
6
According to ISO 80000-2*), clauses 2-18.1 and 2-18.2, the Fourier transform of function f is denoted by ℱ f and the Laplace transform by ℒ f. The symbols ℱ and ℒ are identified in the standard as U+2131 SCRIPT CAPITAL F and U+2112 SCRIPT CAPITAL L, and in LaTeX, they can be produced using \mathcal{F} and \mathcal{L}.
The standard adds that (ℱ f)(ω) is ...
6
A variation of morbusg solution that works also for subscripts and superscripts.
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\newcommand{\dotminus}{\mathbin{\text{\@dotminus}}}
\newcommand{\@dotminus}{%
\ooalign{\hidewidth\raise1ex\hbox{.}\hidewidth\cr$\m@th-$\cr}%
}
\makeatother
\begin{document}
$a\dotminus b_{c\dotminus d}$ ...
6
Constructed symbol
If the font does not provide the symbol, the mirroring can be done with package graphicx:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\makeatletter
\providecommand*{\Dashv}{%
\mathrel{%
\mathpalette\@Dashv\vDash
}%
}
\newcommand*{\@Dashv}[2]{%
\reflectbox{$\m@th#1#2$}%
}
\makeatother
...
6
Perhaps an overkill, but you could define your arrow with the help of TikZ:
\documentclass{article}
\usepackage{tikz}
\newcommand\overdarrow[1]{%
\begin{tikzpicture}[baseline=(arg.base)]
\node[inner xsep=0pt] (arg) {$#1$};
\draw[densely dashed,dash pattern=on 2pt off 1.5pt,->,shorten >= 0.5pt] (arg.north east) -- (arg.north west);
\end{tikzpicture}%
...
5
This is a nasty bug in algorithm2e. The setting of the "localized keywords" is not language dependent and the same keyword Para is defined for Portuguese and Spanish. The latter has been added in the last revision of the package and
\SetKwFor{Para}{para}{hacer}{fin para}
appears later than the similar definition in the Portuguese section, thus overriding ...
5
You're correct. The backslash is TeX's (default) escape character; it signals to TeX that what follows is different from "normal text". Therefore, simply typing \ will not produce a backslash in the output. (Incidentally, if you type \ followed by any amount of blank space, you will only produce a so-called control space, not a backslash.)
To typeset a ...
5
MusiXTeX uses the normal "bold italic" font for the dynamic marks: {\textbf{\textit{sfz}}, but with a small kern between the letters.
It's so not necessary to load all of MusiXTeX:
\documentclass{article}
\newcommand{\muskern}{\kern-.15ex } % what MusiXTeX does
% if only a couple of dynamic marks are needed, this is easier
...
5
You can use multiple label keys in the options for a node:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[mynode/.style={draw,circle,minimum size=2cm}]
\node[mynode,label=left:$a$,label=right:$b$,label=60:$c$,label=220:$d$] {};
\end{tikzpicture}
\end{document}
In your case, you need an additional precaution since you ...
4
As already pointed out by Jake, the = is detected by TikZ that parses the options based on , and =.
This works:
\node[label=below:{$\mathcal{L}^*(B)=\mathcal{L}(D)$}]
As well as that:
\node[label={below:$\mathcal{L}^*(B)=\mathcal{L}(D)$}]
If you want to include a : in the label but do not specify a direction (here: below), then you will need to ...
4
With musixtex maybe:
\documentclass{article}
\usepackage{musixtex}
\begin{document}
fortissimo: \ff, sforzato: \sF
\end{document}
See section 2.17.5 of the manual.
4
Make the text parts of your formula text instead of maths
$\hbox{[ID, List of symbols]} \rightarrow \hbox{Sequence of rules}$
or if you prefex "proper" LaTeX and you have the amsmath package loaded to give you the \text command
\(\text{[ID, List of symbols]} \rightarrow \text{Sequence of rules}\)
4
The way indexing programs need to read your .tex file is very tricky. This is what leads to problems. In the code you have used, if you examine the resulting .idx file, you will see this:
\indexentry[p]{Paul (\dag 1999)}{1}
\indexentry[p]{Paul (\dag 1999)}{1}
And makeindex (or splitindex) will treat them differently. You can work around this by having ...
3
This is the default behavior since version 1.5.0 for the casual style variant (the one you pictured), released today. It is using the fontawesome package as stated in another answer, and will load it automatically.
FYI, the new version of moderncv introduces a way to switch between icon sets, i.e.
\moderncvicons{<icon set>}
where <icon set> ...
3
This style loads the great new font package fontawesome and uses te defined symbols there.
\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\faTwitter
\faLinkedin
\faGithub
\faLinkedinSign
\end{document}
3
The scalerel package can do this. I made the scriptscript prime equal to .6 the size of the script prime. One invokes it as \ssp{base} to get base'
\documentclass{article}
\usepackage{scalerel}
\newcommand\scale[2]{\vstretch{#1}{\hstretch{#1}{#2}}}
\newcommand\ssp[1]{#1^{\scale{.6}{\scriptstyle\prime}}}
\begin{document}
\[
a {\scriptstyle a} ...
3
I think you are looking for kerning (inter-letter space added by th etypesetting engibe) rather than ligatures (a pre-built glyph in the font).
This moves f and s as close as I dare:
\documentclass{article}
\begin{document}
$\mathit{fs}$
$\mathit{f\mkern-6mu s}$
\end{document}
3
The range of symbols available depends on the fonts used, and the classic Computer Modern collection doesn't have a bold version of the symbol extension font used for integral signs.
Assuming you don't want to change font setup globally there are a couple of choices. Use an extra set of {..} so \bm sees this as a complex expression and just uses \boldmath ...
3
You can use \displaystyle\prod and \bigotimes\limits; I also used a shorten length for the curved arrow to prevent overlapping:
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\begin{figure}
\centering
\begin{tikzcd}[row sep=huge, column sep=huge, text height=1.5ex, text depth=0.25ex]
\displaystyle\prod_{i=1}^{p} ...
3
If you use the eurosym package along with its command \euro you'll get the Euro symbol.
Try running this:
\documentclass{article}
\usepackage{eurosym}
\begin{document}
\noindent Sample with eurosym: \euro \\
Sample with e: $e$
\end{document}
And you'll get this output:
As you can see, there is a big difference between $e$ and \euro.
...
3
Three examples, from here:
\def\bitcoinA{%
\leavevmode
\vtop{\offinterlineskip %\bfseries
\setbox0=\hbox{B}%
\setbox2=\hbox to\wd0{\hfil\hskip-.03em
\vrule height .3ex width .15ex\hskip .08em
\vrule height .3ex width .15ex\hfil}
\vbox{\copy2\box0}\box2}}
and
\def\bitcoinB{\leavevmode
{\setbox0=\hbox{\textsf{B}}%
\dimen0\ht0 ...
Only top voted, non community-wiki answers of a minimum length are eligible
