Mrlen, I had a similar situation on my personal home when it was being built. My original plan called for a 24" wide area for the toilet. My plumber recommended a minimum of 30". The toilet is next to the shower, like yours, and I couldn't take any more out of the shower space, so I took it from a nearby closet to get the 30" (I think we ended up with 31 1/2" in the end) and boy, am I glad I did. 24" is too small, by the time you hang a paper holder and all. Measure from the center of the toilet flange to the stud, and make sure it's 15 1/2". This allows 1/2" for the drywall or whatever is on the outside of the shower. I don't know what the code is in your area, but this seemed to give me plenty of room. If you need to move the toilet flange away from the shower wall, you can get an offset flange which will give you more room (can't remember if it's 1 1/2", or more) Hope this helps.
_________________________
The top ten reasons to procrastinate:
1.