[texworks] SCRIPTING: Get content of specified directory

Herbert Schulz herbs at wideopenwest.com
Tue May 17 02:55:18 CEST 2011


On May 16, 2011, at 7:12 PM, Paul A Norman wrote:

> Looking really awesome Henrik!
> 
> Haven't tried all scenarios yet, but really like the precision of
> operation, and the clarity of coding - made it really easy for me to
> try and get it running under Windows for your new feature - input of
> filenames.
> 
> Often people have asked here whether there could be an automatic
> completion of environments
> 
> \begin{something}   sa a s a sad sad  fd f
> <contorl-key M>
> 
> \begin{ofsomething}   sa a s a sad sad  fd f
> \end{ofsomething}
> 
> Is that something that you would see possibly logically fitting in
> with your code at all?
> 
> With your new code, under Windows - I've tried these alterations, I
> don't think they'd break the Linux version (?)
> 
> Quotes for possible spaces in file path (platform tested), and I've
> found that for *some* Dos commands and utilities we need to absolutely
> reverse the path delimiter to a backslash - fickle problem, and safer
> to actually sample the output to determine whether \n or \r\n is doing
> the line breaks and not assume it on platform.
> 
> Regards,
> Paul

Howdy,

I'm not sure why that is preferable to simply using Command Completion and creating a full skeleton before yous tart to fill things in. In addition typing Ctl-M (isn't that simply a carriage return) if you are NOT in an environment would create \end{document} since that it the penultimate environment.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the texworks mailing list