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

Discrepency between HTML and Slidy when using tabset #1324

Open
Yevean opened this issue Apr 18, 2018 · 10 comments
Open

Discrepency between HTML and Slidy when using tabset #1324

Yevean opened this issue Apr 18, 2018 · 10 comments
Assignees
Labels
feature a feature request or enhancement theme: presentation related to slide output formats theme: tabsets related to tabsets feature in rmarkdown

Comments

@Yevean
Copy link

Yevean commented Apr 18, 2018

I screenshotted my actual results not the example code

both Rmd files look like this:

htmldocs

How the tabs look in the HTML document:

how tabs look in html

The presentation looks like this:

presentation

How the tabs look in Slidy document:

how tabs look in slidy

@Yevean
Copy link
Author

Yevean commented Apr 18, 2018

the amount of extra rows generated depends on how many times you call the render function in the slidy presentation code. If i render an empty Rmd file and then include it in a slide, I will get an extra row (even though there is no tabset in the empty code).

@Yevean
Copy link
Author

Yevean commented Apr 18, 2018

the reason I need to render the document and then set the child to the generated html is because if I set the child to the Rmd file then slidy will not recognize the tabset delimiters and use them as slide delimiters within the presentation. Setting the tabset delimiters within the HTML documents to more pound signs makes it so that slidy treats them as headers. Furthermore, theres a limit to the amount of pound signs one can use before they become text and tabset does not recognize unique tab delimiters such as "&".

@Yevean
Copy link
Author

Yevean commented Apr 18, 2018

using something like:

<div class="section level1 tabset">

<div id="first-tab" class="section level2">
<h2>The First Tab</h2>
I'm the first tab
</div>

<div id="second-tab" class="section level2">
<h2>The Second Tab</h2>
I'm the second tab
</div> 

</div>

does not work either. the extra rows still appear

@Yevean
Copy link
Author

Yevean commented Apr 18, 2018

okay... appears I was wrong about the cause of the extra rows. It does not depend on how many times rmarkdown::render was called but rather how many times {r child="path/filename.html"} is called. Since I already had the htmls rendered from before I figured I'd try taking the render step out and I still got extra rows.

@Yevean
Copy link
Author

Yevean commented Apr 18, 2018

I made sure that my files were in the same directory and that did not resolve it.

@Yevean
Copy link
Author

Yevean commented Apr 18, 2018

okay... getting closer to the source! The extra rows are exactly dependant on how many times specifically HTML files are called as children. i.e {r child="path/filename.html"} .
Calls to {r child="path/filename.Rmd"} does not produce extra rows. But also does not create tabs in the slidy document. Quite a catch 22

@rich-iannone rich-iannone self-assigned this May 2, 2018
@rich-iannone
Copy link
Member

@Yevean did you make more progress on this? If you could sum up what you have and what you're still missing, we could probably provide some helpful input.

@rich-iannone rich-iannone added question general questions - not an issue Difficulty: Intermediate labels Jun 18, 2018
@yinghawl
Copy link

I encountered the same problem as @Yevean did. Did you find any solution to this problem yet?

@mlduarte
Copy link

mlduarte commented Jun 3, 2020

Is it still the case that it is not possible to have tabset working in ioslides_presentation or slidy_presentation?

@jedrzejmiecznikowski-wongapl

Hi, I'm also looking forward to a solution on this.
Besides calling child I tried pasting HTML directly and it only works (no undefined rows produced) when there is one html document with tabset pasted. Nothing worked so far.

@cderv cderv added theme: tabsets related to tabsets feature in rmarkdown theme: presentation related to slide output formats feature a feature request or enhancement and removed question general questions - not an issue labels Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement theme: presentation related to slide output formats theme: tabsets related to tabsets feature in rmarkdown
Projects
Status: Backlog
Development

No branches or pull requests

7 participants