From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Malone Subject: Re: Re: Org-beamer problems Date: Wed, 19 Jan 2011 17:02:32 -0500 Message-ID: References: <87wrm06ebv.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2085086232==" Return-path: Received: from [140.186.70.92] (port=48939 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfgbS-0000jg-Pj for emacs-orgmode@gnu.org; Wed, 19 Jan 2011 17:34:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pfg6s-0003II-2N for emacs-orgmode@gnu.org; Wed, 19 Jan 2011 17:02:37 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:58110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pfg6r-0003Hw-PU for emacs-orgmode@gnu.org; Wed, 19 Jan 2011 17:02:33 -0500 Received: by iyj17 with SMTP id 17so1426600iyj.0 for ; Wed, 19 Jan 2011 14:02:32 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bill Moran Cc: emacs-orgmode@gnu.org --===============2085086232== Content-Type: multipart/alternative; boundary=90e6ba5bc92387025a049a3a2c84 --90e6ba5bc92387025a049a3a2c84 Content-Type: text/plain; charset=ISO-8859-1 Hi Bill, I would try upgrading to a newer version of =org-mode= - a lot of things have been improved since the writing of the version you have. By default, in the newer versions, the \maketitle command should be added to the beginning of your .tex file automatically. Upgrade and see if this fixes things. Chris On Wed, Jan 19, 2011 at 4:34 PM, Bill Moran wrote: > HI Eric, John, Jeff and Birch > > > Eric S Fraga ucl.ac.uk> writes: > > > > > My immediate response would be to ask why you aren't using \maketitle > > given that the command is beamer-aware? That is, \maketitle will create > > a title page whose format is defined by the beamer theme you have > > selected. Otherwise, you could always customise > > =org-export-latex-title-command= to nothing and use direct latex code to > > do what you want: > > > > --8<---------------cut here---------------start------------->8--- > > #+begin_latex > > \begin{frame} \titlepage \end{frame} > > #+end_latex > > --8<---------------cut here---------------end--------------->8--- > > > > I've not tried this. > > > > > 2. \alert command does not work - even with the additions to .emacs > > > suggested here: > > > http://www.mail-archive.com/emacs-orgmode gnu.org/msg21507.html > > > (And there are no errors in running the .emacs file) > > > Always the @ symbol appears in the latex created from org as @. > > > > Can you tell us exactly what you have done to customise the relevant > > variables and where you have done these customisations? Difficult to > > help without this information unfortunately. While we're at it, org and > > emacs version information is also helpful. > > > > > > > > > Thanks for all of your responses and for taking the time to help me. I'll > try to > answer your questions. As far as possible I use the "stock" ubuntu > (maverick - > 10.10) repositories for emacs and its associated software. So I'm using > emacs > 23.1.1 and org-mode 6.36c. The version of beamer I'm using, as described in > the > repositories, is latex-beamer 3.07-2ubuntu1. I am aware that there are > more > recent versions available - particularly of org-mode - but was trying to > keep > things simple. > > Let me also say that my aim was to arrive at an understanding of how to > use > org-mode for slide creation - since I do a lot of that - rather than to > compose > a specific set of slides. I realise that I could use direct latex code to > solve > the problems but that wasn't the point of the exercise. > > I've read more since I sent the email and now realise that the issues I > brought > up have been discussed earlier and where I can I've tried to use the > proposed > solutions. In particular I have this in my .emacs: > > > (setq org-emphasis-alist (quote (("*" bold "" "") > ("/" italic "" "") > ("_" underline " style=\"text-decoration:underline;\">" "") > ("=" org-code "" "" verbatim) > ("~" org-verbatim "" "" > verbatim) > ("+" (:strike-through t) "" "") > ("@" org-warning "" ""))) > org-export-latex-emphasis-alist (quote > (("*" "\\textbf{%s}" nil) > ("/" "\\emph{%s}" nil) > ("_" "\\underline{%s}" nil) > ("+" "\\texttt{%s}" nil) > ("=" "\\verb=%s=" nil) > ("~" "\\verb~%s~" t) > ("@" "\\alert{%s}" nil))) > ) > > from a solution to the @ problem proposed by Eric somewhere. And I > understand > that I can use \maketitle normally to produce a title page in beamer - just > tried on a hand-crafted (in emacs) latex-beamer file using my set up. > > To keep this email as brief as possible, let's take this snippet (verbatim) > of > an example from Eric: > > ----------------------------------start----------------------------------- > #+TITLE: Writing Beamer presentations in org-mode > #+AUTHOR: Eric S Fraga > #+EMAIL: e.fraga@ucl.ac.uk > #+DATE: 2010-03-30 Tue > #+DESCRIPTION: > #+KEYWORDS: > #+LANGUAGE: en > #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t > #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc > #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 > path:http://orgmode.org/org-info.js > #+EXPORT_SELECT_TAGS: export > #+EXPORT_EXCLUDE_TAGS: noexport > #+LINK_UP: > #+LINK_HOME: > > #+startup: oddeven > > #+startup: beamer > #+LaTeX_CLASS: beamer > #+LaTeX_CLASS_OPTIONS: [bigger] > #+latex_header: \mode{\usetheme{Madrid}} > #+BEAMER_FRAME_LEVEL: 2 > > #+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) > %4BEAMER_col(Col) > %7BEAMER_extra(Extra) > > * Methodology > > ** A simple slide > This slide consists of some text with a number of bullet points: > - the first, very @important@, point! > - the previous point shows the use of the special markup which > translates to the Beamer specific /alert/ command for highlighting > text. > The above list could be numbered or any other type of list and may > include sub-lists. > ---------------------------end---------------------------------------- > > When I do "C-c C-e p" to create the pdf file I get 3 slides. The first is a > title page but has no title - only the date. The second is an outline (toc) > slide as expected and the third is again as expected except that > @important@ is > not rendered as \alert{important}. > > > The latex created by "C-c C-e l" is > > ---------------------------start---------------------------------------- > % Created 2011-01-20 Thu 08:18 > \documentclass[bigger]{beamer} > > \mode<{{{beamermode}}}> > > \usetheme{{{{beamertheme}}}} > > \usecolortheme{{{{beamercolortheme}}}} > > \beamertemplateballitem > > \setbeameroption{show notes} > \usepackage[utf8]{inputenc} > > \usepackage[T1]{fontenc} > > \usepackage{hyperref} > > \usepackage{color} > \usepackage{listings} > \lstset{numbers=none,language=[ISO]C++,tabsize=4, > frame=single, > basicstyle=\small, > showspaces=false,showstringspaces=false, > showtabs=false, > keywordstyle=\color{blue}\bfseries, > commentstyle=\color{red}, > } > > \usepackage{verbatim} > > \institute{{{{beamerinstitute}}}} > > \subject{{{{beamersubject}}}} > > \usepackage[utf8]{inputenc} > \usepackage[T1]{fontenc} > \usepackage{fixltx2e} > \usepackage{graphicx} > \usepackage{longtable} > \usepackage{float} > \usepackage{wrapfig} > \usepackage{soul} > \usepackage{t1enc} > \usepackage{textcomp} > \usepackage{marvosym} > \usepackage{wasysym} > \usepackage{latexsym} > \usepackage{amssymb} > \usepackage{hyperref} > \tolerance=1000 > \mode{\usetheme{Madrid}} > \providecommand{\alert}[1]{\textbf{#1}} > > \title{Writing Beamer presentations in org-mode} > \author{Eric S Fraga} > \date{2010-03-30 Tue} > > \begin{document} > > \maketitle > > \begin{frame} > \frametitle{Outline} > \setcounter{tocdepth}{3} > \tableofcontents > \end{frame} > > > > > \section{Methodology} > \label{sec-1} > \begin{frame}[fragile]\frametitle{A simple slide} > \label{sec-1_1} > > This slide consists of some text with a number of bullet points: > \begin{itemize} > \item the first, very @important@, point! > \item the previous point shows the use of the special markup which > translates to the Beamer specific \emph{alert} command for highlighting > text. > \end{itemize} > > The above list could be numbered or any other type of list and may > include sub-lists. > \end{frame} > > \end{document} > ----------------------------------end----------------------------------- > > and running pdflatex on this produces an identical result to "C-c C-e p" on > the > org file - as it should. > > > > I'm not sure I've answered all of your questions but perhaps this is enough > to > suggest a solution or refine the questions. > > Many thanks for your time! > > Bill > > > > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --90e6ba5bc92387025a049a3a2c84 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Bill,

I would try upgrading to a newer version of =3Dorg-mode=3D = - a lot of things have been improved since the writing of the version you h= ave.=A0 By default, in the newer versions, the \maketitle command should be= added to the beginning of your .tex file automatically.=A0 Upgrade and see= if this fixes things.

Chris

On Wed, Jan 19, 2011 at 4:34 PM= , Bill Moran <= bill1moran@gmail.com> wrote:
HI Eric, John, Jeff and Birch


Eric S Fraga <e.fraga <at> ucl.ac.uk> writes:

>
> My immediate response would be to ask why you aren't using \maketi= tle
> given that the command is beamer-aware? =A0That is, \maketitle will cr= eate
> a title page whose format is defined by the beamer theme you have
> selected. =A0Otherwise, you could always customise
> =3Dorg-export-latex-title-command=3D to nothing and use direct latex c= ode to
> do what you want:
>
> --8<---------------cut here---------------start------------->8--= -
> #+begin_latex
> \begin{frame} \titlepage \end{frame}
> #+end_latex
> --8<---------------cut here---------------end--------------->8--= -
>
> I've not tried this.
>
> > 2. \alert command does not work - even with the additions to .ema= cs
> > suggested here:
> > =A0http://www.mail-archive.com/emacs-orgmode <at> gnu.org/msg21507.html<= /a>
> > (And there are no errors in running the .emacs file)
> > Always the @ symbol appears in the latex created from org as @. >
> Can you tell us exactly what you have done to customise the relevant > variables and where you have done these customisations? =A0Difficult t= o
> help without this information unfortunately. =A0While we're at it,= org and
> emacs version information is also helpful.
>

>



Thanks for all of your responses and for taking the time to help me. I'= ll try to
answer your questions. As far as possible I =A0use the "stock" ub= untu (maverick -
10.10) repositories for emacs and its associated software. So I'm using= emacs
23.1.1 and org-mode 6.36c. The version of beamer I'm using, as describe= d in the
repositories, is latex-beamer 3.07-2ubuntu1. I am aware =A0that there are m= ore
recent versions available =A0- particularly of org-mode - but was trying to= keep
things simple.

Let me also say that my aim was to arrive at an understanding of =A0how to = use
org-mode for slide creation - since I do a lot of that - rather than to com= pose
a specific set of slides. I realise that I could use direct latex code to s= olve
the problems but that wasn't the point of the exercise.

I've read more since I sent the email and now realise that the issues I= brought
up have been discussed earlier and where I can I've tried to use the pr= oposed
solutions. In particular I have this in my .emacs:


(setq org-emphasis-alist (quote (("*" bold "<b>" = "</b>")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("/&q= uot; italic "<i>" "</i>")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("_&q= uot; underline "<span style=3D\"text-decoration:underline;\&qu= ot;>" "</span>")
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("=3D= " org-code "<code>" "</code>" verbatim= )
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("~&q= uot; org-verbatim "<code>" "</code>" verbat= im)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("+&q= uot; (:strike-through t) "<del>" "</del>")<= br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ("@&q= uot; org-warning "<b>" "</b>")))
=A0 =A0 =A0org-export-latex-emphasis-alist (quote
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 (("*" "\\textbf{%s}" nil)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0("/" "\\emph{%s}" nil)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0("_" "\\underline{%s}" nil)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0("+" "\\texttt{%s}" nil)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0("=3D" "\\verb=3D%s=3D" nil)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0("~" "\\verb~%s~" t)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0("@" "\\alert{%s}" nil)))
=A0 =A0 =A0)

from a solution to the @ problem proposed by Eric somewhere. And I understa= nd
that I can use \maketitle normally to produce a title page in beamer - just=
tried on a hand-crafted (in emacs) =A0latex-beamer file using my set up.
To keep this email as brief as possible, let's take this snippet (verba= tim) of
an =A0example from Eric:

----------------------------------start-----------------------------------<= br> #+TITLE: =A0 =A0 Writing Beamer presentations in org-mode
#+AUTHOR: =A0 =A0Eric S Fraga
#+EMAIL: =A0 =A0
e.fraga@ucl.ac.uk=
#+DATE: =A0 =A0 =A02010-03-30 Tue
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: =A0en
#+OPTIONS: =A0 H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: =A0 TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc<= br> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
path:http://or= gmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:

#+startup: oddeven

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [bigger]
#+latex_header: \mode<beamer>{\usetheme{Madrid}}
#+BEAMER_FRAME_LEVEL: 2

#+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(C= ol)
%7BEAMER_extra(Extra)

* Methodology

** A simple slide
This slide consists of some text with a number of bullet points:
- the first, very @important@, point!
- the previous point shows the use of the special markup which
=A0translates to the Beamer specific /alert/ command for highlighting
=A0text.
The above list could be numbered or any other type of list and may
include sub-lists.
---------------------------end----------------------------------------

When I do "C-c C-e p" to create the pdf file I get 3 slides. The = first is a
title page but has no title - only the date. The second is an outline (toc)=
slide as expected and the third is again as expected except that @important= @ is
not rendered as \alert{important}.


The latex created =A0by "C-c C-e l" is

---------------------------start---------------------------------------- % Created 2011-01-20 Thu 08:18
\documentclass[bigger]{beamer}

=A0 =A0 =A0\mode<{{{beamermode}}}>

=A0 =A0 =A0\usetheme{{{{beamertheme}}}}

=A0 =A0 =A0\usecolortheme{{{{beamercolortheme}}}}

=A0 =A0 =A0\beamertemplateballitem

=A0 =A0 =A0\setbeameroption{show notes}
=A0 =A0 =A0\usepackage[utf8]{inputenc}

=A0 =A0 =A0\usepackage[T1]{fontenc}

=A0 =A0 =A0\usepackage{hyperref}

=A0 =A0 =A0\usepackage{color}
=A0 =A0 =A0\usepackage{listings}
=A0 =A0 =A0\lstset{numbers=3Dnone,language=3D[ISO]C++,tabsize=3D4,
=A0frame=3Dsingle,
=A0basicstyle=3D\small,
=A0showspaces=3Dfalse,showstringspaces=3Dfalse,
=A0showtabs=3Dfalse,
=A0keywordstyle=3D\color{blue}\bfseries,
=A0commentstyle=3D\color{red},
=A0}

=A0 =A0 =A0\usepackage{verbatim}

=A0 =A0 =A0\institute{{{{beamerinstitute}}}}

=A0 =A0 =A0 \subject{{{{beamersubject}}}}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{t1enc}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=3D1000
\mode<beamer>{\usetheme{Madrid}}
\providecommand{\alert}[1]{\textbf{#1}}

\title{Writing Beamer presentations in org-mode}
\author{Eric S Fraga}
\date{2010-03-30 Tue}

\begin{document}

\maketitle

\begin{frame}
\frametitle{Outline}
\setcounter{tocdepth}{3}
\tableofcontents
\end{frame}




\section{Methodology}
\label{sec-1}
\begin{frame}[fragile]\frametitle{A simple slide}
\label{sec-1_1}

This slide consists of some text with a number of bullet points:
\begin{itemize}
\item the first, very @important@, point!
\item the previous point shows the use of the special markup which
=A0translates to the Beamer specific \emph{alert} command for highlighting=
=A0text.
\end{itemize}

The above list could be numbered or any other type of list and may
include sub-lists.
\end{frame}

\end{document}
----------------------------------end-----------------------------------
and running pdflatex on this produces an identical result to "C-c C-e = p" on the
org file - as it should.



I'm not sure I've answered all of your questions but perhaps this i= s enough to
suggest a solution or refine the questions.

Many thanks for your time!

Bill








_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--90e6ba5bc92387025a049a3a2c84-- --===============2085086232== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2085086232==--