comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Equations and URL links in idldoc
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Equations and URL links in idldoc [message #82152] Thu, 22 November 2012 03:54 Go to next message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Hi,

Just starting to use idldoc. Very useful! I really like that I can use TeX equations in the documentation when I use the rst format.

Two questions, though:

Is it (or will it be) possible to get numbered displayed equations? $$...$$ doesn't make equation numbers. Neither does \begin{equation}...\end{equation}. At least not when I try them. I realize this is more work to implement because then you can't treat each equation separately anymore. So almost as good would be to implement \hfill (doesn't seem to be at the moment), because then I could do something like $$\hfill a=b+c \hfill (1)$$ and keep track of my own numbering. Or if I could specify that I want left flushed equations, so I could do something like $$(1)\ \ \ \ a=b+c$$

Is there a way to specify a URL so idldoc makes a link? I tried <A href="http://foo.bar">Link text</A> but that was displayed verbatim.
Re: Equations and URL links in idldoc [message #82296 is a reply to message #82152] Thu, 22 November 2012 07:46 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den torsdagen den 22:e november 2012 kl. 16:25:20 UTC+1 skrev Mike Galloy:
> It appears that numbered equations are available in MathJax 2.0:
>
> http://docs.mathjax.org/en/latest/tex.html
>
> I have a ticket for updating to MathJax 2.0 for the next release:
>
> https://github.com/mgalloy/idldoc/issues/68
>
> That said, I'm not sure how the numbering would be integrated into
> IDLdoc since it is a option in the MathJax configuration file. If you
> have thoughts, please add comments to the GitHub issue.

My thoughts at the moment are only that this would be useful. And maybe it could be turned on with an optional argument to the idldoc command.

Cheers and thanks for making idldoc!

/Mats
Re: Equations and URL links in idldoc [message #82298 is a reply to message #82152] Thu, 22 November 2012 07:25 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 11/22/12 4:54 AM, Mats L�fdahl wrote:
> Hi,
>
> Just starting to use idldoc. Very useful! I really like that I can use TeX equations in the documentation when I use the rst format.
>
> Two questions, though:
>
> Is it (or will it be) possible to get numbered displayed equations? $$...$$ doesn't make equation numbers. Neither does \begin{equation}...\end{equation}. At least not when I try them. I realize this is more work to implement because then you can't treat each equation separately anymore. So almost as good would be to implement \hfill (doesn't seem to be at the moment), because then I could do something like $$\hfill a=b+c \hfill (1)$$ and keep track of my own numbering. Or if I could specify that I want left flushed equations, so I could do something like $$(1)\ \ \ \ a=b+c$$
>
> Is there a way to specify a URL so idldoc makes a link? I tried <A href="http://foo.bar">Link text</A> but that was displayed verbatim.
>

It appears that numbered equations are available in MathJax 2.0:

http://docs.mathjax.org/en/latest/tex.html

I have a ticket for updating to MathJax 2.0 for the next release:

https://github.com/mgalloy/idldoc/issues/68

That said, I'm not sure how the numbering would be integrated into
IDLdoc since it is a option in the MathJax configuration file. If you
have thoughts, please add comments to the GitHub issue.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Equations and URL links in idldoc
Next Topic: cgplot and eps

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:14:16 PDT 2025

Total time taken to generate the page: 0.00438 seconds