Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have used the following code for a while to typeset the acturial symbol for a term certain, which is the half-box symbol around the n in this image:

Link to Wikipedia example image

Link to page

\def \termcertain #1% {% {\setbox 0 = \hbox {$\scriptstyle #1$}% \dimen 0 = \ht 0 
\advance \dimen 0 by 1,0 pt \ht 0 = \dimen 0 \dimen 0 = \dp 0 \advance \dimen 0 by 1,50 pt 
\dp 0 = \dimen 0 \vbox {\hrule \hbox {\box 0 \vrule }}% }% }

Usage:

a_\termcertain{n}

I got to this code by, frankly, taking something that half worked, combining it with something else that half worked, and poking it with a stick until it met my needs.

I'd now like to use this code on a forum that uses MathJax. As is, it doesn't work, and I'm not sure why, but I presume it is using features that are not available in the Mathjax environment.

Two questions:

  1. How do I fix this to work with MathJax?
  2. How do I configure the Mathjax installation to make \termcertain available to users?
share|improve this question
    
Note that mathjax does not use TeX so questions are off topic for here. The mathml is <menclose notation="actuarial"><mi>n</mi></menclose> MathJax exposes this with a custom macro: docs.mathjax.org/en/latest/tex.html#enclose –  David Carlisle Apr 19 '13 at 8:32
    
@David Sorry - I think I'm missing somethign here. Yes, the underlying engine is not TeX but the input language (by and large) is, which is what my question concerns. Where would be a better place? <menclose> is an ideal solution but the forum I'm using doesn't have support for MathML (corporations, beauracracy, etc, etc). –  Calum Apr 19 '13 at 9:33
    
the mathjax help group in google groups or within stackexchange so tag mathjax If you click on the mathjax tag under your question you get links to both of those) The page I linked to in my question shows the mathjax specific tex-like syntax for mathml features not in the normal tex packages. so it will be something like \enclose[actuarial]{n} As you see the input language and the engine are interrelated, that syntax doesn't (by default) work in standard latex. –  David Carlisle Apr 19 '13 at 10:18
    
While mathjax uses LaTeX syntax, it uses Javascript and HTML's DOM model rather than TeX technology, making it mostly off topic for this site. You might try insteead searching among the questions tagged with mathjax on StackOverflow, or in the official mathjax-users Google group. –  Matthew Leingang Apr 19 '13 at 12:27
add comment

closed as off topic by David Carlisle, Claudio Fiandrino, mafp, Andrew Swann, lockstep Apr 19 '13 at 9:02

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.