[rfc-i] Tools for equations in draft

Joe Hildebrand (jhildebr) jhildebr at cisco.com
Thu Nov 8 11:23:17 PST 2012


On 11/7/12 4:25 PM, "Christian Hoene" <christian.hoene at symonics.com> wrote:

>some 18 months ago I wrote a tools that finds equations in drafts and
>renders them nicely. The tool converts a txt draft to pdf as usual.
>However, it also looks for tex equations such as $x=x+5$ or $x=\sqrt{y}$.
>Those
> are not printed as ASCII but printed as equations. For example,
>https://tools.ietf.org/html/draft-hoene-geopriv-bli-00
><https://tools.ietf.org/html/draft-hoene-geopriv-bli-00> is a traditional
>draft but contains latex equation notations. In the attached pdf, made
>with my tool, you find the rendered equations on page
> 4 and 5.
> 
>Maybe this tools is of interest to you, guys.

More code is always interesting.  Is it available somewhere?

Here is the equivalent code in the idemponit tool:

https://github.com/IETF-Formatters/html-rfc/blob/master/nits/formula.js


In HTML, you create a tag like this:

<img class='formula' alt='[LaTeX]'>

And the tool uses Google Charts to render a .png and include it inline in
your document.

A worked example can be found here:
http://cursive.net/draft-hildebrand-html-rfc-2012-07-29.html#math

Note to folks who still need help with intuition about embedding images
with RFC 2397 data URLs (sic), please view-source on that section.

-- 
Joe Hildebrand





More information about the rfc-interest mailing list