Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left-alignment broken by comment/note #476

Closed
liar666 opened this issue Feb 24, 2022 · 2 comments
Closed

Left-alignment broken by comment/note #476

liar666 opened this issue Feb 24, 2022 · 2 comments

Comments

@liar666
Copy link

liar666 commented Feb 24, 2022

When I create presentation slides, I like to put comments (# or #+BEGIN_COMMENT) / notes (#+BEGIN_NOTES) where I'm supposed to read them, i.e. right below what they are about. Sometimes this means putting comments/notes in the middle of a slide.

Unfortunately, doing so breaks alignment with org-reveal (I'm using "org-reveal-center:f" thus all items should be aligned left).

Here is a minimal example to demonstrate the problem:

#+STARTUP: showall indent latexpreview inlineimage
#  --- Use C-c C-c to reload this ---
#+TODO: TODO(t) INPROGRESS(i) LATER(l) CANCELLED(c) DELEGATED(d) | DONE(o)

#+TITLE: My Presentation Title
#+AUTHOR: Me
#+EMAIL: me@me.com

#+OPTIONS: toc:nil org-reveal-center:f

* Slide1 = alignment OK
+ item 1
+ item 2
#+BEGIN_NOTES
These are notes for both item 1 and 2
#+END_NOTES

* Slide1 = alignment BROKEN
+ item 1
#+BEGIN_NOTES
These are note for item 1 only
//// Bug is here. Using #+BEGIN_COMMENT or # result in same problem ///
#+END_NOTES

+ item 2
#+BEGIN_NOTES
These are note for item 2 only
#+END_NOTES
  • In slide 1, items are one on top of the other and aligned left, which is what is expected
  • In slide 2, they are on the side of one another. In more complex examples, I end up with one on top of the other but not aligned to the left.

I've had a look at the generated html file and it seems that when putting something between items, this closes the previous itemize and creates a new one. I can understand why it is good for org-mode to behave like that, but what I don't understand is why it breaks the alignment in JS/reveal.
(NOTE: I'm very newbie in org / JS / reveal)...

Adding @@html:@@ or @@html:<br/>@@ right before + item2 seems to make the alignment work again, but with a large space between item1 & item2 (larger than in slide1 even without br)

Is this actually a bug (in org-reveal/rejeal.js)?
Is there a "cleaner" workaround?

@liar666
Copy link
Author

liar666 commented Feb 24, 2022

After verification on a more complex case, alignment remains broken with #+BEGIN_COMMENT, even with @@html:...@@ workarounds

@yjwen
Copy link
Owner

yjwen commented Mar 6, 2022 via email

@yjwen yjwen closed this as completed Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants