[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [AUCTeX] Editing of a beamer file if \documentclass{beamer} is absen

From: mirko.vukovic
Subject: RE: [AUCTeX] Editing of a beamer file if \documentclass{beamer} is absent?
Date: Fri, 27 Jul 2007 17:22:19 -0400

> -----Original Message-----
> From: Ralf Angeli [mailto:address@hidden 
> Sent: Friday, July 27, 2007 2:55 PM
> To: TTCA Vukovic, Mirko
> Cc: address@hidden
> Subject: Re: [AUCTeX] Editing of a beamer file if 
> \documentclass{beamer} is absent?
> * mirko vukovic (2007-07-27) writes:
> >> From: Ralf Angeli [mailto:address@hidden
> >> 
> >> * mirko vukovic (2007-07-26) writes:
> >> 
> >> > I have beamer files that I process using a "custom" format
> >> for quicker
> >> > loading.  The format pre-loads beamer.  So, my file is 
> missing the 
> >> > \documentclass{beamer} line.
> >> >
> >> > How can I tell AucTeX that this is a beamer file?
> >> 
> >> (info "(auctex)Automatic Private")
> >> 
> > I am sorry Ralf, but I fail to see the connection between these 
> > directories and how auctex can recognize my file as a beamer file.
> Assuming the thing you describe as "'custom' format" is a 
> LaTeX package or classs, you can use `M-x TeX-auto-generate 
> RET' on it and save the resulting AUCTeX style file in the 
> appropriate directory.  Then AUCTeX knows that your package 
> or class loads beamer.sty.
> --
> Ralf
I was not clear enough:

I have created a custom format file "beamtikz" from the following file using 
MikTeX's format making utility.


\usepackage{wasysym} % for diameter symbol
\usepackage{array} % for tables
\usepackage{tikz} % for drawings


I compile by beamer files by doing

Pdfetex "&beamtikz" file.tex

The preamble of file.tex is: 

%%\documentclass{beamer}  !!! Commented out
  \pgfpagesuselayout{4 on 1}[a4paper,border shrink=2.5mm,landscape]
  \setbeamercolor{background canvas}{bg=black!5}


Etc, etc...

The \documentclass command is commented out, because the format file contains 
the beamer definitions.  So AucTeX does not know that it is looking at a beamer 
file.  How do I inform it of that?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]