NOVELTY - Treatment of coal formation in situ for producing hydrocarbon, involves transferring heat from one or more heat sources (801) to selected section of the formation and controlling heat transfer such that an average temperature within at least a majority of selected section of the formation is less than 375degreesC, and producing a mixture from the formation.    USE - For treating humic and underground coal formations for producing hydrocarbons, hydrogen, synthesis gas, carbon material which is used for steel manufacture, and ammonia which is used for producing urea (claimed). The synthesis gas is used for producing paraffins which are used for diesel, jet fuel and naphtha product, and for producing methane, methanol, gasoline, diesel fuel and ammonia. The synthesis gas is used as combustion fuel for heating the formation. The synthesis gas is used in energy generation units such as molten carbonate fuel cell, solid oxide fuel cell and other type of fuel cell. The cooled, spent portion of the coal formation is used to store and/or sequester other materials such as carbon dioxide. Also used for recovering crude oil values such as asphalt and multi-ring aromatics. Carbon dioxide in synthesis gas produced from coal formation, is used for production of synthesis gas and/or coal bed methane production.    ADVANTAGE - A mixture of high quality hydrocarbon products, hydrogen and other product, is produced. The hydrocarbons are pyrolyzed within a larger area of portion using fewer heat sources, as spacing between the heat sources is selected to increase the effectiveness of the heat source, thereby economic viability of selected in situ conversion process for hydrocarbon is increased. Uniformity of heat distribution in selected section of the formation is increased. The coal formation is heated economically, using systems having durability. The pressure of hydrogen in produced fluid is controlled, such that large amount of fluids having improved quality is provided. The reducing agent added to formation, reacts with hydrocarbon fragments to form selected products and inhibits production of non-selected products. The porosity of portion(s) of the formation is increased uniformly. The pyrolyzed portion(s) of formation has improved uniform permeability, thereby produces synthesis gas with high recovery efficiency, heating value and desired composition. The formation when cooled, increases strength of rock in the formation and absorptive capacity of the formation. Fluid released to the environment due to the operation of the in situ conversion process, is reduced or eliminated. Energy input cost is reduced by heating a portion of coal formation in combination with heating the portion of coal formation by an electrical heater.    DETAILED DESCRIPTION - INDEPENDENT CLAIMS are included for the following:    (1) In situ method for heating coal formation;    (2) In situ method for producing hydrogen from coal formation;    (3) Formation of heater wells in coal formation;    (4) System configured to heat the coal formation;    (5) Mixture produced from portion of coal formation;    (6) In situ production of synthesis gas from coal formation;    (7) Method of forming spent portion of formation within coal formation;    (8) Method of sequestering carbon dioxide within the coal formation;    (9) In situ production of energy from coal formation;    (10) Production of ammonia using coal formation; and    (11) Treatment of hydrocarbon in portion(s) of coal formation.    DESCRIPTION OF DRAWING(S) - The figure shows the use of pyrolysis water to generate synthesis gas in a formation.    Heat source (801)