I am still trying to format a .txt file provided to me by my professor for an assignment. I've figured most of it out but I'm still having problems doing the following...

-I need to center the Section Headings
-I need to put new sections on new pages (i.e. when a new section starts I need a page break to go to the next page)
-I need to put page numbers on every page

I DON'T WANT SOMEONE TO DO MY HOMEWORK FOR ME!
I just need to be pointed in the right direction.

Here's a sample of the .txt file...

====================================================================== +======= SECTION 35 - BUILDING VIM FROM SOURCE 35.1. How do I build Vim from the sources on a Unix system? For a Unix system, follow these steps to build Vim from the sources: - Download the source and run-time filles archive (vim-##.tar.bz2) fro +m the ftp://ftp.vim.org/pub/vim/unix directory. - Extract the archive using the bzip2 and tar utilities using the com +mand: $ bunzip2 -c <filename> | tar -xf - - Run the 'make' command to configure and build Vim with the default configuration. - Run 'make install' command to installl Vim in the default directory. To enable/disable various Vim features, before running the 'make' comm +and you can run the 'configure' command with different flags to include/ex +clude the various Vim features. To list all the available options for the 'configure' command, use: $ configure -help For more information, read :help install 35.2. How do I install Vim in my home directory or a directory other than the default installation directory in Unix? To install Vim in a directory other than the default installation directory, you have to specify the directory using the --prefix option while running the configure script. $ ./configure --prefix=/users/xyz You can enable/disable various Vim feature by supplying different argu +ments to the configure script. For more information about all these options, + run $ ./configure --help For more information, read :help install-home :help install


Thanks a lot!

In reply to Formatting Text...Again by lollipop7081

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.