So, basically:
1. In the "idle" state (Vin = 0, steady state): Q1 is OFF, so C1 is discharged through R2 and R3. Its potential difference is thus near zero, so you can consider that the circuit to Q2's base is VCC -> R2//R3. So, Q2 conducts (in saturation) and thus holds Vout at near zero.
2. When Vin transitions to +5V, Q1 starts conducting, so the voltage at its collector drops. When Q1 saturates, it connects its left end to GND. As C1 is initially discharged, what follows is that Q2's base is now at a near-zero voltage, and stops conducting. So Vout rises to Vcc via R4.
3. As long as Vin remains high, C1 gets charged through R3 and Q1, and so Q2's base voltage rises exponentially, until it reaches Q2's threshold. Then Q2 starts conducting, and Vout falls back. It will remain in that state until Vin itself falls back, and then the circuit gets back to case 1.
What determines the "pulse width" here is C1, R3 and Q2's threshold voltage.
C1/R3 have some impact on the fall time as Q2 transitions to saturation, but most of it comes from R4 and Q2's parasitic capacitances.
As to the rise time, it mostly comes from R1 and Q1's parasitic capacitance. There's also the question of the delay between the rising edge of Vin and the rising edge of Vout, which isn't shown on the book's waveforms.
Of course, this is still a simplified analysis. We could make it almost as complex as possible if taking all parasitics into account, the rise time of Vin, the parasitics of the voltage source for Vcc, the transition between linear and saturation regions for the transistors...