>>> "PN" == Paul Nelson <ultr...@gmail.com> writes:

>> But more than a year ago Al Haji-Ali provided a functionality which
>> allows to configure a build directory in which all files dwell that are
>> generated by a LaTeX compilation. So TeX-view looks then there and not
>> in the main directory if that functionality is enabled.
>> 
>> 
>> So the question is: can your code be adapted?
>> 

> I see.  Yes, I strongly suspect it can be adapted.  Could you point me
> towards the functionality in question?
Thanks for you quick reply. It seems that the code was added already 3
years ago. I recall a series of patches and test in which I
participated (and I forgot some details).

According to the documentation, finally the behavior is controlled by
setting the variable TeX-output-dir

--8<---------------cut here---------------start------------->8---
TeX-output-dir is a variable defined in ‘tex.el’.

Its value is "build"
Original value was nil

The path of the directory where output files should be placed.

A relative path is interpreted as being relative to the master
file in ‘TeX-master’.  The path cannot contain a directory that
starts with ’.’.  If this variable is nil, the output directory
is assumed to be the same as the directory of ‘TeX-master’.

  Automatically becomes buffer-local when set.
  This variable is safe as a file local variable if its value
  satisfies the predicate ‘string-or-null-p’.
  You can customize this variable.
--8<---------------cut here---------------end--------------->8---

The point that variable could also be some other name or an absolute path.
[back]



> (My code contains the defcustom tex-continuous-command that controls
> the latexmk command.  The other thing it needs to know is where to
> find the log file.  This is currently done by calling
> (TeX-command-master "log"), which could in turn be made customizable,
> and I suspect would then support the functionality that you mention.)

All files including the log file are placed in the build directory.

I like this TeX-output-dir property a lot since it keeps my directories tidy

> Thanks for the feedback!

Thanks for your quick reply and the code of course!

Uwe 

> Paul

-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to