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

Headers missing when headers come above slide_levels (The higher H is missing) #100

Open
AlbertMietus opened this issue Jun 22, 2015 · 3 comments

Comments

@AlbertMietus
Copy link

Unlike the docs says (see side_levels) headers above that threshold do not work!

A single one, will become visual on the slides, but the higher header is hidden. When several Hplus headers are present some are hidden and (only) the last one is shown, instead of the earlier higher one (see demo, below)

Also the layout distortions will happen, by more complicated RST-files.

Notes:

  • The (relevant) code does seam to be changed, for a long time. It look likes the algorithm in [writer.py]BaseSlideTranslator:visit_slide() is wrong.
  • I use(d) Python3; hieroglyph-0.7.1 (and others) , Sphinx-1.3.1, docutiles-0.12, Jinja2-2.7.3

Hope this helps. Thanks

Rest file to show the bug

Hplus Bug Demo

Note: For this demo the conf should contain slide_levels = 2

H2-1 This will become a the first h1

on a new slide

H2-2 This should be a new slide, again with a h2 header

The H2-2 line is missing!

H3 But this H3 is shown instead

There should be a (h3) header above this line

H2-3 Again

A new side

H2-4 More missing lines

The lines H2-4 and H3-1 will be gone ...

H3-1 First h3

This is shown (but not H3-1)

H3-2 Second h3

This is shown (as well as H3-2, as slide title)

H2-5 Now with h2+3+4

Reset again (new H2 slide)

H2-6 Demo

Echo: H2-6 Demo

H3 A h2 with an h4

Echo: H3 A h2 with an h4

H4 What does happen?
^^^^^^^^^^^^^^^^^^^^

Echo: H4 What does happen?

@AlbertMietus
Copy link
Author

Thus can be related to issue #49. And the change it the related code.

See the issue comment about the tip admonition on mar 2 2014

AlbertMietus pushed a commit to AlbertMietus/hieroglyph that referenced this issue Jul 14, 2015
…r'. Using hardcode style (TEMP) again/ Hplus-bug (nyergler#100) is gone; but slides2 (gio) and other will not work. Result is not perfect. non-slides sections are gone (instead of div). extra span for IDS are solved to
AlbertMietus pushed a commit to AlbertMietus/hieroglyph that referenced this issue Jul 15, 2015
…d slides are producted.

With H3 levels (even with slide_levels=2). This fixes nyergler#100
Have to test for other themes and more complex slides
Notice: the  slide-directive is not supported with this set-up
Some cleanup may be needed
AlbertMietus pushed a commit to AlbertMietus/hieroglyph that referenced this issue Jul 15, 2015
The code works, for slides/slides2/single-level/ themes (so, all)
The debug 'hack' statement are removed. Also other touched code is cleaned
Notice: a few small default theme setting are improved too: to big slides can scroll now. To big slides are bad. But invisuable lines (small monitor) are even wors as scrolling
AlbertMietus pushed a commit to AlbertMietus/hieroglyph that referenced this issue Jul 28, 2015
…) when using headers above auto-slide-level (bug nyergler#100)
AlbertMietus pushed a commit to AlbertMietus/hieroglyph that referenced this issue Jul 30, 2015
AlbertMietus pushed a commit to AlbertMietus/hieroglyph that referenced this issue Aug 2, 2015
@AlbertMietus
Copy link
Author

Fixed #100 and #102 in my branch (now on AlbertMietus::master branch). Please test!

@AlbertMietus
Copy link
Author

Note: Most discussion is done in issue #102. Please see there

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

1 participant