Posts

Showing posts with the label Symbols

Blackboard Bold I

Image
Answer : If you're free to use LuaLaTeX and the unicode-math package and its \setmathfont macro, there are quite a few math fonts to choose from that provide a "double-struck" lowercase-i character. Hopefully, one of the following eight choices will appeal to you. :-) \documentclass{article} \usepackage{unicode-math} \setmainfont{Stix Two Text} % choose the text font... % Setting up eight [8!] math fonts \setmathfont{Latin Modern Math}[version=lm] \setmathfont{Cambria Math}[version=cambria] \setmathfont{Asana Math}[version=asana] \setmathfont{Stix Two Math}[version=stix2] \setmathfont{XITS Math}[version=xits] \setmathfont{TeX Gyre Termes Math}[version=termes] \setmathfont{TeX Gyre Pagella Math}[version=pagella] \setmathfont{TeX Gyre DejaVu Math}[version=dejavu] \newcommand\blurb{$\mathbb{123}\quad\mathbb{hij}\quad e^{\phi_i\mathbb{i}}$} \begin{document} \begin{tabular}{ll} Latin Modern & \mathversion{lm} \blurb\\ Cambria & \mathversio...

A Symbol For The Quotient Of Two Objects

Image
Answer : How about using \left , \right , and \raisebox ? \newcommand{\bigslant}[2]{{\raisebox{.2em}{$#1$}\left/\raisebox{-.2em}{$#2$}\right.}} \begin{equation} \bigslant{\mathcal{O}_{(V',0)}}{\mathcal{O}_{(V,0)}} \end{equation} which gives The only problem is that I need to re-enter mathmode inside the \raisebox es. Anyone know how to avoid that? If you want to invoke the Someone Else's Problem principle, there's also the faktor package, which ostensibly was designed to do what you want, and which implements using the AMS symbol \diagup . But IMHO the slash is a bit small. For in-line expressions, you can also consider the nicefrac package, which makes both the "denominator" and "numerator" small. As already mentioned, there are two packages to solve this problem: xfrac - typeset fractions in the form n/d generally faktor - especially to typeset factor structures Here is a comparison between the \sfrac{n}{d} and \faktor{n}{d} ...

Best Way To Encode Degree Celsius Symbol Into Web Page?

Image
Answer : Try to replace it with ° , and also to set the charset to utf-8, as Martin suggests. °C will get you something like this: If you really want to use the DEGREE CELSIUS character “℃”, then copy and paste is OK, provided that your document is UTF-8 encoded and declared as such in HTTP headers. Using the character reference ℃ would work equally well, and would work independently of character encoding, but the source would be much less readable. The problem with Blackberry is most probably a font issue. I don’t know about fonts on Blackberry, but the font repertoire might be limited. There’s nothing you can do about this in HTML, but you can use CSS, possibly with @font face . But there is seldom any reason to use the DEGREE CELSIUS. It is a compatibility character, included in Unicode due to its use in East Asian writing. The Unicode Standard explicitly says in Chapter 15 (section 15.2, page 497): “In normal use, it is better to represent...

Closer Slanted Parallel Symbol

Image
Answer : Raise and scale. \documentclass{article} \usepackage{amsmath,graphicx} \makeatletter \newcommand{\newparallel}{\mathrel{\mathpalette\new@parallel\relax}} \newcommand{\new@parallel}[2]{% \begingroup \sbox\z@{$#1T$}% get the height of an uppercase letter \resizebox{!}{\ht\z@}{\raisebox{\depth}{$\m@th#1/\mkern-5mu/$}}% \endgroup } \makeatother \begin{document} $AB\newparallel CD$ $\scriptstyle AB\newparallel CD$ \end{document} A different implementation with picture mode. One can easily vary the slope by acting on the second argument to \mathpalette . \documentclass{article} \usepackage{amsmath,pict2e} \makeatletter \newcommand{\newparallel}{\mathrel{\mathpalette\new@parallel{0.3}}} \newcommand{\new@parallel}[2]{% \begingroup \settoheight{\unitlength}{$#1T$}% get the height of an uppercase letter \sbox\z@{\new@parallel@slash{#1}{#2}}% \mkern0.5mu\copy\z@\mkern-0.5mu\copy\z@\mkern0.5mu \endgroup } \newcommand{\new@parallel@slash}[2]{% \begin{p...

Calligraphic E (not \mathcal)

Image
Answer : Try doing: \documentclass[12pt]{article} \usepackage{mathrsfs} \pagestyle{empty} \DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it} \begin{document} The sample space is $\mathpzc{E}$. \end{document} See The Comprehensive LaTeX Symbol, page 68 for a pretty complete list of math fonts available and how to get to typeset them. You can also check A comprehensive review of mathematics in (La)TeX, page 95 onwards. There's also The LaTeX Font Catalogue - Calligraphic and Handwritten Fonts. You can try rsfs: The code \documentclass[12pt]{article} \usepackage{mathrsfs} \pagestyle{empty} \begin{document} The sample space is $\mathscr E$. \end{document} produces