[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] feature request: generate a makefile based on masterfile
From: |
Vincent Belaïche |
Subject: |
Re: [AUCTeX] feature request: generate a makefile based on masterfile |
Date: |
Thu, 29 Oct 2015 10:39:45 +0100 |
Hello Sivaram,
Make is not the best tool for LaTeX because often you have auxiliary
files that are both output and input and need to be written several
times. So the time-stamp based logic of Make is not adequate.
Rather, like Tassilo, I use latexmk. Probably latexmk mydoc.tex will not
do readilly what you want, you need other options for selecting pdf
output, or being in nonstopmode (aka batch mode). you can set these as a
default with a .latexmkrc file (in your home directory for all projects,
or in the local dierctory just for this project, latexmk will read those
in sequence. You can also make custom dependencies through the
.latexmkrc file. And anyway, you can still call latexmk from a makefile
if you have a very complex generation scheme (that is what I do for the
lettre package, cf https://gna.org/projects/lettre_observatoire).
Bye,
Vincent.
----------------------------------------
> To: address@hidden
> From: address@hidden
> Date: Wed, 28 Oct 2015 00:20:21 +0530
> Subject: Re: [AUCTeX] feature request: generate a makefile based on masterfile
>
> On Tue, Oct 27 2015,Tassilo Horn wrote:
>
>> Sivaram Neelakantan <address@hidden> writes:
>>
>>> Is it possible for Auctex to generate a makefile based on the
>>> structure of the master file?
>>
>> You mean, something which would look through your document for picking
>> out included files and images and then generates a Makefile with proper
>> dependencies such that make will re-generated your document also if some
>> included image has changed?
>
> Yes, that's right.
>
>> No, that's not possible right now, and I
>> don't think that this is exactly in AUCTeX scope. But googling a bit
>> shows that there are some generic, customizable Makefiles for latex, and
>> also some Makefile generators.
>
> Guessed as much, thanks for the pointers.
>
>>
>> What I frequently use is latexmk. Basically, instead of running "latex
>> mydoc.tex" you say "latexmk mydoc.tex" and that will compile your
>> document as often as it is needed in order to have all references
>> defined.
>
> Will look into this.
>
>>
>> Recent AUCTeX ELPA versions can do the same using the new command
>>
>> ,----[ C-h f TeX-command-run-all RET ]
>> | TeX-command-run-all is an interactive autoloaded compiled Lisp function in
>> | ‘tex-buf.el’.
>
> [snipped 21 lines]
>
>
> sivaram
> --
>
>
> _______________________________________________
> auctex mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/auctex