Dear Hyperlatex users and developers,

I have created a file with the most common Greek letters and other mathematical symbols supported in html.
It would be great to have these added to the standard distribution as I think most LaTeX users tend to write
much math.

Merry Yuletide and a Happy New Year to you all!

Best regards,
Harald

Harald H. Soleng, Dr. Philos.
Chief Research Scientist
Norwegian Computing Center

Phone (direct):  +47 2285 2671
Phone (central): +47 2285 2500
Fax (central):   +47 2269 7660
http://www.nr.no/~soleng/


Christopher League wrote:
Hi all,

I started playing with HyperLaTeX a few days ago, and only checked out
the mailing list just now.  I hope to use it to create course
materials that are as beautifully typeset on paper as they are
well-designed and navigable online.

One of the first things I hacked in was generating proper left and
right quotes from TeX's  `` and '' as  well as em and en dashes from
--- and --.  (Only afterwards did I see Harald Soleng's post for this
feature request.)

Unfortunately, I did this by hacking it into hyperlatex.el, before I
discovered that \HlxEval could probably do the trick within a .hlx
extension package.  At any rate, I'll post the diff to hyperlatex.el
here, if someone wants to try it.  At some point later, I will try to
re-implement it as a .hlx, if you think that's more appropriate.

Best wishes,
Chris

  

--- orig/hyperlatex.el 2004-11-12 11:54:28.000000000 -0500 +++ hyperlatex.el 2004-12-22 12:12:06.000000000 -0500 @@ -283,7 +283,7 @@ ; (concat "\\\\%{}]\\|\n[ ]*\r?\n\\|---?\\|``\\|''\\|\\?`\\|!`\\|" ; hyperlatex-meta-|)) (defvar hyperlatex-special-chars-basic-regexp - (concat "\\\\%{}]\\|---?\\|``\\|''\\|\\?`\\|!`\\|" + (concat "\\\\%{}]\\|---?\\|``?\\|''?\\|\\?`\\|!`\\|" hyperlatex-meta-|)) (defvar hyperlatex-purify-regexp @@ -739,7 +739,7 @@ ;;; "Active" characters ;;; -(put '- 'hyperlatex-active 'hyperlatex-format-ignore) +(put '- 'hyperlatex-active 'hyperlatex-active-dash) (put '\` 'hyperlatex-active 'hyperlatex-active-backquote) (put '\' 'hyperlatex-active 'hyperlatex-active-quote) (put '% 'hyperlatex-active 'hyperlatex-active-percent) @@ -758,19 +758,36 @@ (defun hyperlatex-active-tilde () (hyperlatex-gensym "nbsp")) +(defun hyperlatex-active-dash () + (let ((prechar (char-before (1- (point))))) + (cond ((= prechar ?-) + (delete-char -2) + (hyperlatex-gensym "mdash")) + (t + (delete-char -1) + (hyperlatex-gensym "ndash"))))) + (defun hyperlatex-active-quote () - (delete-char -1) - (insert "\"")) + (let ((prechar (preceding-char))) + (cond ((= prechar ?') + (delete-char -1) + (hyperlatex-gensym "#8221")) + (t + (hyperlatex-gensym "#8217"))))) (defun hyperlatex-active-backquote () (let ((prechar (preceding-char))) - (delete-char -1) (cond ((= prechar ?`) - (insert "\"")) + (delete-char -1) + (hyperlatex-gensym "#8220")) ((= prechar ??) + (delete-char -1) (hyperlatex-gensym "#191")) ((= prechar ?!) - (hyperlatex-gensym "#161"))))) + (delete-char -1) + (hyperlatex-gensym "#161")) + (t + (hyperlatex-gensym "#8216"))))) ;;; ;;; ----------------------------------------------------------------------
\newcommand{\not}{\xmlent{##172}}
\newcommand{\pm}{\xmlent{##177}}

\newcommand{\alpha}{\xmlent{##945}}
\newcommand{\beta}{\xmlent{##946}}
\newcommand{\gamma}{\xmlent{##947}}
\newcommand{\delta}{\xmlent{##948}}
\newcommand{\epsilon}{\xmlent{##949}}
\newcommand{\varepsilon}{\xmlent{##949}}
\newcommand{\zeta}{\xmlent{##950}}
\newcommand{\eta}{\xmlent{##951}}
\newcommand{\theta}{\xmlent{##977}}
\newcommand{\vartheta}{\xmlent{##952}}
\newcommand{\iota}{\xmlent{##953}}
\newcommand{\kappa}{\xmlent{##954}}
\newcommand{\lambda}{\xmlent{##955}}
\newcommand{\mu}{\xmlent{##956}}
\newcommand{\nu}{\xmlent{##957}}
\newcommand{\xi}{\xmlent{##958}}
\newcommand{\pi}{\xmlent{##960}}
\newcommand{\varpi}{\xmlent{##982}}

\newcommand{\rho}{\xmlent{##961}}
\newcommand{\varrho}{\xmlent{##961}}
\newcommand{\sigma}{\xmlent{##963}}
\newcommand{\varsigma}{\xmlent{##963}}
\newcommand{\tau}{\xmlent{##964}}
\newcommand{\upsilon}{\xmlent{##965}}
\newcommand{\phi}{\xmlent{##966}}
\newcommand{\varphi}{\xmlent{##966}}
\newcommand{\chi}{\xmlent{##967}}
\newcommand{\psi}{\xmlent{##968}}
\newcommand{\omega}{\xmlent{##969}}


\newcommand{\Gamma}{\xmlent{##915}}
\newcommand{\Delta}{\xmlent{##916}}
\newcommand{\Theta}{\xmlent{##920}}
\newcommand{\Gamma}{\xmlent{##915}}
\newcommand{\Lambda}{\xmlent{##923}}
\newcommand{\Xi}{\xmlent{##926}}
\newcommand{\Pi}{\xmlent{##928}}
\newcommand{\Sigma}{\xmlent{##931}}
\newcommand{\Upsilon}{\xmlent{##933}}
\newcommand{\Phi}{\xmlent{##934}}
\newcommand{\Omega}{}\xmlent{##937}

\newcommand{\Re}{\xmlent{##8476}}
\newcommand{\Im}{\xmlent{##8465}}
\newcommand{\aleph}{\xmlent{##8501}}
\newcommand{\partial}{\xmlent{##8706}}
\newcommand{\forall}{\xmlent{##8704}}
\newcommand{\partial}{\xmlent{##8706}}
\newcommand{\exists}{\xmlent{##8707}}
\newcommand{\emptyset}{\xmlent{##8709}}

\newcommand{\nabla}{\xmlent{##8711}}
\newcommand{\in}{\xmlent{##8712}}
\newcommand{\ni}{\xmlent{##8715}}

\newcommand{\prod}{\xmlent{##8719}}
\newcommand{\sum}{\xmlent{##8721}}
\newcommand{\sqrt}{\xmlent{##8730}}
%\newcommand{\htmlsqrt}[1]{\xmlent{##8730} (#1)}

\newcommand{\propto}{\xmlent{##8733}}
\newcommand{\infin}{\xmlent{##8734}}
\newcommand{\angle}{\xmlent{##8736}}
\newcommand{\wedge}{\xmlent{##8743}}
\newcommand{\vee}{\xmlent{##8744}}
\newcommand{\cup}{\xmlent{##8745}}
\newcommand{\cap}{\xmlent{##8746}}
\newcommand{\int}{\xmlent{##8747}}
\newcommand{\sim}{\xmlent{##8764}}
\newcommand{\approx}{\xmlent{##8776}}
\newcommand{\neq}{\xmlent{##8800}}
\newcommand{\equiv}{\xmlent{##8801}}
\newcommand{\leq}{\xmlent{##8804}}
\newcommand{\geq}{\xmlent{##8805}}


\newcommand{\cdot}{\xmlent{##8901}}

Reply via email to