Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
Prochaine révision Les deux révisions suivantes
2_programmation:macros:que_sont_les_environnements [2018/05/24 08:40]
joseph.wright
2_programmation:macros:que_sont_les_environnements [2018/06/03 14:19]
samcarter
Ligne 1: Ligne 1:
 --- ---
-sectionBits and pieces of (La)TeX+titleWhat are LaTeX "environments" 
 +category: concepts 
 +permalink: /FAQ-whatenv
 date: 2014-06-10 date: 2014-06-10
 --- ---
- 
-# What are LaTeX ''environments'' 
  
 While TeX makes direct provision for commands, LaTeX adds a While TeX makes direct provision for commands, LaTeX adds a
-concept of ''environment''; environments perform an action on a block+concept of "environment"; environments perform an action on a block
 (of something or other) rather than than just doing something at one (of something or other) rather than than just doing something at one
 place in your document. place in your document.
Ligne 29: Ligne 29:
 environment is introduced by `\begin{document}`; it looks environment is introduced by `\begin{document}`; it looks
 simple, but needs all sorts of special TeX code to make it work simple, but needs all sorts of special TeX code to make it work
-''transparently''; most environments are more elaborate than+"transparently"; most environments are more elaborate than
 `monoblock` and _much_ simpler than `monoblock` and _much_ simpler than
 `document`. `document`.
  
 An environment puts its content inside a TeX _group_, so that An environment puts its content inside a TeX _group_, so that
-commands used inside the environment don'''leak out'' — the+commands used inside the environment don'"leak out" — the
 `monoblock` environment, above, restricts its effect to `monoblock` environment, above, restricts its effect to
 its own contents (the stuff between the `\begin{monoblock}` its own contents (the stuff between the `\begin{monoblock}`
Ligne 40: Ligne 40:
 sort of thing. sort of thing.
  
-So that'''simple'' environments; the `monoblock`, above+So that'"simpleenvironments; the `monoblock`, above
 doesn't actually gain us much over doesn't actually gain us much over
 ```latex ```latex
2_programmation/macros/que_sont_les_environnements.txt · Dernière modification: 2021/11/27 10:02 de yannick.tanguy
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0