Ho un piccolo problema con LaTex.Ho scritto questo pezzo di codice :
\documentclass{article}
\begin{document}
Questa \`e una prova.
\end{document}
Come output dovrei ottenere la stringa : Questa è una prova.
Invece mi viene fuori una cosa del genere : article document Questa è una prova.
Durante la compilazione (ho provato diversi programmi TeXnicCenter,winedit,LED,Context) mi genera questo errore qui :
! Undefined control sequence.
1.1 documentclass
{article}
?
Qualcuno sa dirmi il perxhè?
Grazie in anticipo.
Problema LaTeX
La prima cosa che mi viene in mente: che programma hai usato per compilare il tuo file? Se usi "tex" o qualcosa di simile, può dare problemi perché quello che hai scritto è un documento LAtex (LaTeX è un insieme di "migliorie" al tex, un po' come il c++ con il c per intenderci). Invece dovresti usare uno tra "latex" e "pdflatex".
Dimmi se ho indovinato...
Dimmi se ho indovinato...
--federico
[tex]\frac1{\sqrt2}\bigl(\left|\text{loves me}\right\rangle+\left|\text{loves me not}\right\rangle\bigr)[/tex]
[tex]\frac1{\sqrt2}\bigl(\left|\text{loves me}\right\rangle+\left|\text{loves me not}\right\rangle\bigr)[/tex]
-
- Messaggi: 6
- Iscritto il: 13 mag 2006, 14:07
Sto usando Miktex e WinEdit..
Compilando con PDFLATEX o LATEX mi genera ugualmente un errore..riporto qui tutto quello che mi viene fuori compilando:
C:\texmf\miktex\bin>latex prova.tex
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
"etex.exe" --ini --interaction=nonstopmode --halt-on-error --alias latex *latex.
ltx \dump
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (INITEX)
entering extended mode
(C:\texmf\tex\latex\base\latex.ltx (C:\texmf\tex\latex\00miktex\texsys.cfg)
./texsys.aux found
\@currdir set to: ./.
Assuming \openin and \input
have the same search path.
Defining UNIX/DOS style filename parser.
catcodes, registers, compatibility for TeX 2, parameters,
LaTeX2e <2003>
hacks, control, par, spacing, files, font encodings, lengths,
====================================
Local config file fonttext.cfg used
====================================
(C:\texmf\tex\latex\00miktex\fonttext.cfg (C:\texmf\tex\latex\base\fonttext.ltx
=== Don't modify this file, use a .cfg file instead ===
(C:\texmf\tex\latex\base\omlenc.def) (C:\texmf\tex\latex\base\t1enc.def)
(C:\texmf\tex\latex\base\ot1enc.def) (C:\texmf\tex\latex\base\omsenc.def)
(C:\texmf\tex\latex\base\t1cmr.fd) (C:\texmf\tex\latex\base\ot1cmr.fd)
(C:\texmf\tex\latex\base\ot1cmss.fd) (C:\texmf\tex\latex\base\ot1cmtt.fd)))
====================================
Local config file fontmath.cfg used
====================================
(C:\texmf\tex\latex\00miktex\fontmath.cfg (C:\texmf\tex\latex\base\fontmath.ltx
=== Don't modify this file, use a .cfg file instead ===
(C:\texmf\tex\latex\base\omlcmm.fd) (C:\texmf\tex\latex\base\omscmsy.fd)
(C:\texmf\tex\latex\base\omxcmex.fd) (C:\texmf\tex\latex\base\ucmr.fd)))
====================================
Local config file preload.cfg used
=====================================
(C:\texmf\tex\latex\base\preload.cfg (C:\texmf\tex\latex\base\preload.ltx))
page nos., x-ref, environments, center, verbatim, math definitions, boxes,
title, sectioning, contents, floats, footnotes, index, bibliography, output,
===========================================
Local configuration file hyphen.cfg used
===========================================
(C:\texmf\tex\generic\babel\hyphen.cfg
! I can't find file `ithyph.tex'.
<to>
\relax
l.357 \repeat
Please type another input file name
! Emergency stop.
<to>
\relax
l.357 \repeat
No pages of output.
Transcript written on latex.log.
initexmf: etex.exe failed on "latex.ltx".
cannot make latex.efmt
I can't find the default format file!
Ci capite qualcosa?Io sinceramente no
Compilando con PDFLATEX o LATEX mi genera ugualmente un errore..riporto qui tutto quello che mi viene fuori compilando:
C:\texmf\miktex\bin>latex prova.tex
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
"etex.exe" --ini --interaction=nonstopmode --halt-on-error --alias latex *latex.
ltx \dump
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (INITEX)
entering extended mode
(C:\texmf\tex\latex\base\latex.ltx (C:\texmf\tex\latex\00miktex\texsys.cfg)
./texsys.aux found
\@currdir set to: ./.
Assuming \openin and \input
have the same search path.
Defining UNIX/DOS style filename parser.
catcodes, registers, compatibility for TeX 2, parameters,
LaTeX2e <2003>
hacks, control, par, spacing, files, font encodings, lengths,
====================================
Local config file fonttext.cfg used
====================================
(C:\texmf\tex\latex\00miktex\fonttext.cfg (C:\texmf\tex\latex\base\fonttext.ltx
=== Don't modify this file, use a .cfg file instead ===
(C:\texmf\tex\latex\base\omlenc.def) (C:\texmf\tex\latex\base\t1enc.def)
(C:\texmf\tex\latex\base\ot1enc.def) (C:\texmf\tex\latex\base\omsenc.def)
(C:\texmf\tex\latex\base\t1cmr.fd) (C:\texmf\tex\latex\base\ot1cmr.fd)
(C:\texmf\tex\latex\base\ot1cmss.fd) (C:\texmf\tex\latex\base\ot1cmtt.fd)))
====================================
Local config file fontmath.cfg used
====================================
(C:\texmf\tex\latex\00miktex\fontmath.cfg (C:\texmf\tex\latex\base\fontmath.ltx
=== Don't modify this file, use a .cfg file instead ===
(C:\texmf\tex\latex\base\omlcmm.fd) (C:\texmf\tex\latex\base\omscmsy.fd)
(C:\texmf\tex\latex\base\omxcmex.fd) (C:\texmf\tex\latex\base\ucmr.fd)))
====================================
Local config file preload.cfg used
=====================================
(C:\texmf\tex\latex\base\preload.cfg (C:\texmf\tex\latex\base\preload.ltx))
page nos., x-ref, environments, center, verbatim, math definitions, boxes,
title, sectioning, contents, floats, footnotes, index, bibliography, output,
===========================================
Local configuration file hyphen.cfg used
===========================================
(C:\texmf\tex\generic\babel\hyphen.cfg
! I can't find file `ithyph.tex'.
<to>
\relax
l.357 \repeat
Please type another input file name
! Emergency stop.
<to>
\relax
l.357 \repeat
No pages of output.
Transcript written on latex.log.
initexmf: etex.exe failed on "latex.ltx".
cannot make latex.efmt
I can't find the default format file!
Ci capite qualcosa?Io sinceramente no
Ti consiglio di usare WinEdt anziché WinEdit.
Io uso MiKTeX e WinEdt. Ho provato a compilare il codice:
Il tuo problema può dipendere dal fatto che usi WinEdit piuttosto che WinEdt, oppure hai installato MiKTeX in una directory diversa da quella prevista nell’installazione. In questo caso, disinstalla MiKTeX prima di reinstallarlo nella cartella standard.
Una domanda: hai installato MiKTeX oppure Basic MiKTeX?
Io uso MiKTeX e WinEdt. Ho provato a compilare il codice:
e ottengo l’output normale: “Questa è una prova”.\documentclass{article}
\begin{document}
Questa \`e una prova.
\end{document}
Il tuo problema può dipendere dal fatto che usi WinEdit piuttosto che WinEdt, oppure hai installato MiKTeX in una directory diversa da quella prevista nell’installazione. In questo caso, disinstalla MiKTeX prima di reinstallarlo nella cartella standard.
Una domanda: hai installato MiKTeX oppure Basic MiKTeX?