ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: mkii to mkiv - section numbering with minimal example
       [not found] <mailman.1.1561284001.24507.ntg-context@ntg.nl>
@ 2019-06-23 11:14 ` Duncan Hothersall
  2019-06-23 20:53 ` ntg-context Digest, Vol 180, Issue 23 Andres Conrado
  1 sibling, 0 replies; 6+ messages in thread
From: Duncan Hothersall @ 2019-06-23 11:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 778 bytes --]

On Sun, 23 Jun 2019 at 11:00, Hans Hagen wrote:

>
> in the test suite there are all kind of examples (zip can be downloaded
> from the website)
>
>
Thanks Hans. After some searching in the test suite I found the answer,
which I'll put here in case someone else is searching for it, which is:

\setuphead[section][sectionsegments=section]
\setuphead[subsection][sectionsegments=section:subsection]

which sets up sections to just be numbered with the section number instead
of the part, chapter and section number, and sets up subsections to just be
numbered with the section and subsection number.

Now that I know how to do it I see mkiv is much cleaner on this code and
the change gets reflected in tables of contents etc. This was much harder
in mkii. Thanks again.

Duncan

[-- Attachment #1.2: Type: text/html, Size: 1397 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] 6+ messages in thread

* Re: ntg-context Digest, Vol 180, Issue 23
       [not found] <mailman.1.1561284001.24507.ntg-context@ntg.nl>
  2019-06-23 11:14 ` mkii to mkiv - section numbering with minimal example Duncan Hothersall
@ 2019-06-23 20:53 ` Andres Conrado
  2019-06-25 19:39   ` is it useful to use the option "--fonts=all" when running first-setup-sh? Pablo Rodriguez
  1 sibling, 1 reply; 6+ messages in thread
From: Andres Conrado @ 2019-06-23 20:53 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 8198 bytes --]

Thanks, Pablo. I am assuming I need to have Utopia installed in my usual
font folder. I tried with Erewhon (I have otf files for that) and it works.
Thank you.

In a related note, is there any reasonable way to use the latex math font *Math
Times Pro 2* (https://www.pctex.com/mtpro2.html)? I know a latex user who
bought that font and I wonder if I can convince him to get on the ConTeXt
boat.

Andrés Conrado Montoya
http://chiquitico.org


El dom., 23 jun. 2019 a las 5:00, <ntg-context-request@ntg.nl> escribió:

> Send ntg-context mailing list submissions to
>         ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>         ntg-context-request@ntg.nl
>
> You can reach the person managing the list at
>         ntg-context-owner@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>    1. Re: is it useful to use the option "--fonts=all" when running
>       first-setup-sh? (Pablo Rodriguez)
>    2. Re: crosswords puzzles (Wolfgang Schuster)
>    3. mkii to mkiv - section numbering with minimal example
>       (Duncan Hothersall)
>    4. Re: mkii to mkiv - section numbering with minimal example
>       (Hans Hagen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 22 Jun 2019 12:03:38 +0200
> From: Pablo Rodriguez <oinos@gmx.es>
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] is it useful to use the option
>         "--fonts=all" when running first-setup-sh?
> Message-ID: <9a3757f9-04d5-ae8b-655f-160c9bc91124@gmx.es>
> Content-Type: text/plain; charset=utf-8
>
> On 6/20/19 10:39 PM, Andres Conrado Montoya wrote:
> > As the subject says. I've been experimenting with having a by-project
> > context folder, so I can have a "frozen" version for each project. I see
> > there's an option to install more fonts (including utopia, useful for a
> > project I'm working on). However, I have no idea how to use these fonts.
> > Are they available in mkiv? only for mkii? Do we have typescripts for
> > those fonts? If so, how are they called? Are those fonts actually usable
> > or are they just remains from a past era?
>
> Hi Andrés,
>
> this sample works fine with both MkIV and LMTX (no --fonts=all required):
>
>     \definefontfamily[mainface][rm][Utopia]
>     \setupbodyfont[mainface]
>     \starttext
>     \input zapf
>     \stoptext
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 22 Jun 2019 12:05:13 +0200
> From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>, DesdeChaves
>         <desdechaves@gmail.com>
> Subject: Re: [NTG-context] crosswords puzzles
> Message-ID: <ed237a33-4d86-03f5-ee82-140640e3692d@gmail.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> DesdeChaves schrieb am 22.06.2019 um 11:42:
> > Dear sirs,
> >
> > Is there a way to make crosswords  or word puzzles in context?
> > In my hippocampus I have a vague idea that this has already been
> > tried, but I can't find this code anymore.
> AFAIK there are only packages for LaTeX to create crossword but you can
> use natural or extreme tables to create them. For the input Lua can be a
> better choice because you can put your words (or numbers) in a Lua table
> and use a loop to create a table for TeX.
>
> Wolfgang
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190622/ff819017/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Sun, 23 Jun 2019 09:26:04 +0100
> From: Duncan Hothersall <dh@capdm.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] mkii to mkiv - section numbering with minimal
>         example
> Message-ID:
>         <CAN8fp9WGPm=pNBrp2bTckB38g+hwRMBPXaRBTf5YSFQL4=
> tOMQ@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Further to my previous query about updating from mkii to mkiv, I have
> solved some of the issues by trial and error but am beginning to identify
> the ones I can't resolve. My first minimal example is below.
>
> I want the sections and subsections not to prefix the part and chapter
> numbering, giving me this output:
>
> Part 1
> Chapter 1.1
> Section 1
> Subsection 1.1
>
> The line that used to achieve this result was
>
> \setupsection[section-3][previousnumber=no]
>
> and there was also
>
> \setuphead[section][partnumber=no,chapternumber=no]
>
> but neither of these seems to work in mkiv
>
>
> Minimal example:
>
> \setupsection[section-3][previousnumber=no]
> \setuphead[section][partnumber=no,chapternumber=no]
>
> \starttext
> \part{Part}
> Part
> \chapter{Chapter}
> Chapter
> \section{Section}
> Section
> \subsection{Subsection}
> Subsection
> \stoptext
>
> Many thanks for any pointers.
>
> Duncan
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190623/b2e70a35/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 4
> Date: Sun, 23 Jun 2019 11:08:52 +0200
> From: Hans Hagen <j.hagen@xs4all.nl>
> To: "ntg-context@ntg.nl >> mailing list for ConTeXt users"
>         <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] mkii to mkiv - section numbering with
>         minimal example
> Message-ID: <79ccf634-041b-2c9a-df66-75289e8a79e0@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 6/23/2019 10:26 AM, Duncan Hothersall wrote:
> > Further to my previous query about updating from mkii to mkiv, I have
> > solved some of the issues by trial and error but am beginning to
> > identify the ones I can't resolve. My first minimal example is below.
> >
> > I want the sections and subsections not to prefix the part and chapter
> > numbering, giving me this output:
> >
> > Part 1
> > Chapter 1.1
> > Section 1
> > Subsection 1.1
> >
> > The line that used to achieve this result was
> >
> > \setupsection[section-3][previousnumber=no]
> >
> > and there was also
> >
> > \setuphead[section][partnumber=no,chapternumber=no]
> >
> > but neither of these seems to work in mkiv
> >
> >
> > Minimal example:
> >
> > \setupsection[section-3][previousnumber=no]
> > \setuphead[section][partnumber=no,chapternumber=no]
> >
> > \starttext
> > \part{Part}
> > Part
> > \chapter{Chapter}
> > Chapter
> > \section{Section}
> > Section
> > \subsection{Subsection}
> > Subsection
> > \stoptext
> >
> > Many thanks for any pointers.
> in the test suite there are all kind of examples (zip can be downloaded
> from the website)
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ------------------------------
>
> Subject: Digest Footer
>
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
> ------------------------------
>
> End of ntg-context Digest, Vol 180, Issue 23
> ********************************************
>

[-- Attachment #1.2: Type: text/html, Size: 12022 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] 6+ messages in thread

* Re: is it useful to use the option "--fonts=all" when running first-setup-sh?
  2019-06-23 20:53 ` ntg-context Digest, Vol 180, Issue 23 Andres Conrado
@ 2019-06-25 19:39   ` Pablo Rodriguez
  0 siblings, 0 replies; 6+ messages in thread
From: Pablo Rodriguez @ 2019-06-25 19:39 UTC (permalink / raw)
  To: ntg-context

On 6/23/19 10:53 PM, Andres Conrado wrote:
> Thanks, Pablo. I am assuming I need to have Utopia installed in my usual
> font folder. I tried with Erewhon (I have otf files for that) and it
> works. Thank you.
>
> In a related note, is there any reasonable way to use the latex math
> font /Math Times Pro 2/ (https://www.pctex.com/mtpro2.html)? I know a
> latex user who bought that font and I wonder if I can convince him to
> get on the ConTeXt boat.

Hi Andrés,

I’m afraid that the consistency of message threads suffers with reply to
digest messages
(https://mailman.ntg.nl/pipermail/ntg-context/2019/thread.html).

At least, consider editing the subject and removing the irrelevant parts
from other messages, as suggested in:

>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of ntg-context digest..."

Don’t get me wrong, a message may get no reply because it goes unnoticed.

Regarding Math Times Pro 2, I wonder whether
"\definefontfamily[mainface][mm][Math Times Pro 2]" would allow partial
usage.

But my background is in humanities and math is all Greek to me 😅.

Just in cas it might help,

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: is it useful to use the option "--fonts=all" when running first-setup-sh?
       [not found] <mailman.149.1561491572.1354.ntg-context@ntg.nl>
@ 2019-06-25 22:29 ` Andres Conrado
  0 siblings, 0 replies; 6+ messages in thread
From: Andres Conrado @ 2019-06-25 22:29 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 460 bytes --]

Tank you very much Pablo. I'll try that. They are proper latex fonts, tho,
so I'm no sure that will do. I also have a background i humanities and book
design, but I'm now making math books, go figure. It's very interesting
from a typographic point of view.

Now I'm more interested in seeing what happens with the last code I sent
here, in another message... "Strange behavior in somewhat complex layout"
Maybe nobody noticed it. I hope I can figure that out.

[-- Attachment #1.2: Type: text/html, Size: 558 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] 6+ messages in thread

* Re: is it useful to use the option "--fonts=all" when running first-setup-sh?
  2019-06-20 20:39 Andres Conrado Montoya
@ 2019-06-22 10:03 ` Pablo Rodriguez
  0 siblings, 0 replies; 6+ messages in thread
From: Pablo Rodriguez @ 2019-06-22 10:03 UTC (permalink / raw)
  To: ntg-context

On 6/20/19 10:39 PM, Andres Conrado Montoya wrote:
> As the subject says. I've been experimenting with having a by-project
> context folder, so I can have a "frozen" version for each project. I see
> there's an option to install more fonts (including utopia, useful for a
> project I'm working on). However, I have no idea how to use these fonts.
> Are they available in mkiv? only for mkii? Do we have typescripts for
> those fonts? If so, how are they called? Are those fonts actually usable
> or are they just remains from a past era?

Hi Andrés,

this sample works fine with both MkIV and LMTX (no --fonts=all required):

    \definefontfamily[mainface][rm][Utopia]
    \setupbodyfont[mainface]
    \starttext
    \input zapf
    \stoptext

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* is it useful to use the option "--fonts=all" when running first-setup-sh?
@ 2019-06-20 20:39 Andres Conrado Montoya
  2019-06-22 10:03 ` Pablo Rodriguez
  0 siblings, 1 reply; 6+ messages in thread
From: Andres Conrado Montoya @ 2019-06-20 20:39 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1344 bytes --]

As the subject says. I've been experimenting with having a by-project
context folder, so I can have a "frozen" version for each project. I see
there's an option to install more fonts (including utopia, useful for a
project I'm working on). However, I have no idea how to use these fonts.
Are they available in mkiv? only for mkii? Do we have typescripts for those
fonts? If so, how are they called? Are those fonts actually usable or are
they just remains from a past era?

Thank you for your time.

Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell

[-- Attachment #1.2: Type: text/html, Size: 1861 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] 6+ messages in thread

end of thread, other threads:[~2019-06-25 22:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1561284001.24507.ntg-context@ntg.nl>
2019-06-23 11:14 ` mkii to mkiv - section numbering with minimal example Duncan Hothersall
2019-06-23 20:53 ` ntg-context Digest, Vol 180, Issue 23 Andres Conrado
2019-06-25 19:39   ` is it useful to use the option "--fonts=all" when running first-setup-sh? Pablo Rodriguez
     [not found] <mailman.149.1561491572.1354.ntg-context@ntg.nl>
2019-06-25 22:29 ` Andres Conrado
2019-06-20 20:39 Andres Conrado Montoya
2019-06-22 10:03 ` Pablo Rodriguez

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).