Pular para o conteúdo

latex no Slackware

Responder tópico
  • Denunciar
  • Indicar

1. latex no Slackware

Enviado em 24/09/2009 - 23:55h

Bom galera, na instalação full do Slackware veio com o pacote latex, é preciso configurar algum arquivo para poder compilar o documento .tex?

Veja
$ latex --version
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea version 3.5.4
Copyright (C) 1997-2004 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright (C) 1997-2004 Free Software Foundation, Inc.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfeTeX copyright and
the GNU General Public License.
For more information about these matters, see the files
named COPYING and the pdfeTeX source.
Primary author of pdfeTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry and others.

modelo.tex
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[brazilian]{babel}

\author{SAITAM}
\date{\today}
\title{Coloque o título aqui!}

\begin{document}
\maketitle

\section{Seção}

O texto vem aqui

\end{document}

$ pdflatex modelo.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./modelo.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo))

! LaTeX Error: File `ucs.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name: (digito o nome do arquivo) e mostra
(./modelo.tex

! LaTeX Error: Two \documentclass or \documentstyle commands.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.1 \documentclass[12pt,twocolumn,a4paper]{
article}

Então qual a configuração para compilar um documento .tex (LATEX) ?

Responder tópico

2. Re: latex no Slackware

Enviado em 25/09/2009 - 14:21h

salvo engano (faz so uns 5 anos q nao uso latex)
vc roda:

$ latex arquivo.tex

e esse arquivo tem que seguir a formatação do latex, as coisas devem ter mudados, pois antes a gnt usava 'portuges' sem 'u' no babel. é bom vc dar uma buscada nos grupos de latex na internet, tem um brasileiro... q inclusive buscava compatibilidades com a abnt pra teses, etc acho q era abntex algo assim....

esses erros ai quer dizer que vc nao formatou o documento de acordo. a saida do latex é um .dvi, ai vc pode converter para .pdf , ps, txt. etc;

--> ! LaTeX Error: Two \documentclass or \documentstyle commands.
confere isso??? edita o arquivo e deixa so um comando desses.

http://lrodrigo.lncc.br/~lrodrigo/wiki9/images/4/44/Latex.apresentacao.2006.02.06.pdf
veja se te ajuda, na documentacao do latex tem uma pacotera de coisa em ingles, deve dar umas 300 paginas...

4. Re: latex no Slackware

Enviado em 26/09/2009 - 23:04h

Bom, consegui compilar o documento .tex
\documentclass[12pt,twocolumn,a4paper]{article}

%\usepackage{ucs}
%\usepackage[utf8x]{inputenc}
\usepackage[brazilian]{babel}

\author{SAITAM}
\date{\today}
\title{Coloque o título aqui!}

\begin{document}
\maketitle

\section{Seção}

O texto vem aqui

\end{document}

Observa-se, que foi necessário comentar duas linhas para o mesmo compilar sem erro no Slackare (veja no latex acima)
$ pdflatex teste.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./teste.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/portuges.ldf
(/usr/share/texmf/tex/generic/babel/babel.def)))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/latin1.def))
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf/tex/latex/hyperref/hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf/tex/latex/url/url.sty))
*hyperref using default driver hpdftex*
(/usr/share/texmf/tex/latex/hyperref/hpdftex.def
(/usr/share/texmf/tex/latex/psnfss/pifont.sty
(/usr/share/texmf/tex/latex/psnfss/upzd.fd)
(/usr/share/texmf/tex/latex/psnfss/upsy.fd)))
(/usr/share/texmf/tex/latex/psnfss/times.sty) (./teste.aux)
(/usr/share/texmf/tex/latex/psnfss/t1ptm.fd)
(/usr/share/texmf/tex/latex/hyperref/nameref.sty) (./teste.out) (./teste.out)
(./teste.toc) [1{/usr/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./teste.aux) ){/usr/share/texmf/fonts/enc/dvips/psnfss/8r.enc}</usr/share/texm
f/fonts/type1/urw/times/utmb8a.pfb></usr/share/texmf/fonts/type1/urw/times/utmr
8a.pfb>
Output written on teste.pdf (1 page, 29086 bytes).
Transcript written on teste.log.

$xpdf teste.pdf

Pesquisei um template abntex, este segue as normas ABNT?

5. Re: latex no Slackware

Enviado em 27/09/2009 - 00:14h

Eu uso um bom editor LaTeX chamado Kile. Tem ferramentas para compilação e templates.

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder