I want to define a Vim command that will install all LaTeX packages used in a
To install packages I can do
sudo tlmgr install package1 package2 package3 etc. in the command line.
So now I need a way to get the names of all packages used in the file and use them with
It would be even better if I don't have to leave the buffer to type the
sudo password, but that's not strictly necessary.
The packages are added like so:
I don't know if this is the best way to do it, but I'm doing this to match the lines that call packages:
But it matches the whole line. Then I added that second pair of escaped parenthesis hoping to capture just the name of the package… but now I have no idea how to call
tlmgr using just those names.