issue217:latex
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue217:latex [2025/05/17 17:59] – créée philou511 | issue217:latex [2025/06/03 14:06] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Welcome to another in this series of explorations of the Tex / Latex packages | + | **Welcome to another in this series of explorations of the Tex / Latex s available at CTAN.ORG. There are eight topics in the H section, two are languages, Hungarian and Hebrew. The others are headings, humanities, hyper, and three are about hyphenation. |
Normally headings are predefined by the document class being used. Often the default heading | Normally headings are predefined by the document class being used. Often the default heading | ||
- | I tested many of the heading packages available at CTAN.. The following worked well in my TexLive 2024 installation and look like fun to work with. | + | |
- | The quotchap package redefines the chapter and chapter* commands to produce fancy chapter headings (see image). It also allows for adding quotations at the beginning of each chapter if desired. The documentation is quite short, only six pages, most of which describes the coding of the package. There is one example of implementation at the user level which is easy to follow. There is also a sample four-page document available in the package on ctan.org. This package was last updated in 2020. (See figure 1) | + | I tested many of the heading packages available at CTAN.. The following worked well in my TexLive 2024 installation and look like fun to work with.** |
- | \usepackage{quotchap} | + | |
- | \usepackage{lipsum} | + | Bienvenue dans cette nouvelle série d' |
- | \title{Use of Chapter Quotes package} | + | |
- | \begin{document} | + | Normalement, |
- | \maketitle | + | |
- | This is an article about sea animals. The first section is about octopuses / octopi | + | J'ai testé de nombreux paquets de titres disponibles sur CTAN. Les paquets suivants ont bien fonctionné dans mon installation TexLive 2024 et semblent agréables à utiliser. |
- | \begin{savequote}[45mm] | + | |
- | C is for cookie, that's good enough for me. | + | |
- | | + | **The quotchap package |
- | \end{savequote} | + | |
- | \chapter{The Beginning} | + | The fncychap package has eight built-in (and named) chapter heading styles. One command in the preamble is all that is required to use any of these eight styles. Since these are chapter headings, the book document class needs to be used. Other document classes do not have chapter headings. Using the book document class automatically means double-sided printed and each chapter will start on a right-hand page. The eleven page documentation includes examples of seven of the built-in styles. There are also some instructions about how to modify the macro if you desire. |
- | \lipsum[1-2] | + | |
- | \begin{savequote}[60mm] | + | If you wish to have control over the way sections, subsections, |
- | The Year 313 was a horrible year | + | |
- | | + | Le paquet quotchap (code illustré à droite) redéfinit les commandes chapter et chapter* pour créer des titres de chapitre originaux (voir image). Il permet également d' |
- | \end{savequote} | + | |
- | \chapter*{Horrible!} | + | Le paquet fncychap propose huit styles de titres de chapitre intégrés (et nommés). Une seule commande dans le préambule suffit pour utiliser l'un de ces huit styles. Comme il s'agit de titres de chapitre, la classe de document book doit être utilisée. Les autres classes de document n'en ont pas. L' |
- | \chapter*{The Middle} | + | |
- | The fncychap package has eight built-in (and named) chapter heading styles. One command in the preamble is all that is required to use any of these eight styles. Since these are chapter headings, the book document class needs to be used. Other document classes do not have chapter headings. Using the book document class automatically means double-sided printed and each chapter will start on a right-hand page. The eleven page documentation includes examples of seven of the built-in styles. There are also some instructions about how to modify the macro if you desire. | + | Si vous souhaitez contrôler la numérotation des sections, sous-sections, |
- | \usepackage[Sonny]{fncychap} | + | |
- | \usepackage{lipsum} | + | |
- | \title{Use of the fncychap package} | + | **The number formats can be either upper or lower case letters, upper or lower case Roman numerals or arabic numbers. Separators between numbering levels can be used. Almost any keyboard character can be used for numbering except the codings for the numbering (A, a, I, i, 1), except curly braces, the number sign (pound sign) and except the space. If the comma is used in the setsecnum command the numbering of that section will not be displayed with the subordinate sections. You can see examples of both in the images with this article. |
- | \begin{document} | + | |
- | \maketitle | + | There are two other options available. The depth of the Table of Contents is controlled using tocdep = some integer from 1 to 5. The default “breaking” indicator is the comma as described in the previous paragraph. However it can be changed to any key other than the ones listed in the previous paragraph. The bulk of the documentation focuses on the commands in the macro. This is useful if you wish to modify the package. (See image far right) |
- | This sample uses the fncychap package. This is an article about sea animals. The first section is about octopuses / octopi | + | |
- | \chapter{The Beginning} | + | |
- | \lipsum[1-2] | + | |
- | \chapter*{Horrible!} | + | |
- | \chapter*{The Middle} | + | |
- | If you wish to have control over the way sections, subsections, | + | |
- | The number formats can be either upper or lower case letters, upper or lower case Roman numerals or arabic numbers. Separators between numbering levels can be used. Almost any keyboard character can be used for numbering except the codings for the numbering (A, a, I, i, 1), except curly braces, the number sign (pound sign) and except the space. If the comma is used in the setsecnum command the numbering of that section will not be displayed with the subordinate sections. You can see examples of both in the images with this article. | + | |
- | There are two other options available. The depth of the Table of Contents is controlled using tocdep = some integer from 1 to 5. The default “breaking” indicator is the comma as described in the previous paragraph. However it can be changed to any key other than the ones listed in the previous paragraph. The bulk of the documentation focuses on the commands in the macro. This is useful if you wish to modify the package. (See figure 3) | + | |
| | ||
+ | |||
\usepackage{secnum} | \usepackage{secnum} | ||
\setsecnum{A.1.i} %No comma separator | \setsecnum{A.1.i} %No comma separator | ||
+ | \begin{document} | ||
+ | \chapter{Formats}** | ||
+ | |||
+ | Les formats de nombres peuvent être des lettres majuscules ou minuscules, des chiffres romains majuscules ou minuscules ou des chiffres arabes. Des séparateurs entre les niveaux de numérotation peuvent être utilisés. Presque tous les caractères du clavier peuvent être utilisés pour la numérotation, | ||
+ | |||
+ | Deux autres options sont disponibles. La profondeur de la table des matières est contrôlée par tocdep = un entier compris entre 1 et 5. L' | ||
+ | |||
+ | Sans virgule : | ||
+ | |||
+ | \usepackage{secnum} | ||
+ | \setsecnum{A.1.i} %Pas de virgule | ||
\begin{document} | \begin{document} | ||
\chapter{Formats} | \chapter{Formats} | ||
- | The number formats can be either upper or lower case letters, upper or lower case Roman numerals or arabic numbers. Separators between numbering levels can be used. Almost any keyboard character except the codings for the numbering (A, a, I, i, 1) and except curly braces | + | |
+ | |||
+ | **The number formats can be either upper or lower case letters, upper or lower case Roman numerals or arabic numbers. Separators between numbering levels can be used. Almost any keyboard character | ||
\section{Comma} | \section{Comma} | ||
+ | |||
The comma is used in the setsecnum command; the number of that section will not be displayed with the subordinate sections. | The comma is used in the setsecnum command; the number of that section will not be displayed with the subordinate sections. | ||
+ | |||
+ | |||
\section{Options} | \section{Options} | ||
+ | |||
There are two other options available. The depth of the Table of Contents is controlled using tocdep = some integer from 1 to 5. The default “breaking” indicator is the comma as described in the previous paragraph. However it can be changed to any key other than the ones listed in the previous paragraph. | There are two other options available. The depth of the Table of Contents is controlled using tocdep = some integer from 1 to 5. The default “breaking” indicator is the comma as described in the previous paragraph. However it can be changed to any key other than the ones listed in the previous paragraph. | ||
+ | |||
\subsection{Bulk} | \subsection{Bulk} | ||
+ | |||
The bulk of the documentation focuses on the commands in the macro. This is useful if you wish to modify the package. | The bulk of the documentation focuses on the commands in the macro. This is useful if you wish to modify the package. | ||
- | With the comma | + | |
- | \usepackage{secnum} | + | Next month I will take a break from examining packages at CTAN. Instead I will embark on a practical project using some of the packages I have demonstrated |
- | \setsecnum{A.,1.i} %With comma separator – A is repeated | + | |
- | \begin{document} | + | Les formats |
- | \chapter{Formats} | + | |
- | The number | + | |
\section{Comma} | \section{Comma} | ||
- | The comma is used in the setsecnum command; the number of that section | + | |
+ | La virgule est utilisée dans la commande setsecnum ; le numéro de cette section | ||
\section{Options} | \section{Options} | ||
- | There are two other options | + | |
+ | Deux autres | ||
\subsection{Bulk} | \subsection{Bulk} | ||
- | The bulk of the documentation | + | |
- | Next month I will take a break from examining packages at CTAN. Instead I will embark on a practical project using some of the packages I have demonstrated in the last while. I hope you will join me. | + | La majeure partie de la documentation |
+ | |||
+ | Le mois prochain, je ferai une pause dans l' | ||
issue217/latex.1747497558.txt.gz · Dernière modification : 2025/05/17 17:59 de philou511