Make 1 column from two column environment with LaTeX -


I am creating a document with twokumn , but sometimes twocolumn < / Code> is also narrow for source code listings.

I found the multicolor environment and it has been used as such:

% \ documentclass [twocolumn] {article}% I not using toll columns But multicolum \ documentclass [] {article} \ usepackage {multicol} ... \ start {multicols}} {2} \ section {short} ... \ end {multicols *}% I now use a Column \ start {multicols *} {1} ... \ end {multicols *} 

The result is not what I wanted

What is wrong with my latex code? What do you do for this matter?

I tried to use a shape * environment, but it just floats around, so I do not want to use it.

Does it give you what you want?

  \ documentclass [] {article} \ usepackage {multicol} \ start {document} \ start {multicols} {2} \ section {collapse} in double column text here. . Double column text here . . Double column text here. . . Double column text here. . . Double column text here. . . . \ End {multicols}% I now use a column, do not enter any multicol command here, you are in the outer single column document, which already insert single column text. Enter single column text here. Enter single column text here. Enter single column text here. Enter single column text here. Enter single column text here. . . . \ Start {multicols} {2} \ section {concise} in double column text here. . . Double column text here. . . Double column text here. . . Double column text here. . . Double column text here. . . \ End {multicols} \ end {document}  

Comments