[xep-support] Re: Inline container

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Fri Oct 31 2014 - 16:25:35 PST

While the baseline-shift used in the supplied
answer gives the desired impact, there is a way
in XSL-FO to align the descendent text at the
bottom of the main text using explicit alignment
properties which may be more "proper" (if people
don't judge me as being pedantic):

<?xml version="1.0" encoding="UTF-8"?><!--daniel.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
       font-family="Times" font-size="20pt">

   <layout-master-set>
     <simple-page-master master-name="frame"
                         page-height="297mm" page-width="210mm"
                         margin-top="15mm" margin-bottom="15mm"
                         margin-left="15mm" margin-right="15mm">
       <region-body region-name="frame-body"/>
     </simple-page-master>
   </layout-master-set>

   <page-sequence master-reference="frame">
     <flow flow-name="frame-body">
       <block>
         <inline>Lorem ipsum </inline>
         <inline font-size="70%" font-style="italic"
                 border-top="1pt dotted black" text-align="center"
                 padding-left="5mm" padding-right="5mm"
                 alignment-baseline="after-edge"
                 alignment-adjust="before-edge">imie i nazwisko</inline>
   <inline> lorem ipsum.</inline>
       </block>
     </flow>
   </page-sequence>
</root>

I hope this is helpful.

. . . . . . . . Ken

At 2014-10-30 15:46 +0100, Pilecki Konstanty wrote:
>Thanks a lot. This is what I need. Kind regards, K.
>
>From: Xep-support
>[mailto:xep-support-bounces@renderx.com] On Behalf Of Daniel Boughton
>Sent: Thursday, October 30, 2014 3:41 PM
>To: RenderX Community Support List
>Subject: [xep-support] Re: Inline container
>
>I think I understand what you are trying to
>do. This should work, with the e xception of
>being able to specify the width of the line. I
>used left and right padding to make the line longer that the text under it.
>
><fo:block>
>Â Â Â Â Â Â Â Â Â Â Â <fo:inline>Lorem ipsum </fo:inline>
>Â Â Â Â Â Â Â Â Â Â Â <fo:inline
>font-size="70%"
>font-style="italic" border-top="1pt dotted
>black" text-align="center" padding-left="5mm"
>padding-right="5mm" baseline-shift="-0.8em">imiÄ™ i nazwisko</fo:inline>
>Â Â Â Â Â Â Â Â Â Â Â <fo:inline> lorem ipsum.</fo:inline>
></fo:block>

--
Public UBL and code list hands-on classes - Stockholm, Dec. 3&4,2014 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/video.htm |
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/ |
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com |
Google+ profile:      http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
!DSPAM:87,54542b2c10101249274796!
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Fri Oct 31 16:36:15 2014

This archive was generated by hypermail 2.1.8 : Fri Oct 31 2014 - 16:36:16 PST