I can relate to this. During the past year, I've started having a problem with really bad flatulence. Not only is the sheer quantity of wind a problem, but also the smell. Makes it stressful being around colleagues and friends.
I've cut out dairy products to get rid of the lactose. That helped the smell alot.
I avoid black coffee and since I can't have the milk, that really rules coffee out. I have a habbit of eating really fast and I'm trying to slow this down and chew the food more thoroughly. I try belching as much as I can.
I'm also on a pill called dimetikon recip wich apparantly is supposed to reduce the surface tension of the gas bubbles so that they can be taken up by the passing food. I haven't used them long enough to see the result, but they say it ought to help a lot. The active substance is called antifoam and consists of dimetikon and siliconedioxide.
I fly shorthaul and find the constant decompressions and compressions a nuicanse. The worst part of it is that I'm only a F/O so I never get to take a walk during the turnarounds...
/LnS