How do I "space after" every other line?

I am trying to set up a listing of names and dollars like this...
name
dollar amount
name
dollar amount
name
dollar amount
name
dollar amount
After the dollar amount I need to it have a space of 0.625, I am creating this list as text which I have converted from a table. Right now I have to just click on the line a and manual hit the "space After" option to put the 0.625 spacing in there. Is there a way to do this all at once because there will be at least 300 names every time I do this? So i need to be able to have the spacing on every other line...
Thanks,
Sam

I use a body text style with Space Before and have a Bullets_FirstLine style with space before. I have the Next Style of BulletsFirstLine as as Bullets, which does not have any Space Before. This means that I can automatically apply the styles to the bullets when either typing directly or, more frequenty by highlighting all the paragraphs to be bulleted and right clicking on BulletsFirstLine and selecting "Apply Style then Next Style". I cannot remember the exact wording - I don't have InDesign open at the moment.

Similar Messages

  • [SOLVED]How would I highlight every other line in ZSH output?

    komrad_toast wrote:
    Hello everyone I have the following function in ZSH (it is part of a larger help file i've created called @help):
    function mykeys #== Lists all dwm keybindings in a nice, formatted manner. Used in @help
    echo ""
    gawk 'BEGIN { printf("\33[1;7;32m%-18s\33[34m%-50s\n\33[0m"," Key"," Binding"," Description") }'
    grep "//#" $HOME/code/dwm/config.h | awk -F "//#" '{print $2}' | column -ts :
    echo ""
    This function greps my dwm config.h for comments related to my keybindings and displays them in an easily readable manner.
    The comments are in the following format for easy finding/parsing:
    //#Mod+i:Increments number of windows in master area
    The output of this function looks like this:
    I was wondering if there was a way to 'highlight' every other line in this with a different background color (preferrably a light shade of grey) for even easier readability. Any help would be appreciated, and thanks in advaced!
    I seem to have  solved my own problem. For anyone interested in the solution, it was just a little awk scripting. I changed the function to the following:
    function mykeys #== Lists all dwm keybindings in a nice, formatted manner. Used in @help
    echo ""
    gawk 'BEGIN { printf("\33[1;7;32m%-18s\33[34m%-50s\n\33[0m"," Key"," Binding"," Description") }'
    _LINES=$(grep "//#" $HOME/code/dwm/config.h | awk -F "//#" '{print $2}' | column -ts :)
    echo $_LINES | gawk '{
    if (FNR % 2 == 0)
    printf("\033[00,40m%s\033[0m\n",$0)
    else
    printf("%s\n",$0)}'
    echo ""
    Explanation:
    The first gawk statement just prints the titles for the different columns in the screenshot, done mainly with escape sequences. Then I'm setting _LINES equal to the formatted comments from my config.h file. _LINES is then piped to the second gawk statement which uses the builtin FNR variable (which is set to the current record number of the file that you are parsing) to figure out if the line number is even or not. If it is, it sets the background color to a lighter grey, prints the entire record, then resets the color and prints a new line. Voila! Pretty nifty what a little gawk can do.
    Now if only i could get the background color to extend to the end of the column...
    edit: duh, simple fix for that to. Just change to %s in the first printf of the if/else statement to %-67s
    Last edited by komrad_toast (2015-01-15 10:30:20)

    Thanks for that!
    After your suggestion i revised the function to this:
    function mykeys #== Lists all dwm keybindings in a nice, formatted manner. Used in @help
    gawk -F'[#:]' '
    BEGIN {
    printf("\n\33[1;7;32m%-21s\33[34m%-52s\n\33[0m"," Key"," Binding"," Description")
    if ((FNR % 2) == 0)
    printf("\033[0;2;40m %-21s%-51s\033[0m\n",$2,$3)
    else
    printf(" %-21s%-50s\n",$2,$3)
    END {
    printf("\n")
    }' $HOME/code/dwm/config.h
    This could actually go in my aliases file now, but i think it's fine as a function. Thanks again
    EDIT: The only caveat now is that if any two of the lines in config.h that have '//#' on them contain lines WITHOUT '#//' on them between them it throws off the highlighting. This is why:
    FNR is an awk built-in that represents the current record number in the current file. I am using it as if every record in the file will contain '//#', obviously not every record will. So if line 100 in my config.h is
    { MODKEY, XK_i, incnmaster, {.i = +1 } }, //#Mod+i:Increments number of windows in master area
    then it will be highlighted, because it matches the pattern ('/\/\/#') and is an even line number. But if line 101 does not contain a comment that matches the pattern, and line 102 does, then you will see two highlighted rows right next to eachother in the final output. I do not know a way around this.
    Last edited by komrad_toast (2015-01-17 09:18:28)

  • How to read a text file and only output every other line?

    I am just writing a program that reads a file but outputs only every other line. Any ideas...please? thanks

    I'd start with something like this and expand on it as you go:
    File file = <whatever>;
    BufferedReader in = null;
    try {
        in = new BufferedReader(new FileReader(file));
        int i = -1;
        for (String line = null; (line = in.readLine()) != null; ) {
            if ((++i % 2) == 0) {
                System.out.println(line);
    } catch (IOException e) {
        e.printStackTrace();
    } finally {
        if (in != null) {
            try {
                in.close();
            } catch (IOException e) {
    }Shaun

  • BufferedReader Problem (inserting space after every character)

    (This is a message I sent to an Aglet forum, however I thought maybe someone here could help me with the BufferedReader problem...with the spacing...read below)
    -Blake
    ok here's what I'm attempting to do.
    I have a Master Aglet that creates a slave which is dispatched to a remote site. The Slave then opens a log file, reads it, and then is supposed to read the file line by line and send each line as a message back to the Master. As the master receives each line it appends the line to the window it created earlier.
    I don't know what the problem is...it won't display the log file in the master window.
    It does display each line on the console window.I added a println() function to make sure the String array was getting the information. There is a small problem with that as well because it inserts a space after EVERY character (BufferedReader problem??)...what is up with that? for example:
    If the log file looked like: This is a log file entry.
    the console looks like this when it is printed: T h i s i s a l o g f i l e e n t r y .
    .... I had done something in a similiar program...and it worked just fine. here's some source code:
    <b>Master:</b>
    else if (msg.sameKind("Log")) {
    try {
    //println for testing purposes
    System.out.println(msg.getArg());
    appendMessage(" " + msg.getArg() + "test \n");
    } catch (Exception e) {
    System.out.println(e.toString());
    <b>Slave: </b>
    File log = new File("C:\\Aglets2.0.2\\public\\WINDOWSUPDATE.log");
    FileReader fr = null;
    try{
    fr = new FileReader(log);
    } catch (FileNotFoundException e) {
    System.out.println(e);
    BufferedReader br = new BufferedReader(fr);
    //Get filename of log
    try {
    Message msg = new Message("FileName", log.getName());
    mProxy.sendOnewayMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
    //read each line of file and send back to Master as a message
    try{
    int i = 0;
    while ((s = br.readLine()) != null) {
    i++;
    count = i;
    for (int j = 0; j < count; j++)
    System.out.println(s[j]);
    //send message back to Master Aglet with log file information
    try {
    Message msg = new Message("Log", s[j]);
    mProxy.sendMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
    //close file reader
    fr.close();
    } catch (IOException e) {
    System.out.println(e.toString());
    }

    actually i did declare s, you just don't see it there because i only posted some of the code....
    I fixed the "spacey" problem by using a FileInputStream instead of a bufferedreader....
    like this (i'll post the whole code here:
    public class Slave extends BlindAglet {
        AgletProxy mProxy = null;
        boolean back = false;
            char[] c = new char[1000];
        BufferedReader br = null;
        int count;
        // Do some tasks when the aglet is created
        public void onCreation(Object init) {
            // Must make a note of the master here
            mProxy = (AgletProxy)init;       
            // Add our own listener and adapter
            addMobilityListener(
                new MobilityAdapter() {
                    // Using this as a safety check in case we get caught in a loop in the same host
                    public void onArrival(MobilityEvent event) {                   
                        try {
                            mProxy.sendMessage(new Message("NewSlaveProxy", getAgletContext().getAgletProxy(getAgletID())));                                                            
                        } catch (InvalidAgletException iae) {
                            System.out.println(iae);
                        } catch (NotHandledException ex) {
                            System.out.println(ex);
                        } catch (MessageException ex) {
                            System.out.println(ex);
                        //Are we back to origin?
                            if(back) {         
                                 back = false;     
                                try{
                                     FileWriter fw = new FileWriter("test.txt");                                                                  
                                 for (int i = 0; i < count; i += 2){ 
                                           fw.write(c);
                             fw.close();
                        } catch (IOException e) {
                                  System.out.println(e);
                                  dispose();
                             dispose();
    ); /* End of Adapter */
    public void run() {
         // Are we at home base?
    if (atHome()) {
    try {
    dispatch(new URL("atp://darklord:4434"));
    } catch (Exception e) {
    System.out.println(e.toString());
         try{
         File log = new File("C:\\Aglets2.0.2\\public\\WINDOWSUPDATE.log");
         FileInputStream f0 = new FileInputStream(log);
    //Get filename of log
    try {
         System.out.println(log.getName());
    Message msg = new Message("FileName", log.getName());
    mProxy.sendOnewayMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
              //read each line of file and send back to Master as a message
              try{               
         int size = f0.available();
         int i = 0;
         for (i = 0; i < size; i++) {
              c[i] = (char) f0.read();
    //send message back to Master Aglet with log file information
                             try {
                        Message msg = new Message("Log", c[i]);
                        mProxy.sendOnewayMessage(msg);
              } catch (InvalidAgletException iae) {
                             System.out.println(iae.toString());
                        } catch (Exception e) {
                             System.out.println(e.toString());
    count = i;
              } catch (IOException e) {
                   System.out.println(e.toString());
                   } catch (FileNotFoundException e) {
                   System.out.println(e);
         back = true;      
         returnHome();
    * Returns true if the current host is our origin
    public boolean atHome() {
    if (getAgletInfo().getOrigin().equals(getAgletContext().getHostingURL().toString()))
    return true;
    else
    return false;
    * Allows a slave to contact it's master and ask for a retraction.
    public void returnHome() {
    try {
    Message msg = new Message("RetractMe");
    msg.setArg("url", getAgletContext().getHostingURL());
    msg.setArg("id", getAgletID());
    mProxy.sendOnewayMessage(msg);
    } catch (InvalidAgletException iae) {
    System.out.println(iae.toString());
    } catch (Exception e) {
    System.out.println(e.toString());
    * Return a reference to our Master's proxy
    public AgletProxy getMasterProxy() {
    return mProxy;
    } /* End of Class

  • DG4ODBC adds black spaces after every character

    I am trying to set up HS using Oracle 10.2.0.5 on RHEL5 (64 bit), FreeTDS, and MS SQL Server.
    The ODBC Driver works fine:
    [oracle@phsbe1pr ~]$ isql sfasql_freetds_dsn sqlSinfoOne ***
    | Connected! |
    | |
    | sql-statement |
    | help [tablename] |
    | quit |
    | |
    SQL> select name, len( name ) from sys.objects where object_id < 20 ;
    ---------------------------------------------------------------------------------------------------------------------------------------------+
    | name | |
    ---------------------------------------------------------------------------------------------------------------------------------------------+
    | sysrscols | 9 |
    | sysrowsets | 10 |
    | sysallocunits | 13 |
    | sysfiles1 | 9 |
    | syspriorities | 13 |
    | sysfgfrag | 9 |
    ---------------------------------------------------------------------------------------------------------------------------------------------+
    SQLRowCount returns 6
    6 rows fetched
    SQL> quit
    [oracle@phsbe1pr ~]$
    [oracle@phsbe1pr ~]$ tsql -S SFASQL_FreeTDSName -U sqlSinfoOne -P ***
    locale is "en_US.UTF-8"
    locale charset is "UTF-8"
    using default charset "UTF-8"
    1> select name, len( name ) from sys.objects where object_id < 20
    2> order by 1
    3> go
    name
    sysallocunits 13
    sysfgfrag 9
    sysfiles1 9
    syspriorities 13
    sysrowsets 10
    sysrscols 9
    (6 rows affected)
    1> exit
    [oracle@phsbe1pr ~]$
    But when I use the dblink i got every string doubled with spaces after every char:
    [oracle@phsbe1pr ~]$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon Jul 23 17:22:25 2012
    Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set linesize 120
    SQL> column name format a40
    SQL> select "name", length ( "name" )
    2 from sys.objects@sfasql_link
    3 where "object_id" < 20
    4 order by 1
    5 /
    name LENGTH("NAME")
    s y s a l l o c u n i t s 26
    s y s f g f r a g 18
    s y s f i l e s 1 18
    s y s p r i o r i t i e s 26
    s y s r o w s e t s 20
    s y s r s c o l s 18
    6 rows selected.
    SQL>
    What can I do ?
    Mi init.ora is:
    HS_FDS_CONNECT_INFO = SFASQL_DSN
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_TRACE_FILE_NAME=/tmp/odbc_hs_sfa.trc
    HS_FDS_SQLLEN_INTERPRETATION = 32
    set ODBCINI=/etc/odbc.ini
    adn odbc.ini contains:
    [SFASQL_DSN]
    Description = sqlserver
    Driver = FreeTDS
    # Servername = SFASQL_FreeTDSName
    Server = phsspbe.perfumeholding.intra
    Address = 172.17.0.45
    Port = 1433
    Database = SFA_INTERSCAMBIO
    TDS_Version = 8.0
    Language = us_english
    TextSize = 1999
    PacketSize = 1470
    ClientCharset = ISO-8859-1
    DumpFile = /tmp/odbc_sfasql_dsn.log
    DumpFileAppend = Yes
    DebugFlags =
    Encryption = off
    #Trace = Yes
    #TraceFile = /tmp/odbc_sfasql_dsn.trc
    Thank you for every answer!
    Andrea

    1. Please add to the gateway init file HS_NLS_NCHAR=UCS2
    Then test again with a new SQL*Plus session.
    When it continues to fail, what's the character set of the Oracle database being used and how did you set the NLS_LANG in your environment?

  • How to remove space after paragrph in pages on ipad

    Can't figure out how to remove space after each paragraph in Pages for Ipad

    Settings > General > International > Region Format
    Set it to your country to format numbers and dates in the way your country does.

  • IPhone 5s, every other line in the screen is black

    Hello.
    I have an iPhone 5s, and without any apparent reason, every other line of about the bottom 8 lines (near the home button) are black. One black and one kind of reflects what other lines are showing more to the middle of the screen.
    How can I fix this?
    Thanks.

    CHeck on this https://www.apple.com/la/ then contact apple support and ask them if there is a nearby apple service center in the area atleast

  • Every other line of print is cut off on my Photosmart C4750

    I have recently replaced and aligned new cartridges on my Photosmart C4750. I am printing directly from computer to printer via USB. The last two items I have printed are being cutt off every other line of print, on either the top or bottom of the printed pages. Any ideas?

    Hello there, Welcome to the Forums! I hope you enjoy your experience
    I noticed your post about the printing problems you are having and would like to offer you my suggestion. First of all, print using a different program to see if the issue is only within one program. If you see the issue happening no matter where you print from, run the HP Print and Scan Doctor if you're running a Windows OS.
    Also, try a copy to see if there are cut offs with them as well!
    Please let me know what happened and include your OS and programs you have tried printing from.
    Help to find which Operating System you are running:
    Which Windows Operating System am I running?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Hope to hear from you soon I hope my post was helpful.
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • OfficeJet 6500 prints blank fax page after every other fax page

    How can I stop the printer from printing a blank page after every other incoming fax. If the fax is 5 pages, I get 10 (5 of which are blank). Tried HP support, and they can't fix this.

    Sorry that you are experiencing this issue with printing blank pages. This can be a issue with the print head. You can try to clean the print head with a lint free cloth and water. 
    Another thing would be to perform a hard reset on the printer. Unplug the power cord from the back. Leave it out for 30 seconds and plug it back in. 
    See if you can print a self-test page or printer status report.
    Let me know what happens. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Highlighting every other line

    I have a group in my report displaying information.  I would like to design the report to highlight every other line of information.  How can I do this?

    To highlight the altenative lines you can enable background color for the section altenatively. For this right click on the group section and go to section expert and select color tab and check the background color and write the condition like this
    if groupnumber mod 2=0 then
    crgray
    else
    crnocolor
    Regards,
    Raghavendra

  • Not printing every other line

    I have a HO OfficeJet Pro 8500.
    All catridges are HP.
    The printer is printing every other line (leaving every other line blank).
    Please help.
    Thanks,
    George [Personal Information Removed]

    Sorry that you are having a problem with the print quality. 
    See if you can print a self-test page or status report. Let me know if the same things happens. 
    Have you cleaned the print heads?
    Make a copy of a document, and see if you still get every other line printing. 
    **Click the KUDOS star on the left to say 'Thanks'**
    Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it.

  • Line spacing varies with every other line in a paragraph

    I have a couple of pages documents in which the line height (leading) varies from line to line in a paragraph. Actually, it looks like after every even numbered line there is more space between that and the following line than the odd numbered lines and the line after that. What's up with this?

    Hello
    As I received a sample page, I applied your tip.
    It changes the line spacing but the aspect remains the same.
    At this time, my guess is that it is an optical effect due to the fact that in some lines there are large chunks of lowercases like aeiou but fee "high" letter like fhkl
    while other lines contain more of these "high" letters.
    If it is really that, there is no automatic soluce in Pages. As far as I know, only programs like xPress or inDesign are able to treat correctly this problem (gris typographique in French).
    Yvan KOENIG (from FRANCE mardi 24 juin 2008 21:52:22)

  • How to remove spaces after description.

    hi all,
    i need to supress spaces after writing material description and i want to keep comma after description.
    but it displays comma after field length (i e after  40 chars).But i need to keep comma after description it self.
    example like this.
    GR Number- 4900000400,
    Batch Number-            ,
    Material number- P0001016,
    Material description- Returnable Pallet,
    Vendor:            ,
    GR Date: 16.02.2010 ;
    Not Like this...
    GR Number- 4900000400 ,
    Batch Number-            ,
    Material number- P0001016           ,
    Material description- Returnable Pallet                        ,
    Vendor:            ,
    GR Date: 16.02.2010 ;
    after  posting message the comma comes after desc in both the cases...but it wont in SAP
    Appriciate your help.

    Hi,
       Use condense statement.
    Regards,
    Srini.

  • Copy every other line

    Hi All,
    I have some very large data files that I am working with (50,000 lines) and I wish to cut these down to a more manageable size by copying everyother line or every 5th line to a new file.  Perhaps Labview is not the best option for this but so far I have just been beating my head off the wall.
    Any suggestions would be appreciated!
    Solved!
    Go to Solution.

    One simple possibility: Read your datafile as a string, convert to a 1D array of strings, decimate, convert back to a string and write to file.
    See image:
    (If you want a variable decimation factor, use a simple FOR loop)
    Message Edited by altenbach on 10-07-2008 08:39 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    decimateFile.png ‏3 KB

  • How to gain space after Delete

    Hi All,
    Oracle 9208
    I have one table space which is 90% full. I know a table which can give me 10% space if I delete 50% of old data in table. I cannot truncate the table as users are always using the table.
    If I delete the rows in TEST env. The tablespace is still 90%, as deleting doesn't release the space. How can we gain the space?
    Thanks,

    It's allocated space and that can't quite be released, since the table is still fragmented at the extent level. Export/import of the table will solve the problem after specifying 'deallocate unused'
    Message was edited by:
    FeNiCrC_Neil

Maybe you are looking for

  • Monitoring of Sales Order created during specified timeframe using BPMon

    Hi, There is a requirement from our customer to setup Monitoring Object for Sales Order in Business Process Monitoring: The details are as follows: Monitoring object should be able to fetch all the Sales Order created between a specified timeframe: (

  • Message problem in C5-00 5MP

    Guys i have a problem in my new nokia c5-00 5MP , that first my mobile was showing a blinking message sign , then i open the message> option > sim messages > and i copy all these messages to another because hose are imprtant messages for me and then

  • Unknown error message when using Application Loader

    Does anyone have any insight as to what might be causing these? Thank you.

  • Import from Leica M8 - Some images are duplicated in the import dialogue

    Hello, I bought Aperture 2 a few weeks ago and am using the most recent version to import images directly from my Leica M8. For reference, I am using a MacBook Air (SSD) with the Aperture Library on an external SATA USB drive (it's too big for my lit

  • Connecting old Windows-formatted iPod to a Mac

    I have just been given an old iPod by a friend and I'm trying to synch it with my iTunes. It's been formatted for Windows and I've got an iBook G4. I'd like to update it, but it tells me that my only option is to restore the whole thing. So, I have t