issue222:latex
                Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| issue222:latex [2025/11/03 08:20] – d52fr | issue222:latex [2025/11/03 08:52] (Version actuelle) – d52fr | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| Every Latex command starts with a back-slash. Every Latex file starts with: \documentclass[options]{class name}. Unless I state otherwise, I start with \documentclass[11pt, | Every Latex command starts with a back-slash. Every Latex file starts with: \documentclass[options]{class name}. Unless I state otherwise, I start with \documentclass[11pt, | ||
| + | |||
| + | Bienvenue ou re-bonjour dans le FCM et dans le monde de LaTeX. Je me suis rendu compte récemment que j'ai présenté des paquets aux fonctions spécifiques, | ||
| + | |||
| + | Chaque commande LaTeX commence par une barre oblique inverse. Chaque fichier LaTeX commence par « \documentclass[options]{nom de la classe} ». Sauf indication contraire, je commence par « \documentclass[11pt, | ||
| + | |||
| **This time, I am going to explore packages available in the K and L topics at ctan.org. Well... not K since it contains only one package other than those using Tex / Latex in Korean, Kurdish and Kurmanji.  | **This time, I am going to explore packages available in the K and L topics at ctan.org. Well... not K since it contains only one package other than those using Tex / Latex in Korean, Kurdish and Kurmanji.  | ||
| Ligne 8: | Ligne 13: | ||
| There is a long list of packages in the Layout topic, all have to do with the placement of items on pages. One I have discussed previously is the widows-and-orphans package. It identifies widows and orphans in a document: single lines of text at the bottom or top of a page which belong to text on the previous or next page. Once identified, the document author can then make suitable adjustments.** | There is a long list of packages in the Layout topic, all have to do with the placement of items on pages. One I have discussed previously is the widows-and-orphans package. It identifies widows and orphans in a document: single lines of text at the bottom or top of a page which belong to text on the previous or next page. Once identified, the document author can then make suitable adjustments.** | ||
| + | |||
| + | Cette fois-ci, je vais explorer les paquets disponibles dans les thèmes K et L sur ctan.org. Enfin… pas K, car il ne contient qu'un seul paquet, outre ceux utilisant TeX/LaTeX pour le coréen, le kurde et le kurmandji. | ||
| + | |||
| + | Le thème L compte une quarantaine de paquets. Les langues représentées sont le latin, le letton et le lituanien. Il existe un thème appelé lang-invented qui contient deux paquets : un pour l' | ||
| + | |||
| + | Le thème Layout propose une longue liste de paquets, tous liés au placement des éléments sur les pages. J'ai déjà évoqué le paquet « widows-and-orphans » (veuves et orphelins). Il identifie les veuves et les orphelins dans un document : des lignes de texte isolées en haut ou en bas d'une page qui appartiennent au texte de la page précédente ou suivante. Une fois identifiés, | ||
| + | |||
| **A package called booklets can be helpful to people making small publications or making signatures for books. The documentation says “the pages of documents processed by the booklet package will be reordered and scaled so that they can be printed as four pages per physical sheet of paper, two pages per side of the sheet.” It continues “the default orientation is that the original document is in a portrait orientation and the pages are printed rotated onto a landscape sheet. Folding the sheet in half will produce a half-sized document, again with portrait orientation.” | **A package called booklets can be helpful to people making small publications or making signatures for books. The documentation says “the pages of documents processed by the booklet package will be reordered and scaled so that they can be printed as four pages per physical sheet of paper, two pages per side of the sheet.” It continues “the default orientation is that the original document is in a portrait orientation and the pages are printed rotated onto a landscape sheet. Folding the sheet in half will produce a half-sized document, again with portrait orientation.” | ||
| The document class Leaflet is somewhat similar to booklet. It produces a two-page leaflet. The contents are printed in three fully justified columns. If printed two-sided in landscape mode, the paper can be folded to make a leaflet. The size of the sheet of paper is controlled through the options in the documentclass declaration in the first line of the document preamble. There are very detailed descriptions of the coding of this document class in the documentation. To use the default settings, simply change the documentclass to “leaflet”.** | The document class Leaflet is somewhat similar to booklet. It produces a two-page leaflet. The contents are printed in three fully justified columns. If printed two-sided in landscape mode, the paper can be folded to make a leaflet. The size of the sheet of paper is controlled through the options in the documentclass declaration in the first line of the document preamble. There are very detailed descriptions of the coding of this document class in the documentation. To use the default settings, simply change the documentclass to “leaflet”.** | ||
| + | |||
| + | Le paquet « booklets » peut s' | ||
| + | |||
| + | La classe de document « Leaflet » est similaire à « booklet ». Elle génère un dépliant de deux pages. Le contenu est imprimé sur trois colonnes justifiées. Imprimé en recto verso au format paysage, le document peut être plié pour former un dépliant. Le format de la feuille est contrôlé par les options de la déclaration de classe de document, située sur la première ligne du préambule du document. La documentation contient des descriptions très détaillées du code de cette classe de document. Pour utiliser les paramètres par défaut, il suffit changer la classe de document par « leaflet ». | ||
| + | |||
| **Another layout package that is of interest is hanging. As you might guess, it will set up hanging indents. An ordinary indent moves the start of line one of a paragraph a set space to the right of the left paragraph margin. A hanging indent starts line one at the left paragraph margin and moves (indents) the rest of the paragraph a set amount. Traditionally the default indent was five spaces. The hanging indent package allows the user to set the indent space at whatever distance the page designer wishes. | **Another layout package that is of interest is hanging. As you might guess, it will set up hanging indents. An ordinary indent moves the start of line one of a paragraph a set space to the right of the left paragraph margin. A hanging indent starts line one at the left paragraph margin and moves (indents) the rest of the paragraph a set amount. Traditionally the default indent was five spaces. The hanging indent package allows the user to set the indent space at whatever distance the page designer wishes. | ||
| First (of course) the page designer must have usepackage{hanging} in the document preamble. In the body of the document, this package allows you to set a hanging indent either for single paragraphs or for a group of paragraphs using either hangingpara (one paragraph), or the hangingparas environment for a group of paragraphs. Both commands take two options: a measure of the length of the indent and a number of lines to be affected by the hanging command. The length of the indent can be any unit accepted by Latex, so in, cm, mm, em, etc. I also tried a negative number for the size of the indent. It indents the right side of the paragraph from the paragraph margin on the right side. The hangingparas is an environment so it starts with \begin{hanagingparas} and closes with \end{hangingparas}. Otherwise the two commands are the same.** | First (of course) the page designer must have usepackage{hanging} in the document preamble. In the body of the document, this package allows you to set a hanging indent either for single paragraphs or for a group of paragraphs using either hangingpara (one paragraph), or the hangingparas environment for a group of paragraphs. Both commands take two options: a measure of the length of the indent and a number of lines to be affected by the hanging command. The length of the indent can be any unit accepted by Latex, so in, cm, mm, em, etc. I also tried a negative number for the size of the indent. It indents the right side of the paragraph from the paragraph margin on the right side. The hangingparas is an environment so it starts with \begin{hanagingparas} and closes with \end{hangingparas}. Otherwise the two commands are the same.** | ||
| + | |||
| + | Un autre module de mise en page intéressant est « hanging ». Comme son nom l' | ||
| + | |||
| + | Tout d' | ||
| + | |||
| **This package also allows for hanging punctuation. I do not know what hanging punctuation might be used for. If this sounds interesting to you, read the documentation that comes with the hanging package. | **This package also allows for hanging punctuation. I do not know what hanging punctuation might be used for. If this sounds interesting to you, read the documentation that comes with the hanging package. | ||
| The Leading package is very useful for many documents. The term “leading” is pronounced to rhyme with “sledding”, | The Leading package is very useful for many documents. The term “leading” is pronounced to rhyme with “sledding”, | ||
| + | |||
| + | Ce module permet également l' | ||
| + | |||
| + | Le paquet Leading est très utile pour de nombreux documents. Le terme « leading » (interlignage) se prononce comme le mot « sledding » (comme s'il s' | ||
| + | |||
| **The leading package allows the page designer to control the line spacing rather than using the Latex default. Of course the larger the value of the leading the more space required for the document. Sometimes leading is adjusted so make sure a document fills a page but does not overflow onto another page. Magazines, newspapers and journals almost always use consistent type sizes and leading. Sometimes certain features, like call outs, use different type sizes and leading to separate them from the main articles. Headings are normally made larger than body text and the leading is also increased. As the author points out in the short documentation for this package, using the leading instruction fixes its size. If the font size is changed later then the leading size may need to be adjusted. | **The leading package allows the page designer to control the line spacing rather than using the Latex default. Of course the larger the value of the leading the more space required for the document. Sometimes leading is adjusted so make sure a document fills a page but does not overflow onto another page. Magazines, newspapers and journals almost always use consistent type sizes and leading. Sometimes certain features, like call outs, use different type sizes and leading to separate them from the main articles. Headings are normally made larger than body text and the leading is also increased. As the author points out in the short documentation for this package, using the leading instruction fixes its size. If the font size is changed later then the leading size may need to be adjusted. | ||
| In complex or complicated documents, sometimes it is helpful to get a view of how the various pieces fit together. There is a package called Layouts which will help with this. It enables the display of a document’s layout, usually at 50% of the real size, but this is adjustable. There is extensive 55-page documentation available. Page layout parameters can all be changed using the \setlength command, for example: \setlength{parameter}{length}. Length units can be any unit accepted by Latex. If you want to know what the current parameters and their lengths are, use the \pagevalues command.** | In complex or complicated documents, sometimes it is helpful to get a view of how the various pieces fit together. There is a package called Layouts which will help with this. It enables the display of a document’s layout, usually at 50% of the real size, but this is adjustable. There is extensive 55-page documentation available. Page layout parameters can all be changed using the \setlength command, for example: \setlength{parameter}{length}. Length units can be any unit accepted by Latex. If you want to know what the current parameters and their lengths are, use the \pagevalues command.** | ||
| + | |||
| + | Le paquet « leading » permet au concepteur de page de contrôler l' | ||
| + | |||
| + | Dans les documents complexes, il est parfois utile d' | ||
| + | |||
| **I have shown an example of the layouts package output without text to keep the image simple. You can and probably should use it with the parameters set to your desired lengths and with all the necessary contents. The layouts package will help you determine if your choices make an attractive document. Few people will read by choice what they consider to be a poorly designed or ugly document. One warning: you must use the \setuplayouts command after the begin{document} command and before any commands which might affect the text block, for example, font sizes or margins. The author recommends putting it immediately after the begin{document} command. | **I have shown an example of the layouts package output without text to keep the image simple. You can and probably should use it with the parameters set to your desired lengths and with all the necessary contents. The layouts package will help you determine if your choices make an attractive document. Few people will read by choice what they consider to be a poorly designed or ugly document. One warning: you must use the \setuplayouts command after the begin{document} command and before any commands which might affect the text block, for example, font sizes or margins. The author recommends putting it immediately after the begin{document} command. | ||
| Ligne 32: | Ligne 64: | ||
| Some text for the front cover | Some text for the front cover | ||
| \end{frontcover}** | \end{frontcover}** | ||
| + | |||
| + | J'ai inclus un exemple de rendu du paquet layouts sans texte afin de simplifier l' | ||
| + | |||
| + | Dans le thème L, de nombreux paquets sont dédiés à la création de lettres. Le paquet gcard permet de générer une carte de vœux à partir d'une feuille de papier. Une fois pliée en deux, puis encore en deux, la feuille forme la couverture, les pages intérieures gauche et droite, et la quatrième de couverture. Le paquet crée quatre environnements, | ||
| + | |||
| + | \begin{frontcover} | ||
| + | Texte pour la couverture | ||
| + | \end{frontcover} | ||
| + | |||
| **The same structure is used for insideleft, insideright and backcover. Any page environments not set up are left blank when the file is compiled. According to the author this is a very simple package which should not interfere with any other package. That means you can use fonts, colours and graphics to make printed cards attractive. As I said, this package is designed for printing cards on paper. It does not make e-cards. | **The same structure is used for insideleft, insideright and backcover. Any page environments not set up are left blank when the file is compiled. According to the author this is a very simple package which should not interfere with any other package. That means you can use fonts, colours and graphics to make printed cards attractive. As I said, this package is designed for printing cards on paper. It does not make e-cards. | ||
| - | The last package for this time is called Coloredbelts. The author wanted a way to insert simulated coloured belts into documents like judo or karate or taekwondo belts. These could be useful to indicate levels of attainment or simply to add visual interest to a document.** | + | The last package for this time is called Coloredbelts. The author wanted a way to insert simulated coloured belts into documents like judo or karate or taekwondo belts. These could be useful to indicate levels of attainment or simply to add visual interest to a document. | 
| - | **This is a fun package to play with. There is four-page documentation for this package. It lists the available colour names and has a few examples. The size of the belt can be changed with width and height options. Since the belts are inline objects they can be affected by commands used to change font size. There is a nice graphic illustrating the possibilities in the documentation. Because the belts are SVG images in individual PDF files, each belt can also be rotated or scaled. | + | This is a fun package to play with. There is four-page documentation for this package. It lists the available colour names and has a few examples. The size of the belt can be changed with width and height options. Since the belts are inline objects they can be affected by commands used to change font size. There is a nice graphic illustrating the possibilities in the documentation. Because the belts are SVG images in individual PDF files, each belt can also be rotated or scaled. | 
| There are many more packages linked to the L topic. Perhaps I will come back to this area in the future. For this time, enjoy your work with Latex. Let me know if there is some situation which requires some help, or if you want to know will Latex do this.** | There are many more packages linked to the L topic. Perhaps I will come back to this area in the future. For this time, enjoy your work with Latex. Let me know if there is some situation which requires some help, or if you want to know will Latex do this.** | ||
| + | |||
| + | La même structure est utilisée pour les champs insideleft, insideright et backcover. Les environnements de page non définis sont laissés vides lors de la compilation. Selon l' | ||
| + | |||
| + | Le dernier paquet présenté ici s' | ||
| + | |||
| + | Ce paquet est très amusant à utiliser. Sa documentation de quatre pages répertorie les noms de couleurs disponibles et propose quelques exemples. La taille de la ceinture peut être modifiée grâce aux options de largeur et de hauteur. Les ceintures étant des objets intégrés, elles peuvent être affectées par les commandes de modification de la taille de la police. Un schéma illustrant les possibilités est disponible dans la documentation. Comme les ceintures sont des images SVG dans des fichiers PDF individuels, | ||
| + | |||
| + | Il existe de nombreux autres paquets liés à LaTeX. Je reviendrai peut-être sur ce sujet ultérieurement. En attendant, profitez bien de votre travail avec LaTeX. N' | ||
issue222/latex.txt · Dernière modification : 2025/11/03 08:52 de d52fr
                
                