This is my first post here. I can usually find what I'm looking for using questions other people have asked, but this time I'm stumped. Please can anyone help? I am very new to Latex.
I am trying to insert text into the beginning of the body section of the generated pdf file via the sty sheet. However, in the case where a paragraph spans 2 pages, I can not figure out how to place text at the beginning of the pdf body on the second page. I don't want to change the header of the file, I want to automatically change the beginning of the body section via a sty sheet.
Is there a way to position and insert text from a style sheet? I am not sure if this is possible. Or maybe add the text to the next page of the pdf file before I insert the paragraph?
Thank you in advance for any help.
Update: I inherited a very complicated latex project, and I am not sure how to give you minimalized example code.
Maybe this example of what I want the pdf to look like will help?
I want each Paragraph to start with a persons name. If the paragraph extends into the next page, I want the pdf file to have the persons name and continued before the rest of the paragraph. Like this:
JOE Paragraph ....
SALLY Paragraph ....
--- Page Break
SALLY-CONTINUED Rest of Paragraph ....
I don't want to modify any of the chapter or section documents. I want the style file to automatically add the "SALLY-CONTINUED" when a page break is shown. Is this possible?


\AtBeginDocumentwhich puts something right after\begin{document}. Also you can just define macros in yourstyfile and use them in the document. – canaaerus Aug 15 '12 at 16:52