Re: [O] missing frame title using org beamer export

2015-12-02 Thread Jinli Feng
On Wed, Dec 2, 2015 at 8:19 AM, Eric S Fraga  wrote:

> On Wednesday,  2 Dec 2015 at 06:42, mypostgtd wrote:
> > - issue: org mode beamer export ignored all frame titles
> >
> > I've tried searching online for couple of hours, but couldn't find a
> solution.
> > Can someone please advise?
>
> How did you actually export the file to beamer?  Your LaTeX file seems
> to be the result of a LaTeX export, not beamer.  Your org file exports
> just fine for me.
>

Eric,

Thanks for the rely. I used "C-c C-e l p" to export the file. For some
reason "C-c C-e p" no longer works in orgmode v8.3. I'm yet to figure out
how to bind that key directly to pdf output. Is this the same as how you
exported the file?

> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-359-g6b2c38
>


Re: [O] missing frame title using org beamer export

2015-12-02 Thread Jinli Feng
On Wed, Dec 2, 2015 at 11:21 AM, John Hendy <jw.he...@gmail.com> wrote:

> On Wed, Dec 2, 2015 at 9:46 AM, Jinli Feng <post...@gmail.com> wrote:
> >
> >
> > On Wed, Dec 2, 2015 at 8:19 AM, Eric S Fraga <e.fr...@ucl.ac.uk> wrote:
> >>
> >> On Wednesday,  2 Dec 2015 at 06:42, mypostgtd wrote:
> >> > - issue: org mode beamer export ignored all frame titles
> >> >
> >> > I've tried searching online for couple of hours, but couldn't find a
> >> > solution.
> >> > Can someone please advise?
> >>
> >> How did you actually export the file to beamer?  Your LaTeX file seems
> >> to be the result of a LaTeX export, not beamer.  Your org file exports
> >> just fine for me.
> >
> >
> > Eric,
> >
> > Thanks for the rely. I used "C-c C-e l p" to export the file. For some
> > reason "C-c C-e p" no longer works in orgmode v8.3. I'm yet to figure out
> > how to bind that key directly to pdf output. Is this the same as how you
> > exported the file?
>
> As you may well be aware, Org changed a lot from 7.x -> 8.x. Have you
> been through the various upgrade documents out there? This will be one
> of many "surprises" you'll run into if you don't take a look.
> - Official upgrade notes: http://orgmode.org/worg/org-8.0.html
> - Walkthrough attempt I made:
>
> http://jwhendy.blogspot.com/2013/03/migrating-to-new-org-mode-exporter-org.html
> - Beamer for Org 8.x:
> http://orgmode.org/worg/exporters/beamer/ox-beamer.html
>
> In particular, I'm guessing you don't have the beamer class defined
> and aren't aware of =C-c C-e l P= (note capital P), which is the
> beamer export function now. It's just sufficient to just define the
> class as beamer and export to LaTeX.
>
> Quick answer: go to the second link above and copy that first code
> block into your .emacs. Reload your config (or just restart emacs),
> and do =C-c C-e l P=. See if that helps.
>

Thanks, John! I added the beamer definition and used the Upper case P which
almost did the trick, in the sense that all the headings are properly
exported and the frames look as expected. However, the pdf file is missing
the title and author, with only the date showing on the front page.  I
don't see anything obviously wrong in the tex file:

\author{dummy}
\date{\today}
\title{Test Frame title}
\hypersetup{
 pdfauthor={dummy},
 pdftitle={Test Frame title},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 24.3.2 (Org mode 8.3.2)},
 pdflang={English}}
\begin{document}

\maketitle
\begin{frame}{Outline}
\tableofcontents
\end{frame}

Any idea why?

btw. I searched for hours about migrating from v7 to v8 of orgmode, but
didn't come upon your blog. It could've saved me so much headache! Maybe we
should add yours as a link on the worg page? I've avoided the migration as
per the rule "not breaking what works", but it's time to take the plunge
and living through the growing pain :) Thanks for the help!


> Hope that gets you pointed in the right direction!
>
>
> John
>
>
> >>
> >> --
> >> : Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-359-g6b2c38
> >
> >
>


Re: [O] missing frame title using org beamer export

2015-12-02 Thread Jinli Feng
On Wed, Dec 2, 2015 at 1:03 PM, Eric S Fraga <e.fr...@ucl.ac.uk> wrote:

> On Wednesday,  2 Dec 2015 at 10:46, Jinli Feng wrote:
>
> [...]
>
> > Thanks for the rely. I used "C-c C-e l p" to export the file. For some
>
> You want to do "C-c C-e l P" for beamer export.  Otherwise, you get
> LaTeX export.  Your output may look like beamer in that it has used the
> LaTeX beamer class (because that's what you told it to do) but it did
> not parse the structure of the org file.
>
> If you use "P" instead of "p", ox-beamer will interpret the headlines
> properly and you do not need to set LATEX_CLASS.
>

Thanks Eric. Yes, even though I thought I'd checked all the available
export options, I failed to distinguish the nuances between p and P. Your
initial answer pointed me to the right direction, as I found that pdflatex
on the exported tex would give a different pdf from the export command (C-c
C-e l p). Now one more step closer to the destination, if only I can figure
out how to get the missing title and author in the pdf.

Thanks for all the help!

>
> You may need to add
>
> (require 'ox-beamer)
>
> to your emacs initialisation code.
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-355-g18f083
>


Re: [O] Problem after updating org: C-c a a broken

2012-04-12 Thread Jinli
Sebastien Vauban wxhgmqzgwmuf@... writes:

 
 Hi Nick and Markus,
 
 Nick Dokos wrote:
  Nick Dokos nicholas.dokos@... wrote:
  Markus Heller hellerm2@... wrote:
  
   Hm, so ok, restarting emacs actually solved it.
   
   Kinda weird, because I never had to do this when updating org (I don't
   compile the sources, I just do C-c C-x !).
   
   Seems a bit odd to me but it's working again so I'm happy :)
   
   I apologize for the noise.
  
  Did you try M-x org-reload RET? That should work but sometimes it misses
  something (but if it does, that would be a bug of course, so report it).
 
  nm - I missed the C-c C-x !
 
 I don't think org-reload is fully bullet-proof. I think it misses changes in
 defvars, deffaces, and the like: once set, if the default is changed, it's not
 updated by reloading the files.
 
 Now, in 99.999% of the cases, that should not be a problem. But to be really
 safe...
 
 Last thing, how is this problem solved by a restart of Emacs and not by a
 reload, not sure we can easily understand.
 
 Best regards,
   Seb
 

Hello 

I got similar errors while updating from org 7.3 to 7.8.08/09. My
emacs is 23.1. Open up emacs and type C-c a a will give an error about
function org-today is not defined. If I do an M-x org-version at this
stage it shows as the old 7.3 version. I have to manually do M-x
org-reload, which will bring up to 7.8 version.  And then everything
seems to function just fine.

Also sometimes emacs won't open org file by default if I do emacs
$filename.org, again M-x org-reload will fix the issue. But it's
tedious as now I have to do 2 steps to open a file.

Can someone please advise what might be the problem here?

Thanks,
Jinli