* Special layouts don't recognise placeinitial
@ 2021-05-23 0:41 Eduardo Bohoyo
2021-05-23 11:07 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Eduardo Bohoyo @ 2021-05-23 0:41 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1558 bytes --]
My question will be very simple: Is there a trick to make \placeinitial
command work within makeup pages?
One of my pages inside the /frontmater/ is a quote page within an
special layout. Before using LMTX, when I could use the Lettrine module,
that quote started with a capital letter. But now that I use
\placeinitial, the first letter no longer changes: it remains a simple
initial capital letter.
On the other hand, when I use \placeinitial for each first paragraph in
the chapters of my book, the result is as expected. That is, the command
works fine as long as it stays within the general layout.
This is the code I'm referring to:
\startmakeup[standard][doublesided=yes]
\setuplayout[backspace=176pt,width=194pt]
\setupinterlinespace[line=22pt]
\style[tfa]
\startalignment[hanging,flushleft,nothyphenated]
\placeinitial Ahora, vosotros que amáis, dejadme que os formule una
pregunta: ¿quién sufre más por ello, Arcite o Palamón? ¿El que ve
a su dama diariamente, pero está encerrado para siempre, o el
que es libre de ir donde le plazca, pero no verá nunca más
a su dama? Aquellos de vosotros que podáis, elegid entre las
dos situaciones a voluntad; yo, por mi parte, continuaré como he
empezado.
\stopalignment
\startalignment[hanging,flushright,nothyphenated]
\blank[0.8cm,force]{\tfa\sc Geofrey Chaucer,\hspace[big]}
\blank[0.1cm,force]{\tfa\em The Canterbury Tales \hspace[big]}
\stopalignment
\stopmakeup
Eduardo Bohoyo
[-- Attachment #1.2: Type: text/html, Size: 2019 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Special layouts don't recognise placeinitial
2021-05-23 0:41 Special layouts don't recognise placeinitial Eduardo Bohoyo
@ 2021-05-23 11:07 ` Hans Hagen
2021-05-24 10:41 ` Eduardo Bohoyo
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2021-05-23 11:07 UTC (permalink / raw)
To: mailing list for ConTeXt users, Eduardo Bohoyo
On 5/23/2021 2:41 AM, Eduardo Bohoyo wrote:
> My question will be very simple: Is there a trick to make \placeinitial
> command work within makeup pages?
>
> One of my pages inside the /frontmater/ is a quote page within an
> special layout. Before using LMTX, when I could use the Lettrine module,
> that quote started with a capital letter. But now that I use
> \placeinitial, the first letter no longer changes: it remains a simple
> initial capital letter.
> On the other hand, when I use \placeinitial for each first paragraph in
> the chapters of my book, the result is as expected. That is, the command
> works fine as long as it stays within the general layout.
> This is the code I'm referring to:
>
> \startmakeup[standard][doublesided=yes]
>
> \setuplayout[backspace=176pt,width=194pt]
> \setupinterlinespace[line=22pt]
> \style[tfa]
>
> \startalignment[hanging,flushleft,nothyphenated]
> \placeinitial Ahora, vosotros que amáis, dejadme que os formule una
> pregunta: ¿quién sufre más por ello, Arcite o Palamón? ¿El que ve
> a su dama diariamente, pero está encerrado para siempre, o el
> que es libre de ir donde le plazca, pero no verá nunca más
> a su dama? Aquellos de vosotros que podáis, elegid entre las
> dos situaciones a voluntad; yo, por mi parte, continuaré como he
> empezado.
> \stopalignment
>
> \startalignment[hanging,flushright,nothyphenated]
> \blank[0.8cm,force]{\tfa\sc Geofrey Chaucer,\hspace[big]}
> \blank[0.1cm,force]{\tfa\em The Canterbury Tales \hspace[big]}
> \stopalignment
>
> \stopmakeup
You can add this to cont-new.mkxl (assuming lmtx)
\unprotect
\permanent\tolerant\protected\def\flushinitial
{\typo_initial_handle}
\protect
and then
\placeinitial \flushinitial Ahora, ...
will work. More clever automated solutions are likely to interfere and
have side effects for embedded cases so this is the best I can come up
with now.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Special layouts don't recognise placeinitial
2021-05-23 11:07 ` Hans Hagen
@ 2021-05-24 10:41 ` Eduardo Bohoyo
2021-05-24 12:22 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Eduardo Bohoyo @ 2021-05-24 10:41 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
Thank you, Hans. This tweak works perfectly on a provisional basis.
However, from my relative ignorance of ConTeXt and LMTX, I have a
question: Why is it better at the moment to include this code in
cont-new.mkxl instead on the preamble of my document?
I insist, I do not question this detail. I speak from the lack of
knowledge of a user who wants to learn a little more.
Eduardo Bohoyo
El 23/5/21 a las 13:07, Hans Hagen escribió:
> On 5/23/2021 2:41 AM, Eduardo Bohoyo wrote:
>> My question will be very simple: Is there a trick to make
>> \placeinitial command work within makeup pages?
>>
>> One of my pages inside the /frontmater/ is a quote page within an
>> special layout. Before using LMTX, when I could use the Lettrine
>> module, that quote started with a capital letter. But now that I use
>> \placeinitial, the first letter no longer changes: it remains a
>> simple initial capital letter.
>> On the other hand, when I use \placeinitial for each first paragraph
>> in the chapters of my book, the result is as expected. That is, the
>> command works fine as long as it stays within the general layout.
>> This is the code I'm referring to:
>>
>> \startmakeup[standard][doublesided=yes]
>>
>> \setuplayout[backspace=176pt,width=194pt]
>> \setupinterlinespace[line=22pt]
>> \style[tfa]
>>
>> \startalignment[hanging,flushleft,nothyphenated]
>> \placeinitial Ahora, vosotros que amáis, dejadme que os formule una
>> pregunta: ¿quién sufre más por ello, Arcite o Palamón? ¿El que
>> ve a su dama diariamente, pero está encerrado para siempre,
>> o el que es libre de ir donde le plazca, pero no verá
>> nunca más a su dama? Aquellos de vosotros que podáis, elegid
>> entre las dos situaciones a voluntad; yo, por mi parte,
>> continuaré como he empezado.
>> \stopalignment
>>
>> \startalignment[hanging,flushright,nothyphenated]
>> \blank[0.8cm,force]{\tfa\sc Geofrey Chaucer,\hspace[big]}
>> \blank[0.1cm,force]{\tfa\em The Canterbury Tales \hspace[big]}
>> \stopalignment
>>
>> \stopmakeup
> You can add this to cont-new.mkxl (assuming lmtx)
>
> \unprotect
>
> \permanent\tolerant\protected\def\flushinitial
> {\typo_initial_handle}
>
> \protect
>
> and then
>
> \placeinitial \flushinitial Ahora, ...
>
> will work. More clever automated solutions are likely to interfere and
> have side effects for embedded cases so this is the best I can come up
> with now.
>
> Hans
>
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Special layouts don't recognise placeinitial
2021-05-24 10:41 ` Eduardo Bohoyo
@ 2021-05-24 12:22 ` Hans Hagen
2021-05-24 12:28 ` Eduardo Bohoyo
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2021-05-24 12:22 UTC (permalink / raw)
To: Eduardo Bohoyo, mailing list for ConTeXt users
On 5/24/2021 12:41 PM, Eduardo Bohoyo wrote:
> Thank you, Hans. This tweak works perfectly on a provisional basis.
>
> However, from my relative ignorance of ConTeXt and LMTX, I have a
> question: Why is it better at the moment to include this code in
> cont-new.mkxl instead on the preamble of my document?
>
> I insist, I do not question this detail. I speak from the lack of
> knowledge of a user who wants to learn a little more.
cont-new will be replaced at he next uipload so then you use the built
in .. no need to add to a preamble
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Special layouts don't recognise placeinitial
2021-05-24 12:22 ` Hans Hagen
@ 2021-05-24 12:28 ` Eduardo Bohoyo
0 siblings, 0 replies; 5+ messages in thread
From: Eduardo Bohoyo @ 2021-05-24 12:28 UTC (permalink / raw)
To: Hans Hagen, mailing list for ConTeXt users
Ah, I got it. Thanks for the clarification, Hans.
It's clear that this makes sense.
Eduardo Bohoyo
El 24/5/21 a las 14:22, Hans Hagen escribió:
> On 5/24/2021 12:41 PM, Eduardo Bohoyo wrote:
>> Thank you, Hans. This tweak works perfectly on a provisional basis.
>>
>> However, from my relative ignorance of ConTeXt and LMTX, I have a
>> question: Why is it better at the moment to include this code in
>> cont-new.mkxl instead on the preamble of my document?
>>
>> I insist, I do not question this detail. I speak from the lack of
>> knowledge of a user who wants to learn a little more.
> cont-new will be replaced at he next uipload so then you use the built
> in .. no need to add to a preamble
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-24 12:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 0:41 Special layouts don't recognise placeinitial Eduardo Bohoyo
2021-05-23 11:07 ` Hans Hagen
2021-05-24 10:41 ` Eduardo Bohoyo
2021-05-24 12:22 ` Hans Hagen
2021-05-24 12:28 ` Eduardo Bohoyo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).