Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 3
    I have the feeling it would be more efficient to read the documented TeX code and the texbook rather than asking the different questions here and people that have read those documents answer. Commented Aug 27, 2017 at 10:17
  • 4
    I'm wondering what you need to actually find out here: what issue have you run into with the \input primitive that prompts this question? (I can't think of an obvious one ...) Commented Aug 27, 2017 at 10:23
  • 1
    @JosephWright: The issue I ran into was that I failed to understand how TeX's tokenization algorithm handled the \input primitive, as I was reading chapter 8 of the TeXbook. Commented Aug 27, 2017 at 10:28
  • I just saw how the parens while opening and closing a file are created. I also saw state:=new_line;. Now i feel like i am in the matrix. Commented Aug 27, 2017 at 10:41
  • @Johannes_B: Are you saying that the state is set to N just before the beginning and just after the end of the \input file? Commented Aug 27, 2017 at 10:45