Added support for lhs compile with vimtex
This commit is contained in:
parent
75efa287e0
commit
9368fdb570
4 changed files with 46 additions and 28 deletions
14
.latexmkrc
Normal file
14
.latexmkrc
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Use subroutine to do preprocessing and running pdflatex
|
||||
$pdflatex = 'internal mylatex %B %O';
|
||||
sub mylatex {
|
||||
my $base = shift @_;
|
||||
my $tex = "$base.tex";
|
||||
|
||||
# Run the preprocessor
|
||||
system('lhs2TeX', '--poly', '-o', $tex, "$base.lhs") == 0 or return $?;
|
||||
# Run pdflatex
|
||||
my $return = system('pdflatex', @_, $tex);
|
||||
system "echo INPUT $base.lhs >> $aux_dir1$base.fls";
|
||||
return $return;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue