[TxMt] TM_DATE , Ruby and Latex Template
alain.matthes at mac.com
Wed Nov 5 22:53:11 UTC 2008
I try to create a latex template
I've no problem with the classic method [ NEW from Template] [Edit
with the other method
[ why another method ? Only God knows ..]
describes in the help of the bundle.
I create a file in Application Support > Latex > Templates but iI
want to use shell variables
like TM_FULLNAME TM_DATE TM_ORGANIZATION_NAME etc ...
I put %!TEX style = snippet at the beginning of my file and I' ve no
problem with the variables
except with TM_DATE.
I modify the ruby command "LaTeX Template" . I added inside the next
ENV["TM_DATE"] = `date +%d-%m-%dY`.chomp
but it's not enough. What is wrong with my method?
Sorry if my question is stupid but I am a beginner with ruby and batch
More information about the textmate