This spells out what I believe is a good solution to the problem of unwanted backgrounds on imported images. The basic idea is to make the cover in three steps:
create background pdf
flatten background pdf
create cover and import background pdf
This ensures that the rasterizing when the pdf is flattened applies only to the image, not the fonts.
use font for logo
Focusing on the SC logo, it also has the same problem of a unwanted background color. To solve this I have made our logo into a font. The logo is at the character 0.
[x] add sclogo.ttf to our fonts
[x] adjust cover template to use font
We should use the same font for the logo inside the book. I have dealt with this in #140
produce background image
Use a tex template such as dhp-cover-background.tex. This has only two things:
background color
"leaf" image
It is created to the same size as the full cover. We need to add the variable leaf image per volume, just as with the old design. But here is the basic template.
\documentclass[coverheight=9in,coverwidth=6in,spinewidth=0.32126126126126126in,pagecolor=backgroundcolor,bleedwidth=.125in,marklength=0in,12pt]{bookcover}%
\usepackage{graphicx}
% orange colors
\providecolor{backgroundcolor}{HTML}{E48C07}
% images. position of cover image can be adjusted if necessary
\newcommand*{\coverimage}[1]{\vspace*{3in}\hspace*{2in}{\includegraphics[height=8in]{orange1.png}}}
\begin{document}%
\pagestyle{empty}%
\normalsize%
\begin{bookcover}
\bookcovercomponent{normal}{bg front}{
{\coverimage{}}
}
\end{bookcover}%
\end{document}
See previous: https://github.com/suttacentral/publications/issues/138
This spells out what I believe is a good solution to the problem of unwanted backgrounds on imported images. The basic idea is to make the cover in three steps:
This ensures that the rasterizing when the pdf is flattened applies only to the image, not the fonts.
use font for logo
Focusing on the SC logo, it also has the same problem of a unwanted background color. To solve this I have made our logo into a font. The logo is at the character
0
.We should use the same font for the logo inside the book. I have dealt with this in #140
produce background image
Use a tex template such as
dhp-cover-background.tex
. This has only two things:It is created to the same size as the full cover. We need to add the variable leaf image per volume, just as with the old design. But here is the basic template.
flatten background image
Something like:
make cover
Mostly the same as it is now, except we do not make a background color, instead we just import the flattened image: