Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
I somehow found a way. It doesn't work on my minimal example but it does 
in my real doc. I tested a lot of thing but I think it was thanks to the 
offset=none parameters


For the record:

###

\define[2]\MySection{
\framed[
location=top,
strut=no,
offset=none,
frame=none,
width=broad,
height=fit,
align=middle]{#1.\\#2}}

\setuphead[section][
conversion=Romannumerals,
style={\bf\kerncharacters[0.075]\WORDS},
align=middle,
command=\MySection,
]

###

Thanks!

Le 15/02/23 à 19:11, Rik Kabel via ntg-context a écrit :


On 2023-02-15 08:44, Alex Leray via ntg-context wrote:


\showframe
\showlayout
\showgrid

\setuplayout[
    grid=yes,
]

\define[2]\MySection{\framed[
    location=keep,
    frame=on,
    width=broad,
    % height=22pt,
    align=middle
]{{#1.\\#2}}}

\setuphead[section][
    strut=no,
    conversion=Romannumerals,
    style={\bf\WORDS},
    align=middle,
    command=\MySection,
]

\starttext
\startsection[title={First section}]
this is the text
\stopsection
\stoptext



Have you tried it with \framedtext in the place of \framed ?



--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
> On this page of the wiki there is an example for wrapping long words,
> like long hexadecimal strings:
> 
> https://wiki.contextgarden.net/Wrapping
> 
> This example is buggy because it deletes one character at the point that
> it is wrapped.

Hugo,

I have just updated the wiki with another way of line breaking SHA sums:

  https://wiki.contextgarden.net/Wrapping#Line_breaking_with_SHA512_sums

It avoids the issue you encountered and it is an easy workaround.

Just in case it might help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] custom hyphenator again

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 18:22, Hans Hagen via ntg-context wrote:
> On 2/15/2023 6:13 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Am I missing something or have I hit a bug?
> more a hit on my maximum parallel task abilities

Sorry, I was trying to find the cause of the issue with SHA sums.

I have just found a workaround and I updated the wiki.

Sorry again for abusing your help (I tend to forget that math is
priority now) and many thanks for all your work with ConTeXt,

Pablo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context


On 2023-02-15 08:44, Alex Leray via ntg-context wrote:


\showframe
\showlayout
\showgrid

\setuplayout[
    grid=yes,
]

\define[2]\MySection{\framed[
    location=keep,
    frame=on,
    width=broad,
    % height=22pt,
    align=middle
]{{#1.\\#2}}}

\setuphead[section][
    strut=no,
    conversion=Romannumerals,
    style={\bf\WORDS},
    align=middle,
    command=\MySection,
]

\starttext
\startsection[title={First section}]
this is the text
\stopsection
\stoptext



Have you tried it with \framedtext in the place of \framed ?

--
Rik

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context


On 2023-02-15 08:44, Alex Leray via ntg-context wrote:


\showframe
\showlayout
\showgrid

\setuplayout[
    grid=yes,
]

\define[2]\MySection{\framed[
    location=keep,
    frame=on,
    width=broad,
    % height=22pt,
    align=middle
]{{#1.\\#2}}}

\setuphead[section][
    strut=no,
    conversion=Romannumerals,
    style={\bf\WORDS},
    align=middle,
    command=\MySection,
]

\starttext
\startsection[title={First section}]
this is the text
\stopsection
\stoptext



Have you tried it with \framedtext in the place of \framed ?

--
Rik

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] custom hyphenator again

2023-02-15 Thread Hans Hagen via ntg-context

On 2/15/2023 6:13 PM, Pablo Rodriguez via ntg-context wrote:

Hi Hans,

with the sample hyphenator from
https://www.pragma-ade.com/general/manuals/languages-mkiv.pdf#page=23,
next letters after hyphenation are missing.

I already reported this
(https://mailman.ntg.nl/pipermail/ntg-context/2023/107743.html).

Am I missing something or have I hit a bug?

more a hit on my maximum parallel task abilities

-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] custom hyphenator again

2023-02-15 Thread Pablo Rodriguez via ntg-context
Hi Hans,

with the sample hyphenator from
https://www.pragma-ade.com/general/manuals/languages-mkiv.pdf#page=23,
next letters after hyphenation are missing.

I already reported this
(https://mailman.ntg.nl/pipermail/ntg-context/2023/107743.html).

Am I missing something or have I hit a bug?

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] including documents with mediaclips in other documents

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 17:55, Hans Hagen via ntg-context wrote:
> On 2/15/2023 5:35 PM, Pablo Rodriguez via ntg-context wrote:
>> On 2/14/23 22:43, Hans Hagen via ntg-context wrote:
>>> On 2/14/2023 7:41 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Now I guess that is way harder than I think.
> 
> quite some are but we need to emulate them and therefore interpret them 
> as one cannot simply copy objects (all kind of potential clashes)

I see.

>> BTW, Acrobat Reader displays these media. I don’t have access to full
>> Acrobat either and these annotations work fine in Reader.
> 
> ok, but no diagnostic features and i got a bit allergic for acrobat 
> readers (ever changing) interface

I prefer PDF.js from Firefox, but they haven’t implemented multimedia yet.

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 12:40, Alex Leray via ntg-context wrote:
> Thanks a lot Wolfgang, that's perfect!
> 
> I added an example in the wiki:
> 
> https://wiki.contextgarden.net/Command/setupmakeup

Hi Alex,

many thanks for adding the info to the wiki.

Just in case it might help, I added an explanation to the main article:

  https://wiki.contextgarden.net/Makeup

Let me know whether it could be improved.

Welcome back to ConTeXt,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] including documents with mediaclips in other documents

2023-02-15 Thread Hans Hagen via ntg-context

On 2/15/2023 5:35 PM, Pablo Rodriguez via ntg-context wrote:

On 2/14/23 22:43, Hans Hagen via ntg-context wrote:

On 2/14/2023 7:41 PM, Pablo Rodriguez via ntg-context wrote:

[...]
Given this sample, is there any way to include the page (or the whole
document) with the media clip and all its functionalty?

currently not and given the number of possibilities it's quite a bit of
work so it has a low priority (i can't even test media right now because
i have no full acrobat installed)


Many thanks for your reply, Hans.

I didn‘t know that it was so complex to do. In fact, I wonder why not
all annotations or links and destinations are copied right.

Now I guess that is way harder than I think.


quite some are but we need to emulate them and therefore interpret them 
as one cannot simply copy objects (all kind of potential clashes)



BTW, Acrobat Reader displays these media. I don’t have access to full
Acrobat either and these annotations work fine in Reader.


ok, but no diagnostic features and i got a bit allergic for acrobat 
readers (ever changing) interface


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] including documents with mediaclips in other documents

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/14/23 22:43, Hans Hagen via ntg-context wrote:
> On 2/14/2023 7:41 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Given this sample, is there any way to include the page (or the whole
>> document) with the media clip and all its functionalty?
> currently not and given the number of possibilities it's quite a bit of 
> work so it has a low priority (i can't even test media right now because 
> i have no full acrobat installed)

Many thanks for your reply, Hans.

I didn‘t know that it was so complex to do. In fact, I wonder why not
all annotations or links and destinations are copied right.

Now I guess that is way harder than I think.

BTW, Acrobat Reader displays these media. I don’t have access to full
Acrobat either and these annotations work fine in Reader.

Many thanks for your help again,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context

Hello again,

I'm having another issue: I'd like Chapter/Section number and titles in 
separate lines but with grid alignement. I followed that advice:


https://wiki.contextgarden.net/Titles#Chapter_number_and_titles_in_separate_lines

I'm having an issue though: I can't get rid of the space above the 
(framed) title and align the section number with the first line (it's on 
the second line)


Any idea? Many thanks.

###

\showframe
\showlayout
\showgrid

\setuplayout[
grid=yes,
]

\define[2]\MySection{\framed[
location=keep,
frame=on,
width=broad,
% height=22pt,
align=middle
]{{#1.\\#2}}}

\setuphead[section][
strut=no,
conversion=Romannumerals,
style={\bf\WORDS},
align=middle,
command=\MySection,
]

\starttext
\startsection[title={First section}]
this is the text
\stopsection
\stoptext

###
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Thanks a lot Wolfgang, that's perfect!

I added an example in the wiki:

https://wiki.contextgarden.net/Command/setupmakeup

Have a good day,

Alex

Le 15/02/23 à 12:03, Wolfgang Schuster via ntg-context a écrit :
Alex Leray via ntg-context > schrieb am Mi., 15. Feb. 2023, 11:59:


Hi Mikael,

here it is:

%%%
\definemakeup [title] [doublesided=empty]


Add pagestate=start to the settings.

Wolfgang


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Wolfgang Schuster via ntg-context
Alex Leray via ntg-context  schrieb am Mi., 15. Feb.
2023, 11:59:

> Hi Mikael,
>
> here it is:
>
> %%%
> \definemakeup [title] [doublesided=empty]
>

Add pagestate=start to the settings.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Hi Mikael,

here it is:

%%%
\definemakeup [title] [doublesided=empty]

\starttext
\input knuth
\starttitlemakeup
Title
\stoptitlemakeup
\input knuth
\stoptext
%%%

thanks

Le 15/02/23 à 11:43, Mikael Sundqvist via ntg-context a écrit :

Hi, and welcome back!

On Wed, Feb 15, 2023 at 11:42 AM Alex Leray via ntg-context
 wrote:


Dear Context users,

I'm new to this mailing-list. I've decided to use Context for two
separate publications. My previous experience with Context was almost 10
years ago and it seems like the resources on Context have greatly
expanded. So thank you all!

There is a little thing that I can't figure out though... In one of my
document I have makeup pages. But inserting them result in wrong page
numbering of subsequent pages. It appears that makeups do not increment
page numbers.

Is this a feature? How could re-establish the right page number for the
rest of the document?

Thank you in advance,

Alex


Can you show a small example of this behavior?

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Mikael Sundqvist via ntg-context
Hi, and welcome back!

On Wed, Feb 15, 2023 at 11:42 AM Alex Leray via ntg-context
 wrote:
>
> Dear Context users,
>
> I'm new to this mailing-list. I've decided to use Context for two
> separate publications. My previous experience with Context was almost 10
> years ago and it seems like the resources on Context have greatly
> expanded. So thank you all!
>
> There is a little thing that I can't figure out though... In one of my
> document I have makeup pages. But inserting them result in wrong page
> numbering of subsequent pages. It appears that makeups do not increment
> page numbers.
>
> Is this a feature? How could re-establish the right page number for the
> rest of the document?
>
> Thank you in advance,
>
> Alex

Can you show a small example of this behavior?

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Dear Context users,

I'm new to this mailing-list. I've decided to use Context for two 
separate publications. My previous experience with Context was almost 10 
years ago and it seems like the resources on Context have greatly 
expanded. So thank you all!


There is a little thing that I can't figure out though... In one of my 
document I have makeup pages. But inserting them result in wrong page 
numbering of subsequent pages. It appears that makeups do not increment 
page numbers.


Is this a feature? How could re-establish the right page number for the 
rest of the document?


Thank you in advance,

Alex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___