Downloaded the Beamer package, but can't use it

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

Downloaded the Beamer package, but can't use it

#1 Postby radissthor » Tue May 24, 2011 12:21 pm

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 :)
Image

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 3376
Joined: Wed Jul 12, 2006 4:05 pm

Re: Downloaded the Beamer package, but can't use it

#2 Postby timkb4cq » Tue May 24, 2011 12:54 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

User avatar
radissthor
Forum Regular
Forum Regular
Posts: 284
Age: 29
Joined: Mon Sep 13, 2010 11:18 am

Re: Downloaded the Beamer package, but can't use it

#3 Postby radissthor » Wed May 25, 2011 12:25 pm

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.

First, I downloaded the official beamer package from here.


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 texmf
trees. These trees are simply huge directories that contain these files. By default, TEX looks for files in three
different texmf trees:

∙ The root texmf tree, which is usually located at /usr/share/texmf/, /usr/local/texlive/texmf/,
c:\texmf\, or
c:\texlive\texmf\.

∙ The local texmf tree, which is usually located at /usr/local/share/texmf/, /usr/local/texlive/texmf-local/
c:\localtexmf\, or
c:\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 you
have 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-directory
texmf/tex/latex/beamer
and 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 or
mktexlsr (they are the same). In MiKTEX package manager and TEX Live tlmgr, there is a menu option to do
this.


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 LaTeX
class or style file required by it is not
available. See the Customization documentation
for 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 aware
of the file beamer.layout. This file is not part of the beamer package since it is updated and managed by the
LYX development team. This means that in reasonably up-to-date LYX versions this file will already be installed
and 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 ;)
Image


Return to “Package Status - 8.5”

Who is online

Users browsing this forum: No registered users and 2 guests