mp4096 / indentex

An indentation-based superset of LaTeX
MIT License
9 stars 2 forks source link

Transpilation of commands without arguments and children #5

Closed syxolk closed 7 years ago

syxolk commented 7 years ago

I'm doing a beamer presentation and I want to write \tableofcontents and \maketitle in indentex. Is there any way to do this?

I tried # tableofcontents which is ignored by the transpiler and I tried # tableofcontents: that is transpiled to

\begin{tableofcontents}
\end{tableofcontents}

Sure, I could just use \tableofcontents but is there any better way?

mp4096 commented 7 years ago

Uhm, actually this is the way: Just write \tableofcontents.

You see, this was the philosophy behind indentex: Being a strict superset of LaTeX, it takes some burden off you, but if you want to, you can drop down to plain LaTeX anytime.

syxolk commented 7 years ago

Ok, that's fine for me. I just wanted to know if there is any hidden syntax.

mp4096 commented 7 years ago

No, no hidden syntax...

Actually, there are some cases where indentex is plainly unusable, e.g. with \includegraphics and all of its curly braces arguments. Just drop down to LaTeX.

mp4096 commented 7 years ago

Edit: It is usable even in this case, just very weird.

syxolk commented 7 years ago

I'm currently fine with the given answers.