Request for example of putting LaTeX in Haskell code comments for Haddock processing.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Request for example of putting LaTeX in Haskell code comments for Haddock processing.

David Banas-2
Hi all,

Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.

Thanks!
-db

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Request for example of putting LaTeX in Haskell code comments for Haddock processing.

Frederic Cogny
example with both below [and its rendering further down]

syntax: 
- \( \) for inline and 
- \[ \] for block

image.png


image.png


On Wed, Sep 12, 2018 at 10:02 PM David Banas <[hidden email]> wrote:
Hi all,

Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.

Thanks!
-db

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
--
Frederic Cogny
+33 7 83 12 61 69

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Request for example of putting LaTeX in Haskell code comments for Haddock processing.

David Feuer
In reply to this post by David Banas-2
Check out Data.Sequence, which uses it throughout.

On Wed, Sep 12, 2018, 4:02 PM David Banas <[hidden email]> wrote:
Hi all,

Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.

Thanks!
-db

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Request for example of putting LaTeX in Haskell code comments for Haddock processing.

David Banas-2
In reply to this post by Frederic Cogny
Thanks!

I’m using the same syntax you are, but not seeing rendered equations in the resultant HTML, when viewed in Safari.
(I’m about to try some other browsers.)
I don’t need to give haddock any special option, do I?
Is this a known issue w/ Safari?
Is there a plug-in I need to install?

Thanks,
-db


On Sep 13, 2018, at 7:23 AM, Frederic Cogny <[hidden email]> wrote:

example with both below [and its rendering further down]

syntax: 
- \( \) for inline and 
- \[ \] for block

<image.png>


<image.png>


On Wed, Sep 12, 2018 at 10:02 PM David Banas <[hidden email]> wrote:
Hi all,

Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.

Thanks!
-db

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
--
Frederic Cogny
+33 7 83 12 61 69


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Request for example of putting LaTeX in Haskell code comments for Haddock processing.

butrfeld
Hi David,

I can see the ones in Data.Sequence


using Safari 11.1.2 with macOS Sierra 10.12.6. The only extension installed is a divx html 5 video player.


Regards, Andrew


On 13 Sep 2018, at 17:04, David Banas <[hidden email]> wrote:

Thanks!

I’m using the same syntax you are, but not seeing rendered equations in the resultant HTML, when viewed in Safari.
(I’m about to try some other browsers.)
I don’t need to give haddock any special option, do I?
Is this a known issue w/ Safari?
Is there a plug-in I need to install?

Thanks,
-db


On Sep 13, 2018, at 7:23 AM, Frederic Cogny <[hidden email]> wrote:

example with both below [and its rendering further down]

syntax: 
- \( \) for inline and 
- \[ \] for block

<image.png>


<image.png>


On Wed, Sep 12, 2018 at 10:02 PM David Banas <[hidden email]> wrote:
Hi all,

Can anyone provide a know working example (GHC 8.4.3) of embedding LaTeX in Haskell source code comments intended for Haddock processing?
Both in-line and block, if you’ve got them, would be great.

Thanks!
-db

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
--
Frederic Cogny
+33 7 83 12 61 69

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

--------------------------------------------------------------------
Andrew Butterfield     Tel: +353-1-896-2517     Fax: +353-1-677-2204
Lero@TCD, Head of Foundations & Methods Research Group
School of Computer Science and Statistics,
Room G.39, O'Reilly Institute, Trinity College, University of Dublin
                          http://www.scss.tcd.ie/Andrew.Butterfield/
--------------------------------------------------------------------


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Request for example of putting LaTeX in Haskell code comments for Haddock processing.

Neil Mayhew
You do need to have JavaScript enabled, because the math rendering is being done with MathJax.

What do you see at https://www.mathjax.org/#samples ?

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.