Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there any package for LaTeX dealing with a database (with some of the fields being LaTeX code). For example, given a collection of problems with fields {id, name, author, refs, statement, solution, difficulty, keywords...} the package should allow to build a latex document from the data filtering by any of the fields (obtaining, for example, a list of the "easy" algebra problems with authors but without solutions). Another possible application is a multilingual CV being the fields the CV entries and the rows the data in the corresponding language.

I managed to simulate this scheme using .bib files to store the data, but as some drawbacks appeared (relative to the code interpretation) I just wonder if there is something specifically designed for this situations.

share|improve this question
8  
There is the datatool package. I haven't used it myself so I can't say more about it. –  cgnieder Dec 16 '12 at 17:39
4  
@cgnieder I've used the datatool package and I'm happy to recommend it. –  Marc van Dongen Dec 16 '12 at 17:50
5  
If you really want a database then this question is relevant: Reading data from a relational database into a LaTeX table. If your needs are more modest, then pgfplotstable or datatool? might be more relevant. –  Alan Munn Dec 16 '12 at 18:02
2  
See also the blog post LaTeX and template engines, revisited. –  Stephan Lehmke Dec 16 '12 at 18:43
1  
I frequently use template toolkit. Works with all data sources supported by Perl's database interface. –  Alex Dec 16 '12 at 19:32
show 5 more comments

1 Answer 1

Excerpt from comments below question:

If you really want a database then this question is relevant: Reading data from a relational database into a LaTeX table. If your needs are more modest, then pgfplotstable or datatool? might be more relevant. See also the post in our TeX community blog: LaTeX and template engines, revisited. You can use also textmerg, there is an example in build dynamic documents from a Textdatabase.

Perhaps also some TeX external solutions fit your needs: Template Toolkit (works with all data sources supported by Perl's database interface); R with knitr (create the tables directly in LaTeX format via use of R xtable package, and in conjunction with knitr port data frames and other data objects in R DIRECTLY into a LaTeX document).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.