Electronic data typesetting method and device

The invention discloses an electronic data typesetting method and a device. The method comprises the following steps of: presetting a template required to be typeset, wherein the template comprises a cross screen template and/or a vertical screen template; selecting the corresponding template according to a screen browsing mode; carrying out first typesetting on electronic data to be typeset by utilizing the template, wherein the first typesetting comprises the typesetting carried out on the electronic data to be typeset through selecting the cross screen template and/or the vertical screen template; setting an association relationship among parameters according to the preset conditions, wherein the parameters comprise titles of articles, pictures and/or abstracts of the articles, and the association relationship among the parameters comprises a relation between positions of the parameters and spaces occupied by the parameters; and carrying out second typesetting on the electronic data to be typeset by utilizing the association relationship among the parameters. The electronic data typesetting method and the device have the beneficial effects that through the first and the second typesetting, the contents of the articles can be accurately reflected, the reading experience is improved, and the problem that the pictures and other multimedia contents can not be completely displayed is solved.