Simulating sawtooth and triangular waveforms

It is not obvious but LTSPICE supports triangular or sawtooth periodic waveforms, too.
Of course, one could always resort to a PWL statement, but this gets tedious as the number of cycles increases.
Instead, use a pulsed source (voltage or current) with rise times and fall times set to create the desired triangular or sawtooth waveforms.