Hello:)
I would like to know which kind of script is used for the writing of Latex & View in order to be able to modify it.
I would like to include something like:
#!/bin/sh FILE=${1%.*} cat >temptex<<EOF \documentclass{article} \thispagestyle{empty} \begin{document} \input $FILE \end{document} EOF pdflatex temptex
$FILE is $1 is the script used in Textmate
Thanks
Alain Matthes
Le 15 mai 06 à 11:11, Alain Matthes a écrit :
Hello:)
I would like to know which kind of script is used for the writing of Latex & View in order to be able to modify it.
I would like to include something like:
#!/bin/sh FILE=${1%.*} cat >temptex<<EOF \documentclass{article} \thispagestyle{empty} \begin{document} \input $FILE \end{document} EOF pdflatex temptex
$FILE is $1 is the script used in Textmate
Sorry, the real name of the script is "Typeset & View"
Alain Matthes
Alain,
I don't reall get *why* you want to do this, but:
you could write your own macro with exactly this script inside a custom bundle… you could just create a general LaTeX file that will include your new file and have that handled by the bundle…?
Dan
Le 15 mai 06 à 12:55, Daniel Käsmayr a écrit :
Alain,
I don't reall get *why* you want to do this, but:
you could write your own macro with exactly this script inside a custom bundle… you could just create a general LaTeX file that will include your new file and have that handled by the bundle…?
I want to make this because i've a lot of files without preamble etc..; and i want to test this files witout no lost of time.
Also with my script, i can make it but My question is : is it possible to incorporate my script or to modify the script Typset and View to make the same work
Greetings
Alain Matthes
you could:
create a macro that replaces your document with a modified version that includes your header/footer parts (as you do create it yourself in your script), and then just use the "Typeset & View".
add the line "open temptex.pdf"
add your lines of text into the "Typeset & View" command, probably somewhere in: # Compile. Bail out on errors. or in function run_tex()
Daniel
Sorry, don't have the time and energy to do the coding/testing for you ;)