Forum Discussion
Can I make a Word document with text that can be hidden/revealed prior to making a PDF?
I am using Microsoft Word to create multiple PDF files. Each of the PDF's are nearly identical, but where some PDF's have additional text that is not included in the other PDF's. However, due to the complexity of the files, it would become unreasonable to have separate documents. (See the bullet points below.)
One solution for this is if there was some way to hide/reveal text depending on a variable; below is some rough pseudo-code showing this idea:
var variable = 0; \\I can set this to be 1 or 2, depending on what PDF I want to make [Text Block A]
if( variable = 1 ) {
[Text Block B]
}
else if( variable = 2 ) {
[Text Block C]
} [Text Block D] if( variable = 2 ){ [Text Block E] }
By its nature, the text blocks all have the same level of importance, so using headers to reveal/hide information would become confusing. Further, this would leave irrelevant headers in the PDF's (such as a header for Block C when "variable = 1").
Is there a way to implement this idea into Microsoft Word? If not, how else could I create the PDF's in a way that minimizes the amount of copy-and-paste operations? Any help would be greatly appreciated!
Reasons why it would be difficult to create multiple documents and use copy-paste:
Large portions of the PDF's are identical, so it would be laborious to copy-and-paste between the two documents.
Note: The example above is only a portion of the total document. There will likely be more than 20 text blocks that are the same between the two documents. This number could reach triple digits.
I need to work on building adjacent text blocks simultaneously, so it would be difficult to go between multiple files while writing the documents.
The documents may end up being very long. As a result, I could run out of space on my computer. This can be further compounded if I need more than two different PDF's.
The PDF's will be updated over time, so the copy-and-pasting work would need to be repeated every time I want to update the PDF's.
Reasons why it would be difficult to create one document and manually edit it to make the other PDF files:
The PDF's will have several more blocks of text that need to be hidden/revealed, so making one document and then editing it to make the second would become extremely laborious.
Note: The example above is only a portion of the total document. There will likely be more than 20 text blocks that can be hidden/revealed. This number could reach triple digits.
It would become difficult to keep track where each text block goes: "Did Text Block B go before or after Text Block A?"
I may have more than two PDF's, depending on what the needs of the documents are. Keeping track of the changes would become difficult.
The PDF's will be updated over time, so the manual edits would need to be repeated every time I want to update the PDF's.
Additional Info:
I know of ways to do this in LaTeX, but I wanted to use Microsoft Word since the equation buildup is easier in Microsoft Word than in LaTeX. If you know of a way to make the equation editing in LaTeX similar to how equation editing in Microsoft Word works (namely, having a built-up form that can be edited directly, as opposed to editing the source code), that would work as well. However, my attempts to find a LaTeX compiler that can do this have been fruitless.