GeneralNo output even of a simple document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
akirika
Posts: 2
Joined: Mon Dec 27, 2010 7:43 pm

No output even of a simple document

Post by akirika »

hello all.
first time user here.
i installed miktex2.9 and LED

in LED i have


\begin{document}
hello world
\end{document}

but when i click the DVI->PDF button i get the following

START "C:\Program Files (x86)\LEd\Batches\dvipdf.bat" "C:\Users\Documents\LEdProjects" "New" C:
The system cannot find the path specified.
New.dvi -> New.pdf
**ERROR** Could not open specified DVI file: New.dvi
Output file removed.

can someone tell me how to fix this? thx

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

No output even of a simple document

Post by frabjous »

Every LaTeX file needs to have a document class specification, so your file must begin with something like \documentclass{article}, so:

Code: Select all

\documentclass{article}
\begin{document}
Hello world.
\end{document}
is fine. Without that, LaTeX would not work properly, no dvi would be created, and so there would be nothing to convert to PDF.

Next, before trying to turn the dvi into a pdf, you need to make sure you run LaTeX on the source to create the dvi first. I don't know exactly how to do that in LED, since I don't use it, but did you do that?

Also, in the future, could you name your threads with descriptive titles? Most people who come here are coming here looking for help, and so a title like this is meaningless. A title that actually describes your problem is better for attracting the attention of those who can help.
akirika
Posts: 2
Joined: Mon Dec 27, 2010 7:43 pm

Re: No output even of a simple document

Post by akirika »

i put in \documentclass{article} and still got the same error

how do i "run LaTex on the source to create the dvi first"?
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Re: No output even of a simple document

Post by torbjorn t. »

On LEds toolbar there is a red, right pointing, arrow, which will run LaTeX. The keyboard shortcut is F9.
Post Reply