It's simpler than people think, to start, and harder than people think, to make work in a vehicle.
Heating any carbon source in the absence of oxygen causes the hydrogen molecules to peel off, you can see this happening in a campfire, if you know what to look for. A log will have smoke rolling...