News for hackers. Stuff that matters.
Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by scott_s on Monday November 04, 2013 @10:56AM (#6669256)
XML format is a non-starter for me. It adds too much cruft to the text; it requires putting everything inside of open and close tags, including paragraphs.
Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by x3ro on Monday November 04, 2013 @11:11AM (#6669335)
Thats what I thought too. However, there's a plethora of tools that can generate (and parse!) XML for you, e.g. HAML or Markdown. I write all my TeX docs in Markdown and then convert it to TeX, but stuff like figure placement has to be done in weird comments containing TeX, which'd be easier with RhinoType.

HAML for content: http://chriseppstein.github.io/blog/2010/02/08/haml-sucks-fo... (its not so bad :P)

Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by javert on Monday November 04, 2013 @02:22PM (#6670561)
> I write all my TeX docs in Markdown and then convert it to TeX

Is there some program that converts Markdown into TeX? Or are you saying that you do this manually?

Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by gnud on Monday November 04, 2013 @03:26PM (#6670943)
Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by ics on Monday November 04, 2013 @03:21PM (#6670910)
Pandoc handles this pretty well in all the scenarios I've used it in.
Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by pille on Monday November 04, 2013 @03:25PM (#6670935)
Pandoc does this well. It's what I use.
Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by sitharus on Monday November 04, 2013 @01:50PM (#6670357)
Plus it's already been done to death in XML with XSL:FO, which does the job quite nicely. I don't think it'd be too tricky to rig up an XSL:T for the XML format here to produce FO and run that through Apache FOP.

LaTeX is much nicer to hand edit, and if you're not hand editing you may as well use Word or something.

Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by prawks on Monday November 04, 2013 @11:10AM (#6669328)
As much as I agree to your dislike of XML as very unwieldy, LaTeX does have \begin and \end directives for environments.

Definitely agree that at a per-paragraph level that's way too much markup.

Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by scott_s on Monday November 04, 2013 @11:29AM (#6669452)
That's the thing, though: environments are not the norm.

I'm writing a document. I want the default text entry to be that document. There's already a lot of noise in my Latex sources; I want less, not more. (And I recognize that we actually agree on this.)

Re:Show HN: RinohType – A modern LaTeX in 6500 lines of Python by aralib on Monday November 04, 2013 @05:21PM (#6671603)
It supports a reStructuredText format as well, which is explained in the last paragraph of the "Example Documents and Input Formats" section <http://www.mos6581.org/introducing-rinohtype#example-documen....