sphinx-revealjs icon indicating copy to clipboard operation
sphinx-revealjs copied to clipboard

feature request: hide title

Open PeterMosmans opened this issue 1 year ago • 3 comments

Hi,

Would it be possible to implement the property :notitle: in the .. revealjs-slide directive? Currently (as far as I can tell) there is no option to easily hide the title from a section.

Thanks for your consideration, great extension 👍

PeterMosmans avatar Mar 02 '24 13:03 PeterMosmans

Thank you for idea! It would be useful to have it.

I think that it may be possible to implement but less easy than revealjs-break directive.

  • When revealjs-break is found, writer copy previous title if `:notitle: is not set (it is ADDING action)
  • But write need remove title from section if revealjs-slide directive having :notitle: (it is DELETING action)

attakei avatar Mar 03 '24 07:03 attakei

If you want to hide only title text on first section of vertical sections, try approarch using CSS as workaround.

/* Example to hide title of second vertical section */
section:nth-child(2) h2 {
  display: none;
}

attakei avatar Mar 03 '24 07:03 attakei

Thanks for the hints @attakei : For now I solved it with

.. revealjs-section::
   :data-state: notitle

and then in CSS:

.notitle h2 {
  opacity: 0;
}

It's sub-optimal, as the title is briefly shown when the next slide appears, but for now definitely workable.

If you don't mind I'd like to keep this issue open for potential consideration.

PeterMosmans avatar Mar 03 '24 09:03 PeterMosmans