Plug-in vehicles are becoming more widely accepted as an alternative to fossil fuel-powered cars and trucks. That’s good news, because they are better for the environment even after calculating the energy costs of producing them and generating electricity to charge them. The New York Times reports.