lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 765ecb8 3/4: Adjust logo sizes


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 765ecb8 3/4: Adjust logo sizes
Date: Tue, 18 Jul 2017 10:45:40 -0400 (EDT)

branch: master
commit 765ecb8ca756bd7859496f779f0868d2b279b406
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Adjust logo sizes
    
    Specified logo sizes in inches instead of points, because an absolute
    measure doesn't depend on context. Specified width only: specifying
    height in addition caused undesirable stretching. Made the logo larger
    on the cover page, which has plenty of room.
---
 fo_common.xsl | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/fo_common.xsl b/fo_common.xsl
index 3f8a8d7..3b68697 100644
--- a/fo_common.xsl
+++ b/fo_common.xsl
@@ -54,6 +54,8 @@
   <!--
   Define this parameter to true to exclude company logo. This should be useful
   for text output where any graphics is replaced by a grid of '#' symbols.
+  (This was overengineering: no use case exists to justify the complexity,
+  so it is okay to ignore this.)
   -->
   <xsl:param name="hide-company-logo" select="boolean(0)"/>
 
@@ -748,9 +750,12 @@
     </xsl:choose>
   </xsl:template>
 
+  <!--
+    Use a smaller logo after the first page, but no smaller than this.
+  -->
   <xsl:template name="company-logo">
     <xsl:if test="not($hide-company-logo)">
-      <fo:external-graphic width="121.1pt" height="24.8pt" 
src="company_logo.jpg"/>
+      <fo:external-graphic width="1.5in" src="company_logo.jpg"/>
     </xsl:if>
   </xsl:template>
 
@@ -820,8 +825,11 @@
             </fo:block>
           </fo:block>
 
-          <fo:block padding="9em 0 4em">
-            <xsl:call-template name="company-logo"/>
+          <!--
+            Use a larger logo for the cover page.
+          -->
+          <fo:block padding="0.8in">
+            <fo:external-graphic width="2.5in" src="company_logo.jpg"/>
           </fo:block>
 
           <fo:block font-size="9pt" padding-bottom="1em">



reply via email to

[Prev in Thread] Current Thread [Next in Thread]