> Is it possible to get the current slide number over the total number of 
> slides ?

I have added `showSlideNumber()` and updated the 
[showcase](https://hugogranstrom.com/nimiSlides/showcase.html) to include it.

> I see that the slides are not disposed in a linear way

Indeed, you have the option to do it vertically and horizontally. The way it 
walks them is first going down and then going to the next stack to the right. 
You can do a linear slideshow as well if you want to.

> The latex equations support may make it a great replacement of beamer, latex 
> package for presentation. I am curious, how are the errors handled ? With nim 
> over this js backend using katex or mathjax for latex equations, can I get a 
> correct error message when making a typo in my equation ?

It currently uses [Reveal.js's Math support](https://revealjs.com/math/) 
(Katex) so all errors are done in the browser I'm afraid. It would be nice 
having something like [LatexDSL](https://github.com/Vindaar/LatexDSL) though 
which checks the latex at compile-time. It returns a string, so if we are lucky 
we could perhaps cross our fingers and hope Katex can render it for us. 
Otherwise, we would need a Latex -> HTML library in Nim.

> Can we have text in blocks side by side ?

It should be totally possible by using CSS at the very least. We have discussed 
adding a Flexbox/Grid API to nimib 
[here](https://github.com/pietroppeter/nimib/issues/116) in the future which 
would solve that. At the moment you would have to roll something yourself by 
inlining HTML.

> Is it possible for the user to define (color ?) blocks, one each for 
> definition, theorem, or proposition or example ?

Totally possible, it just requires a bit of work. If you want to use Katex it 
supports colors: 
<https://katex.org/docs/supported.html#style-color-size-and-font> I would 
advise you to create a template like this (pseudocode):
    
    
    template theorem(latex: string) =
      nbText: "\[\textcolor{blue}{" & latex & "}\]"
    
    
    Run

> I guess that for this, I will have to dive into JS anyway and make a PR ^^

PR's are very much appreciated :D Most of what you have mentioned here is 
general enough that they should be done upstream in 
[nimib](https://github.com/pietroppeter/nimib) though and not nimiSlides. Feel 
free to open an issue there if you have something you can't get working and 
we'll try and help you out.

> I will definitely use it to present Nim code. Thanks a lot.

I'm glad to hear, please share any presentations you create with nimiSlides ^^ 

Reply via email to