Homec4science

Changes made to the behaviour of this function: 1. Previously, a LaTeX template…

Authored by Nicholas Robinson <nicholas.robinson@cern.ch> on May 29 2008, 13:21.

Description

Changes made to the behaviour of this function: 1. Previously, a LaTeX template variable's value was FIRST tested for existence as a file in the current submission's working directory, and if that file didn't exist, was used as a literal value to be inserted into the LaTeX template. Now, however, ALL LaTeX template variable values will be considered as literal strings to be inserted into the LaTeX template, UNLESS they are prefixed by "FILE:". For example: Literal: 'TITLE' : 'Invenio file stamping' In that case, the string "Invenio file stamping" will be substituted into the LaTeX template in place of the "TITLE" marker. File example: 'TITLE' : 'FILE:DEMOTHE_TITLE' In that case, Stamp_Uploaded_Files will look for a file called 'DEMOTHE_TITLE' in the current submission's working directory, and will substitute the value found in that file in place of the "TITLE" marker in the LaTeX template. If however the file does not exist, an empty string will be substituted for the "TITLE" marker.

  1. The other change is to the way that the latex-template-var "dictionary" string is broken up and turned into a dictionary. Previously, a variable-value pair was split on all non-escaped colons. Now it simply splits on the first colon. This was necessary to allow the "FILE:" instruction. The implication for templates is that variable markers in the LaTeX template cannot contain a colon. Values, however, can.

Event Timeline

Nicholas Robinson <nicholas.robinson@cern.ch> committed R3600:cbf09564d0d9: Changes made to the behaviour of this function: 1. Previously, a LaTeX template… (authored by Nicholas Robinson <nicholas.robinson@cern.ch>).May 29 2008, 13:21