Using a pseudo-cleft sentence:
The students are going to write theses.
What the students are going to do is (to)write theses
Using a pseudo-cleft sentence:
The students are going to write theses.
What the students are going to do is (to)write theses