Hot answers tagged

27

The apostrophe is essentially equivalent to ^{\prime}, which is the reason for the output you get from ^{\dagger''}. It's a very handy shorthand in most cases, compare f'(x) with f^{\prime}(x). In your case you don't want a second level superscript. Solution: use \prime. \documentclass{article} \usepackage{amsmath} \begin{document} \[ \hat{c}_{\omega l}^{...


14

Does this suit you? The comma in Palatino seems to have the desired shape. Some reflection and rotation allow to get the result. \documentclass{article} \usepackage{graphicx} \newcommand{\INVCOMMA}{\scalebox{1}[-1]{\usefont{OT1}{ppl}{m}{n},}} \newcommand{\INVCOMMAP}{\rotatebox{90}{\INVCOMMA}} \newcommand{\INVCOMMAM}{\rotatebox{-90}{\INVCOMMA}} \newcommand{\...


14

You can always build your own. That way you can change details, if needed. \documentclass{article} \usepackage{tikz} \usepackage{scalerel} \newcommand\TalkingHead[1][]{\scalerel*{\begin{tikzpicture}[#1] \draw[xscale=-1,line width=pi*1mm] (-1,-4) to[out=50,in=-90,looseness=1.4] (-1,-3) to[out=-160,in=0] (-2,-3.2) to[out=180,in=-120] (-2.7,-2) to[out=120,...


13

\documentclass{article} \usepackage{amssymb,stackengine} \newcommand\ledot{\mathrel{\ensurestackMath{% \stackengine{-.5ex}{\lessdot}{-}{U}{c}{F}{F}{S}}}} \begin{document} $a\ledot b$ \end{document} If you need it across mathstyles: \documentclass{article} \usepackage{amssymb,stackengine,scalerel} \newcommand\ledot{\mathrel{\ThisStyle{\ensurestackMath{% ...


12

I guess, you just made a typo (capital-X). The following code works for me. \documentclass[a6paper,landscape]{memoir} \begin{document} I love \LaTeX.\footnote{\LaTeX\ code has been taken from this source.} I also love \TeX.\footnote{\LaTeX{} code has been taken from this source.} \end{document} Compiled with pdfTeX: To clarify: I posted an answer ...


10

Raise the asterisk by 1ex minus the height. \documentclass{article} \usepackage{fontspec} \setmainfont{Alegreya} \newcommand{\gs}{\raisebox{\dimexpr1ex-\height}{*}} \begin{document} \makebox[0pt][l]{\vrule height\dimexpr1ex+0.05pt depth -\dimexpr1ex-0.05pt width 3cm}% \makebox[0pt][l]{\vrule height 0.05pt depth 0.05pt width 3cm}% x Autor\gs in \end{...


9

The approach here is a little complicated. Why? need to get the symbol centered between the two glyphs, even if the two glyphs are of different widths Need to make work across math styles. Need to make the accent glyph leave the spacing unchanged in the underlying glyphs. Need to auto-adjust vertical placement depending on height of underlying glyphs. The ...


8

Welcome! You do not need any packages for that. \documentclass{article} \newcommand{\RightArrowInBox}{\begingroup \renewcommand{\arraystretch}{0.6}\begin{array}{@{}c@{}|}\hline \raisebox{-0.2ex}{$\Rightarrow$}\\ \hline\end{array}\endgroup} \newcommand{\LeftArrowInBox}{\begingroup \renewcommand{\arraystretch}{0.6}\begin{array}{@{}c@{}|}\hline \raisebox{-0....


8

There is also a specific symbol \leqslantdot with MnSymbol package, or fdsymbol. Edit: We observe that the \leqslantdot with MnSymbol not changes the CM fonts. \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{MnSymbol} \begin{document} $f(a,b)\leqslantdot g(b,a)$ \end{document} While if you use fdsymbol, you have not an exact dot but it is ...


8

You can use the e argument specifier of xparse to scan and see whether subscripts or superscripts come along. If they do, add \, to superscripts and \! to subscripts. This happens by adding \fixlimits at the end of the working of \int. You may want to do similarly to other integral types, with a similar \xapptocmd line for each. \documentclass{article} \...


7

Similar approach with a TABstack. It adapts to fontsize changes. \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{amssymb} \usepackage{yfonts} \usepackage{tabstackengine} \newcommand\Number{\begingroup\setstackgap{S}{0.08ex}% \ensureTABstackMath{\stackinset{r}{-.05em}{c}{}{\tabbedShortunderstack{% \scalebox{.7}{$\...


7

For instance, stmaryrd has such a symbol. \documentclass{article} \usepackage{amssymb} \usepackage{stmaryrd} \begin{document} \begin{tabular}{ll} slanted: & $A\trianglelefteqslant B$ \\ normal: & $A\trianglelefteq B$\\ \end{tabular} \end{document} In general you can look in the comprehensive list of symbols (texdoc comprehensive) and often it is ...


6

I believe you're looking for the \textasteriskcentered macro. Depending on the text font you employ, you may need to combine it with a suitable \raisebox "wrapper" instruction -- you're obviously free to choose a snappier name than \genderstar -- in order to get the desired vertical placement. %% compile with either XeLaTeX or LuaLaTeX \documentclass{...


6

Just for fun: an attempt to obtain a precise match. \documentclass{article} \usepackage{scalerel} \usepackage{tikz} \definecolor{cmblue}{RGB}{1,126,254} \newcommand{\doubleckmark}{\scalerel*{\begin{tikzpicture}[x=2ex,y=2ex] \draw[line width=0.72ex,cmblue] (136:1.25) -- (0,0) -- (51:2.85); \draw[xshift=2.5ex,line width=0.72ex,cmblue] (137:0.55) -- (0,0) -- (...


6

\documentclass{article} \usepackage{tikz} \tikzset{pics/.cd, checkmark/.style={code={% \pgfgettransformentries{\tmpxx}{\tmp}{\tmp}{\tmp}{\tmp}{\tmp} \draw[line width=\tmpxx*1pt,draw=none,fill=blue!60] (0,.33) -- (.25,0) to (0.8,.6) to (.72,.68) to (.25,.18) to (0.08,.40)-- cycle;}}} \tikzset{pics/.cd, clipcheckmark/.style={code={% \...


6

Not as wide as in the example, but quite similar. A Cyrillic “number sign” with a second bar added. \documentclass{article} \usepackage{pict2e,picture} \usepackage[T2A,T1]{fontenc} \newcommand{\simplens}{% {\normalfont\fontencoding{T2A}\itshape\symbol{'235}}% } \DeclareRobustCommand{\ns}{% \simplens \begin{picture}(0,0) \linethickness{0.065ex} \...


6

This yields a similar result as in the example, and it adapts well to different font sizes. \documentclass{article} \usepackage{amsmath} \usepackage{pict2e} \newlength{\fslength} \newlength{\fthickness} \DeclareFontFamily{U}{eus}{\skewchar\font'60} \DeclareFontShape{U}{eus}{m}{n}{% <5><6><7><8><9>gen*eusm% <10>&...


5

One can just add a switch to the simpler-wick package. (These look like Wick contractions except that they are round.) \documentclass[fleqn]{article} \usepackage[sep=3pt,offset=0.5ex]{simpler-wick} \newif\ifWickRound \WickRoundfalse \pgfkeys{ /simplerwick/round/.code={\WickRoundtrue}, } \makeatletter \def\swick@end#1#2{ \swick@setfalse@#1 \...


5

yes it's vertical (then) dash |- as opposed to dashv (-|), Vdash (||-) Vvdash (|||-) dashVdash (-|-) etc. (these names are all in unicode-math and most also in amssymb


5

To get μF, use \si{\micro\farad}. \um for μm only works because it is defined as a shortcut by siunitx. For a full list of all available shortcut see table 21 in the siunitx manual.


5

With stackengine: \documentclass[]{article} \usepackage{stackengine} \newcommand\dhookrightarrow{\mathrel{% \ensurestackMath{\stackanchor[.1ex]{\hookrightarrow}{\hookrightarrow}} }} \begin{document} $a \dhookrightarrow b$ \end{document} If you need it across math styles: \documentclass[]{article} \usepackage{stackengine,scalerel} \newcommand\...


5

Here's a solution which places \implies and \impliedby into a modified version of \fbox. \documentclass{article} \usepackage{amsmath} \makeatletter \def\@rframeb@x#1{% \@tempdima\fboxrule %\advance\@tempdima\fboxsep \advance\@tempdima\dp\@tempboxa \hbox{% \lower\@tempdima\hbox{% \vbox{% \hrule\@height\fboxrule \hbox{% ...


5

Only array (that's a required package in every distribution): \documentclass{article} \usepackage{array} \newcommand{\bimplies}{\mathrel{\bimpl{c|}{\Rightarrow}}} \newcommand{\bimpliedby}{\mathrel{\bimpl{|c}{\Leftarrow}}} \newcommand{\bimpl}[2]{% \begingroup \setlength{\arraycolsep}{0pt}% \renewcommand{\arraystretch}{0}% \begin{array}{#1}\hline{#2}\...


4

Here is a way: \documentclass{article} \usepackage{tikz} \newcommand\mysymb[1][1]{% \def\myscale{#1}% \begin{tikzpicture} \draw[<->, line width={\myscale*1pt}] ({-.4*\myscale},0) -- ({.4*\myscale},0); \draw[<->, line width={1pt*\myscale}] (0,{-.4*\myscale}) -- ({0,.4*\myscale}); \draw[<->, line width={1pt*\myscale}] ({...


4

The name for the LinkedIn icon is Linkedin Ask the developer of fontawesome why. \documentclass[9pt]{developercv} \begin{document} \noindent \icon{Globe}{12}{\href{https://example.com/@name}{name}}\\ \icon{Github}{12}{\href{https://example.com/name}{name}}\\ \icon{Linkedin}{12}{\href{https://example.com/in/name-123456/}{Name Surname}} \end{document}


4

I think you're looking for \langle and \rangle. \documentclass{article} \begin{document} \( < i, j > \) \( \langle i,j \rangle \) \end{document}


4

Here are some suitable fonts: pgfornament available on CTAN: https://ctan.org/pkg/pgfornament adforn available on CTAN: https://www.ctan.org/pkg/adforn See the manuals available on CTAN for the commands. See End of paragraph with ornament for shaping.


4

Yet another solution, in two variants: \documentclass{article} \usepackage{array} \usepackage{mathtools} \DeclarePairedDelimiter{\set} \{ \} \DeclareFontFamily{U}{mathx}{\hyphenchar\font45} \DeclareFontShape{U}{mathx}{m}{n}{ <-6> mathx5 <6-7> mathx6 <7-8> mathx7 <8-9> mathx8 <9-10> mathx9 <10-12> mathx10 <12-> ...


4

Does this go in the right direction? \documentclass[fleqn]{article} \usepackage{amsmath,amsfonts} \usepackage{newtxtext,newtxmath} \begin{document} \[\tau=\left\{ G\subset\overline{\mathfrak{R}}/ \forall x\in G, \left\{\begin{array}{@{}l@{\ /\ }l@{,\ }l@{}} \exists a,b\in\mathfrak{R} & x\in [a,b\mathclose[\subset G&x\ne\pm\infty\\ \exists b\in\...


4

I added, instead, a little answer using also as the user @egreg double \prime symbol with eqparbox package. %% Compile and read me! \documentclass[a4paper,12pt]{article} \usepackage{mathtools} \usepackage{eqparbox} \begin{document} $\hat{c}^{\eqmakebox[aaa]{$\dagger\prime\prime$}}_{\omega l}$ \end{document} As in the comment of @campa, I'm adding also ...


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