Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stdio mode support #20

Closed
leonbohn opened this issue Sep 9, 2024 · 2 comments
Closed

Add stdio mode support #20

leonbohn opened this issue Sep 9, 2024 · 2 comments

Comments

@leonbohn
Copy link
Contributor

leonbohn commented Sep 9, 2024

It would be great if it were possible to write a LaTeX file to STDIN of tex-fmt and have it write the formatted code to its STDOUT.

Unless there are any objections to this functionality, I will try to implement it myself, probably as a switch (--stdin) which bypasses iterating through the provided file names and instead just reads a single file from STDIN. This would, of couse, implicitly also set the --print flag and dump the formatted code to STDOUT.

@WGUNDERWOOD
Copy link
Owner

This sounds good to me -- feel free to implement it and submit a pull request!

@leonbohn
Copy link
Contributor Author

Great :) I've tried implementing something and opened the PR #21 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants