0 votos
320 vistas

Estoy trabajando en las listas de Esdras (1:9-10, etc.). ¿Cuál es la mejor manera de justificar los números a la derecha? Me gustaría evitar las tablas, pero ¿hay alguna alternativa?

Traducción automática desde English
PTXprint por (153 puntos) | 320 vistas

4 Respuestas

0 votos

¿Están los números marcados con litl?
Si es así, puedes insertar un hook en ptxprint-mods.tex
imagen

Agrega una línea:

\sethook{start}{litl}{\hfill}

Esto colocará un espacio de extensión infinita al inicio de la clase de caracteres.
Si deseas que ese espacio sea una fila de puntos, es más complejo:

\sethook{start}{litl}{\leaders\hbox to 0.5em{\hfill.\hfill}\hskip 0pt plus 1fill\relax}
Traducción automática desde English
por (1,1k puntos)
0 votos

Ah, había comenzado con \lik y \liv, pero los cambiaré.

Gracias por responder esto y mi otra consulta. Entiendo el proceso lo suficiente para generar preguntas, ¡pero no respuestas! Y aún no he terminado…

Traducción automática desde English
por (153 puntos)

Funciona bien, excepto en las líneas donde el texto anterior al total ya llena la línea. Entonces, el total no se desplaza a la derecha. ¿Necesitaría corregirse línea por línea, y si es así, qué código debo usar?

Traducción automática desde English
0 votos

Sorry if I implied there was something magic with litl… what was really important was that the bits that needed to be offset needed to have their own markup (but then you change the hook to be before whatever the relevant marker is.

Now, \hfill (and \leaders) getting discarded if there’s a line-break is a very useful feature, not a bug - it stops there being a space at the start/end of a broken line. There’s no need to treat things as exceptions, we just need to educate TeX…

The question that needs to be answered, though, is what would you like to happen?

  1. Never ever break the line before the number (even if the result is horrible): change the end of the sethook to be:
    litl}{\penalty10000\hfill}
  2. A whole blank line / line of dots before the number:
    litl}{\unskip\penalty500\hbox{}\penalty10000\hfill}

In both of these, if you are using the \leaders, put the extra bit in front of that instead.

Explanation:

What these are doing is giving the line-breaking algorithm some extra instructions.
I’ve also added \unskip which removes a preceding space if there is one - that’s more useful for the \leaders-based code, and stops there being a space between the dots and the preceding word.
The \penalty 500 means the line can be broken there, but it’s a long way from ideal. and \hbox{} is just a zero-width thing that it can’t discard. \penalty10000 says the cost of breaking the line here is ‘infinite’. Thus for both of these versions, TeX is not allowed to break the line at (just before) the fill, and thus it cannot be discarded by the normal process.

por (1,1k puntos)
mostrada de nuevo
+1 voto

Gracias por esa información, ¡y logré hacer lo mismo con las referencias bíblicas en los esquemas de libros TODO POR MI CUENTA!

Traducción automática desde English
por (153 puntos)

Preguntas relacionadas

0 votos
1 respuesta 43 vistas
Nuestro equipo necesita acceso a un proyecto de Paratext en un segundo idioma como Observers, ya que nuestra ... no han podido resolverlo. Cualquier ayuda sería muy apreciada.
gplunk57 102 preguntada jul 29, 2025
0 votos
0 respuestas 113 vistas
Siempre pensé que cambiar entre texto justificado y no justificado simplemente dejaba las líneas alineadas a la ... tiene alguna sabiduría que compartir, me gustaría escucharla.
mhosken 656 preguntada ago 27, 2024
0 votos
2 respuestas 219 vistas
Ayudo a operar ScriptureEarth.org. Soñamos con la posibilidad de configurar una opción para que las personas soliciten ... Suena esto de alguna manera razonable? --Loren Hawthorne
LorenHawthorne 173 preguntada ago 5, 2024
0 votos
2 respuestas 240 vistas
Estoy preparando un texto usando la fuente Noto Nastiliq Urdu. Pero necesito usar una fuente romana en la ... PTXprint se congeló cuando intenté imprimir. Alguna sugerencia?
mlucas53 148 preguntada jul 22, 2024
0 votos
1 respuesta 274 vistas
El versículo parcial en la parte inferior de la columna izquierda aparece después de una lista marcada como tabla en ParaText.
anon180868 195 preguntada jul 11, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
There is neither Jew nor Gentile, neither slave nor free, nor is there male and female, for you are all one in Christ Jesus.
Galatians 3:28
3,045 preguntas
6,005 respuestas
5,671 comentarios
2,026 usuarios