Re: [NTG-context] Initials and short paragraph

2017-06-24 Thread Martin Oppegaard
Thank you, I think I can make something with this.

On Tue, Jun 20, 2017 at 9:45 PM, Pablo Rodriguez  wrote:

> On 06/20/2017 10:15 PM, Martin Oppegaard wrote:
> > Thanks for the suggestions! Is there a way to get the amount of
> > horizontal space the initial takes so that can be put in manually in
> > front of the next paragraph?
>
> Martin,
>
> how about making the initial transparent?
>
> \definecolor[transparentblue][t=0, a=1]
> \setupwhitespace[medium]
> \starttext
> \placeinitial
> Knuth writes:
>
> \placeinitial \starteffect[hidden]K\stopeffect\input knuth
> \setupinitial[color=transparentblue]
>
> \placeinitial K\input knuth
> \stoptext
>
> The sample contains two methods.
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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
> 
> ___
>
___
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
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Pablo Rodriguez
On 06/20/2017 10:15 PM, Martin Oppegaard wrote:
> Thanks for the suggestions! Is there a way to get the amount of
> horizontal space the initial takes so that can be put in manually in
> front of the next paragraph?

Martin,

how about making the initial transparent?

\definecolor[transparentblue][t=0, a=1]
\setupwhitespace[medium]
\starttext
\placeinitial
Knuth writes:

\placeinitial \starteffect[hidden]K\stopeffect\input knuth
\setupinitial[color=transparentblue]

\placeinitial K\input knuth
\stoptext

The sample contains two methods.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Martin Oppegaard
Thanks for the suggestions! Is there a way to get the amount of horizontal
space the initial takes so that can be put in manually in front of the next
paragraph?

On Tue, Jun 20, 2017 at 6:51 PM, Pablo Rodriguez  wrote:

> On 06/09/2017 07:05 AM, Martin Oppegaard wrote:
> > Hi,
> >
> > When placing an initial and the paragraph is short, the initial is
> > laid over the next paragraph. Example:
> >
> > \starttext
> > \placeinitial
> > Knuth writes:
> >
> > \input knuth
> > \stoptext
> >
> > Is there anything to do about this?
>
> Hi Martin,
>
> I guess initials make sense only when used inside a paragraph. It is
> problematic when you have white space defined.
>
> Having margin initials is also another approach. You may compare both
> with the following sample:
>
> \setupwhitespace[medium]
> \setupinitial[location=margin]
> \starttext
> \placeinitial
> Knuth writes:
>
> \input knuth
> \setupinitial[location=text]
> \placeinitial
> Knuth writes:\\
> \input knuth
> \stoptext
>
> I hope it helps,
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> 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
> 
> ___
>
___
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
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Pablo Rodriguez
On 06/09/2017 07:05 AM, Martin Oppegaard wrote:
> Hi,
> 
> When placing an initial and the paragraph is short, the initial is
> laid over the next paragraph. Example:
> 
> \starttext
> \placeinitial
> Knuth writes:
> 
> \input knuth
> \stoptext
> 
> Is there anything to do about this?

Hi Martin,

I guess initials make sense only when used inside a paragraph. It is
problematic when you have white space defined.

Having margin initials is also another approach. You may compare both
with the following sample:

\setupwhitespace[medium]
\setupinitial[location=margin]
\starttext
\placeinitial
Knuth writes:

\input knuth
\setupinitial[location=text]
\placeinitial
Knuth writes:\\
\input knuth
\stoptext

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Rogers, Michael K
Hi,

Perhaps this?:

\starttext
\placeinitial
Knuth writes:
\hfill\break
\input knuth
\stoptext

There may be a more ConTeXt-idiomatic way, in which case someone else will 
probably say.  Note that structurally the above combines "Knuth writes:" and 
the first text segment (up to the first blank line or \par) of knuth.tex into a 
single paragraph with some glue and a break between them.  You would lose any 
paragraph-formatting of the first segment of knuth.tex.  If there is any, you 
might have to do that by hand.

If you wanted to have the Knuth quote begin below the initial K, then someone 
else will have to answer.  I don't know off hand.

Cheers,

Michael

> On Jun 8, 2017, at 10:05 PM, Martin Oppegaard  
> wrote:
>
> Hi,
>
> When placing an initial and the paragraph is short, the initial is laid over 
> the next paragraph. Example:
>
> \starttext
> \placeinitial
> Knuth writes:
>
> \input knuth
> \stoptext
>
> Is there anything to do about this?
>
> Regards,
> Martin Oppegaard
> ___
> 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
> ___




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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
___

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Henri Menke
On Fri, 2017-06-09 at 06:05 +0100, Martin Oppegaard wrote:
> Hi,
> 
> When placing an initial and the paragraph is short, the initial is laid over 
> the next paragraph.
> Example:
> 
> \starttext
> \placeinitial
> Knuth writes:
> 
> \input knuth
> \stoptext
> 
> Is there anything to do about this?

- Make longer paragraphs.
- Don't use initials.

What kind of answer do you expect?

> Regards,
> Martin Oppegaard
> ___
> 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
> ___
___
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
___

[NTG-context] Initials and short paragraph

2017-06-20 Thread Martin Oppegaard
Hi,

When placing an initial and the paragraph is short, the initial is
laid over the next paragraph. Example:

\starttext
\placeinitial
Knuth writes:

\input knuth
\stoptext

Is there anything to do about this?

Regards,
Martin Oppegaard
___
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
___