Can I align the last line of a text container to to bottom of a container?

Is it possible to take the last line in a text container and vertically align it to the bottom? I'm aware that I can justify the entire text container vertically to achieve this effect. However, this means tha every line in the container is now spaced out with increased leading.
Here's a screen capture of what I mean.
On the right is a text container without any vertical justification and sized to fit the text. On the left is a text container that I've sized to match the height of the right container. In order to get the last line to align to the bottom I used the Justify vertically option. But my bullets are now spread out.
Basically I just want the last line aligned to the bottom and the rest of the text above it to be aligned to the top.
Is there anyway to do this with just one text container? Or will I be forced to used two text containers?
I'm using InDesign CS5 if that matters.

I think I'd do this with a two-cell table.

Similar Messages

  • How can I search the last line in an internal table?

    How can I search the last line in an internal table?
    With a describe?? If it is , how can I do that?
    Thanks!!

    Hi shilpa,
    it seems to be you are NEW to SDN. welcome. if you want to get solutions to your Questions, you have to post a NEW thread.dont use the existing thread to post your question.
    any way i am giving you the solution for your question
    LOOP AT ITAB WHERE F1 = <SOME VALUE>
                       F2 = <SOME VALUE>.
    ENDLOOP.
    IF SY-SUBRC = 0.
      ITAB WILL HAVE THE LAST RECORD which satisfying the given criteria in WHERE clause of LOOP.
      write itab <--this ITAB will have the last record.
    ENDIF.
    regards,
    Srikanth.
    Message was edited by: Srikanth Kidambi

  • How to read the last line in a text file using text_io?? please help

    Dear all
    I made a procedure that append text into a text file on the operating system.
    the text file grows rapidly. It contains now about 200,000 line . I need to read the last line only . In other wprds i need to go direct to the last line to read some values. Is it possible??
    Please help

    Hello,
    If you know the number of the line you want to read, I can sugget you to use the MORE dos command or the TAIL unix command that redirect to a temporary text file
    Example to create a file that contains the 200010th last lines :
    (Client)Host( 'MORE the_file_name.txt +200010 > small_file.txt') ;So you have only to read the small file with the TEXT_IO functions.
    Francois

  • How to keep unaltered the last line?

    Hi I am doing some last corrections in a book which is going to be in the next days published and I am not allowed to change the form of the pages. (The indexes at the end of book are already done). Thus by correcting some footnotes (making them shorter) the main text above also changes (the first line of the next page appears in the page I corrected the footnotes) and I cannot keep the previous form of the pages. How can I keep the last line of the main text unaltered so that the pages turn exactly at the same point like before?

    If I am understanding your issue correctly, it seems that you are trying to keep the length of each page's main content  unaltered so that the index could refer back to the correct page.  It sounds like the content in each page's frames are linked, so that they flow continuously.  Adding a page break (or a frame break) may be what you're looking for.  You'll find it under Type > Insert Break Character.
    I hope this helps.  And good luck with your book!

  • Read to get the last line from a File

    Hi
    I am sending in a clarification , hoping that I get an efficient solution from the group, should somebody have come across this scenario and implemented.
    How to read or get the last line from a text file , which usually have a no of records, without actually reading or looping through all the lines
    I know there is some solution with the RandomAccessFile, but given there can be some encoding issues or so.
    Please let me know if somebody have implemented the same.
    Thanks n advance

    The character encoding could, indeed, be an issue especially with UTF-8. I think what I'd do is to create a byte array with the encoded, expected end of line sequence in it and work on the file in bytes. For example, seek to the last 100 bytes of the file, read those bytes and look for an EOL sequence backwards. If not found read the previous 100, 200, 400 bytes etc. until you do find an end of line. Then seek to after the EOL and read normally. Remember an EOL sequence might cross a boundary.
    UTF-8 would be a problem, especially with a unix format file because you might mistake part of a multi-byte sequence for '\n'. To be reliable on UTF-8 you'd need to go back three characters looking for sequence start markers (has the previous character got the top bit set, or the one before that the first two bits set, or the one before that the top three bits). Or you could just react to an encoding exception and try another position.

  • How can i remove gaps between letters, usually occur in a paragraph justified with the last line aligned right/left

    here's an example of a paragraph i've taken from wikipedia:
    if you can see, in the paragraph aligned with the button "Justify with the last line aligned left" - the one above, i've marked with red lines the places in which a gap occurs all of a sudden, and i cannot undo them.
    for the same paragraph below i used the simple "Align left" button.
    can anyone please help me understand what has happened that made those gaps occur.
    i use Adobe Design Standard CS 6 Middle East Version. this bug occurs in other font/languages as well.

    Thank you for providing the sample IDML file.
    I still think it could be the used paragraph composer, maybe in conjunction with the used font. I'd change the composer to see, if the problem will go away.
    @Willi – you are right, the story direction is RTL, but the paragraph direction is LTR. That's no surprise here since the ME version of InDesign was used.
    I would change story direction to LTR, use the "normal" paragraph composer instead the global one.
    Since the used font is not available to me, a substituted font is not showing the problem.
    But that may mean nothing. I do not use the ME version of InDesign…
    Uwe

  • How can I get the size of all lines or the last line number in a DB?

    I want to display a certain number of lines from a DB.
    But before I fetch them out, I must know how many lines of this DB has.
    I donnot know if there is some methods have this function. I know the last() method can move the cursor to the last line, but some DB cannot support this function.
    Could someone know the answer or some examples about displaying data in a jsp?
    Thanks a lot.

    To get the number of rows in a ResultSet, loop over the result set with while(res.next()). Read each row into an object. Add each object into a, say, LinkedList. At the end, you will have the rows nicely converted to objects (which you probably should do anyway), and list.size() will give the number of objects.
    There are other ways to get the number of objects, but list.size() is the easy and reliable way. If you don't need the rows converted to objects ...why did you select them in the first place?
    Tricks with last() and whatnot sort of work. They read the entire result set into memory. But you'll need to write the while(res.next()) loop anyway. No point in having the computer do the same thing twice.

  • My Deskjet 1056 cuts the last line off of the page

    My Deskjet 1056 cuts half the last line of every page off. No matter what I'm printing from where. I've tried changing margins and printing areas and borders. I've heard to try changing the drivers to 990c or 450 . neither make a difference. Changing the port from bidirectional makes it worse. Even tried to change the print processor modes. No luck. Does anyone have any suggestions. When I print and alignment page the squares at the bottom print just fine and align the page just fine so that doesn't help either. I run on Windows7 I don't know if that has anything to do with it. PLEASE HELP. Thanks in advance

    Hi ! Welcome to the HP Forums. I understand you are having an issue with printouts being cut off at the bottom when printing to your HP Deskjet 1056 All-in-One printer from your Windows 7 computer. I'd love to help you with this. The first thing I would suggest would be to make a copy on the printer itself. If the bottom of the page is cut off, then it could be an issue with the hardware. If the copy comes out fine, then we know the hardware is functioning properly. If the copy comes out fine, I would suggest installing the full feature software for you printer if you haven't already. You can download the software here: HP Deskjet Full Feature Software and Drivers If that doesn't resolve the issue please download and run the HP Print and Scan Doctor and let me know of any errors or messages you receive. Have you tried printing multiple documents? Or printing from alternate programs to see if it might be an issue with a specific document or program? I look forward to hearing back from you and working towards a resolution. Thanks for posting!

  • How do I prevent Pages from pushing paragraphs to next page when they would otherwise begin on the last line of the previous page?

    I am writing papers for school which have strict page limits so I can't afford to be losing lines at the bottom of a page because Pages thinks it looks better to have a new paragraph start on the next page. It does this automatically and I have to go back and manually format to get the first line of the paragraph to start on the last line of the previous page. This then creates problems down the line when I am editing so I would really like to be able to turn the feature off.
    e.g. with Pages auto-formatting
    -----page 1-----
         Paragraph #1 blah blah
    blah blah blah
         Paragraph #2 blah blah
    blah blah blah
    -----page 2-----
         Paragraph #3 blah blah
    blah blah
    e.g. after manual formatting
    -----page 1-----
         Paragraph #1 blah blah
    blah blah blah
         Paragraph #2 blah blah
    blah blah blah
         Paragraph #3 blah blah
    -----page 2-----
    blah blah

    Change the keep with next rules in:
    Inspector > Text > More > Pagination & Break
    Peter

  • How to find out the Last line of a page in Smart forms

    Hi Experts,
    I need to find out the <b>last line of a page in smartforms</b>.
    I have <b>Heading in a text element</b> and its <b>text in another text element</b>.
    If the heading falls in the last line, its contents will be displayed in the next page. I want to print the heading  in the next page.
    Please advise on this issue.
    Thanks in advance,
    Viven

    You can put both the heading and contents in a Folder node and check the page protection checkbox of the Folder node.  This way both will be displayed on the same page always.

  • How to upload CSV file w/o ,, for the last line

    Hi Experts,
    As part of one interface uploading the csv file (4coulmns) manually using the TCODE: CSCA_FILE_COPY.
    After uploading when i see in the AL11 as it is csv file it is filling the , in each space.
    But my issue while running the interface (because of logic in it) checking for the hash total in the last line where (record count, hash total) only 2 items should come but because of manual upload adding the (record count, hash total, , ,) another two spaces.
    Where program not moving further becasue the it is alway comparing the amounts (1000.00 not matching with 1000.00, , ) it is not processing. In production files directly load in to unix server so no issues and i can't ask to change the program code...because iam not following the process. As part of testing i've to do manually only.
    Please suggest the workaround for this.
    Is it possible to change the contents directly in AL11 directly....then HOW ?
    or
    How to create a csv file w/o , , in the last line (may be it is not possible) ?
    Thanks for your replies in advance.
    Regards
    VVR

    I don't think you can edit from AL11, nor creating a CSV without those commas at the end because are created to state fields with empty value.
    You have 6 columns filled with values but for the last line you only fill the first four. It is expected to appear , , for the last 2 columns on the last line.
    I can only suggest keep doing it manually before uploading the CSV file... or... you are saying you can't change the program.
    How about upload all CSV files... then writing another program to get those files from AL11 and delete the spare commas at the end line?
    Cheers,
    Andres.

  • How to read the last line in a txt file?

    Dear all,
    I want to read the last line in a txt file. There are thousands of lines in this file. What I want is to move the file pointer directly to the last line of the file. But I did not know how do to it. Can anybody help me out?
    Thank you very much!

    If the file is coded as ASCII or one of the encodings that maps a single byte to a char then the following class will assist you
    import java.io.*;
    import java.util.*;
    public class GetLinesFromEndOfFile
        static public class BackwardsFileInputStream extends InputStream
            public BackwardsFileInputStream(File file) throws IOException
                assert (file != null) && file.exists() && file.isFile() && file.canRead();
                raf = new RandomAccessFile(file, "r");
                currentPositionInFile = raf.length();
                currentPositionInBuffer = 0;
            public int read() throws IOException
                if (currentPositionInFile <= 0)
                    return -1;
                if (--currentPositionInBuffer < 0)
                    currentPositionInBuffer = buffer.length;
                    long startOfBlock = currentPositionInFile - buffer.length;
                    if (startOfBlock < 0)
                        currentPositionInBuffer = buffer.length + (int)startOfBlock;
                        startOfBlock = 0;
                    raf.seek(startOfBlock);
                    raf.readFully(buffer, 0, currentPositionInBuffer);
                    return read();
                currentPositionInFile--;
                return buffer[currentPositionInBuffer];
            public void close() throws IOException
                raf.close();
            private final byte[] buffer = new byte[4096];
            private final RandomAccessFile raf;
            private long currentPositionInFile;
            private int currentPositionInBuffer;
        public static List<String> head(File file, int numberOfLinesToRead) throws IOException
            return head(file, "ISO-8859-1" , numberOfLinesToRead);
        public static List<String> head(File file, String encoding, int numberOfLinesToRead) throws IOException
            assert (file != null) && file.exists() && file.isFile() && file.canRead();
            assert numberOfLinesToRead > 0;
            assert encoding != null;
            LinkedList<String> lines = new LinkedList<String>();
            BufferedReader reader= new BufferedReader(new InputStreamReader(new FileInputStream(file), encoding));
            for (String line = null; (numberOfLinesToRead-- > 0) && (line = reader.readLine()) != null;)
                lines.addLast(line);
            reader.close();
            return lines;
        public static List<String> tail(File file, int numberOfLinesToRead) throws IOException
            return tail(file, "ISO-8859-1" , numberOfLinesToRead);
        public static List<String> tail(File file, String encoding, int numberOfLinesToRead) throws IOException
            assert (file != null) && file.exists() && file.isFile() && file.canRead();
            assert numberOfLinesToRead > 0;
            assert (encoding != null) && encoding.matches("(?i)(iso-8859|ascii|us-ascii).*");
            LinkedList<String> lines = new LinkedList<String>();
            BufferedReader reader= new BufferedReader(new InputStreamReader(new BackwardsFileInputStream(file), encoding));
            for (String line = null; (numberOfLinesToRead-- > 0) && (line = reader.readLine()) != null;)
                // Reverse the order of the characters in the string
                char[] chars = line.toCharArray();
                for (int j = 0, k = chars.length - 1; j < k ; j++, k--)
                    char temp = chars[j];
                    chars[j] = chars[k];
                    chars[k]= temp;
                lines.addFirst(new String(chars));
            reader.close();
            return lines;
        public static void main(String[] args)
            try
                File file = new File("/usr/share/dict/words");
                int n = 10;
                    System.out.println("Head of " + file);
                    int index = 0;
                    for (String line : head(file, n))
                        System.out.println(++index + "\t[" + line + "]");
                    System.out.println("Tail of " + file);
                    int index = 0;
                    for (String line : tail(file, "us-ascii", n))
                        System.out.println(++index + "\t[" + line + "]");
            catch (Exception e)
                e.printStackTrace();
    }Note, the EOL characters are treated as line separators so you will probably need to read the last two lines (think about it for a bit).

  • Add a different character to the last line of a loop

    Hi,
    I'm attempting to use some pl/sql to generate an RMAN copy script. After each line there needs to be comma, but the last line of the loop should have a semi-colon to terminate the statement. How can I do that?
    In the example below, the copy for controlfile 3 needs to be a semi-colon, not a comma:
    run
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    COPY
    DATAFILE 1 TO '/u20/oraflash/ORCL1/dbcopy/system01.dbf',
    DATAFILE 2 TO '/u20/oraflash/ORCL1/dbcopy/undotbs01.dbf',
    DATAFILE 3 TO '/u20/oraflash/ORCL1/dbcopy/drsys01.dbf',
    DATAFILE 4 TO '/u20/oraflash/ORCL1/dbcopy/example01.dbf',
    DATAFILE 5 TO '/u20/oraflash/ORCL1/dbcopy/indx01.dbf',
    DATAFILE 6 TO '/u20/oraflash/ORCL1/dbcopy/tools01.dbf',
    DATAFILE 7 TO '/u20/oraflash/ORCL1/dbcopy/users01.dbf',
    DATAFILE 8 TO '/u20/oraflash/ORCL1/dbcopy/xdb01.dbf',
    CURRENT CONTROLFILE TO '/u20/oraflash/ORCL1/dbcopy/control01.ctl',
    CURRENT CONTROLFILE TO '/u20/oraflash/ORCL1/dbcopy/control02.ctl',
    CURRENT CONTROLFILE TO '/u20/oraflash/ORCL1/dbcopy/control03.ctl',
    ALTER DATABASE OPEN
    My script is:
    set serveroutput on format wrapped
    set feedback off
    spool db_copy.rcv
    declare
    cursor df is
    select
    file#,
    substr(name,29,50) name
    from
    v$datafile;
    cursor cf is
    select
    substr(name,27,50) name
    from
    v$controlfile;
    BEGIN
    DBMS_OUTPUT.ENABLE(2000);
    DBMS_OUTPUT.PUT_LINE('run');
    DBMS_OUTPUT.PUT_LINE('{');
    DBMS_OUTPUT.PUT_LINE('SHUTDOWN IMMEDIATE');
    DBMS_OUTPUT.PUT_LINE('STARTUP MOUNT');
    DBMS_OUTPUT.PUT_LINE('COPY');
    for dfbkup in df loop
    dbms_output.put_line(' DATAFILE '||dfbkup.file#||
    ' TO ''' || '/u20/oraflash/ORCL1/dbcopy/' || dfbkup.name ||''',');
    end loop;
    for cfbkup in cf loop
    dbms_output.put_line(' CURRENT CONTROLFILE' ||
    ' TO ''' || '/u20/oraflash/ORCL1/dbcopy/' || cfbkup.name ||''',');
    end loop;
    DBMS_OUTPUT.PUT_LINE(' ;');
    DBMS_OUTPUT.PUT_LINE('ALTER DATABASE OPEN');
    DBMS_OUTPUT.PUT_LINE('}');
    end;
    spool off

    Hi
    Try this then and remove any returns that I've put in as appropriate
    DECLARE
    l_string VARCHAR2(32767);
    l_num NUMBER := 1;
    CURSOR df IS
    SELECT  file#, SUBSTR (name, 29, 50) name
    FROM v$datafile;
    CURSOR cf IS
    SELECT   SUBSTR (name, 27, 50) name
    FROM v$controlfile;
    BEGIN
       l_string := ('run
       l_string := l_string||('{
       l_string := l_string||('SHUTDOWN IMMEDIATE
       l_string := l_string||('STARTUP MOUNT
       l_string := l_string||('COPY
       FOR dfbkup IN df
       LOOP
          l_string := l_string||(   ' DATAFILE '
                               || dfbkup.file#
                               || ' TO '''
                               || '/u20/oraflash/ORCL1/dbcopy/'
                               || dfbkup.name
                               || ''',
       END LOOP;
       FOR cfbkup IN cf
       LOOP
          l_string := l_string||(   ' CURRENT CONTROLFILE'
                               || ' TO '''
                               || '/u20/oraflash/ORCL1/dbcopy/'
                               || cfbkup.name
                               || ''',
       END LOOP;
       l_string := RTRIM(l_string,'
       l_string := l_string||(' ;
       l_string := l_string||('ALTER DATABASE OPEN
       l_string := l_string||('}');
    WHILE l_num <= LENGTH(l_string) LOOP
    DBMS_OUTPUT.PUT_LINE(SUBSTR(l_string, l_num, 200));
    l_num := l_num + 200;
    END LOOP;
    END;Cheers
    Ben

  • How to read a file and save the line number of  the last line read?

    Hi,
    I am using RandomAccessFile and file as my class. I am trying to read a log file as it gets updated and print it out to a java window. i so far have the framework setup but dont know how to save the last line number so.
    i need this variable so i dont reprint out the same line numbers to the java window. please advise.
    thanks!

    hi,
    i now have the line number of the last line read, but now when i reopen the file, how can i skip that number of lines?
    thanks,

  • SAPScript:  why the window only show the LAST line

    Dears,
    In my form, one of the window only show the LAST line of the it.
    I have set the window enough space,  also when  debuging the program , open_form, write_form,
    all of those sy-subrc = 0.
    both static texts and dynamic texts are set  in the window,   but only the last line shown.
    Anyone could help me?
    Thanks a lot.
    Sincerely,
    Julie Lv

    Hi,
    There are several possibilities to resolve your problem.
    You can work with 2 main windows on in1 page.
    With NEW-WINDOW you switch to the next main-window
    How to use it.
    make an item in main window with that /: NEW-WINDOW command
    if you are ready with first loop call a WRITE_FORM with that NEW-WINDOW statement.
    to cojntinue in the other main.
    Other possibility is. (in case there are not ot many lines)
    Use for every line other variable names.
    Fill these in the loop. And after loop WRITE FORM
    eg. (if maximum is 3 lines)
    &VAR1_1& &VAR1_2& &VAR1_3& &VAR1_4&
    &VAR2_1& &VAR2_2& &VAR2_3& &VAR2_4&
    &VAR3_1& &VAR3_2& &VAR3_3& &VAR3_4&
    Hope this helps.
    Gr., Frank

Maybe you are looking for

  • Which laguages does FreeTTS Supported.

    Hi all ! I want use FreeTTS for my application. I can use the code bellow to read the Hello World in English. How can i read another language for example German or French,... My code here : Can anybody help me ? package com.myprj.demo; //Decompiled b

  • WRT160Nv3 problem with blocking traffic using Access Restrictions

    Hi. I want something quite simple. Block Youtube. I go into "Access Restrictions", choose a name for policy 1, enable it, choose the pc from the pc list, but then... if a click Deny, all other options will be disabled (greyed out, can't click nor wri

  • Im trying to connect my iPod to my computer.

    I already tried the support page. I uninstalled fully iTunes which resolved the issue but it came back and I dont want to re-uninstall everything. What can I do? +it is detected by my computer

  • Function Modul for generate hashcode

    Hi all i search a function modul for generate a hashcode. Does it existing a function modul for that? Regards

  • Super BOM for not KMAT materials

    Hi Gurus I have a client requirement to maintain the BOM for finished product as a Super BOM even though the material is not KMAT material. Super BOM has got KIT materials. Based on this customer requirement only certain materials which goes in to fi