issue186:latex
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue186:latex [2022/10/29 10:16] – créée auntiee | issue186:latex [2022/11/02 16:52] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | The use of text in columns is fairly common. You are not likely to use columns when writing an essay for school, or in a resume, or writing a story. Newspapers, magazines (like FCM), journals, business reports, all set type in columns in which the text flows down the page, then up to the next column, then down again, and on and on. As is usual in Latex, there are different ways to accomplish the task, the current task being to set text in columns. For small amounts of text, it is possible to use a table. (Formatting tables was reviewed in Full Circle Magazine #182.) For longer sections of text, or to avoid using tables, there are several tools available to format columns. If you search on CTAN for “multicol”, | + | **The use of text in columns is fairly common. You are not likely to use columns when writing an essay for school, or in a resume, or writing a story. Newspapers, magazines (like FCM), journals, business reports, all set type in columns in which the text flows down the page, then up to the next column, then down again, and on and on. As is usual in Latex, there are different ways to accomplish the task, the current task being to set text in columns. For small amounts of text, it is possible to use a table. (Formatting tables was reviewed in Full Circle Magazine #182.) For longer sections of text, or to avoid using tables, there are several tools available to format columns. If you search on CTAN for “multicol”, |
- | As is true for many features in Tex / Latex, there is little or no information to tell a new user how to include a new feature in their installation and how to use it. I checked information for the following environments: | + | As is true for many features in Tex / Latex, there is little or no information to tell a new user how to include a new feature in their installation and how to use it. I checked information for the following environments: |
- | Here is an explanation of cuted: Standard LATEX will switch between \onecolumn and \twocolumn only at the top of a page; the commands themselves clear the previous page. This package does away with the restriction, | + | L' |
+ | |||
+ | Comme c'est le cas pour de nombreuses fonctionnalités de TeX/LaTeX, il y a peu ou pas d' | ||
+ | |||
+ | |||
+ | **Here is an explanation of cuted: Standard LATEX will switch between \onecolumn and \twocolumn only at the top of a page; the commands themselves clear the previous page. This package does away with the restriction, | ||
The documentation for vwcol is 24 pages. It sets out the purpose of the environment clearly at the beginning. Vwcol is designed for paragraphs of text to be in multiple columns of various widths. The columns cannot span multiple pages. The environment is not designed for anything but text. | The documentation for vwcol is 24 pages. It sets out the purpose of the environment clearly at the beginning. Vwcol is designed for paragraphs of text to be in multiple columns of various widths. The columns cannot span multiple pages. The environment is not designed for anything but text. | ||
Ligne 9: | Ligne 14: | ||
The documentation for multicol is 39 pages, a lot to read if you are only trying to set up the layout of a document that is overdue. The environment multicols allows for single-column and multi-column layouts on the same page. | The documentation for multicol is 39 pages, a lot to read if you are only trying to set up the layout of a document that is overdue. The environment multicols allows for single-column and multi-column layouts on the same page. | ||
- | I am going to experiment only with multicol and vwcol in this article. I will use the lipsum package to generate fake text, as usual. I will experiment to find out if tables and images can be included in columns. I will start with vwcol since it was developed first (see code above). | + | I am going to experiment only with multicol and vwcol in this article. I will use the lipsum package to generate fake text, as usual. I will experiment to find out if tables and images can be included in columns. I will start with vwcol since it was developed first (see code above).** |
- | I hope the code is reasonably self-explanatory. The option “widths” sets up the number and size of the columns. In this example I used decimals, per-cents are also acceptable, as are physical units like inch and cm. If Latex calculates the total of the column widths plus the spacing between columns exceeds the margin widths, the file will not compile. The “rule=1pt” tells Latex to put a line 1 point wide between the columns. | + | Voici une explication de cuted : Le LATEX standard ne passe du mode \onecolumn au mode \twocolumn qu'en haut d'une page ; les commandes elles-mêmes effacent la page précédente. Ce paquet supprime cette restriction et vous permet de mélanger les modes une et deux colonnes sur une même page. La documentation PDF fait moins de deux pages et explique ce que font les options et comment les activer. |
+ | |||
+ | La documentation de vwcol compte 24 pages. Elle expose clairement l' | ||
+ | |||
+ | La documentation de multicol fait 39 pages, ce qui est beaucoup à lire si vous essayez seulement de configurer la mise en page d'un document qui est en retard. L' | ||
+ | |||
+ | Je vais essayer uniquement multicol et vwcol dans cet article. Comme d' | ||
+ | |||
+ | |||
+ | **I hope the code is reasonably self-explanatory. The option “widths” sets up the number and size of the columns. In this example I used decimals, per-cents are also acceptable, as are physical units like inch and cm. If Latex calculates the total of the column widths plus the spacing between columns exceeds the margin widths, the file will not compile. The “rule=1pt” tells Latex to put a line 1 point wide between the columns. | ||
Vwcol is restricted to putting columns on one page. When I added lipsum[5] inside the vwcol environment, | Vwcol is restricted to putting columns on one page. When I added lipsum[5] inside the vwcol environment, | ||
If you are writing or laying out a newsletter or magazine you want to be able to have articles that flow from one page to the next. Vwcol is not adequate for this work. | If you are writing or laying out a newsletter or magazine you want to be able to have articles that flow from one page to the next. Vwcol is not adequate for this work. | ||
- | I will next experiment with the multicol environment using similar code to what I used with vwcol (top left). | + | I will next experiment with the multicol environment using similar code to what I used with vwcol (top left).** |
- | Notice the name of the package is multicol but, to begin and end the environment, | + | J' |
+ | |||
+ | Vwcol est limité à la mise en place de colonnes sur une page. Lorsque j'ai ajouté lipsum[5] dans l' | ||
+ | |||
+ | Si vous écrivez ou mettez en page une lettre d' | ||
+ | |||
+ | Je vais maintenant expérimenter l' | ||
+ | |||
+ | |||
+ | **Notice the name of the package is multicol but, to begin and end the environment, | ||
\def\columnseprulecolor{\color{red}} | \def\columnseprulecolor{\color{red}} | ||
Ligne 26: | Ligne 49: | ||
The ability to switch from multiple columns to a single column allows for images and tables and other items to go from left margin to right margin without interfering with the columns of text. | The ability to switch from multiple columns to a single column allows for images and tables and other items to go from left margin to right margin without interfering with the columns of text. | ||
- | The multicol environment has a great deal of flexibility. It should satisfy the needs of most writers and editors who need multi-column layouts. I strongly recommend reading the accompanying PDF file and experimenting with various options before attempting to use the multicol environment in production. | + | The multicol environment has a great deal of flexibility. It should satisfy the needs of most writers and editors who need multi-column layouts. I strongly recommend reading the accompanying PDF file and experimenting with various options before attempting to use the multicol environment in production.** |
+ | |||
+ | Remarquez que le nom du paquet est multicol mais que, pour commencer et terminer l' | ||
+ | |||
+ | \def\columnseprulecolor{\color{red}}. | ||
+ | |||
+ | Si j' | ||
+ | |||
+ | Je peux introduire un autre environnement multicols avec le même nombre, ou un nombre différent, de colonnes. La possibilité de passer de plusieurs colonnes à une seule permet aux images, tableaux et autres éléments de passer de la marge de gauche à la marge de droite sans interférer avec les colonnes de texte. | ||
+ | |||
+ | L' | ||
issue186/latex.1667031366.txt.gz · Dernière modification : 2022/10/29 10:16 de auntiee