Re: paragraphs inside tables
Daniel Ajoy <[email protected]> Sat, 30 Jul 2022 00:24:42 -0500
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Message-ID | <CAEkYmLt5n=o5O263tyvL+xTf_v0AruHbknfXtd7LuSGpQwc1nQ@mail.gmail.com> |
--0000000000008ac6d905e4fefc56
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I was able to work around the issue by adding this macro to my main file
macro @SP { //{0vx} //{1.1vx} }
and using @SP instead of @LP but I don't understand why it works.
Daniel
On Fri, Jul 29, 2022 at 5:43 PM Jeffrey Kingston <
[email protected]> wrote:
> Daniel,
>
> I'm not entirely sure what's happening here. That is, I
> can see that the baseline-to-baseline spacing that @LP
> uses is being applied between the entire paragraphs rather
> than between the last line of the first paragraph and the
> first line of the second, but why that is happening I am
> not sure. It looks like a rather deep fault in the layout
> algorithm to me.
>
> Anyway the workaround would be to avoid baseline-to-baseline
> spacing. One simple way to do that would be to replace @LP
> by @DP. If that gives too much vertical space you can fall
> back on raw Lout and replace @DP by //0.5v and then you can
> increase or decrease the 0.5 to get the space you want.
> But it will be from the lowest descender of the last line
> of the previous paragraph to the highest ascender of the
> first line of the next paragraph, which might look slightly
> wrong at times.
>
> Jeff Kingston
> ------------------------------
> *From:* Lout-users <[email protected]> =
on
> behalf of Daniel Ajoy <[email protected]>
> *Sent:* Saturday, 30 July 2022 4:34 AM
> *To:* [email protected] <[email protected]>
> *Subject:* paragraphs inside tables
>
> Hello, I have the following file with default "doc" configuration. I
> notice that the @ParaGap paragraph gap spacing is not being enforced with=
in
> cells of a table (image attached and in this link
> https://imgur.com/a/gfql5no )
>
> What can it do to enforce it?
>
> @SysInclude { xrgb }
> @SysInclude { tbl }
> @SysInclude { diag }
> @SysInclude { doc }
> def @h right x { @B x }
> @Doc @Text @Begin
>
>
>
> @CD @Heading { Aprendizajes Esperados }
> @CD @Heading { NIVEL PRIMARIA }
>
> @Display @Tbl
> rule { yes }
> aformat { @StartHSpan @Cell indent { ctr } @B A | @HSpan | @HSpan | @HSpa=
n
> | @HSpan }
> bformat { @Cell @h A | @Cell @h B | @Cell @h C | @Cell @h D | @Cell @h E =
}
> cformat { @Cell A | @Cell B | @Cell C | @Cell D | @Cell E }
> {
> @Rowa A { Espa=C3=B1ol }
> @Rowb
> A { Bloque 1 }
> B { Bloque 2 }
> C { Bloque 3 }
> D { Bloque 4 }
> E { Bloque 5 }
>
> @Rowc
> A {
> @LP { Identifica palabras que inician con la misma letra de su nombre. }
> @LP { Utiliza el orden alfab=C3=A9tico. }
> @LP { Anticipa el contenido de un texto a partir de la informaci=C3=B3n q=
ue le
> proporcionan t=C3=ADtulos e ilustraciones. }
> @LP { Establece correspondencias entre escritura y oralidad al leer
> palabras y frases. }
> @LP { Escribe t=C3=ADtulos de cuentos. }
> @LP { Identifica la funci=C3=B3n de los reglamentos. }
> @LP { Identifica letras conocidas para anticipar el contenido de un texto=
.
> }
> @LP { Identifica las letras para escribir palabras determinadas. }
> @LP { Expone su opini=C3=B3n y escucha las de sus compa=C3=B1eros. }
> }
> B {
> @LP Utiliza las tablas como recurso para ordenar informaci=C3=B3n.
> @LP Identifica las diferencias entre texto y tabla.
> @LP Interpreta datos contenidos en una tabla (con ayuda del docente).
> @LP Identifica las letras pertinentes para escribir palabras determinadas=
.
> @LP Argumenta sus criterios al elegir y recomendar un cuento.
> @LP Anticipa los temas y el contenido de un cuento a partir de las
> ilustraciones y los t=C3=ADtulos.
> @LP Identifica reiteraciones innecesarias y faltas de concordancia al
> producir un texto colectivo.
> @LP Anticipa el contenido de una noticia a partir de sus elementos
> gr=C3=A1ficos.
> @LP Identifica las letras pertinentes para escribir y leer frases y
> palabras determinadas.
> @LP Identifica informaci=C3=B3n en noticias, con un prop=C3=B3sito espec=
=C3=ADfico.
> }
> C {
> @LP Selecciona informaci=C3=B3n para ampliar su conocimiento de un tema.
> @LP Discrimina informaci=C3=B3n a partir de un prop=C3=B3sito definido.
> @LP Escribe notas para comunicar informaci=C3=B3n.
> @LP Identifica la funci=C3=B3n y caracter=C3=ADsticas de la rima.
> @LP Identifica la similitud gr=C3=A1fica entre palabras que riman.
> @LP Interpreta el significado de canciones.
> @LP Elabora anuncios publicitarios sobre servicios o productos.
> @LP Identifica las palabras para escribir frases determinadas de manera
> convencional.
> @LP Recupera datos e ilustraciones necesarios para integrarlos en un
> anuncio clasificado.
> }
> D {
> @LP Resume informaci=C3=B3n sobre un tema.
> @LP Elabora preguntas para recabar informaci=C3=B3n sobre un tema espec=
=C3=ADfico.
> @LP Localiza en el texto informaci=C3=B3n espec=C3=ADfica.
> @LP Conoce el formato de las fichas Informativas.
> @LP Recupera la estructura de un cuento al reescribirlo.
> @LP Adapta el lenguaje para ser escrito.
> @LP Identifica las palabras para escribir.
> @LP Sigue instrucciones respetando la secuencia establecida en un proceso=
.
> @LP Escribe un instructivo: materiales y procedimiento.
> @LP Explica oralmente un procedimiento.
> }
> E {
> @LP Identifica el formato gr=C3=A1fico y las caracter=C3=ADsticas general=
es de las
> canciones.
> @LP Emplea el diccionario para corroborar la ortograf=C3=ADa de palabras.
> @LP Adapta el lenguaje oral para ser escrito.
> @LP Utiliza las TIC para obtener informaci=C3=B3n.
> @LP Identifica e interpreta s=C3=ADmbolos y leyendas que indican peligro,
> prohibici=C3=B3n o alerta.
> @LP Organiza informaci=C3=B3n para exponerla a otros.
> @LP Identifica los recursos gr=C3=A1ficos de los carteles.
> @LP Identifica palabras para escribir mensajes con una intenci=C3=B3n
> determinada.
> }
> }
> @End @Text
>
>
>
--0000000000008ac6d905e4fefc56
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div>I was able to work around the issue =
by adding this macro to my main file</div><div><br></div><div>macro @SP { /=
/{0vx} //{1.1vx} =C2=A0 } <br></div><div><br></div><div>and using @SP in=
stead of @LP but I don't understand why it works.</div><div><br></div><=
div>Daniel<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" c=
lass=3D"gmail_attr">On Fri, Jul 29, 2022 at 5:43 PM Jeffrey Kingston <<a=
href=3D"mailto:[email protected]">[email protected]=
.au</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x">
<div dir=3D"ltr">
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt=
;color:rgb(0,0,0)">
Daniel,
<div><br>
</div>
<div>I'm not entirely sure what's happening here.=C2=A0 That is, I<=
/div>
<div>can see that the baseline-to-baseline spacing that @LP</div>
<div>uses is being applied between the entire paragraphs rather</div>
<div>than between the last line of the first paragraph and the</div>
<div>first line of the second, but why that is happening I am</div>
<div>not sure.=C2=A0 It looks like a rather deep fault in the layout</div>
<div>algorithm to me.</div>
<div><br>
</div>
<div>Anyway the workaround would be to avoid baseline-to-baseline</div>
<div>spacing.=C2=A0 One simple way to do that would be to replace @LP</div>
<div>by @DP.=C2=A0 If that gives too much vertical space you can fall</div>
<div>back on raw Lout and replace @DP by //0.5v and then you can</div>
<div>increase or decrease the 0.5 to get the space you want.</div>
<div>But it will be from the lowest descender of the last line</div>
<div>of the previous paragraph to the highest ascender of the</div>
<div>first line of the next paragraph, which might look slightly</div>
<div>wrong at times.</div>
<div><br>
</div>
Jeff Kingston<br>
</div>
<div id=3D"gmail-m_-664296189689295184appendonsend"></div>
<hr style=3D"display:inline-block;width:98%">
<div id=3D"gmail-m_-664296189689295184divRplyFwdMsg" dir=3D"ltr"><font styl=
e=3D"font-size:11pt" face=3D"Calibri, sans-serif" color=3D"#000000"><b>From=
:</b> Lout-users <lout-users-bounces+jeff=3D<a href=3D"mailto:it.usyd.ed=
[email protected]" target=3D"_blank">[email protected]</a>> on beh=
alf of Daniel Ajoy <<a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a>><br>
<b>Sent:</b> Saturday, 30 July 2022 4:34 AM<br>
<b>To:</b> <a href=3D"mailto:[email protected]" target=3D"_blank">lout-=
[email protected]</a> <<a href=3D"mailto:[email protected]" target=3D=
"_blank">[email protected]</a>><br>
<b>Subject:</b> paragraphs inside tables</font>
<div>=C2=A0</div>
</div>
<div>
<div dir=3D"ltr">
<div>Hello, I have the following file with default "doc" configur=
ation. I notice that the @ParaGap paragraph gap spacing is not being enforc=
ed within cells of a table (image attached and in this link
<a href=3D"https://imgur.com/a/gfql5no" target=3D"_blank">
https://imgur.com/a/gfql5no</a> )</div>
<div><br>
</div>
<div>What can it do to enforce it?<br>
</div>
<div><br>
</div>
<div>@SysInclude { xrgb } <br>
@SysInclude { tbl }<br>
@SysInclude { diag }<br>
@SysInclude { doc }<br>
def @h right x { @B x }<br>
@Doc @Text @Begin<br>
<br>
<br>
<br>
@CD @Heading { Aprendizajes Esperados }<br>
@CD @Heading { NIVEL PRIMARIA }<br>
<br>
@Display @Tbl <br>
rule { yes }<br>
aformat { @StartHSpan @Cell indent { ctr } @B A | @HSpan | @HSpan | @HSpan =
| @HSpan }<br>
bformat { @Cell @h A | @Cell @h B | @Cell @h C | @Cell @h D | @Cell @h E }<=
br>
cformat { @Cell A | @Cell B | @Cell C | @Cell D | @Cell E }<br>
{<br>
@Rowa A { Espa=C3=B1ol }<br>
@Rowb <br>
A { Bloque 1 }<br>
B { Bloque 2 }<br>
C { Bloque 3 }<br>
D { Bloque 4 }<br>
E { Bloque 5 }<br>
<br>
@Rowc<br>
A {<br>
@LP { Identifica palabras que inician con la misma letra de su nombre. }<br=
>
@LP { Utiliza el orden alfab=C3=A9tico. }<br>
@LP { Anticipa el contenido de un texto a partir de la informaci=C3=B3n que=
le proporcionan t=C3=ADtulos e ilustraciones. }<br>
@LP { Establece correspondencias entre escritura y oralidad al leer palabra=
s y frases. }<br>
@LP { Escribe t=C3=ADtulos de cuentos. }<br>
@LP { Identifica la funci=C3=B3n de los reglamentos. }<br>
@LP { Identifica letras conocidas para anticipar el contenido de un texto. =
}<br>
@LP { Identifica las letras para escribir palabras determinadas. }<br>
@LP { Expone su opini=C3=B3n y escucha las de sus compa=C3=B1eros. }<br>
}<br>
B {<br>
@LP Utiliza las tablas como recurso para ordenar informaci=C3=B3n. <br>
@LP Identifica las diferencias entre texto y tabla. <br>
@LP Interpreta datos contenidos en una tabla (con ayuda del docente). <br>
@LP Identifica las letras pertinentes para escribir palabras determinadas. =
<br>
@LP Argumenta sus criterios al elegir y recomendar un cuento. <br>
@LP Anticipa los temas y el contenido de un cuento a partir de las ilustrac=
iones y los t=C3=ADtulos.
<br>
@LP Identifica reiteraciones innecesarias y faltas de concordancia al produ=
cir un texto colectivo.
<br>
@LP Anticipa el contenido de una noticia a partir de sus elementos gr=C3=A1=
ficos. <br>
@LP Identifica las letras pertinentes para escribir y leer frases y palabra=
s determinadas.
<br>
@LP Identifica informaci=C3=B3n en noticias, con un prop=C3=B3sito espec=C3=
=ADfico.<br>
}<br>
C {<br>
@LP Selecciona informaci=C3=B3n para ampliar su conocimiento de un tema. <b=
r>
@LP Discrimina informaci=C3=B3n a partir de un prop=C3=B3sito definido. <br=
>
@LP Escribe notas para comunicar informaci=C3=B3n. <br>
@LP Identifica la funci=C3=B3n y caracter=C3=ADsticas de la rima. <br>
@LP Identifica la similitud gr=C3=A1fica entre palabras que riman. <br>
@LP Interpreta el significado de canciones. <br>
@LP Elabora anuncios publicitarios sobre servicios o productos. <br>
@LP Identifica las palabras para escribir frases determinadas de manera con=
vencional.
<br>
@LP Recupera datos e ilustraciones necesarios para integrarlos en un anunci=
o clasificado.<br>
}<br>
D {<br>
@LP Resume informaci=C3=B3n sobre un tema. <br>
@LP Elabora preguntas para recabar informaci=C3=B3n sobre un tema espec=C3=
=ADfico. <br>
@LP Localiza en el texto informaci=C3=B3n espec=C3=ADfica. <br>
@LP Conoce el formato de las fichas Informativas. <br>
@LP Recupera la estructura de un cuento al reescribirlo. <br>
@LP Adapta el lenguaje para ser escrito. <br>
@LP Identifica las palabras para escribir. <br>
@LP Sigue instrucciones respetando la secuencia establecida en un proceso. =
<br>
@LP Escribe un instructivo: materiales y procedimiento. <br>
@LP Explica oralmente un procedimiento.<br>
}<br>
E {<br>
@LP Identifica el formato gr=C3=A1fico y las caracter=C3=ADsticas generales=
de las canciones.
<br>
@LP Emplea el diccionario para corroborar la ortograf=C3=ADa de palabras. <=
br>
@LP Adapta el lenguaje oral para ser escrito. <br>
@LP Utiliza las TIC para obtener informaci=C3=B3n. <br>
@LP Identifica e interpreta s=C3=ADmbolos y leyendas que indican peligro, p=
rohibici=C3=B3n o alerta.
<br>
@LP Organiza informaci=C3=B3n para exponerla a otros. <br>
@LP Identifica los recursos gr=C3=A1ficos de los carteles. <br>
@LP Identifica palabras para escribir mensajes con una intenci=C3=B3n deter=
minada.<br>
}<br>
}<br>
</div>
<div>@End @Text<br>
<br>
<br>
</div>
</div>
</div>
</div>
</blockquote></div></div>
--0000000000008ac6d905e4fefc56--