How to refer to an equation in a different page with Mathjax -


i have several html pages lot of equations rendered mathjax. refer several equations not in same page.

the problem "\eqref" working if equation in same page.

one solution use "\tag{}" equations , use simple html links.

for example,

\label{myequation} \tag{4.1}   

and link

"<a href="http://www.mysite.com/mypage#myequation"> 4.1 </a>" 

the problem solution need have personal tag equations.

does has solution referring equations in different pages producing tags automatically ?

see documentation automatic equation numbering. allows have equations numbered automatically rather requiring \tag. note numbered or tagged equation automatically gets id can used in link, there no requirement use \label (though helps if adding , removing equations during editing). if equation numbered 5, id mjx-eqn-5. there functions can override in order change format of equation numbers. see equationnumbers section of tex configuration parameters documentation.

edit: understand request, can tell ask require mathjax know label-to-tag mapping other pages in site (not page being viewed). mathjax doesn't have data available it. way create data files other pages includes data mathjax load , have available. while technically possible, bit cumbersome that, since javascript (normally) can't write files you.

on other hand, place label-to-tag mapping needed text acts link (that is, if eq:sum refers equation 4.1, want "4.1" text links equation. note link myotherpage#eq:sum, thing needs number link text itself. if willing use "[sum]" link text eq:sum (e.g., "in equation [sum] see..."), not need label-to-tag mapping, , \eqref modified handle that. if want equation number link, need lot more infrastructure make happen.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -