Added algorithm2e, as well as dependencies#67
Added algorithm2e, as well as dependencies#67patbro merged 1 commit intoProdriveTechnologies:masterfrom
Conversation
|
Hi Ben! Thanks a lot for contributing to bazel-latex! Did you perhaps already tried to add this package locally instead? https://github.com/ProdriveTechnologies/bazel-latex#local-packages Let me know whether this works or perhaps somehow might not work for you. |
|
This is what I'm currently doing in my local projects, although it is a bit cumbersome because I have multiple projects where I'd like to use this package. Is there any reason not to upstream it into bazel-latex? |
|
Ah, I see. Would it be possible for you to push that patch to your fork and use that in your projects? If that doesn't work for you, then I'm more than happy to merge the suggested change. Though, I kind of see the suggested PRs for adding packages as a user configuration kind of thing. You could argue you don't want to merge each user configuration upstream. Hence I added the suggestion to utilize patches instead in the README. Would love to hear how you think about this. |
|
Merging for now as mentioned here #63 (comment). |
|
Thanks a ton for merging this! I appreciate you taking the time to review + consider. Regarding your last message - as mentioned in #63, exposing multiple packages is somewhat hard with the current build rules. Is there some way to autodetect all the recursive dependencies for a package? That might make it easier to include additional dependencies? Otherwise, maybe you could consider adding some Skylark magic to achieve something like what https://github.com/bazelbuild/rules_python does (like |
It can definitely be cumbersome. Though, if a package requires certain dependencies, just add them to the
I think it should be possible, using some Starlark, to expose all of the |
I've personally been trying to add |
|
Here are a few packages I've been struggling:
|
This is probably the best compromise between easy usage + implementation complexity. Since most packages work just fine, I don't think the mess will be all that frequent, and it's definitely easier to do than the clone+modify+export-patch workflow currently recommended (and doesn't require understanding of how bazel-latex works). I might have some time in Feb/March to take a stab at this, if it's not on your agenda. |
Actually, it seems like all When trying to build the example without including biblatex using That being said, by loading |
This works, but gets tricky once a package has dependencies. E.g. This is tedious enough for packages with simple dependencies (e.g. a single target in |
This is still what one needs to do when adding a new package to bazel-latex. That's unfortunately just the nature of how TeX Live works, and that's why many people just install all (recommended) TeX Live packages. Automatically figuring out the dependencies for any given package is beyond the scope of bazel-latex. Though, the packages file does an attempt at simplifying this for bazel-latex users. :) That being said, some improvements that could be made:
Happy to hear your thoughts on this. |
One of the standard packages for writing down algorithms. Required adding in relsize and ifoddpage.