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

[macros, lex, over] Dissolve bnfkeytab environments. Use a fixed-width (\fw{...}) code field instead. #2022

Closed
wants to merge 1 commit into from

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Apr 4, 2018

Before/after:

image

image

source/lex.tex Outdated
\>and \>or \>xor \>not \>bitand \>bitor \>compl\br
\>and_eq \>or_eq \>xor_eq \>not_eq
\end{bnfkeywordtab}
\fw{\{}\fw{\}}\fw{[}\fw{]}\fw{\#}\fw{\#\#}\fw{(}\fw{)}\br
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using the \terminal macro like in [lex.name] above? It'd certainly be easier to read the source code that way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spaces collapse, so the output would look very crowded.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. Throw in an \obeyspaces and then the spaces won't collapse.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, you win this one. Thanks!

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Apr 4, 2018

I went with the \terminal version suggested by @godbyk. Thank you!

@tkoeppe tkoeppe closed this Apr 4, 2018
@tkoeppe tkoeppe deleted the fw branch April 4, 2018 02:33
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

Successfully merging this pull request may close these issues.

None yet

2 participants