Skip to content

Commit

Permalink
FIX: fix RequirePackage undetectable
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyliu16 committed Apr 5, 2024
1 parent dc39386 commit 461ec1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ Easily compile latex documents with nix flakes.
```shell
nix flake init --template github:jmmaloney4/latex-utils
```
- [ ] provide more information and help panel for easily debug
- [ ] provide support of multiple compilation like xelatex -> bibtex -> xelatex -> xelatex
- [x] Fixed identification of RequirePackage
2 changes: 1 addition & 1 deletion lib/findLatexPackages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# texPackages = filterAttrs (y: x: x != null) processedPackages (genAttrs processedPackages (name: attrByPath [name] null pkgs.texlive));

isPackageLines = line: let # str -> Bool
res = builtins.match ''\\(usepackage|Requirepackage).*'' line;
res = builtins.match ''\\(usepackage|RequirePackage).*'' line;
in res != null;

gainPackageNameFromLine = line: let # str -> List[str]
Expand Down

0 comments on commit 461ec1f

Please sign in to comment.