NOVELTY - A coal formation is treated in situ by providing heat from heat sources to at least a portion of the formation, allowing heat to transfer from the heat sources to selected section of the formation, controlling the heat from the heat sources so that the average temperature within the selected section is less than 375 degrees C, and producing a mixture from the formation.    USE - The method is for treating coal formation in situ to produce a mixture of hydrocarbons, synthesis gas, and/or other formation fluid. It is useful in producing ammonia for fertilizer. The synthesis gas comprises H2 and carbon dioxide). A CO2 is used for hydrocarbon bed demethanation, as drive fluid in enhancing oil (e.g., methane) recovery in the oil reservoir, and in producing urea. The hydrocarbons comprise olefins, N2, oxygen, oxygen containing compounds comprising phenols, aromatic compounds, multi-ring aromatics, asphaltenes, cycloalkanes, hydrogen sulfide, and CO2 (all claimed).    ADVANTAGE - The inventive method utilizes energy input of reduced cost, thus it is more economical than the conventional method. It includes controlling the heat provided to the formation, thus increasing the uniformity of permeability within the formation and inhibiting the production of less desirable products. The increased in uniform permeability results to high recovery efficiency of synthesis gas.    DETAILED DESCRIPTION - INDEPENDENT CLAIMS are included for the following:    (a) a method of installing of wells in coal formation comprising forming a wellbore in the formation by geosteered drilling, and providing heating element within the wellbore;    (b) a system for heating a coal formation comprising heater disposed in the opening of the formation, and oxidizing fluid source provided by a conduit;    (c) a method of sequestering carbon dioxide (CO2) within a coal formation comprising heating a portion of formation, allowing the portion to cool, and storing the CO2 within the portion;    (d) a mixture produced from a portion of coal formation comprising olefin (less than 10 wt.%), and average carbon (less than 35 wt.%);    (e) a method of in situ production of energy from the coal formation comprising providing heat to formation, allowing the heat to transfer, producing pyrolysis products from the formation, providing the products to reformer to generate synthesis gas, providing the produced synthesis gas to fuel cell to produce electricity, and storing portion of CO2 in an exit stream in a subsurface formation.    The system allows heat to transfer by conduction from reaction zone to pyrolysis zone of the formation during use.