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
2_programmation:erreurs:not_in_outer_par_mode [2018/05/23 22:30]
joseph.wright
— (Version actuelle)
Ligne 1: Ligne 1:
---- 
-ID: Q-parmoderr 
-section: The joy of TeX errors 
-revised: 2014-06-10 
---- 
-# Not in outer par mode 
- 
-For example: 
-```latex 
-*\mbox{\marginpar{foo}} 
- 
-! LaTeX Error: Not in outer par mode. 
-``` 
-The error comes when you try to build something movable inside a box. 
-Movable things, in this context, are floating environments 
-(`figure` and `table`, for example), and 
-`\marginpar`s. ​ LaTeX simply doesn'​t have the mechanisms for 
-floating out of boxes. ​ In fact, floats and `\marginpar`s 
-themselves are built out of boxes, so that they can't be nested. 
- 
-If your error arises from `\marginpar`,​ you simply have to think of 
-an alternative way of placing the command; there is no slick solution. 
- 
-If a floating environment is the culprit, it may be possible to use 
-the `H` placement option, provided (for example) by the 
-[`float`](https://​ctan.org/​pkg/​float) package: 
-<!-- {% raw %} --> 
-```latex 
-\parbox{25cm}{% 
-  \begin{figure}[H] 
-  ... 
-  \caption{Apparently floating...} 
-  \end{figure}% 
-} 
-``` 
-<!-- {% endraw %} --> 
-This example makes little sense as it stands; however, it is 
-conceivable that sane uses could be found (for example, using a 
-package such as [`algorithm2e`](https://​ctan.org/​pkg/​algorithm2e) to place two algorithms 
-side-by-side). 
- 
  
2_programmation/erreurs/not_in_outer_par_mode.1527107426.txt.gz · Dernière modification: 2018/05/23 22:30 par joseph.wright
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0