Skip to content

Install

w2ak edited this page Jan 18, 2017 · 4 revisions

Install the polytechnique-beamer package

Dependencies

You need a LaTeX distribution installed, with the following packages :

  • calc: allows us to do arithmetic operations on length
  • ifthen: allows us to do logic operations
  • graphicx: allows us to use pictures, etc.
  • geometry: allows us to control the geometry of the pages
  • xcolor: allows us to create and mix colors
  • xargs: allows us to create fancy commands and shortcuts for you

To install LaTeX, depending on your system you should :

  • linux: sudo apt-get install texlive-full
  • windows: install MiKTeX and do the full install
  • macOS: install MacTeX and do the full install

Install the package

The dependencies should be installed, you just have to install the polytechnique-beamer package. Depending on your system you have to put the source folder at the right location, then update the database. see:Google for now

Automatic install

Launch the installation script (in the install/ folder) corresponding to your OS. You have to be administrator.

install/unix.sh
install/windows.bat

This will automatically install the fonts and the source files in the right folders.

Manual install (broken auto install)

First you need to figure out where is your texmf folder.

  • On unix and many windows install, you can open a terminal and run kpsewhich -var-value=TEXMFLOCAL. It will give you the path to texmf.
  • On other windows installs, you can use this forum to find the CommonData path or execute the same command as in unix in a terminal. A terminal can be launched by pressing Win+R then typing cmd.

Then you need to create the two folders :

  • texmf/tex/latex/beamerx for the source files
  • texmf/fonts/truetype for the font files

Once this is done, copy the content of the source/ folder to texmf/tex/latex/beamerx/, and the content of the fonts/ folder to texmf/fonts/truetype/. Then the tree in you texmf folder should look like

texmf
├── fonts
│   └── truetype
│       ├── DroidSerif
│       │   ├── DroidSerif-BoldItalic.ttf
│       │   ├── DroidSerif-Bold.ttf
│       │   ├── DroidSerif-Italic.ttf
│       │   └── DroidSerif.ttf
│       ├── Muli
│       │   ├── Muli-BoldItalic.ttf
│       │   ├── Muli-Bold.ttf
│       │   ├── Muli-Italic.ttf
│       │   └── Muli-Regular.ttf
│       └── RobotoMono
│           ├── RobotoMono-BoldItalic.ttf
│           ├── RobotoMono-Bold.ttf
│           ├── RobotoMono-Italic.ttf
│           └── RobotoMono-Regular.ttf
└── tex
    └── latex
        └── beamerx
            ├── beamerxarmes.pdf
            ├── beamerxbackground.jpg
            ├── beamerxfiletcourt.pdf
            ├── beamerxlogo.pdf
            ├── beamerx.sty
            ├── beamerxx.pdf
            ├── pei.jpg
            └── welcome.jpg

Finally, you need to update your TEXMF tree. On unix, this is done by sudo texhash or sudo mktexlsr depending on your distribution. On windows, you can refer to the MiKTeX documentation.