I put some papers into a biscuit tin and put it over fire and baked it. Then I made a small hole at the top and saw yellowish smoke coming out. Any idea what the smoke could be?
What you've performed is, technically, "thermal decomposition of cellulose", or pyrolysis. During heating, there are large number of changes producing many different chemicals, so the smoke you saw was a mixture of different chemicals.