From 51a5442f1614bcd49f1e3e9d00d153f91658a66d Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 14 Mar 2022 13:08:40 -0500 Subject: [PATCH] Fix pdf presentation issues and some misc issues Change pdf generation to use 9 point fonts for monospace sections of the book. Otherwise texy overflows, especially in Chapter 8, Stripping. Fix a minor spacing issue in the stripping issue. MAke a minor grammar fix in creatingfiles.xml. --- chapter07/createfiles.xml | 2 +- chapter08/stripping.xml | 2 +- pdf-fixups.sh | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index d5f9febde..7b038ef3d 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -36,7 +36,7 @@ Historically, Linux maintains a list of the mounted file systems in the file /etc/mtab. Modern kernels maintain this list - internally and exposes it to the user via the /proc filesystem. To satisfy utilities that expect the presence of /etc/mtab, create the following symbolic link: diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml index 772b91c5f..22b34562a 100644 --- a/chapter08/stripping.xml +++ b/chapter08/stripping.xml @@ -47,7 +47,7 @@ - save_usrlib="$(cd /usr/lib; ls ld-linux*) +save_usrlib="$(cd /usr/lib; ls ld-linux*) libc.so.6 libthread_db.so.1 libquadmath.so.&libquadmath-version; diff --git a/pdf-fixups.sh b/pdf-fixups.sh index 44fe56370..d39d3f10f 100755 --- a/pdf-fixups.sh +++ b/pdf-fixups.sh @@ -13,6 +13,7 @@ LINE=$(( LINE - 1 )) # Not needed #sed -i -e "$LINE s/monospace/&\" font-size=\"9pt/" $FILE +sed -i -e "s/monospace/&\" font-size=\"9pt/g" $FILE # Break a block of code at the right place sed -i -e 's@gcc --version@&@' $FILE