[TxMt] TM_DATE , Ruby and Latex Template
Alain Matthes
alain.matthes at mac.com
Wed Nov 5 22:53:11 UTC 2008
Hello
I try to create a latex template
I've no problem with the classic method [ NEW from Template] [Edit
Templates] but
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
line
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
Best Regards
Alain
More information about the textmate
mailing list