LaTeXBox icon indicating copy to clipboard operation
LaTeXBox copied to clipboard

automatically remove garbage files

Open iwuwu opened this issue 10 years ago • 1 comments

I really love this Plugin, it's better than LatexTools and Latexing, they can not build from \input files, you have to switch to the main file. it's really sucks. I just have two little requests:

  • can we let it automatically remove garbage files every time after build?
  • can we let it automatically hide build results panel? I mean, after build, I want to know the results, but when I start typing, I wish the build results panel can hide automatically.

Thanks a lot...

iwuwu avatar Nov 22 '15 17:11 iwuwu

I believe that both LatexTools and Latexing support the TeXwork magic comments. At least, for tex root:

%!TEX root = main.tex

For you requests,

  1. It is possible while it is not efficient. Cleaning the auxiliary files every time automatically will slow down next compilation time and I don't think it is the way to go. LaTeXing creates an output folder to store all the aux files. However, for some latex packages, they don't support it. So I would rather don't support it. To clean the aux files, you can always run the command "LaTeX-Plus: Clean Aux Files". You could also attach a keybind to it. For example

    { 
            "keys": ["ctrl+shift+c"],"command": "latex_plus_clean", "context":
        [
            { "key": "selector", "operator": "equal", "operand": "text.tex.latex" }
        ]
    }
    
    
  2. It is possible. And in fact, I was considering it.

randy3k avatar Nov 23 '15 17:11 randy3k