[TxMt] Re: TM_DATE , Ruby and Latex Template

Alain Matthes alain.matthes at mac.com
Tue Nov 11 14:07:05 UTC 2008


Le 11 nov. 08 à 09:59, Allan Odgaard a écrit :

> On 5 Nov 2008, at 23:53, Alain Matthes wrote:
>
>> [...] no problem with the classic method [ NEW from Template] [Edit
>> Templates] but with the other method
>>
>> [ why  another method ? Only God knows ..]
>
> I seem to recall Haris saying that there already is an established
> convention for LaTeX templates, and the additiional system (specific
> to the LaTeX bundle) is for those who already have a lot of templates
> following this convention.
>
>> [...] 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 don’t think it expands shell variables, and since this system is a
> more general LaTeX template system, I am not sure it really should be
> made to do so (i.e. it is there for compatibility).
>
> Why not stay with snippets or regular templates?


Yes i'm agree with you (I prefer regular templates ) but I'm curious  
about the  problem :

How to define TM_DATE from a ruby script ?

another question is : how to make a command with two parts : a ruby  
script and a bash script ?

Best Regards

Alain Matthes






More information about the textmate mailing list