4 ms·
I do believe they need a new website. That or this post has generated so much interest the world is hitting their server hard. All seriousness aside, I am a L
by mcswell 6y ago
I do believe they need a new website. That or this post has generated so much interest the world is hitting their server hard.
All seriousness aside, I am a LaTeX user, so I get it. But to me one drawback of LaTeX is that it isn't hierarchically structured in the same way that, say DocBook XML, is. That is, you can't automatically pull out a 3rd level section (all the text under a subsubsection) like you can using XML and an XSLT. Nor can you label such a subsubsection with a "role" (DocBook XML term) and either include it or not include it in your PDF, depending on a parameter that you provide on a command line. (We did that to produce technical and non-technical versions of PDFs.) Rather, I think you have to give what amounts to begin{} and end{} commands.
Correct me if I'm wrong!
BTW, another wysiwym editor is XMLmind--for XML (mostly DocBook), obviously. I think oXygen also does that, although I've only used XMLmind.
- necovek 6y agoWhile I don't use LaTeX much (I've got my own plain TeX formats which I want to move to LaTeX), TeX is Turing-complete so you could easily devise a mechanism to achieve just that. I am sure there are extensions which do that already.
- diarrhea 6y agoI haven't come across a method to toggle parts, chapters or sections directly, but you can get pretty close by including them from separate files, then calling `includeonly`. Perhaps also look at the `import` package: https://ctan.org/pkg/import https://ctan.org/pkg/import. If that is not for you, then yes, a custom environment (`begin`/ `end`) would be my next attempt. As for the engine, definitely use lua(la)tex, where -- perhaps -- the Lua integration can come in handy for this too.