-
Notifications
You must be signed in to change notification settings - Fork 11
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
Subsequent chapter headings not displayed if last line of previous chapter is a comment #21
Comments
We are using I will not call it a bug. This is possibly happening because your editor is not ensuring that a newline character is added at the end of the file. many text editors such as Atom or Nano add a newline character at the end of the file, which is generally a good thing. GitHub highlights missing newline character in files in the web interface as an error. |
Hmm, I disagree. If we chose
By design. I have my editor setup to not automatically manipulate my files. I am using TeXShop, an editor designed with LaTeX in-mind and not a general-purpose text editor. I believe that LaTeX does not mandate that files end in a newline. |
While we can add some tricks to add newline character at the end of each file when concatenating them in \app@exe{ls #1/*.tex | xargs cat >> #1/\jobname.tmp}% I think it is better to leave it as it is to avoid any other consequences as it is doing what
If you do not allow your editor to insert newline at the end of a file then you can manually add that. laTeX may not mandate any specific file endings, but the POSIX standard defines a line as something that ends with a newline character. LaTeX provides two main methods to include files, |
I encountered this bug when finishing one chapter with a comment and noticing the main chapter heading as well as the TOC listing not showing up.
The content of the following chapter is merged with the previous chapter.
For example, from the repo I modified Chapter 2:
Nothing else in the template has changed. The result is Chapter 3's content (starting with
Mat counted JCDL
) appended onto the end of Chapter 2 (ends withhibernated frogs?
).The text was updated successfully, but these errors were encountered: