Automatically Move Auxiliary Files to Subdir with Auto-Compiling Vimtex
up vote
1
down vote
favorite
I've seen numerous ways to move auxiliary files to a given directory via latexmk, or pdflatex (ex. latexmk -auxdir=/tmp <file>
). But I am using vimtex with auto-compiling, so that whenever I save my tex file, it is automatically compiled and my pdf viewer (just using evince
) is updated too.
What I'd like is for vimtex to create a subdir called aux
in whichever directory my current texfile is, and put any of these auxiliary files in there at each compilation -- keeping just my .tex
and .pdf
file in the working dir. I feel like I should be able to specify this in .latexmkrc
but haven't read any mention of specifying such settings there.
pdftex auxiliary-files latexmk vim evince
bumped to the homepage by Community♦ 25 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
1
down vote
favorite
I've seen numerous ways to move auxiliary files to a given directory via latexmk, or pdflatex (ex. latexmk -auxdir=/tmp <file>
). But I am using vimtex with auto-compiling, so that whenever I save my tex file, it is automatically compiled and my pdf viewer (just using evince
) is updated too.
What I'd like is for vimtex to create a subdir called aux
in whichever directory my current texfile is, and put any of these auxiliary files in there at each compilation -- keeping just my .tex
and .pdf
file in the working dir. I feel like I should be able to specify this in .latexmkrc
but haven't read any mention of specifying such settings there.
pdftex auxiliary-files latexmk vim evince
bumped to the homepage by Community♦ 25 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
There is a vim tag. I've added it.
– Henri Menke
Aug 22 '17 at 23:39
Note that/aux
would be a directory in the root of the file system and not the current directory../aux
oraux
is what you mean, I take it.
– cfr
Jul 29 at 3:51
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've seen numerous ways to move auxiliary files to a given directory via latexmk, or pdflatex (ex. latexmk -auxdir=/tmp <file>
). But I am using vimtex with auto-compiling, so that whenever I save my tex file, it is automatically compiled and my pdf viewer (just using evince
) is updated too.
What I'd like is for vimtex to create a subdir called aux
in whichever directory my current texfile is, and put any of these auxiliary files in there at each compilation -- keeping just my .tex
and .pdf
file in the working dir. I feel like I should be able to specify this in .latexmkrc
but haven't read any mention of specifying such settings there.
pdftex auxiliary-files latexmk vim evince
I've seen numerous ways to move auxiliary files to a given directory via latexmk, or pdflatex (ex. latexmk -auxdir=/tmp <file>
). But I am using vimtex with auto-compiling, so that whenever I save my tex file, it is automatically compiled and my pdf viewer (just using evince
) is updated too.
What I'd like is for vimtex to create a subdir called aux
in whichever directory my current texfile is, and put any of these auxiliary files in there at each compilation -- keeping just my .tex
and .pdf
file in the working dir. I feel like I should be able to specify this in .latexmkrc
but haven't read any mention of specifying such settings there.
pdftex auxiliary-files latexmk vim evince
pdftex auxiliary-files latexmk vim evince
edited Jul 29 at 3:51
cfr
155k7180377
155k7180377
asked Aug 22 '17 at 21:05
RACKGNOME
1061
1061
bumped to the homepage by Community♦ 25 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 25 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
There is a vim tag. I've added it.
– Henri Menke
Aug 22 '17 at 23:39
Note that/aux
would be a directory in the root of the file system and not the current directory../aux
oraux
is what you mean, I take it.
– cfr
Jul 29 at 3:51
add a comment |
There is a vim tag. I've added it.
– Henri Menke
Aug 22 '17 at 23:39
Note that/aux
would be a directory in the root of the file system and not the current directory../aux
oraux
is what you mean, I take it.
– cfr
Jul 29 at 3:51
There is a vim tag. I've added it.
– Henri Menke
Aug 22 '17 at 23:39
There is a vim tag. I've added it.
– Henri Menke
Aug 22 '17 at 23:39
Note that
/aux
would be a directory in the root of the file system and not the current directory. ./aux
or aux
is what you mean, I take it.– cfr
Jul 29 at 3:51
Note that
/aux
would be a directory in the root of the file system and not the current directory. ./aux
or aux
is what you mean, I take it.– cfr
Jul 29 at 3:51
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can mostly achieve this using vimtex's build_dir
setting (see vimtex help :h vimtex_compiler_latexmk
and this conversation explaining that "this allows to define an output directory where all generated files are put when compiling".). However, your pdf will also be moved to this directory.
Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file.
– RACKGNOME
Jul 30 at 17:22
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can mostly achieve this using vimtex's build_dir
setting (see vimtex help :h vimtex_compiler_latexmk
and this conversation explaining that "this allows to define an output directory where all generated files are put when compiling".). However, your pdf will also be moved to this directory.
Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file.
– RACKGNOME
Jul 30 at 17:22
add a comment |
up vote
0
down vote
You can mostly achieve this using vimtex's build_dir
setting (see vimtex help :h vimtex_compiler_latexmk
and this conversation explaining that "this allows to define an output directory where all generated files are put when compiling".). However, your pdf will also be moved to this directory.
Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file.
– RACKGNOME
Jul 30 at 17:22
add a comment |
up vote
0
down vote
up vote
0
down vote
You can mostly achieve this using vimtex's build_dir
setting (see vimtex help :h vimtex_compiler_latexmk
and this conversation explaining that "this allows to define an output directory where all generated files are put when compiling".). However, your pdf will also be moved to this directory.
You can mostly achieve this using vimtex's build_dir
setting (see vimtex help :h vimtex_compiler_latexmk
and this conversation explaining that "this allows to define an output directory where all generated files are put when compiling".). However, your pdf will also be moved to this directory.
answered Jul 29 at 2:11
pierre
1
1
Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file.
– RACKGNOME
Jul 30 at 17:22
add a comment |
Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file.
– RACKGNOME
Jul 30 at 17:22
Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file.
– RACKGNOME
Jul 30 at 17:22
Yeah the pdf going to that directory is not ideal. The ideal would be to separate the auxiliary files from the desired, generated pdf file.
– RACKGNOME
Jul 30 at 17:22
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f387722%2fautomatically-move-auxiliary-files-to-subdir-with-auto-compiling-vimtex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
There is a vim tag. I've added it.
– Henri Menke
Aug 22 '17 at 23:39
Note that
/aux
would be a directory in the root of the file system and not the current directory../aux
oraux
is what you mean, I take it.– cfr
Jul 29 at 3:51