i6 / ibg

Inform Beginner's Guide
Other
4 stars 2 forks source link

Word wrapping around images doesn't work when building latexpdf output. #8

Closed DavidGriffith closed 8 years ago

DavidGriffith commented 8 years ago

At least with the drop capitals, word wrapping around images doesn't work when building latexpdf output. This works fine for html output. Instead of wrapping, the system just leaves the image above the paragraph to be wrapped.

zondo commented 8 years ago

This might be better handled in LaTeX using the actual font.

DavidGriffith commented 8 years ago

Indeed! In Sphinx, how does one specify to do something one way for HTML and another way for LaTeX?

zondo commented 8 years ago

There are several ways:

There's some examples in the latest version of index.rst.

zondo commented 8 years ago

Problem with using the emerald font is that it's non-standard, and I can't find a debian package that contains it. (Not really surprising, since the license is non-free.) So people would have to manually download and set up the font themselves to use it. :-( This might be OK if LaTeX could be made to use a fallback option if it's not installed, instead of barfing.

DavidGriffith commented 8 years ago

Does the Emerald City Fontwerks even exist anymore? I see a webpage with little more than an email address at http://users.speakeasy.net/~ecf/.

DavidGriffith commented 8 years ago

I'll go through these two resources and hopefully come up with a relatively painless way to install the Emerald package:

http://tex.stackexchange.com/questions/248464/installing-emerald-fonts-texlive-wont-find-font-files http://newtips.co/tex/questions/110797/how-to-install-font-from-the-font-catalogue-in-debian.html

DavidGriffith commented 8 years ago

That was easier than I thought it would be. This script will do the trick:

#!/bin/sh

if [ `ps -o uid= $$` -ne 0 ] ; then
        echo "This script must be run as root"
        exit 1
fi

TEXMFLOCAL=`kpsewhich -var TEXMFLOCAL`

echo "Installing to $TEXMFLOCAL..."

install -d $TEXMFLOCAL $TEXMFLOCAL/web2c

cp -Rp fonts $TEXMFLOCAL
cp -Rp other $TEXMFLOCAL
cp -Rp tex $TEXMFLOCAL

echo "Map emerald.map" >> $TEXMFLOCAL/web2c/updmap.cfg

mktexlsr $TEXMFLOCAL

updmap-sys

Or should I come up with a .deb package instead?

DavidGriffith commented 8 years ago

Fixed in 00e42bd8b271a01dd1a4a7c6b90c12bf5b52ae76

zondo commented 8 years ago

Wow, that was very quick! I'll give it all a try when I get a spare moment.