Hello - bit of a bookdown newbie here!
I have two issues (the second more fatal than the first!). Here is what I did:
What I was trying achieve
I've been trying to modify the example
block to make it look like the examples given in the book.
So, I added the following to style.css
.example {
padding: 1em 1em 1em 4em;
background: #dadada 5px center/3em no-repeat;
border-radius: 15px;
margin-bottom: 10px;
text-indent: 40px;
background-image: url("./icons/example-small.png");
}
Issue 1
Unfortunately this resulted in a duplication of the icon, screenshot below.
Issue 2
I removed background-image: url("./icons/example-small.png");
from the CSS to successfully produce a simple block with a background.
I then built a PDF of the book. This resulted in all example
blocks not appearing in the output. Rendering a gitbook also does not produce these blocks.
All equations, figures and table correctly render.
Minimum example
I am unable to reproduce Issue 2 by starting with the minimum book example for bookdown. Adding background-image: url("./icons/example-small.png");
to style.css
correctly reproduces Issue 1 but the subsequent removal of the line, rendering to PDF / gitbook preserves the example block as it should.
Any help much appreciated!