Re: [O] How to upgrade to make beamer export work

2018-09-26 Thread jiewuza


Yes, you are right.
It is my fault.
I am sorry for that.

And thank you for your instruction of minimal config
practice. I should and will follow it.


John Hendy  writes:

> On Mon, Sep 24, 2018 at 10:02 PM jiewuza  wrote:
>>
>>
>> OMG, it is my fault.
>> I used `C-c C-e l p`
>> My screen is too small.
>> I just saw the the `p` key.
>> And I thought maybe beamer and latex share the same key now in the new
>> orgmode exporter. LOL
>
> We've all been there, but I wouldn't call it a LOL. People took time
> to speculate on what the issue might be, and to try to help you. Eric
> specifically mentioned the upper case P and you said "Yes, that is
> exactly what I did." Now you are saying you thought they might share
> the same key and pressed 'p' after all.
>
> I had just created a minimal config and tested the export myself when
> this email came through. What I *would* have said was "People can't
> troubleshoot what they can't see." The list gets all kinds of weird,
> odd issues (including from me, and including goofs just like this).
> The tried and true practice is a minimal configuration and a test file
> of some sort. Pasting what you *think* is the only beamer related
> config (on the heels of citing spacemacs, which could have all sorts
> of stuff potentially conflicting options) doesn't count, as we can't
> see for sure what is going on. Minimal config, run `emacs -Q`, then
> `M-x load-file RET path/to/min-config`, then try your stuff.
>
> Follow that practice and I assure you, the extra work on your part
> will drastically cut down on the back and forth with the list,
> resulting in getting to the real work/fun much faster!
> - https://orgmode.org/manual/Feedback.html
>
> Glad it worked out,
> John
>
>
>> Eric S Fraga  writes:
>>
>> > On Monday, 24 Sep 2018 at 15:49, jiewuza wrote:
>> >> I used orgmode to prepare my lecture materials.
>> >> Now I upgrade org to the latest version, and read the [[new
>> >> exporter][https://orgmode.org/worg/exporters/ox-overview.html]].
>> >>
>> >> It seems the configure is much easier.
>> >> But I cannot get my lectures right after all my efforts.
>> >>
>> >> So I start all over. I removed all my beamer configure.
>> >> With the [[beamer
>> >> example][https://orgmode.org/manual/A-Beamer-example.html]], I get a pdf
>> >> (see attachment) like a latex article, no beamer frame.
>> >
>> > How did you export?  You should choose the beamer options, as in
>> >
>> > C-c C-e l P
>> >
>> > to create PDF using beamer. Note upper case P. If you want to open the 
>> > file as
>> > well, use O instead of P (again upper case). Lower case equivalents are for
>> > normal LaTeX article class (by default).
>>
>>




Re: [O] How to upgrade to make beamer export work

2018-09-24 Thread jiewuza


OMG, it is my fault.
I used `C-c C-e l p`
My screen is too small.
I just saw the the `p` key.
And I thought maybe beamer and latex share the same key now in the new
orgmode exporter. LOL 

Eric S Fraga  writes:

> On Monday, 24 Sep 2018 at 15:49, jiewuza wrote:
>> I used orgmode to prepare my lecture materials.
>> Now I upgrade org to the latest version, and read the [[new
>> exporter][https://orgmode.org/worg/exporters/ox-overview.html]].
>>
>> It seems the configure is much easier.
>> But I cannot get my lectures right after all my efforts.
>>
>> So I start all over. I removed all my beamer configure.
>> With the [[beamer
>> example][https://orgmode.org/manual/A-Beamer-example.html]], I get a pdf
>> (see attachment) like a latex article, no beamer frame.
>
> How did you export?  You should choose the beamer options, as in
>
> C-c C-e l P
>
> to create PDF using beamer. Note upper case P. If you want to open the file as
> well, use O instead of P (again upper case). Lower case equivalents are for
> normal LaTeX article class (by default).




Re: [O] How to upgrade to make beamer export work

2018-09-24 Thread jiewuza


I was using spacemacs, and I updated orgmode (9.1.14) yesterday.
I have no beamer-related config except:
```
  (require 'ox-beamer)
  (setq org-latex-pdf-process '("latexmk -xelatex -outdir=%o %f"))
  (add-to-list 'org-export-backends 'beamer)
```

I checked the `tex` output of the example, there is just `section`, no `frame`.
```
% Intended LaTeX compiler: pdflatex
\documentclass[presentation]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\author{Carsten Dominik}
\date{\today}
\title{Example Presentation}
\hypersetup{
 pdfauthor={Carsten Dominik},
 pdftitle={Example Presentation},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 26.1 (Org mode 9.1.14)},
 pdflang={English}}
\begin{document}

\maketitle
\tableofcontents


\section{This is the first structural section}
\label{sec:org51b2252}

\subsection{Frame 1}
\label{sec:org7fda852}
\begin{enumerate}
\item Thanks to Eric Fraga\hfill{}\textsc{B\_block}
\label{sec:org6c0dd90}
for the first viable Beamer setup in Org
\item Thanks to everyone else\hfill{}\textsc{B\_block}
\label{sec:org166f1b4}
for contributing to the discussion
\begin{enumerate}
\item This will be formatted as a beamer note\hfill{}\textsc{B\_note}
\label{sec:org1056b8c}
\end{enumerate}
\end{enumerate}
\subsection{Frame 2 (where we will not use columns)}
\label{sec:org4503c82}
\begin{enumerate}
\item Request
\label{sec:org8233ad6}
Please test this stuff!
\end{enumerate}
\end{document}
```


Robert Klein  writes:

> Hi,
>
> On Mon, 24 Sep 2018 15:49:28 +0800
> jiewuza  wrote:
>
>> I used orgmode to prepare my lecture materials.
>> Now I upgrade org to the latest version, and read the [[new
>> exporter][https://orgmode.org/worg/exporters/ox-overview.html]].
>> 
>> It seems the configure is much easier.
>> But I cannot get my lectures right after all my efforts.
>> 
>> So I start all over. I removed all my beamer configure.
>> With the [[beamer
>> example][https://orgmode.org/manual/A-Beamer-example.html]], I get a
>> pdf (see attachment) like a latex article, no beamer frame.
>> 
>> Is this normal? 
>> 
>
>
> your example does seem to have Beamer frames.
>
> Do you have a complete minimal setup which doesn't work with the new
> version (.org-file, .emacs, both only having enough content to show the
> issue)?
>
> I your “latest” version the zip files downloaded from the home page, or
> maint or master from git?
>
> Best regards
> Robert




Re: [O] How to upgrade to make beamer export work

2018-09-24 Thread jiewuza


Yes, that is exactly what I did.

Eric S Fraga  writes:

> On Monday, 24 Sep 2018 at 15:49, jiewuza wrote:
>> I used orgmode to prepare my lecture materials.
>> Now I upgrade org to the latest version, and read the [[new
>> exporter][https://orgmode.org/worg/exporters/ox-overview.html]].
>>
>> It seems the configure is much easier.
>> But I cannot get my lectures right after all my efforts.
>>
>> So I start all over. I removed all my beamer configure.
>> With the [[beamer
>> example][https://orgmode.org/manual/A-Beamer-example.html]], I get a pdf
>> (see attachment) like a latex article, no beamer frame.
>
> How did you export?  You should choose the beamer options, as in
>
> C-c C-e l P
>
> to create PDF using beamer. Note upper case P. If you want to open the file as
> well, use O instead of P (again upper case). Lower case equivalents are for
> normal LaTeX article class (by default).




[O] How to upgrade to make beamer export work

2018-09-24 Thread jiewuza

I used orgmode to prepare my lecture materials.
Now I upgrade org to the latest version, and read the [[new
exporter][https://orgmode.org/worg/exporters/ox-overview.html]].

It seems the configure is much easier.
But I cannot get my lectures right after all my efforts.

So I start all over. I removed all my beamer configure.
With the [[beamer
example][https://orgmode.org/manual/A-Beamer-example.html]], I get a pdf
(see attachment) like a latex article, no beamer frame.

Is this normal? 



test.pdf
Description: Adobe PDF document


Re: [O] How to create tables with multi-rows/columns cells?

2017-09-12 Thread jiewuza
Eric S Fraga <esfli...@gmail.com> writes:

> On Monday, 11 Sep 2017 at 04:36, jiewuza wrote:
>> It is quite common to have multi-rows/columns cells in talbe. But as far
>> as I know, it seems impossible with the org built-in table editor.
>
> org does not support multi-row/column cells in tables.  

Well, I am thinking whether this proposal would work:
1. `|@` as a separator, meaning the next cell will span multiple columns
2. `|$` as a separator, meaning the next cell will span multiple rows
3. the span will terminate when it meats a regular cell separator `|`
4. the content of the "multi-rows/columns cell"(the big cell) should be
placed in the right-bottom single cell of the big one

For example, these two tables have the same effect.
#+BEGIN_SRC org
   |@   | header |$   |
   | h1 | h2 | h3 |
   |++|
   | a  |@$  |$   |
   | d  |@   | f  |

   +-+-+-+
   | h | |
   +-+-+  h3 |
   |  h1 | h2  | |
   +-+-+-+
   |  a  |   |
   +-+ f |
   |  d  |   |
   +-+---+

#+END_SRC

I do not know if it can be implemented in a clear and simple way based
on the current org-table and ox-* code. Maybe '|@n$m' like separator
(m,n is a number) would be simpler. I do not know. But it is great if
org supports multi-row/column cells in tables.




Re: [O] How to create tables with multi-rows/columns cells?

2017-09-12 Thread jiewuza
Eric S Fraga <esfli...@gmail.com> writes:

> On Monday, 11 Sep 2017 at 04:36, jiewuza wrote:
>> It is quite common to have multi-rows/columns cells in talbe. But as far
>> as I know, it seems impossible with the org built-in table editor.
>
> org does not support multi-row/column cells in tables.  When you say:
>
>> It works.
>
> what do you mean?  If I edit your example, org does not recognise it as
> a table (or, at least, not a properly defined one).

I mean when I export the table to html (see below), I get what I want.

#+BEGIN_SRC org
   +-+-+-+
   | h | |
   +-+-+  h3 |
   |  h1 | h2  | |
   +-+-+-+
   |  a  |  b  |  c  |
   +-+-+-+
   |  d  |  e  |  f  |
   +-+-+-+
#+END_SRC

#+BEGIN_SRC html

  

  h


  
  h3
  

  
  

  h1


  h2

  
  

  a


  b


  c

  
  

  d


  e


  f

  

#+END_SRC

But there is no  in the output. That is why I suggest maybe we
can add org support to treat "===" as a separator of thead and tbody.




[O] How to create tables with multi-rows/columns cells?

2017-09-10 Thread jiewuza

It is quite common to have multi-rows/columns cells in talbe. But as far
as I know, it seems impossible with the org built-in table editor.

So I turned to the emacs built-in table, and create a simple example:
#+BEGIN_SRC org
   +-+-+-+
   | h | |
   +-+-+  h3 |
   |  h1 | h2  | |
   +-+-+-+
   |  a  |  b  |  c  |
   +-+-+-+
   |  d  |  e  |  f  |
   +-+-+-+
#+END_SRC

It works. However, when I export it to HTML, I find it does not contain
 tag (I would like to style the table head).

So I'd like to know how do you guys to create such tables in org-mode.

p.s. One workaround would be add support for the exporter to recognize
`===` as a separator of table head and body

#+BEGIN_SRC org
   +-+-+-+
   | h | |
   +-+-+  h3 |
   |  h1 | h2  | |
   +=+=+=+
   |  a  |  b  |  c  |
   +-+-+-+
   |  d  |  e  |  f  |
   +-+-+-+
#+END_SRC