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

--no-document option is require for TeX output #621

Open
yegor256 opened this issue Dec 11, 2024 · 3 comments
Open

--no-document option is require for TeX output #621

yegor256 opened this issue Dec 11, 2024 · 3 comments
Assignees

Comments

@yegor256
Copy link
Member

Currently, I'm getting this:

$ eo-phi-normalizer rewrite --chain --tex celsius.phi
% Rule set following Nov 2024 revision

\documentclass{article}
\usepackage{eolang}
\begin{document}

\begin{phiquation*}
...
\end{phiquation*}

\end{document}

This is impossible to embed into an existing TeX document. Let's add one more option --no-document, which will produce this:

$ eo-phi-normalizer rewrite --chain --tex --no-document celsius.phi
\begin{phiquation*}
...
\end{phiquation*}
@yegor256
Copy link
Member Author

yegor256 commented Dec 11, 2024

@deemp please, help

@deemp deemp self-assigned this Dec 13, 2024
@deemp
Copy link
Member

deemp commented Dec 16, 2024

\documentclass{article}
\usepackage{eolang}
\begin{document}

...

\end{document}

@yegor256, why do you need these lines? What is the use case for this output?

Can I just not output them when --tex is used?

I believe the documentation on the site is the right place for the hint that it's necessary to use the eolang package with this output.

@yegor256
Copy link
Member Author

@deemp with --document (by default) the user gets a full LaTeX document, ready for rendering, while with --do-document the user gets a section for his document, read to be used via \input{}

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

When branches are created from issues, their pull requests are automatically linked.

2 participants