I would recommend getting a book about particles... even something like A Dictionary of Japanese Particles. Which is only about $15 (USD) at present.
Something to consider before getting into the particle combinations is the idea of は and が. There are a lot of different rules (sometimes seemingly-contradictory rules,) for は and が. But for the sake of simplicity, just remember that は is often the first, main subject of a sentence. が is kind of the second main subject (the "newer subject" or "focus point",) of a sentence.
Now let's get into the combinations from the question.
According to A Dictionary of Japanese Particles:
とは
- とは is a combination of particles と and は
- can mean: "the thing that is called" (i.e. ボタン*とは*なんですか。)
- can mean: with (i.e. わたし、Aさん*とは*スポーツをしたり、勉強したりします。)
- can mean: "surprise/shock about something" (i.e. あの人がそんなバカなことを言った*とは*・・・)
In the first example, とは actually seems related to when って is used after dialog, like this: 「ボタン」って、何ですか。 ("Button" <- pointing to subject, what is?) It's a sort of marker for the previous word... something that makes a sort of subject out of the phrase before とは.
のは
- When のは is used, it often refers to a subject (placed in front of のは,) for example:
- 勉強をする*のは*難しいことです。(i.e. Studying is hard. -or- The thing of studying is hard.) Using のは like this effectively turns a subject (a noun or a concept,) into a subject of the sentence.
のが
ことが
- With the example given with のが, ことが is essentially the same thing. It creates a concept from a given noun, verb, or phrase.