TeX broken in Hardy?

Asked by Fred

Binary package hint: texlive

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

ii tex-common 1.10 common infrastructure for building and insta
ii texlive-base 2007-13 TeX Live: Essential programs and files
ii texlive-base-bin 2007.dfsg.1-2 TeX Live: Essential binaries
ii texlive-common 2007-13 TeX Live: Base component
ii texlive-doc-base 2007-3 TeX Live: Base documentation
ii texlive-fonts-recommended 2007-13 TeX Live: Recommended fonts
ii texlive-latex-base 2007-13 TeX Live: Basic LaTeX packages
ii texlive-latex-recommended 2007-13 TeX Live: LaTeX recommended packages

I think TeX is broken in Hardy Heron.

$ pdftex noob.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./noob.tex
! Undefined control sequence.
l.1 \documentclass
                  {article}
?
! Undefined control sequence.
l.2 \begin
          {document}
?
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] )</usr/share/texmf-texli
ve/fonts/type1/bluesky/cm/cmr10.pfb>
Output written on noob.pdf (1 page, 7050 bytes).
Transcript written on noob.log.

--------------

$ cat noob.log
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdftex 2008.1.20) 29 FEB 2008 18:29
entering extended mode
 %&-line parsing enabled.
**noob.tex
(./noob.tex
! Undefined control sequence.
l.1 \documentclass
                  {article}
?
! Undefined control sequence.
l.2 \begin
          {document}
?
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] )</usr/share/texmf-texli
ve/fonts/type1/bluesky/cm/cmr10.pfb>
Output written on noob.pdf (1 page, 7050 bytes).
PDF statistics:
 10 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

---

$ cat noob.tex
\documentclass{article}
\begin{document}
  Hello, world!
\end{document}

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu texlive-base Edit question
Assignee:
No assignee Edit question
Solved by:
Ralph Janke
Solved:
Last query:
Last reply:

This question was originally filed as bug #197047.

Revision history for this message
Fred (eldmannen+launchpad) said :
#1
Revision history for this message
Fred (eldmannen+launchpad) said :
#2
Revision history for this message
Ralph Janke (txwikinger) said :
#3

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs

Revision history for this message
Ralph Janke (txwikinger) said :
#4

Thanks for your question.

The document you have shown is not a pure TeX document, but in fact builds on the LaTeX macros. pdftex expects a TeX document without LaTeX macros. If you run

latex noob.tex

everything works fine. The right command is "latex"

I hope this helps.

Revision history for this message
Fred (eldmannen+launchpad) said :
#5

But I am pretty sure that I have used 'pdftex' in Gutsy and it worked...

Now that I use 'latex' it works, but it spits out a .dvi file, but I want a .pdf file, not a .dvi file.

Revision history for this message
Fred (eldmannen+launchpad) said :
#6

Okay, now I did "dvipdf noob.dvi" and I got a .pdf file.
Great...

But cant I get a .tex -> .pdf directly without first make a .dvi?
I think I've done it before with 'pdftex'...

Revision history for this message
Best Ralph Janke (txwikinger) said :
#7

It does not work with gutsy either.

However, you can use pdflatex for what you try to do.

Hope this helps

Revision history for this message
Fred (eldmannen+launchpad) said :
#8

Oh!
It's all my fault!

Before, I did use "pdflatex" but then later on, I got the commands mixed up used "pdftex" instead and thought it was broken, and were wondering why it didn't work!

Now when I use 'pdflatex' (as I should have, not 'pdftex') it all works. I am so dumb! :D

Thank you!

I don't know if I can get off-topic, but whats the difference between TeX and LaTeX? Which should I use? And can I do same stuff in TeX thats possible with LaTeX?

Revision history for this message
Fred (eldmannen+launchpad) said :
#9

Thanks Ralph Janke, that solved my question.

Revision history for this message
Ralph Janke (txwikinger) said :
#10

TeX is the original set of (macro-)commands that do the kerning and setting etc. LaTeX is a set of macros using the TeX commands to make it easier for the user to write fast good documents. LaTeX and additional macro-packages (or libraries) i.e style packages allow you basically to re-use layouts, formats, and functions like referencing, tables of contents etc. that you would have to write yourself if you would use pure TeX.