drutex
How to use CCK custom fields on DruTeX
Hi.
I just installed TeXlive and DruTeX on a VPS and they're working fine.
I even tweaked the DruTeX template to get the layout I need, but I can't figure out how to render to LaTeX custom fields created by CCK.
I need to render some text input by the user along with some headers and titles hardcoded in the template, son I need at least 15 fields to be filled by the user and render by DruTeX.
I don't know enough Drupal or PHP to fully understand the code, but I found some clues in the -- drutex.pdf.inc -- file, but I don't know how to tell drutex which CCK field to use.
Next Version
Ideas for the next version of DruTeX at: http://drupal.org/node/248364
Issues on the PDF and TeX generation
I found two disturbing issues when creating a PDF or a Tex file from a node.
First, the PDF is not updated, once it is created the first time. The reason is this test located in the drutex_node2pdf_wrapper function:
if (!is_file("$pdf_dir/{$node->nid}.pdf")) {
drutex_node2pdf($nid);
}I just commented the test in my site. PDF should be generated each time it is requested, as node might have been updated in the meanwhile.
PDF Generation error
Hi folks:
I've been playing around with the module, and I found an error when converting html tags to latex commands (more precisely, when converting the tag <em> to the \emph{} command).
For some reason I got a "\" before the opening curly bracket, so the command - \emph{ whatever } - was not properly recongized.
