[TxMt] latex script

Alain Matthes alain.matthes at mac.com
Tue Feb 21 20:20:24 UTC 2006


Le 21 févr. 06 à 17:28, Alain Matthes a écrit :

> Hello
>
> I am a professor of mathematics and my essential activity is to
>  create exercises which I arrange in a structure called "Base"
>
> Often, I work in the following situation:
>
> I create a file "exercise.tex", i put this file in the "Base"
>
> then I create a new file "try.tex" :
>
> \documentclass{myclass}
> \begin{document}
> \input{exercise.tex}
> \end{document}
>
> I do not have enough knowledge on scripts to obtain this:
>
> In Textmate, when i work on an file exercise.tex, i would like wih  
> one command or script (?)
> to compile "try.tex" directly.
>
>
> I think that a modification of "LATEX & VIEW" should be enough...
>
> With this idea and
> with FILE = exercise.tex (the file which I create)
> with VAR_FAV_CLASS =  myclass
>
>
> 1) modification of FILE in ---> NEWFILE
>
> NEWFILE =
> "\documentclass[]{VAR_FAV_CLASS}
> \begin{document}
> \input{$File}
> \end{document}"


perhaps it's better to compile

\documentclass[]{VAR_FAV_CLASS}
\begin{document}
$File
\end{document}

how to add the lines

\documentclass[]{VAR_FAV_CLASS}
\begin{document}

et \end{document}
  to the file?

Alain Matthes


More information about the textmate mailing list