title: Python docx library text align
body: <p>I am using python docx library to manipulate a word document. However I can't find how to align a line to the center in the documents page of that library. I can't find by google either.</p>
  
  <pre><code>    from docx import Document
      document = Document()
      p = document.add_paragraph('A plain paragraph having some ')
      p.add_run('bold').bold = True
      p.add_run(' and some ')
      p.add_run('italic.').italic = True
  </code></pre>
  
  <p>How can I align the text in docx?</p>