Comments (2)
If you add a package via --packages .something
, YaLafi will just try to import something
. Hence, a module something
needs to be present at the python path. Either in the directory, from where you call YaLafi, or in any other. Hence, you can just add any folder, e.g. ~/yalafi/macros
, to the python path. If you have a separate environment for YaLafi, it will not even change anything else.
If I find time for a configuration overhaul, I might add an option --packages-path
which dynamically adds the argument to the python path. I would prefer to not add any folder by default.
from yalafi.
If you add a package via
--packages .something
, YaLafi will just try toimport something
. Hence, a modulesomething
needs to be present at the python path. Either in the directory, from where you call YaLafi, or in any other. Hence, you can just add any folder, e.g.~/yalafi/macros
, to the python path. If you have a separate environment for YaLafi, it will not even change anything else.
Thank you, good to know how this is handled internally! This is at least a temporary solution for my problem.
If I find time for a configuration overhaul, I might add an option
--packages-path
which dynamically adds the argument to the python path. I would prefer to not add any folder by default.
I agree with you: There shouldn't be a default folder for custom packages. But a --packages-path
would be appreciated ;)
from yalafi.
Related Issues (20)
- Ignore minted environment
- Support `autoref`
- Update glossaries
- Custom LanguageTool Server URL
- YaLafi compatibility with the premium API of LanguageTool HOT 4
- Status of the project HOT 23
- How to avoid own commands. HOT 2
- Local installation doesn't work after change in build system HOT 4
- Add tests for successful installation HOT 1
- YaLafi to handle LaTeX syntax (recognize begin/end of environments) HOT 10
- Remove cyclic imports
- `\newenvironment` is not parsed by YaLafi
- Add `LTadd`, `LTskip` and `LTextract` environments.
- Add support for the `comment` package.
- Problems when including files with the extensions txt, pgf, and latex
- How to make the proofreading tool LanguageTool know new words? HOT 3
- Disable single command, because its arguments (labels) are not meant to be checked HOT 3
- Add LaTeX macro `\providecommand`
- Documentation overhaul
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yalafi.