asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum New line or new paragraph when using text()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Jaemin Lee
    Participant
    Post count: 17

    I’ve noticed that I cannot change line using asdocx, even if I write new text line:

    asdocx, save(Test) text(Title) replace title
    asdocx, append text(Paragraph1)
    asdocx, append text(Paragraph2)
    asdocx, append text(Cannot have line-break! Paragraph3)

    Is there a way to insert a line-break (i.e., change rows)?

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    You can use the control word \par to start a new paragraph. Also, you can drop the append option as append is optional and is the default option.

    asdocx, save(Test) text(Title) replace title
    asdocx, text(Paragraph1)
    asdocx, text(Paragraph2)
    asdocx, text(Cannot have linebreak! Paragraph3 \par)

    You can explore other options related to the text() option here https://asdocx.com/asdocx-adding-text-and-paragraphs-to-word-documents/

    Jaemin Lee
    Participant
    Post count: 17

    Thank you so much!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.