Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Dernière révision Les deux révisions suivantes | ||
2_programmation:erreurs:t:token_not_allowed_in_pdfdocencoded_string [2018/06/03 13:15] samcarter |
2_programmation:erreurs:t:token_not_allowed_in_pdfdocencoded_string [2021/04/09 14:09] yannick.tanguy Traduction de l'article anglais. |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Que signifie l' |
- | title: Token not allowed in PDFDocEncoded string | + | |
- | category: errors | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | The package | + | L' |
- | know how to make something into a " | + | |
- | of its PDF entries. For example, the (unlikely) sequence | + | < |
- | <!-- {% raw %} --> | + | |
- | ```latex | + | |
\newcommand{\filled}[2]{% | \newcommand{\filled}[2]{% | ||
#1% | #1% | ||
Ligne 17: | Ligne 10: | ||
} | } | ||
\section{\filled{foo}{bar}} | \section{\filled{foo}{bar}} | ||
- | ``` | + | </code> |
- | <!-- {% endraw %} --> | + | |
- | provokes the error. | + | Ici, [[ctanpkg> |
- | ```latex | + | |
+ | < | ||
removing `\hfil' | removing `\hfil' | ||
- | ``` | + | </ |
- | It's not surprising: how would _you_ put the | + | |
- | typesetting instruction `\hfil` into a PDF bookmark? | + | |
- | [`Hyperref`](https:// | + | Cette suppression de la commande'' |
- | things: the command `\texorpdfstring`, which takes two | + | |
- | arguments& | + | L' |
- | into the bookmark. For example, what you would probably like in this | + | * le premier est ce qui est composé |
- | case is just a single space in the bookmark; if so, the erroneous | + | * le second |
- | example above would become: | + | |
- | <!-- {% raw %} --> | + | Par exemple, ce que vous aimeriez probablement faire dans ce cas, c'est juste placer un seul espace dans le signet. Si tel est le cas, il faudrait alors écrire ceci : |
- | ```latex | + | |
+ | <code latex> | ||
\newcommand{\filled}[2]{% | \newcommand{\filled}[2]{% | ||
#1% | #1% | ||
Ligne 40: | Ligne 33: | ||
} | } | ||
\section{\filled{foo}{bar}} | \section{\filled{foo}{bar}} | ||
- | ``` | + | </code> |
- | <!-- {% endraw %} --> | + | |
- | and with that definition, the example will compile succesfully | + | Avec cette définition, l' |
- | ([`hyperref`](https:// | + | |
+ | ----- | ||
+ | //Source:// [[faquk> | ||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} |