Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Difference(s) between .ltx and .tex?

1,251 views
Skip to first unread message

Merciadri Luca

unread,
Apr 13, 2010, 8:27:44 AM4/13/10
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

What is the difference between a .ltx file and a .tex file? Thanks.
- --
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- --

Actions speak louder than words.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkvEY0AACgkQM0LLzLt8MhyG/QCcDxYI1X+dfxZw53q72oxWjRbl
SDAAn2t4jJU7Kn2hIwIxWIeMU2g5+2O7
=diG+
-----END PGP SIGNATURE-----

Lars Madsen

unread,
Apr 13, 2010, 8:41:18 AM4/13/10
to
Merciadri Luca wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> What is the difference between a .ltx file and a .tex file? Thanks.

depends on what is in it.

I can name my latex file important.docx, and it would still be a latex file.

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

Joseph Wright

unread,
Apr 13, 2010, 8:41:39 AM4/13/10
to
On Apr 13, 1:27 pm, Merciadri Luca <Luca.Mercia...@student.ulg.ac.be>
wrote:

> Hi,
>
> What is the difference between a .ltx file and a .tex file? Thanks.

Just the file extension! Some people use .ltx for LaTeX and .tex for
plain TeX/ConTeXt/other formats, but others use .tex for all TeX-based
documents. (I'm in the later category.)
--
Joseph Wright

Yan Zhou

unread,
Apr 13, 2010, 8:42:15 AM4/13/10
to
On 2010-04-13 13:27:44 +0100, Merciadri Luca said:

> What is the difference between a .ltx file and a .tex file? Thanks.

.ltx file are often used to creat small example for inclusion in larger
project, like the Companion did. This is my understanding.

Merciadri Luca

unread,
Apr 13, 2010, 9:47:16 AM4/13/10
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for all your answers. Well, that is what I had thought it
was. I only use .tex, for LaTeX(2e)/TeX, but this is a matter of
taste, as I understand it.

Big thunder. Little rain.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkvEdeQACgkQM0LLzLt8MhwsrgCdFDMST1Xh3ik4c6M/3GyBKi6Z
USIAoJufaH702256vhtrtyy52rmN81IT
=3QdA
-----END PGP SIGNATURE-----

Dan Luecking

unread,
Apr 13, 2010, 1:30:03 PM4/13/10
to
On Tue, 13 Apr 2010 15:47:16 +0200, Merciadri Luca
<Luca.Me...@student.ulg.ac.be> wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Thanks for all your answers. Well, that is what I had thought it
>was. I only use .tex, for LaTeX(2e)/TeX, but this is a matter of
>taste, as I understand it.

The LaTeX project itself uses .ltx for the files that will go
into the creation of the format. These are
latex.ltx
fonttext.ltx
fontmath.ltx
hyphen.ltx
ltpatch.ltx
preload.ltx

Others that follow this convention:
carlisle/mylatex.ltx
hyperref/hylatex.ltx

If you find *.ltx files in the doc tree, it is a pretty good
bet they are latex input files (start with \documentclass)
or are latex preambles of a corespondingly named .tex file.


Dan
To reply by email, change LookInSig to luecking

Joseph Wright

unread,
Apr 13, 2010, 2:43:44 PM4/13/10
to
On Apr 13, 6:30 pm, Dan Luecking <LookIn...@uark.edu> wrote:
> The LaTeX project itself uses .ltx for the files that will go
> into the creation of the format. These are
>   latex.ltx
>   fonttext.ltx
>   fontmath.ltx
>   hyphen.ltx
>   ltpatch.ltx
>   preload.ltx

True, and at present the same idea applies to the LaTeX3 work: if you
are intrepid and build a format from the expl3/xpackage stuff
everything is extracted as .ltx files.
--
Joseph Wright

Merciadri Luca

unread,
Apr 13, 2010, 4:49:47 PM4/13/10
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph Wright <joseph...@morningstar2.co.uk> writes:

Thanks for both answers and for your respective contributions. I
learnt some new stuff!

Give a stranger one of your smiles; it might be the only sunshine he
sees to day.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkvE2OsACgkQM0LLzLt8MhzjBQCdEOj7ZEx3x5VV4ysQ8jm2I9Gp
U8gAn3e+N9nUopYdBAq5ngsshfvob1Of
=BgX/
-----END PGP SIGNATURE-----

0 new messages