Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VimtexClean dosen't work with aux folder and input files #2746

Closed
AndreaDiPietro92 opened this issue Jul 1, 2023 · 4 comments
Closed

VimtexClean dosen't work with aux folder and input files #2746

AndreaDiPietro92 opened this issue Jul 1, 2023 · 4 comments
Labels

Comments

@AndreaDiPietro92
Copy link

AndreaDiPietro92 commented Jul 1, 2023

Description

Using the latexmk out and aux folder the \lc or \lC dosen't work.
The latexmk -c or latexmk -C works perfectly.

Steps to reproduce

  1. Create a folder with a minimal main.tex
  2. Create a folder source with a cap1.tex
  3. Insert in main.tex the \input{source/cap1.tex}
  4. Create a .latexmkrc. Mine is
$pdflatex = 'pdflatex -synctex=1 -interaction=nonstopmode';
$out_dir = 'out';
$aux_dir = 'aux';
$pdf_previewer = 'start zathura';
$pdf_mode = 1;   
$bibtex_use = 2;
@default_files = ('test.tex');

@generated_exts = qw(aux idx ind lof lot out toc acn acr alg glg glo gls ist);
$clean_ext = "toc log mtc* maf aux bak bbl sav xml fls soc loc";

# Run latexmk silently, not output to text
$silent     = $ENV{'SILENT'};
$quiet      = $ENV{'SILENT'};
  1. Compile the main.tex
  2. Use the \lc command.

Expected behavior

All the files in aux folder should desappear

Actual behavior

Nothing happens.

Do you use a latexmkrc file?

Yes

VimtexInfo

System info:
  OS: Ubuntu 23.04
  Vim version: NVIM v0.10.0-dev-510+g3c4890d1e
  Has clientserver: true
  Servername: /run/user/1000/nvim.128782.0

VimTeX project: test
  base: test.tex
  root: /home/user/temp_latex
  tex: /home/user/temp_latex/test.tex
  main parser: current file verified
  document class: report
  packages: amsmath booktabs cleveref csquotes fancyhdr float fontsetup fontspec graphicx hyperref listings longtable mdframed mhchem microtype minitoc multirow pdfpages pgf pgfplots polyglossia siunitx subcaption tabularray tcolorbox tikz varioref
  source files:
    test.tex
    source/cap1.tex
  compiler: latexmk
    engine: -pdflatex
    options:
      -verbose
      -synctex=1
      -interaction=nonstopmode
    out_dir: out
    aux_dir: aux
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Zathura
    xwin id: 0
  qf method: LaTeX logfile
@lervag
Copy link
Owner

lervag commented Jul 1, 2023

Thanks. I can reproduce this. I'll look into it!

lervag added a commit that referenced this issue Jul 1, 2023
@lervag
Copy link
Owner

lervag commented Jul 1, 2023

I think it's fixed now, please update and test.

@lervag lervag closed this as completed Jul 1, 2023
@AndreaDiPietro92
Copy link
Author

Thank you 😊

@lervag
Copy link
Owner

lervag commented Jul 2, 2023

My pleasure; thanks for raising the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants