Tag Info

New answers tagged

0

\usepackage{mathrsfs} $\mathscr{F}$ Take a look at What are all the font styles I can use in math mode?


2

REVISED to add important note at end: Based on my answer at Big tilde in math mode, I adapted similar approaches for a wide hat and bar. After showing them in various math styles, I show composites of them, including the function of interest to you. \documentclass{article} \usepackage{scalerel}[2014/03/10] \usepackage{stackengine} ...


2

You can create your own by joining two - and > in math mode: \documentclass{article} \makeatletter \newcommand{\my@arrow}[1]{\ooalign{$#1-\mkern-5mu-$\cr\hidewidth$#1>$}} \newcommand{\myarrow}{\mathrel{\mathpalette\my@arrow\relax}} \makeatother \begin{document} $A \rightarrow B$ \par $A \longrightarrow B$ \par $A -> B$ \par $A \myarrow B_{A ...


1

Longer post This task was a big issue for me many years ago when I was typesetting and generating preview books of fonts where I needed to know all kind information about the glyphs before actual typesetting. I divided the answer into three small parts each with compilable TeX file. Part 1: xelatex and its tool There is a way in xelatex, it is ...


6

Not very beautiful, as the kerning looks different for different symbols (the double harpoon gets shorter or longer for other symbols below). But if you just need it ones, it doesn't matter. Or you define it for each symbol with different magnitude of kerning. % arara: lualatex \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} ...


4

Something like this? Code: \documentclass{article} \usepackage{amsmath} \newcommand{\doublerightharpoonup}{% \rightharpoonup\mkern-10mu\rightharpoonup% } \begin{document} \[\overset{\doublerightharpoonup}{T}\] \end{document}


4

The following example defines \Rint that superimposes an R on the integral symbol. If the integral is used in \displaystyle, then the integral size is usually quite large and \textstyle is used for the R. Otherwise \scriptscriptstyle is used or scaled down, if the total height of R exceeds 40% of the total height of the integral. Remarks: The R is put in ...


3

With the stackengine package, you have a solution which in not perfect, as it neds a manual correction for the lower bound. I define a \Rint maths operator as follows: \documentclass[ a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \usepackage[]{stackengine} ...


3

Try the following example: \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} Take the regulated function $f$, we want to compare the Riemann integral, $\int_a^b f$ to the regulated integral $\mathop{\mathrlap{\scriptsize\, R}\int_a^b} f$ by taking sequences of step functions. We will prove that $$ \mathop{\mathrlap{\: R}\int_a^b} f ...


0

All input so far seems to indicate that no, there's no default or standard code for subgroup, and people use some version of the inequality symbols: <, \le, etc.


14

The command \[\mu\] is a short version of \begin{equation*} \mu \end{equation*} which is normally used for longer formulas. If you want to typeset (short) formulas like μ, you should use the inline-math mode, i.e. This is an example text containing the greek letter $\mu$.


4

We answer in the language of codes ;) \documentclass{article} \usepackage{amssymb} \begin{document} $\hbar$ $\hslash$ \end{document} \hbar needs no packages while \hslash needs amssymb. Generally we prefer one question per thread. The badboxes are detailed in your .log file with line numbers. You may also add --file-line-error option to pdflatex to ...


6

If you find a Hebrew font, you can use it; in this example I use the fonts provided by the cjhebrew package. \documentclass{article} \usepackage{amsmath} % from cjhebrew.sty (with scaling added) \DeclareFontFamily{U}{cjheb}{} \DeclareFontShape{U}{cjheb}{m}{n}{% <-11> s*[1.2] cjhblsm <11-> s*[1.2] cjhbltx }{} ...


3

run it with xelatex. unicode-math allows to use single characters from another font: \documentclass{article} \usepackage{amssymb} \usepackage{unicode-math} \usepackage{libertine} \setmathfont[range={\beth,\gimel,\daleth,\aleph}]{Linux Libertine O} \begin{document} \Huge בגדא $ \aleph \beth \gimel \daleth $ \end{document}


4

You could scale it (1.5x horizontal, 1.1x vertical). EDITED to work in all math styles (thanks, tohecz), and provided a slight vertical shift and kern for better matching. Lastly, enclosed in a group, so that it works directly in a subscript. \documentclass{article} \usepackage{scalerel} \let\oldaleph\aleph \def\aleph{{\ThisStyle{\scalebox{1.5}[1.1]{% ...


14

There are other font that can be used: MnSymbol: FdSymbol: TX fonts: PX fonts: cjhebrew: OpenType fonts (LuaTeX/XeTeX): Latin Modern Math: Asana Math: XITS Math: TeX Gyre Pagella Math: TeX Gyre Termes Math: Linux Libertine: GNU FreeFont/FreeSerif: GNU FreeFont/FreeSans: MnSymbol \documentclass{article} % ...


3

Tailor made for a \stackinset: \documentclass{article} \usepackage{stackengine} \def\mycirc{\kern3.5pt\raisebox{3pt}{\stackinset{l}{}{c}{}{\circle{5}}{\circle*{3}}}} \begin{document} E\mycirc B \end{document}


7

Ultra simple: \documentclass{article} \newcommand*\mycircle{\textcircled{\textbullet}} \begin{document} This symbol is (for unknown reasons) represented by \mycircle. The symbol \mycircle{} is (for unknown reasons) not represented by anything. \end{document}


5

This example constructs the symbol with the help of other symbols. They can be used in both math and text mode. \documentclass{article} \usepackage{latexsym} \makeatletter \newcommand*{\obullet}{} \protected\def\obullet{% \ensuremath{% \mathbin{% \mathpalette\@bullet@o\odot }% }% } \newcommand*{\bulletcirc}{} \protected\def\bulletcirc{% ...


5

One option using TikZ (adjust the settings to suit your needs): \documentclass{article} \usepackage{tikz} \newcommand\mycircle{% \begin{tikzpicture}[baseline=-1ex] \draw (0,0) circle [radius=5pt]; \fill (0,0) circle [radius=3pt]; \end{tikzpicture}% } \begin{document} A\mycircle B \end{document}


4

The following summarizes many variants of the estimate symbol without changing all math symbols. \newcommand*{\estimatesA}{\mathrel{\hat=}} Source: Bernard's answer, Johannes_B's comment \newcommand*{\estimatesB}{\mathrel{\widehat=}} Source: DanteFAQ, Bernard's answer \newcommand*{\estimatesC}{\stackrel{\scriptscriptstyle\wedge}{=}} Source: DanteFAQ ...


2

Just with \mathrel{\hat{=}}. Or with `\widehatif you like. More precisely: \documentclass[12pt, a4paper]{article} \usepackage{amsmath}% \newcommand*\estimates{\mathrel{\hat{=}}} \newcommand*\wideestimates{\mathrel{\widehat{=}}} \begin{document} \begin{align*} & A \estimates B \\ & A \wideestimates B \\ & A = B \end{align*} ...


0

You can use \hateq from the mnsymbol package: \documentclass{article} \usepackage{mnsymbol} \begin{document} $$a \hateq b$$ \end{document} An alternative is to use \corresponds from mathabx, but it does not quite look right.


4

The solution, I think, is to update your TeX installation. However, as your other question shows, updating may not be without pitfalls of its own. I think it might be worth asking yourself just how much you need teubner. If it is only for the odd character (e.g. \koppa), I would think about whether there might be other ways to access those characters. The ...


39

There are some issues to consider: Line width The standard line width in TeX is 0.4pt, it is hardcoded in TeX as 26214sp. \overline uses a different line width. It is taken from font parameter 8 of math font family 3 in TeX. The standard math fonts (Computer Modern) are using 0.39998pt in all font sizes. But it is scalable in other fonts, e.g. package ...


10

With the horizontal bar slightly protruding: \documentclass[a4paper,12pt]{article} \usepackage{array} \newcommand\house[1]{% \begingroup\setlength\arraycolsep{0pt} \begin{array}[t]{@{\mkern1mu}c@{}|c|@{}c@{\mkern1mu}} \firsthline &\;#1\;{}& \end{array} \endgroup } \begin{document} $\house{\alpha + \beta} \leq \house{\alpha} + ...


4

Never seen it either. However, here is a way of doing things: put everything into an array, with hhline to have a clean connection of vertical and horizontal lines. I define a normal and a bold version I don'tknow how to declare it, so as to have only one command for both versions): \documentclass[a4paper,12pt]{article} \usepackage{mathtools} ...


4

An implementation with tikz, shamefully adapted from this answer \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \newcommand{\house}[1]{% \tikz[baseline]{\node[anchor=base,inner sep=0.3ex](mynode){\ensuremath{#1}}; \draw(mynode.south west)--(mynode.north west)--(mynode.north east)--(mynode.south east); \path[use as bounding ...


0

\newcommand{\house}[1]{ \setbox0=\hbox{$#1$} \rule{.4pt}{\dimexpr\ht0 + 1.6pt} \overline{\mkern+1mu #1 \mkern+1mu} \rule{.4pt}{\dimexpr\ht0 + 1.6pt} }


16

Here is a plain TeX solution. The downside is, that \everymath is executed inside the "house". If you want every house to have the same height and depth, add a strut or a phantom inside it. \nopagenumbers% for cropping \def\house#1{{% \setbox0=\hbox{$#1$} \vrule height \dimexpr\ht0+1.4pt width .4pt depth \dp0\relax \vrule height ...


9

I copied the definition of \hbar, but inserted \delta instead of h and adjusted kerning. \nopagenumbers% for cropping \def\deltabar{{\mathchar '26\mkern -10mu\delta}} $\delta$ $\hbar$ $\deltabar$ \bye


8

Probably you are meaning \dh (U+00F0 LATIN SMALL LETTER ETH)? This is available in encoding T1: \documentclass{beamer} \usepackage[T1]{fontenc} \begin{document} \begin{frame} \dh \end{frame} \end{document}


4

CW from comments A good source for this correspondence is the file puenc.def in the oberdiek bundle; it consists of about 2000 lines like \DeclareTextCommand{\`}{PU}[1]{#1\83\000}% U+0300 \DeclareTextCommand{\'}{PU}[1]{#1\83\001}% U+0301 \DeclareTextCommand{\^}{PU}[1]{#1\83\002}% U+0302 \DeclareTextCommand{\~}{PU}[1]{#1\83\003}% U+0303 ...


3

Harish Kumar's solution fails with babel 3.9j which is what TeX Live currently seems to have. MiKTeX is apparently using an older version (3.8m) which does not produce errors. [At least, this is my current working hypothesis - that the difference in versions of babel explains why my addition to the preamble is necessary with current TeX Live but not MiKTeX.] ...


2

This works. %% FIRST RENAME THIS FILE <yoursurname>.tex. %% BEFORE COMPLETING THIS TEMPLATE, SEE THE "READ ME" SECTION %% BELOW FOR INSTRUCTIONS. %% TO PROCESS THIS FILE YOU WILL NEED TO DOWNLOAD asl.cls from %% http://aslonline.org/abstractresources.html. \documentclass[bsl,meeting]{asl} \usepackage[greek,english]{babel} \AbstractsOn ...


0

In order to draw your symbol, follow the code below. \documentclass[12pt,letterpaper]{article} \usepackage{marvosym} \begin{document} \Cross \end{document} This symbol only works in text mode. An important resource that you might want to check out is Detexify. It allows you to draw different symbols, and the program compiles the list of symbols ...


5

I suggest you load the mathtools package and define a new macro, say \norm, as follows: \DeclarePairedDelimiter{\norm}{\lVert}{\rVert} While doing so incurs (slight) setup cost, it has several important advantages: Your code will become more readable (and easier to debug...) because you'll be writing things like \norm{(a,b,c)}^2, which focuses attention ...


1

for example: Q(\theta):= \Big\|(a,b,c) \Big\|^2 There is \big, \bigg, \Big, and \Bigg


1

Since @CountZero suggested it :-), here is a TikZ version showing a few of the options: Code: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \newcommand{\SupermumDirected}[1][]{% \mathbin{\tikz [x=1.4ex,y=1.6ex,line width=.15ex,baseline] \draw [->,#1] (0,1) -- (0.5,0) -- (1,1.25); }% } \begin{document} $A ...


6

The \hslash symbol is a unique glyph. Here's an emulation of it obtained by scaling, rotating and raising a minus sign: \documentclass{article} \usepackage{amssymb,graphicx} \newcommand{\hslashslash}{% \raisebox{.9ex}{% \scalebox{.7}{% \rotatebox[origin=c]{18}{$-$}% }% }% } \newcommand{\dslash}{% {% \vphantom{d}% ...


0

If I understand your question well, you want to draw a box filled with green. However, I do not know the definition of \stopex, and I cannot guess the shape or size of your box. If you want to draw a small filled square, the solution would be \color{olive}{\blacksquare}. You could replace this last command by \blacklozenge for a diamond shape.


4

You should change the font encoding to T1 for this to work. Simply add \usepackage[T1]{fontenc} to your preamble


2

Package textcomp adds symbols with TS1 encoding and provides symbol \texttrademark: \documentclass{article} \usepackage{textcomp} \begin{document} \textsuperscript{TM} or \texttrademark \end{document}


8

The math alphabet \mathcal is used for these symbols: \documentclass{article} \begin{document} \[ \mathcal{E} \mathcal{P} \mathcal{H} \] \end{document}


0

The underscore _ is already math active by default: one does not need to explicitely set its mathcode to "8000. Thus one could do: \documentclass{article} \usepackage[T1]{fontenc} \AtBeginDocument{% \begingroup\lccode`~=`_% \lowercase{\endgroup\let~}_% \catcode`_=12 } \begin{document} a_b $a_b$ \end{document} It is perhaps better to do as in ...


1

\documentclass{article} \usepackage{stackengine} \stackMath \usepackage{scalerel} \def\subcap{\mathrel{\ThisStyle{\kern.7pt\stackinset{c}{-.3\LMpt}{b}{.8\LMpt}% {\scalebox{1.5}[1]{$\SavedStyle\subset$}}% {\scalebox{1}[1.5]{$\SavedStyle\cap$}}}\kern .3pt}} \begin{document} $ \displaystyle A\subcap B~ \textstyle A\subcap B~ \scriptstyle ...


3

Is this what you're looking for? \documentclass{article} \usepackage{trimclip,graphicx} \newcommand{\longsubset}[1]{% #1\subset\joinrel \mathrel{\clipbox{{.5\width} 0pt 0pt 0pt}{$#1\subset$}} } \newcommand\subsetintersection{% \mathrel{\mathpalette\ssint\relax}% or \mathbin? } \newcommand{\ssint}[2]{{% \ooalign{% $\longsubset{#1}$\cr ...


9

Spaces in math mode are ignored and replaced with the appropriate surrounding space required for each component (like a relational or binary operator, or atom). So, you should be fine with 4 \pi G \rho \delta although technically 4\pi G\rho\delta would suffice.


10

The difference can be seen at the end of line. A space is breakable and a ~ is an un-breakable space. \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} \title{Your Paper} \author{You} \date{\today} \begin{document} \maketitle ...



Top 50 recent answers are included