Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • For collecting classified content in large quantities which you can then select, group and assemble into different documents, I think a database is indeed the best solution. For customising section titles and such, probably TeX macro names which can be configured by a document class or package are a better choice (analogously to the key words "Table of Contents" or "Abstract" used by LaTeX). Commented Jun 30, 2012 at 9:44
  • @StephanLehmke Excellent. Thanks. Then my question is just: what is the most efficient way to do this. Is there some LaTeX package that can grab data from a (certain) database? Commented Jun 30, 2012 at 9:56
  • Maybe the answers to this question can help? Is it possible to connect a database to LaTeX to produce data-driven documents? Commented Jun 30, 2012 at 12:29
  • @StephanLehmke Thanks. All these solutions are "too big", I mean, then it would be better to write a script that spits out these things. The problem is that I also want to compile these files through LaTeX to see how they look and, putting them in an XML file is not going to make that much easier. So perhaps the macro names can solve this. The problem is that I also might want to change the order... Good old copy pasting does the trick, but I'd like something more usable. Commented Jul 3, 2012 at 0:35
  • Writing a simple script from scratch which will spit out some LaTeX source is a perfectly good solution in my opinion. Every relevant programming language has some facilities for accessing databases, and generating the LaTeX code is mostly a matter of printing some text to a file. I doubt you'll be having much trouble with this. Commented Jul 3, 2012 at 6:32