I want to make notes in the form of definitions, theorems, proofs (of theorems), examples and illustrations ( images ). Each definition, theorem, etc. is an item in a ( virtual ) list. The point being that I want to decide at the latest possible moment how to present the information in the form of notes, a book, presentation slides, whatever. - I will make my notes in LaTeX ( using TeXstudio for Windows.) I might need XML or something like Docbook for my needs, I am not sure. I am looking for a small example to start in the right direction. So my notes will look like this.
Definition. A space is a set which admits to some type of structure. Theorem. Let P,Q be points in the plane. Now P,Q, .... Proof. Given P,Q. Therefore, ... Definition. A set is a collection of objects.
The notes as such will be written in LaTeX. I might want to present the notes in several formats. For example, the following three. ( Key is that I want to decide about the presentation issue as late as possible. )
Format 1: Title Contents Chapter 1: Definitions Chapter 2: Examples Chapter 3: Theorems Chapter 4: Proofs Chapter 1: Definitions (Section) 1: Space Definition. A space is a set which admits to some type of structure. ( The word space typeset in bold ) (Section) 2: Set Definition. A set is a collection of objects. Chapter 2: Examples Example 1. Example 2.
Format 2: The same as above but in cheat-sheet layout, so no title page, contents, just a listing of the notes in multi-column format. See: https://www.sharelatex.com/templates/other/math-cheat-sheet
Format 3: The proofs only. Each proof in slide format, with each paragraph of the proof on a single page.
I have experience in writing LaTeX documents, so I could produce the requested formats but this would involve a lot of duplication of text and so forth. I am looking for the ( unknown to me ) extra step, tool whatever, so that I can fully concentrate myself on the contents of my work and worry about presentation later without duplication of elements. I do understand and accept that this might require ( a lot of ) preparatory work, if it would achieve the goals as outlined above then I am gladly willing to invest the time.
Now the (concrete, answerable) question. Do I need additional tools than TexStudio? If so, which one(s)? If not, what is that I have to do in LaTeX? Make my own document classes perhaps? If so, then how can I create three ( or more ) documents from one text file?
I will appreciate any ideas, tips, examples, pointers in the right direction.