2

Where can I find file latex.‎tex?‎ I don't have it in my tex ‎distribution‎. I‎ ‎have ‎only ‎file ‎latex.ltx ‎on ‎my ‎system.
By the way, I'm using Texlive 2010.

6
  • 6
    Why do you think a latex.tex should exist? latex.ltx is the right file which contains the latex code. Commented Apr 5, 2011 at 14:05
  • 4
    Why do you need to find such a file?
    – raphink
    Commented Apr 5, 2011 at 14:05
  • I think latex.ltx was once called latex.tex; in LaTeX2 or maybe even earlier. I remember to have read at least one mentioning of it. Commented Apr 5, 2011 at 15:19
  • 2
    @araz: \chapter* is not a command. It's a \chapter with a * afterwards. The definition of \chapter checks (using \secdef) if a * follows and calls \@chapter or \@schapter depending on the result. This is an example of the \@ifstar mechanism that allows star versions of commands. Commented Apr 5, 2011 at 22:02
  • 3
    @araz: you probably don't really want to redefine \chapter or any of the related commands. Most of the time, people just want to redefine how a chapter heading is formatted or similar. You may want to post a more specific question if that sort of thing is your ultimate goal. Commented Apr 6, 2011 at 0:26

2 Answers 2

7

It doesn't exist on standard distributions. Try asking kpsewhich latex.ltx at the command prompt; the directory that file is in contains the files that make up the heart of Latex.

0

If you just want to look at latex.ltx and don't want to worry about messing up your system, you can look at the version here:

mirrors.ctan.org/macros/latex/unpacked/latex.ltx

I assume this should be good enough if your system is reasonably up to date.

You must log in to answer this question.