From: Suraj Kurapati Date: 2008-11-17T13:42:39+09:00 Subject: Re: erbook 4.0.0 (was previously named Gerbil) Hi, Saji N. Hameed wrote: > Nice software - hope to see the LaTex formatter coming out soon. Thanks. I'm planning to use Maruku's Markdown-to-LaTeX conversion ability to achieve this. This was one of the reasons I switched from RedCloth (Textile) to Maruku (Markdown). > I was wondering if the markup could be made simpler. Is the eruby > template the best for this - For example, there are so many extra > things to type in the following > > <% chapter "Introduction" do %> > <% end %> > > compared to say \chapter{Introduction} in TeX, for example Good suggestion, the TeX equivalent is indeed shorter. Unfortunately, the <% eRuby syntax %> is what it is and I don't wish to reinvent eRuby. :-( You could try turning the document inside-out: <% chapter "Introduction" do "some content here" + section "Something" do "and in here" end + "more content here" end %> This kind of usage is currently supported by erbook. I also suggest using the abbreviation and auto-complete features of your text editor to reduce most of the typing. In my case, I just type [p][r][TAB] to get <% this %> and my cursor is placed inside. And [p][r][c][TAB] gives me: <% chapter "CURSOR_1" do %> CURSOR_2 <% end %> where CURSOR_1 denotes the inital cursor position and CURSOR_2 is where the cursor goes when I press TAB from CURSOR_1. Cheers. -- Posted via http://www.ruby-forum.com/.