Skip to content

Self-contained format #61

Closed
Closed

Description

@dmenne

When I create a self-contained HTML and remove the _book folder or move it to another directory, the content is ok, but the layout is strange with two scrollbars:

2016-03-24 08_24_40-rstudio

--- 
title: "Authoring A Book with R Markdown"
date: "`r Sys.Date()`"
author: "Dieter Menne"
knit: "bookdown::render_book"
output:
  bookdown::gitbook: 
    self_contained: true

---

# Index

yml:

book_filename: "dieter-bookdown.Rmd"
chapter_name: "Chapter "
rmd_files: [ "index.Rmd", "c.Rmd", "b.Rmd", "a.Rmd" ]

Activity

  1. added
    question
    on Mar 24, 2016
  2. yihui commented on Mar 24, 2016

    @yihui
    Collaborator

    You were looking at the wrong output, and the actual output files are in the _book directory. dieter-bookdown.html was only the intermediate HTML file that I forgot to delete (now it will be deleted).

    Please see http://rstudio.github.io/bookdown/a-single-document.html and typically you are not recommended to use self_contained = TRUE for gitbook output for reasons explained at http://rstudio.github.io/bookdown/html.html (search for self_contained). Also note MathJax may not work when self_contained = TRUE.

  3. modified the milestone: v0.1 on Jul 12, 2016
  4. github-actions commented on Nov 6, 2020

    @github-actions

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

  5. locked as resolved and limited conversation to collaborators on Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions