Hi there. I wonder if it's possible to write a latex file for a report or a yearbook using file write. To be specific, I have a dataset that currently looks like this:
We have three variables: receiver's name, sender's name, and sender's yearbook message for the receiver. I want to create multiple PDF files -- one each for each receiver. I wondered if we can use some combination of loops and filewrite to create multiple tex files that we can then use to create multiple PDFs. So if there is a class of 100 students, we'd like to create 100 different tex files where each file would contain yearbook messages for that student. Please let me know if something is not clear! I tried using Rmarkdown and Python, but they cannot read some special characters that Stata seems to be doing a fairly comfortable job with. I really appreciate any help you can provide.
Receiver | Sender | Yearbook Message |
Alan | Tina | hi |
Alan | Mina | Bye |
Alan | Tom | Hi |
Brett | Tina | Hi |
Brett | Alan | Hi bye |
Comment