OK, j'ai examiné l'archive. L'erreur entre dans la catégorie « Quelque chose de très étrange se passe »
L'erreur était due au fait que TeX essayait de transformer le texte متّی\mt1 متّی en partie de la ligne d'en-tête courante (\h).
\h est une ligne spéciale qui, en raison de la façon dont elle est utilisée dans PTXprint, doit se trouver sur une ligne à elle seule, sans aucun autre marqueur USFM qui la suit. Le fichier USFM final contient une ligne :
\h متّی\mt1 متّی
Qui en est la cause.
Votre fichier SFM d'entrée ne semble pas contenir cette ligne, mais elle est présente lorsque le fichier arrive à TeX. J'ai donc supposé que c'était le fichier de modifications, et en effet, désactiver le fichier de modifications résout le problème.
En creusant davantage, je trouve cette ligne dans changes.txt
"(\\toc3 (.+?)\s+)" > "\1\\h \2"
Cette ligne place \h sur la même ligne que ce qui suit.
La version suivante ne provoquera pas de plantages :
"(\\toc3 (.+?)\s+)" > "\1\\h \2\n"
Le \n à la fin ajoute une nouvelle ligne.
OK, I’ve had a look at the archive. The error comes into the class of “Something very odd is happening”
The error was because TeX was trying to turn the text متّی\mt1 متّی into part of the running header line (\h).
\h is a special line which, because of how it is used in PTXprint, must occur on a line on its own, with no other USFM markers following it. The final USFM has a line:
\h متّی\mt1 متّی
Which is the cause.
Your input SFM file does not seem to contain this line, but it’s there’s one by the time the file gets to TeX. So I guessed that it is the changes file, and sure enough, turning off the changes file fixes the problem.
Digging deeper, I find this line, in changes.txt
"(\\toc3 (.+?)\s+)" > "\1\\h \2"
That line puts \h on the same line with whatever follows it.
The following is a version which will not cause crashes:
"(\\toc3 (.+?)\s+)" > "\1\\h \2\n"
The \n at the end, adding a new line.
Traduit automatiquement depuis English