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

Unexpected behaviour when ttline>0 #121

Open
robertbachmann opened this issue Mar 8, 2023 · 1 comment
Open

Unexpected behaviour when ttline>0 #121

robertbachmann opened this issue Mar 8, 2023 · 1 comment

Comments

@robertbachmann
Copy link
Collaborator

Given the following input:

\ttline=0

Listing 1: 
\begtt\hisyntax{C}
int main() {
  return 0;
}
\endtt

% \ttline=0

Listing 2: 
\begtt\hisyntax{C}
int foo() {
  return 0;
}
\endtt

\bye

I get the following result:
image

Is this intended?
Do I need to (re)set \ttline=0 for each listing?

@olsak
Copy link
Owner

olsak commented Mar 8, 2023

Yes, it is documented behavior. Unfortunately, numbering each listing form one is somewhat tricky:

\everytt{\ttline=0} \ttline=0

I'll think about a better solution...

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