using Pointinghand of marvosym

110 views
Skip to first unread message

projetmbc

unread,
Jul 23, 2011, 8:35:31 AM7/23/11
to MathJax Users
Hello,
is it possible to do something like in the following LaTeX ?

\Pointinghandneeds the package marvosym.

I use this to indicate solutions of questions.

Best reagrds.
Christophe.


==== LaTeX code ====

\documentclass[a4paper,10pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\usepackage{amsmath}

\usepackage[x11names, svgnames]{xcolor}
\usepackage{marvosym}

\newcommand{\answer}[1]{{\textcolor{blue}{\Pointinghand\,#1}}} %
STYLE


\begin{document}
Le tableau est cadre gauche, normal!

Voici un résultat encadre en bleu : \answer{$\cos{x}^2+\sin{x}^2=1$}

Un autre \answer{$\cos{x}^2+\sin{x}^2=1$}

Avec du texte \answer{La suite est croissante.}
\end{document}

Davide P. Cervone

unread,
Jul 24, 2011, 8:57:34 AM7/24/11
to mathja...@googlegroups.com
MathJax does not include the marvosym package, but you can use the
\unicode extension to request the pointing hand symbol via

\unicode{x261E}

Note, however, that this relies on that character being available in
some font on the user's system, so you don't know exactly how this
will look.

Note also that MathJax only process macros in math mode, not in text
mode, so using

> Un autre \answer{$\cos{x}^2+\sin{x}^2=1$}

will not work as you expect it to in MathJax. You would need to use
something like

$
\newcommand{\Pointinghand}{\unicode{x261E}}
\newcommand{\answer}[1]{{\color{blue}{\Pointinghand\,#1}}
$

Un autre $\answer{\cos{x}^2+\sin{x}^2=1}$

It is possible to define the macros as part of your MathJax
configuration (see http://www.mathjax.org/docs/1.1/options/TeX.html
for details).

Hope that helps.

Davide

projetmbc

unread,
Jul 25, 2011, 6:09:49 AM7/25/11
to MathJax Users
Thanks for the unicode technic.

Best regards.
Christophe.
Reply all
Reply to author
Forward
0 new messages