Re: org-beamer empty titles
To Eric and to Ihor, many thanks. My problem was already solved by Eric with the LateX magic trick, so, I consider now that the problem is solved. Best wishes, Jo. Le 13/10/2021 à 09:50, Ihor Radchenko a écrit : > Joseph Vidal-Rosset writes: > >> Maybe. I'm using presently Prelude Emacs and in elpa I have org-20210920/ >> >> What can I do? > > I guess https://prelude.emacsredux.com/en/latest/support/ > ELPA does have the right Org mode version: > http://elpa.gnu.org/packages/org.html >
Re: org-beamer empty titles
Joseph Vidal-Rosset writes: > Maybe. I'm using presently Prelude Emacs and in elpa I have org-20210920/ > > What can I do? I guess https://prelude.emacsredux.com/en/latest/support/ ELPA does have the right Org mode version: http://elpa.gnu.org/packages/org.html
Re: org-beamer empty titles
On Tuesday, 12 Oct 2021 at 17:35, Joseph Vidal-Rosset wrote: > Maybe. I'm using presently Prelude Emacs and in elpa I have org-20210920/ I don't know. Sorry. -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Le 12/10/2021 à 17:01, Eric S Fraga a écrit : > Ihor, thank you for this. > > Jo, what actual version of org are you using? I'm using a fairly recent > version (as of last week) so maybe what you want to do is possible now > but was not earlier? > > -- > : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 > : Latest paper written in org: https://arxiv.org/abs/2106.05096 > Maybe. I'm using presently Prelude Emacs and in elpa I have org-20210920/ What can I do? All the best, Jo.
Re: org-beamer empty titles
Le 12/10/2021 à 13:51, Eric S Fraga a écrit : > On Tuesday, 12 Oct 2021 at 08:05, Joseph Vidal-Rosset wrote: >> More seriously, the best solution for me would be to allow saving a file >> with a space just after ** without deleting this space... I do not know >> which code provokes this deletion. > > Maybe have a look at your write-file-hooks and write-file-functions > variables to see if there is some invocation that strips whitespace? The file.el of which this function depends is to big and too complicated for me. > > You may wish to use the whitespace package (for a little time) to see > when a space at the end of headline disappears. The whitespace package > is part of Emacs. > > -- > : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 > : Latest paper written in org: https://arxiv.org/abs/2106.05096 > This problem was also described here: https://emacs.stackexchange.com/questions/54970/preserving-the-space-immediately-after-an-org-heading-when-deleting-trailing-whi But no solution was given. All the best, Jo.
Re: org-beamer empty titles
Ihor, thank you for this. Jo, what actual version of org are you using? I'm using a fairly recent version (as of last week) so maybe what you want to do is possible now but was not earlier? -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Eric S Fraga writes: > I don't understand. Maybe somebody else on the list can test this? A blind shot: something to do with https://orgmode.org/list/87tumvdno3@gmail.com Hope it helps. Best, Ihor
Re: org-beamer empty titles
On Tuesday, 12 Oct 2021 at 13:58, Joseph Vidal-Rosset wrote: > I get this : > > \begin{frame}[label={sec:org89e57ca}]{:emptytitle:} I don't understand. Maybe somebody else on the list can test this? -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Le 12/10/2021 à 13:51, Eric S Fraga a écrit : > On Tuesday, 12 Oct 2021 at 08:05, Joseph Vidal-Rosset wrote: >> I just tried what you suggested to me. The result is always the same: I >> get the following title: >> :emptytitle: >> but this title is not empty, contradiction. :) > > This is very strange. What does the LaTeX code generated look like for > this case? In my case, I get: > > \begin{frame}[label={sec:org4b25942}]{} > some text for the slide > \end{frame} I get this : \begin{frame}[label={sec:org89e57ca}]{:emptytitle:} \begin{block}{test} test \end{block} \end{frame} >> More seriously, the best solution for me would be to allow saving a file >> with a space just after ** without deleting this space... I do not know >> which code provokes this deletion. > > Maybe have a look at your write-file-hooks and write-file-functions > variables to see if there is some invocation that strips whitespace? > > You may wish to use the whitespace package (for a little time) to see > when a space at the end of headline disappears. The whitespace package > is part of Emacs. Thanks ! I am going to see this point, very soon. All the best, Jo.
Re: org-beamer empty titles
On Tuesday, 12 Oct 2021 at 08:05, Joseph Vidal-Rosset wrote: > I just tried what you suggested to me. The result is always the same: I > get the following title: > :emptytitle: > but this title is not empty, contradiction. :) This is very strange. What does the LaTeX code generated look like for this case? In my case, I get: \begin{frame}[label={sec:org4b25942}]{} some text for the slide \end{frame} > More seriously, the best solution for me would be to allow saving a file > with a space just after ** without deleting this space... I do not know > which code provokes this deletion. Maybe have a look at your write-file-hooks and write-file-functions variables to see if there is some invocation that strips whitespace? You may wish to use the whitespace package (for a little time) to see when a space at the end of headline disappears. The whitespace package is part of Emacs. -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Le 12/10/2021 à 09:47, Eric S Fraga a écrit : > Jo, > > I am curious to know why the second proposed solution, i.e. putting a > tag on the headline with no actual headline text, didn't work for > you. It might be that you need to have > > #+options: tags:nil > > It worked for me and, at least to me, seems cleaner as you could then > have headlines like this: > > ** :emptytitle: > > which are more clear in terms of intent. Like I said, just curious. > > -- > : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 > : Latest paper written in org: https://arxiv.org/abs/2106.05096 > I just tried what you suggested to me. The result is always the same: I get the following title: :emptytitle: but this title is not empty, contradiction. :) More seriously, the best solution for me would be to allow saving a file with a space just after ** without deleting this space... I do not know which code provokes this deletion. Best wishes, Jo.
Re: org-beamer empty titles
Jo, I am curious to know why the second proposed solution, i.e. putting a tag on the headline with no actual headline text, didn't work for you. It might be that you need to have #+options: tags:nil It worked for me and, at least to me, seems cleaner as you could then have headlines like this: ** :emptytitle: which are more clear in terms of intent. Like I said, just curious. -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Le 10/10/2021 à 23:30, Joseph Vidal-Rosset a écrit : > > > Le 10/10/2021 à 22:04, Eric S Fraga a écrit : >> On Sunday, 10 Oct 2021 at 17:44, Joseph Vidal-Rosset wrote: >>> I reply to my question about org-bullets: the reply is no. Registering >>> an empty title section delete the space and then the export frame does >>> not work. :( >> >> I am not sure what you mean by "registering". You can type "* " >> directly to create an empty headline, can you not? >> >> In any case, you could try the following maybe: >> >> * :sometag: >> >> or, if getting desperate, resort to some LaTeX magic: >> >> * @@latex:}%@@ >> >> -- >> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 >> : Latest paper written in org: https://arxiv.org/abs/2106.05096 >> > > Many thanks Eric, the magic LaTeX solution works (but why?). Just a word to thank again Eric Fraga for this solution and to describe the way I have taken: I have added to one of my personal configuration files the following code: (global-set-key (kbd "C-c m") (lambda () (interactive) (insert "@@latex:}%@@"))) And after each double star for beamer frame, after adding the relevant space, I type C-c m to insert @@latex:}%@@ when I do not want a title for this frame, which is the most frequent case. I hope it will help people who meet the same problem. Best wishes, Jo.
Re: org-beamer empty titles
Hi Joseph, apologies for earlier message: I hit wrong key by mistake so sent before writing my reply! On Sunday, 10 Oct 2021 at 21:30, Joseph Vidal-Rosset wrote: > Le 10/10/2021 à 22:04, Eric S Fraga a écrit : >> or, if getting desperate, resort to some LaTeX magic: >> >> * @@latex:}%@@ > > Many thanks Eric, the magic LaTeX solution works (but why?). A headline, say * introduction will get exported as \begin{frame}{introduction} so my magic incantation above gets exported as \begin{frame}{}%} Remember that a % is a comment character in latex. Therefore, this is an empty frame title. > "Registering" means "Ctrl-x-s" i.e. saving a file: when I save the org > file, the blank space disappears... You must have something in the write-file-hooks that strips whitespace? -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Hi Joseph, On Sunday, 10 Oct 2021 at 21:30, Joseph Vidal-Rosset wrote: > Le 10/10/2021 à 22:04, Eric S Fraga a écrit : >> On Sunday, 10 Oct 2021 at 17:44, Joseph Vidal-Rosset wrote: >>> I reply to my question about org-bullets: the reply is no. Registering >>> an empty title section delete the space and then the export frame does >>> not work. :( >> >> I am not sure what you mean by "registering". You can type "* " >> directly to create an empty headline, can you not? >> >> In any case, you could try the following maybe: >> >> * :sometag: >> >> or, if getting desperate, resort to some LaTeX magic: >> >> * @@latex:}%@@ >> >> -- >> : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 >> : Latest paper written in org: https://arxiv.org/abs/2106.05096 >> > > Many thanks Eric, the magic LaTeX solution works (but why?). > > "Registering" means "Ctrl-x-s" i.e. saving a file: when I save the org > file, the blank space disappears... > > Best wishes, > > Jo. > > > -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Le 10/10/2021 à 22:04, Eric S Fraga a écrit : > On Sunday, 10 Oct 2021 at 17:44, Joseph Vidal-Rosset wrote: >> I reply to my question about org-bullets: the reply is no. Registering >> an empty title section delete the space and then the export frame does >> not work. :( > > I am not sure what you mean by "registering". You can type "* " > directly to create an empty headline, can you not? > > In any case, you could try the following maybe: > > * :sometag: > > or, if getting desperate, resort to some LaTeX magic: > > * @@latex:}%@@ > > -- > : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 > : Latest paper written in org: https://arxiv.org/abs/2106.05096 > Many thanks Eric, the magic LaTeX solution works (but why?). "Registering" means "Ctrl-x-s" i.e. saving a file: when I save the org file, the blank space disappears... Best wishes, Jo.
Re: org-beamer empty titles
On Sunday, 10 Oct 2021 at 17:44, Joseph Vidal-Rosset wrote: > I reply to my question about org-bullets: the reply is no. Registering > an empty title section delete the space and then the export frame does > not work. :( I am not sure what you mean by "registering". You can type "* " directly to create an empty headline, can you not? In any case, you could try the following maybe: * :sometag: or, if getting desperate, resort to some LaTeX magic: * @@latex:}%@@ -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
Re: org-beamer empty titles
Le 10/10/2021 à 19:28, Joseph Vidal-Rosset a écrit : > > > Le 10/10/2021 à 19:22, Eric S Fraga a écrit : >> On Sunday, 10 Oct 2021 at 17:12, Joseph Vidal-Rosset wrote: >>> If there is no title following star(s), then the export into frame does >> >> If you mean that you have a headline but with nothing but the *s, what >> happens if you add a space after the last *? I.e. have a not empty >> headline but one that leads to nothing to print? This works for me in >> that the LaTeX compiles and the frame title is empty. > > The problem is that, surprisingly, the space is deleted as soon as the > file is registered. I am using org-bullets, is it the cause of this > problem? I reply to my question about org-bullets: the reply is no. Registering an empty title section delete the space and then the export frame does not work. :(
Re: org-beamer empty titles
Le 10/10/2021 à 19:22, Eric S Fraga a écrit : > On Sunday, 10 Oct 2021 at 17:12, Joseph Vidal-Rosset wrote: >> If there is no title following star(s), then the export into frame does > > If you mean that you have a headline but with nothing but the *s, what > happens if you add a space after the last *? I.e. have a not empty > headline but one that leads to nothing to print? This works for me in > that the LaTeX compiles and the frame title is empty. The problem is that, surprisingly, the space is deleted as soon as the file is registered. I am using org-bullets, is it the cause of this problem? Thanks for your help, Eric. All the best, Jo.
Re: org-beamer empty titles
On Sunday, 10 Oct 2021 at 17:12, Joseph Vidal-Rosset wrote: > If there is no title following star(s), then the export into frame does If you mean that you have a headline but with nothing but the *s, what happens if you add a space after the last *? I.e. have a not empty headline but one that leads to nothing to print? This works for me in that the LaTeX compiles and the frame title is empty. -- : Eric S Fraga via Emacs 28.0.60, Org release_9.5-93-gd87250 : Latest paper written in org: https://arxiv.org/abs/2106.05096
org-beamer empty titles
Hello everybody, With an .org file for presentation: #+TITLE: #+DATE: #+OPTIONS: H:2 toc:nil author:t #+LATEX_CLASS: beamer-fr #+LANGUAGE:fr I meet the following problem: If there is no title following star(s), then the export into frame does not work. This behavior is not convenient: often space is needed in some frame and titles are not necessary. I do not find the solution, hence my email to this list. Best wishes, Jo.