Welcome!

The Forum is now on mxlinux.org and uses an encrypted (https) connection

Releases
• antiX-16, release info here -- watch the video. Torrents here
• MX-15 (antiX MX), release info here: here. Monthly update/upgrade available here.

New users

News about updates on package status for CR packages compiled for Mepis 8.5.
Message
Author
Forum Regular
Posts: 295
Age: 29
Joined: Mon Sep 13, 2010 11:18 am

Hi everyone,

I downloaded the LaTeX-Beamer package from the repositories, but I can't figure out how to use it. I can't use it in Lyx, nor in TexMaker. The package says it is to be used with pdflatex or dvips, but none of those programs are available in the repositories.

I'm a bit of a noob in TeX, so I might be missing something here. Any help is much appreciated.

Cheers :)

timkb4cq
Forum Veteran
Posts: 3510
Joined: Wed Jul 12, 2006 4:05 pm

pdflatex is a command line tool included in the package texlive-latex-base, so you likely already have it.

As I understand it, (and I don't use latex so insert grain of salt here) Beamer is a class file for the Latex language that adds new Latex commands to be used for presentations. You still write your pages in the same way as any other LaTex document, and use pdflatex to convert the LaTex file to a PDF file of the presentation.

Google for latex-beamer examples to see how to use it. The examples should make more sense to you than they do to me, since I don't know the LaTex language.
MSI 970A-G43 MB, AMD FX-6300 (six core), 16GB RAM, GeForce 730, Samsung 850 EVO 250GB SSD, Seagate Barracuda XT 3TB

Forum Regular
Posts: 295
Age: 29
Joined: Mon Sep 13, 2010 11:18 am

timkb4cq wrote:pdflatex is a command line tool included in the package texlive-latex-base, so you likely already have it.

As I understand it, (and I don't use latex so insert grain of salt here) Beamer is a class file for the Latex language that adds new Latex commands to be used for presentations. You still write your pages in the same way as any other LaTex document, and use pdflatex to convert the LaTex file to a PDF file of the presentation.

Google for latex-beamer examples to see how to use it. The examples should make more sense to you than they do to me, since I don't know the LaTex language.

Thanks for the advice. I was finally able to run the beamer class. It turned out that the file beamer.layout was not present in my isntallation of LyX, which is strange because I have 1.6.6 and that file is included since version 1.4

Anyway, I'll describe what I did so it can help other Mepis users that might run into the same problem.

There, there was a documentation file which said the following:

Code: Select all

`When you ask TEX to use a certain class or package, it usually looks for the necessary files in so-called texmftrees. These trees are simply huge directories that contain these files. By default, TEX looks for files in threedifferent texmf trees:∙ The root texmf tree, which is usually located at /usr/share/texmf/, /usr/local/texlive/texmf/,c:\texmf\, orc:\texlive\texmf\.∙ The local texmf tree, which is usually located at /usr/local/share/texmf/, /usr/local/texlive/texmf-local/c:\localtexmf\, orc:\texlive\texmf-local\.∙ Your personal texmf tree, which is usually located in your home directory at ~/texmf/ or ~/Library/texmf/.You should install the packages either in the local tree or in your personal tree, depending on whether youhave write access to the local tree. Installation in the root tree can cause problems, since an update of the whole TEX installation will replace this whole tree.Inside whatever texmf directory you have chosen, create the sub-sub-sub-directorytexmf/tex/latex/beamerand place all files of the package in this directory.`

So what I didi was uncompress the package in /usr/local/share/texmf/tex/latex/beamer.

Later, the manual said:

Code: Select all

`Finally, you need to rebuild TEX’s filename database. This is done by running the command texhash ormktexlsr (they are the same). In MiKTEX package manager and TEX Live tlmgr, there is a menu option to dothis.`

I run the texhash command as sudo, and it worked fine.

Then, I tested the package and it said that it couldt not load any beamer files. This was the output:

Code: Select all

`The layout file requested by this document,beamer.layout,is not usable. This is probably because a LaTeXclass or style file required by it is notavailable. See the Customization documentationfor more information.LyX will not be able to produce output.`

The documentation says the following:

Code: Select all

`lyx For usage of the beamer class with LYX, you have to do all of the above. You also have to make LYX awareof the file beamer.layout. This file is not part of the beamer package since it is updated and managed by theLYX development team. This means that in reasonably up-to-date LYX versions this file will already be installedand nothing needs to be done.`

So I went to the official LyX webpage and downloaded the file beamer.layout.
Then I copied that file to

Code: Select all

`/usr/share/lyx/templates`

did the texhas command again, closed Lyx and then tried to run a beamer layout file.

From /usr/share/lyx/templates

Code: Select all

`[Hernan@Inspiron1525 templates]\$ lyx beamer-conference-ornate-20min.lyx../../src/LayoutFile.cpp(278): Existing textclass beamer is redefined by /usr/share/lyx/templates/beamer.layout`

And I was able to open beamer files! :D

I hope this info is helpful to those users of Mepis that want to try out beamer in LyX.

Cheers