CentOSのRedHatでのpdflatexの使用に関する質問

CentOSのRedHatでのpdflatexの使用に関する質問

私はLinuxシステムを使用して初心者です。

私の仕事は、LaTeXを使用して文書を作成して送信できるように、ファイルをPDFファイルに変換することです。だから私はCentOSを使ってこれを試しました。私のLinuxシステムのバージョンはRedHatです。 .texファイルを.pdfに変換する方法をオンラインで見つけましたが、texliveをインストールするように求められました。だからそれが私がしたことです。

[csi2102@localhost]$ yum install -y texlive
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
  * base: data.nicehosting.co.kr
  * extras: data.nicehosting.co.kr
  * updates: data.nicehosting.co.kr
Setting up Install Process
Package texlive-2007-57.e.16_2.i686 already installed and latest version
Nothing to do

だから私はこの問題に対する解決策とrpm -qa | grep texそのコマンドの使用を提案するウェブサイトの1つを見つけました。ところで、pdflatexファイルが見つかりません。

[csi2102@localhost]$ rpm -qa | grep tex
texlive-texmf-errata-dvips-2007.7.1.e16.noarch
texlive-2007.57.e16_2.i686
texlive-texmf-errata-fonts-2007.7.1e16.noarch
texlive-texmf-2007-38.e16.noarch
texlive-texmf-fonts-2007-38.e16.noarch
texlive-texmf-errata-2007-7.1.e16.noarch
texlive-texmf-dvips-2007-38.e16.noarch
[csi2102@localhost]$ 

命令を入力するとこんな感じになります。

これは、pdflatex、latex、またはpdftexコマンドを使用しようとしたときに表示される結果です。

[csi2102@localhost]$ latex homework
bash: latex: command not found
[csi2102@localhost]$ pdflatex homework
bash: pdflatex: command not found
[csi2102@localhost]$ pdftex homework
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./homework1.tex
!Undefined control sequence.
1.7 \documentclass
                   [pdftex,11pt] {article}
?

他の人の言葉とは異なり、なぜ私のシステムはそれを認識しないのか理解できません。

PSああ、もし備えて.texファイルを添付しましたが、ファイルに私が書いた内容が問題を引き起こしているのか気になります。

\documentclass[pdftex,11pt] {article}
\usepackage[utf8] {inputenc}

\usepackage{geometry}
\gemoetry{a4paper}

\usepackage[dvips]{graphicx}
\usepackage{pslatex}

\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\lhead{}\chead{}\rhead{Introduction to Engineering Design}
\lfoot{}\cfoot{\thepage}\rfoot{}

\usepacakge{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape}

\title{What is \LaTex ?}
\author{2013147549 Geun Ho Lee}
\date{}

\begin{document}
\maketitle

 LaTex is a document preparation system that is most often used for medium-to-large technical or scientific documents. It is not, however, a word processor. It is based on the idea that it would be more efficient for the authors to write their documents and let the document designers to worry about the document design. LaTex consists of several features ranging from typesetting journal articles, technical reports, books, and slide presentations to automatically generating bibliographies and indexes.

 LaTex is based on the TeX typesetting language or certain extensions of it. LaTex was first developed in 1985 by Leslie Lamport and is now maintained and developed by the LaTex3 Project.

 (source: http://latex-project.org/intro.html)

\end{document}

ベストアンサー1

あなたは何かを見逃しています。これはFedoraの場合ですが、CentOSでも同じパターンを維持する必要があります。

> yum whatprovides latex

Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit, verify
texlive-latex-2007-70.fc17.x86_64 : The LaTeX front end for the TeX text formatting system
Repo        : fedora
Matched from:
Filename    : /usr/bin/latex

texlive-latexあなたのリストはどこにもありません。同じパッケージが言及されているのでyum whatprovides pdflatex...

> yum install texlive-latex

おすすめ記事