Para contradecir a Martin (ligeramente), el script probablemente se pueda modificar para darte algo cercano. No estoy seguro de exactamente cómo se mostrará, sin embargo. Si lo haces decir:
if ($v ne $verse) {
$verse=$v;
print "\\x - \\xo $v\\*";
}
Entonces, de manera similar a cómo obtienes una nota al pie vacía que dice Capítulo X, obtendrás una nota al pie vacía que dice Y (en la primera nota al pie del versículo Y) y luego el resto de la 1.ª nota al pie en ese versículo. Otras notas al pie no tendrán un capítulo ni un número de versículo. PERO necesitarás activar las notas con párrafos y probablemente necesitarás alterar algunas cosas como el espaciado entre notas al pie (no recuerdo cómo se llama, pero creo que ahora está en la interfaz de usuario). Una vez que hayas activado las notas con párrafos, no obtendrás el versículo Y en su propia línea, a menos que incluyas algunos comandos TeX crudos en lo que el perl está generando. (prefijar el contenido de la nota al pie para el versículo Y con \penalty -10000\space podría ser suficiente).
Probablemente, en algún punto de este ejercicio, hacer trampa de esta manera alcanzará sus límites, y la respuesta de Martin se convertirá en la forma correcta de hacerlo, o se necesitarán cambios muy significativos en el código TeX (que probablemente romperían los proyectos de otras personas).
En el lado de TeX, necesitarías «secuestrar» la macro \xo y hacer que interprete los parámetros de capítulo:versículo como valores, antes de que entren en el flujo de salida, y luego hacer la comparación y la redefinición de salida en TeX. El peligro es que si alguien tuviera un \xo que no siempre fuera seguido por capítulo:versículo, y en cambio tuviera capítulo.versículo o similar, el código daría errores extraños e inesperados.
Definir macros robustas en TeX es difícil, y no hay ningún estándar que defina lo que la gente pondrá en \xo (¡ni una garantía de que solo lo usen en referencias cruzadas!).
Pensándolo un poco más, en realidad sería mucho mejor definir tu propia macro con un terminador definido, que a su vez se resolviera en \xo, en lugar de secuestrar \xo.
p. ej. \def\zmyxrefstyle#1:#2\*{comparisonde} para establecer cualquier prefijo para la callee.
Por supuesto, todavía tendrías que hacer que el código generador de la nota al pie de la llamada (caller) ponga el número de capítulo y/o el número de versículo antes de la callee. Supongo que tomaría al menos medio día de programación y depuración, pero puede haber cosas que haya olvidado que lo empujen a una semana o tres.
Sin una llamada muy clara de múltiples usuarios, es poco probable que encontremos el tiempo para hacer esto en algún momento del próximo año.
To contradict Martin (slightly), the script can probably be modified to give you something close. I’m not sure exactly how it’ll display, though. If you make it say:
if ($v ne $verse) {
$verse=$v;
print "\\x - \\xo $v\\*";
}
Then similar to how you get an empty footnote saying Chapter X, you’ll then get an empty footnote saying Y (at the first footnote on verse Y) and then the rest of the 1st footnote in that verse. Other footnotes won’t have a chapter or a verse number. BUT you will need to turn on paragraphed notes and probably need to alter some things like the inter-footnote spacing (I can’t remember what it’s called, but I think it’s in the user interface now). Once you’ve turned on paragraphed notes, you won’t be getting verse Y on its own line, unless you include some raw TeX commands in what the perl is spitting out. (prefixing the footnote contents for verse Y with \penalty -10000\space might be sufficient).
Probably, at some point in this exercise, then fudging it like this will reach its limits, and either Martin’s answer will become the right way to do it, or very significant changes to the TeX code (which would probably break other people’s projects) will be needed.
On the TeX side of things, you’d need to ‘hijack’ the \xo macro and make it interpret the chapter:verse parameters as values, before they enter the output stream, and then do the comparison and output redefinition in TeX. The danger is that if anyone had an \xo that wasn’t always followed by chapter:verse, and instead had chapter.verse or similar, the code would give strange and unexpected errors.
Defining robust macros in TeX is hard, and there is no standard that defines what people will put in \xo (nor a guarantee they only use it in cross-references!).
Thinking about it a bit more, it’d actually be far better to define your own macro with a defined terminator, that in turn resolved to \xo, rather than hijacking \xo.
e.g. \def\zmyxrefstyle#1:#2\*{comparisonde} to set any prefixes to the callee.
Of course, you’d still have to make the footnote caller generator code put the chapter number and / or verse number before the callee. I’m guessing it would take about a half a week of programming and debugging at the least, but there may be things I’ve forgotten that would push it unto a week or 3.
Without a very clear call from multiple users, it is unlikely that we will find the time to do this any time in the next year.
Traducción automática desde English