Это мой style.css:
Код: Выделить всё
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
h1, h2, h3, h4 {
page-break-after: avoid;
break-after: avoid;
}
page-break-inside: avoid;
Это мой _output.yml:
Код: Выделить всё
bookdown::pdf_book:
css: style.css
config:
toc:
before: |
[*][url=./]My book title[/url]
after: |
[*][url=https://github.com/rstudio/bookdown]Impaginato con bookdown[/url]
bookdown::epub_book:
stylesheet: style.css
Код: Выделить всё
---
title: My title
subtitle: My subtitle
author: "Me"
toc-title: Indice
toc: false
output: pdf_book
header-includes:
- \usepackage{graphicx}
- \usepackage{float}
- \usepackage{boxhandler}
- \captionStyle{n}{l}
- \usepackage[twoside]{fancyhdr}
- \pagestyle{fancy}
- \fancyhead{}
- \renewcommand{\headrule}{}
- \fancyfoot[L]{My book title}
- \fancyfoot[R]{\copyright Me}
---
Код: Выделить всё
bookdown::render_book(input="index.Rmd",
bookdown::epub_book(fig_width = 5, fig_height = 4,
dev = "png", fig_caption = TRUE,
number_sections = TRUE,
toc = FALSE, toc_depth = 2,
stylesheet = NULL,
metadata = NULL,
chapter_level = 1,
epub_version = c("epub3", "epub", "epub2"),
md_extensions = NULL,
pandoc_args = NULL,
template = "default"
)
)
Я загрузил воспроизводимый пример по адресу https://github.com/marcoplebani85/Tryin ... h-Bookdown. Для ясности, вот чего я пытаюсь избежать:

Может ли кто-нибудь помочь мне это исправить? Заранее спасибо.
Подробнее здесь: https://stackoverflow.com/questions/798 ... s-in-a-epu
Мобильная версия