# Tag Info

12

Usually, spaces at the beginning of a line are ignored by TeX. However, this is not the case when writing in a verbatim like context. The same is true for tabulators. Whitespace characters like NO-BREAK SPACE (U+00A0) behave in a different way. To use them properly, a modern engine like LuaLaTeX in conjunction with fontspec is needed. Please be aware, ...

12

First a pencil: \documentclass[tikz,border=1cm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[rotate=30] \fill[gray!50] (0,4) -- (0.4,4) -- (0.4,0) --(0.3,-0.15) -- (0.2,0) -- (0.1,-0.14) -- (0,0) -- cycle; \draw[color=white] (0.2,4) -- (0.2,0); \fill[black] (0,3.5) -- (0.2,3.47) -- (0.4,3.5) ...

11

You can copy the relevant code from mathabx.sty and mathabx.dcl to your document. \DeclareFontFamily{U}{mathb}{\hyphenchar\font45} \DeclareFontShape{U}{mathb}{m}{n}{ <5> <6> <7> <8> <9> <10> gen * mathb <10.95> mathb10 <12> <14.4> <17.28> <20.74> <24.88> mathb12 }{} ...

9

Is this a problem with the native \fax command, or a problem with \fax existing in both of the the two libraries? The solution below assumes the latter, but can be modified for the former. This pattern might help you: \usepackage{savesym} \usepackage{moderncv} \savesymbol{fax} \usepackage{marvosym} \restoresymbol{MARV}{fax} It should restore the regular ...

9

It is easy to get a large accent, eg {\Huge\'{}} positioning it over a normal size letter usually means a bit of trial and error to get something that looks right but perhaps: \documentclass{article} \newcommand\biga[1]{\leavevmode\vbox{\offinterlineskip \halign{##\cr\hss\makebox(0,0){\Huge\'{}}\hss\cr\noalign{\vskip-3pt}#1\cr}}} \begin{document} ...

8

The package fontawesome provides some symbols. You can also use TikZ or PSTricks. A very simple appraoch using TikZ is shown in the MWE too. % arara: lualatex \documentclass{article} \usepackage{fontawesome} \usepackage{tikz} \usetikzlibrary{shadings} \begin{document} \faCalendar\qquad\faCalendarEmpty \newcommand\myday{\fill[gray!80] (0,0)(.25,.25);} ...

8

The problem is the rounded corners part, which is not relative to the font size. So the solution is to set rounded corners=<x>ex, then it depends on the font size. The following example shows a solution an illustrated the problem with simple corners: \cornerI is rounded with the absolute same radius, while \cornerII is rounded with a radius ...

8

Just superimpose a minus to \sqsubset: \documentclass{article} \usepackage{amsmath,amssymb} \newcommand{\sqin}{% \mathrel{\vphantom{\sqsubset}\text{% \mathsurround=0pt \ooalign{$\sqsubset$\cr$-$\cr}% }}% } \begin{document} $a\sqin A\sqsubset B$ \end{document}

7

It's hard to believe, but the depth of the digit 0 is 0.12pt (at normal size) in the font used by newtxmath, while it's 0pt for the digit 1. This creates a bigger depth in the contents of the square root in the denominator, which is sufficient for the choice of a bigger square root symbol. The difference seems tiny, but in your case, due to the presence of ...

7

Leave the hard work to textgreek. If you need the letter to work also in math mode, add a suitable definition with \newunicodechar. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{textgreek} % use these if you also want π to work in math mode \usepackage{newunicodechar} \newunicodechar{π}{\ifmmode\pi\else\textpi\fi} \begin{document} This ...

6

Mimicing the procedure depicted at Typing Following notation in Latex, I was able to determine that \diamondtimes was part of MnSymbolC font set. Then, using the fonttable package (uncomment 2 lines in MWE), I found the symbol number to be 125. Then, I just changed the name and numbers from that example to get this one. \documentclass{article} ...

6

the wasy fonts are more likely to be installed in most installations of Tex. \documentclass{beamer} \usepackage{amsmath, amssymb, amsthm} \usepackage{wasysym} \begin{document} \frame{ \begin{align*} [\text{\lightning}] \end{align*} } \end{document} Incidentally I found that just by drawing the character:

6

The definition of \blitza in ulsy.sty is \newcommand{\blitza}{{\usefont{U}{ulsy}{m}{n}\symbol{'011}}} which clearly means it's a symbol just for text mode. In math mode \usefont does nothing at all, so what is executed is equivalent to {\symbol{'011}} which is just the same as {\char'011\relax} and the rules of TeX say that this will be the symbol in ...

6

You are looking for METAFONT, a program also written by Knuth and accompagnying TeX. This program has a close relative METAPOST that can be used for drawing PostScript or SVG figures. Start here: http://tug.org/metapost.html I like the tutorial by André Heck, it will give you a feeling of the program.

6

You can rotate the short right arrow; however, due to a quirk in the font, rotation needs to artificially increase the height of the symbol. The picture shows its bounding box; the black blob shows that the arrow stem is on the math axis, so to get symmetric placement one needs to double the height. \documentclass{article} ...

6

You have to declare the symbol as \mathord rather than \mathalpha. \documentclass{article} \usepackage{sansmath} \DeclareSymbolFont{extraup}{U}{zavm}{m}{n} \DeclareMathSymbol{\varheart}{\mathord}{extraup}{86} \begin{document} \sansmath{Is the following a filled heart? $\varheart a+b$} \end{document}

6

I've seen the notation used in Rudin's book “Real and complex analysis”. Perhaps, simply doubling \subset is too crude. Here's a possible solution, top line is \subset\subset, bottom line \ssubset defined with some backspace between the two. \documentclass{article} \newcommand{\ssubset}{\subset\joinrel\subset} \begin{document} $A\subset\subset B$ ...

5


5

The tikz-timing package. The \texttiming{} macro does the trick! Documentation in above PDF I used \texttiming{[-,timing/slope=0]HL} specifically.

5

Rotate \boxplus by 45 degrees: \documentclass{article} \usepackage{graphicx,amsmath,amssymb} \DeclareRobustCommand{\diamondtimes}{% \mathbin{\text{\rotatebox[origin=c]{45}{$\boxplus$}}}% } \begin{document} $a\diamondtimes b$ $a\times b$ \end{document} For a smaller version and an empty diamond (note that \diamond already exists, but gives a much ...

5

The [☙] option is not predefined, so it has no effect; the syntax should be like \setbeamertemplate{itemize item}[circle] where circle has been defined with \defbeamertemplate. Here's a complete example \documentclass[xcolor=dvipsnames]{beamer} \usepackage{fontspec} \setmainfont{EB Garamond} \usefonttheme{serif} \defbeamertemplate{itemize ...

4


4

The comment environment (comment package) should start in a new line without a space before. From the manual: The opening and closing commands should appear on a line of their own. No starting spaces, nothing after it. Otherwise it won't work and cause strange errors.

4

I think this does it: \documentclass[border=0.125cm]{standalone} \usepackage{tikz} \newcount\mayannumber \newcount\mayantmpa \newcount\mayantmpb \newcommand\mayan[2][]{% \begin{scope}[#1,scale=1/4]% \mayannumber=#2\relax% \mayantmpb=20\relax \pgfmathloop \mayantmpa=\mayannumber \advance\mayantmpa by-\mayantmpb ...

3

Using tikz (fingers crossed) \documentclass{minimal} \usepackage{tikz} \usepackage{mathtools} \newcommand{\myarrow}[1][-45]{% \mathrel{% \text{$\begin{tikzpicture}[baseline = -0.5ex] \node[inner sep=0pt,outer sep=0pt,rotate = #1] (a) at (0,0) {$\xrightarrow{}$}; \end{tikzpicture}$}% }% }% \begin{document} \[ A \myarrow T_{A ...

3

This is probably not the most elegant solution to your problem, but there is a package called tikzDevice for R (if you use R 3.0 or newer, you have to install it by hand). It exports R plots to TikZ Code. You could look into the created code to find what symbol that package uses. I do all my plots for LaTeX with tikzDevice, since it allows you to use TeX ...

3

Another not-very-elegant solution, but you could save just the symbol in a small file and import it where needed. It seems likely that each different symbol might need tweaking, but here's an example in knitr format. \documentclass{article} \usepackage[margin=0.1in, paperwidth=2.3in, paperheight=2.6in]{geometry} \parindent 0pt \begin{document} ...

2

Using the stackengine package: \documentclass{article} \usepackage{amsmath} \usepackage{stackengine} \newcommand{\divby}{% \setstackgap{S}{0.45ex}% \mathrel{\Shortstack{{.} {.} {.}}}} \begin{document} $15\divby 3$ \end{document}

2

If there is no prevailing convention, just go ahead and use whatever you want. After all, you only need to introduce it stringently so it's clear from your notation what you want to show. From a readability point of view, it's best to use symbols not easily confused with others. Have a look at the list of LaTeX symbols. Me personally, I'd have a look in Tab. ...

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