Re: [NTG-context] Filling a page with \thinrules

2019-12-06 Thread Rik Kabel

On 12/6/2019 17:50, Otared Kavian wrote:

Hi all,

I am preparing a test for my students where I would like to have the statement 
of the problem on the top of a page and the remainder to the bottom of that 
page filled with \thinrules, for them to write the solution. And sometimes 
there might be an empty page filled with thinrules when the solution to the 
exercise is longer.

The following minimal example gives the idea of what I want to achieve, but 
since the statement of each exercise may be longer or shorter, I would like 
ConTeXt to compute how many \thinrules can be put in the remainder of the page.
That is, can one imagine a macro named (say) \fillpagewiththinrules which puts 
the exact number of thinrules before ejecting the page?
Is this possible or have I to do it by hand for each page?

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrules[n=20] % On the first page I can put 20 thinrules

\page

\thinrules[n=40] % On an empty page I can put 40 thinrules
\page

\input ward.tex

\thinrules[n=37] % On the third page there can be 37 thinrules

\stoptext

Thanks for any hint and help,
Best regards: Otared K.
___
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
___


It looks like Wolfgang answered this a while back. See Re: [NTG-context] 
Room for comment on the backside of form 
. 
.


--
Rik

___
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] wrong link /Rect in LMTX

2019-12-06 Thread Pablo Rodriguez
On 12/6/19 7:43 PM, Hans Hagen wrote:
> On 12/6/2019 6:46 PM, Pablo Rodriguez wrote:
>> [...]
>> Could you fix it?
> next beta

Many thanks for the ultra-fast fix, Hans.

I’m afraid I have just accidentally discovered that MkIV should be
improved with wrong width in multiple line links.

\setupinteraction
[state=start]
\enabledirectives[references.border=red]
\starttext
\startxtable[width=.25\textwidth, frame=on]
\startxrow
\startxcell\goto{\hyphenatedurl{abd.ab.ab.ab
ab.ab.ab.ab.ab.ab.a.b}}[url(a)]\\
b\stopxcell
\stopxrow
\stopxtable
\stoptext

LMTX generates the right width for the link.

Sorry, but I found out after modifying a presentation.

Many thanks for your 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
___


[NTG-context] Filling a page with \thinrules

2019-12-06 Thread Otared Kavian
Hi all,

I am preparing a test for my students where I would like to have the statement 
of the problem on the top of a page and the remainder to the bottom of that 
page filled with \thinrules, for them to write the solution. And sometimes 
there might be an empty page filled with thinrules when the solution to the 
exercise is longer.

The following minimal example gives the idea of what I want to achieve, but 
since the statement of each exercise may be longer or shorter, I would like 
ConTeXt to compute how many \thinrules can be put in the remainder of the page.
That is, can one imagine a macro named (say) \fillpagewiththinrules which puts 
the exact number of thinrules before ejecting the page?
Is this possible or have I to do it by hand for each page?

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrules[n=20] % On the first page I can put 20 thinrules

\page

\thinrules[n=40] % On an empty page I can put 40 thinrules
\page

\input ward.tex

\thinrules[n=37] % On the third page there can be 37 thinrules

\stoptext

Thanks for any hint and help,
Best regards: Otared K.
___
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] new beta

2019-12-06 Thread Otared Kavian
Hi Hans,

Thanks a lot for the new beta and for having fixed the issue with luametatex 
binaries.
Everything works great with version 2019.12.06 21:40.

Best regards: OK

> On 6 Dec 2019, at 15:05, Hans Hagen  wrote:
> 
> On 12/6/2019 1:34 PM, Otared Kavian wrote:
> 
>> Is this too old? Is this file created during installation or is it contained 
>> in the zip files downloaded from Pragma's site?
> Ok, I think that there is some issue with the builder. Mojca, it looks like 
> there is no binary upload happening after a build. If needed I can revert to 
> Alan for building but maybe it's something simple.
> 
> (There are two mac variants.)
> 
> 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
> ___

___
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] wrong link /Rect in LMTX

2019-12-06 Thread Hans Hagen

On 12/6/2019 6:46 PM, Pablo Rodriguez wrote:

Hans,

 \setupinteraction
 [state=start]
 \enabledirectives[references.border=red]
 \starttext
 \startxtable[option=stretch, frame=off]
 \startxrow
 \startxcell\goto{\hyphenatedurl{a}}[url(a)]\\
 b\stopxcell
 \stopxrow
 \stopxtable
 \stoptext

When compiled with LMTX, the link has a /Rect as wide as the cell.

MkIV generates the link with the right width.

Could you fix it?

next beta

-
  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
___


[NTG-context] wrong link /Rect in LMTX

2019-12-06 Thread Pablo Rodriguez
Hans,

\setupinteraction
[state=start]
\enabledirectives[references.border=red]
\starttext
\startxtable[option=stretch, frame=off]
\startxrow
\startxcell\goto{\hyphenatedurl{a}}[url(a)]\\
b\stopxcell
\stopxrow
\stopxtable
\stoptext

When compiled with LMTX, the link has a /Rect as wide as the cell.

MkIV generates the link with the right width.

Could you fix it?

Many thanks for your 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
___


[NTG-context] getting character from Noto Emoji

2019-12-06 Thread Pablo Rodriguez
Dear list,

with this sample (font available at https://www.google.com/get/noto/):

\definefontfamily[emoj][rm][Noto Emoji]
\setupbodyfont[emoj]
\starttext


\stoptext

I would like to get the second line of emojis (which are flags).

\tochar{n:FE4EB} outputs "4" and \utfchar{0xFE4EB}.

What am I doing wrong here?

BTW, I would love to use Noto Color Emoji, but ConTeXt (MkIV & LMTX)
doesn’t seem to handle it.

Many thanks for your 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
___


Re: [NTG-context] PDF/A-3a attachment support query

2019-12-06 Thread Pablo Rodriguez
On 12/6/19 3:11 AM, Rik Kabel wrote:
> Hello list,
>
> The following document fails PDF/A-3a validation. It passes without the
> attachment.
> [...]

Hi Rik,

ConTeXt needs better handling of attachments to be PDF/A-3 compatible.

BTW, attachments don’t need to be PDF/A-3 documents, even if they are
PDF documents (afaIk).

Attachments in PDF/A-3 need to be related (as an array) to the document
with the /AF key.

I already reported this and I think that the most sensible value is to
relate them to the document.

That would mean to include the /AF key in the /Catalog dictionary.

I think this would be the easiest way to implement and to use it.

Just in case it helps,

Pablo


PS: there is another issue with annotations (reported with other issues
already solved at
https://mailman.ntg.nl/pipermail/dev-context/2019/003558.html).
--
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] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Wolfgang Schuster

Thangalin schrieb am 06.12.2019 um 17:17:

Hi there,

How do I suppress the blank page in the following document while
maintaining the asymmetrical multicolumn layout? The problem centres
around "page=yes," whereby removing it eliminates the blank page, but
then wreaks havoc on the document layout.

\definepapersize[BookPaperSize][width=24in, height=12in,]
\setuppapersize[BookPaperSize]

\definelayout[BookTextLayout][
   topspace=.5in,
   backspace=.5in,
   header=\zeropoint,
   footer=\zeropoint,
   grid=yes,
]
\setuplayout[BookTextLayout]

\definecolumnset[BookColumns][n=4,distance=.25in]


Add "page=yes" to start each new columnset environment with a page break.

\definecolumnset [BookColumns] [n=4,distance=.25in,page=yes]


\setupcolumnset[BookColumns:1][width=11.75in]
\setupcolumnset[BookColumns:2][width=3.46in]
\setupcolumnset[BookColumns:3][width=3.46in]
\setupcolumnset[BookColumns:4][width=3.46in]

\setuphead[section][
   page=yes,


Remove the page break at the begin of each section because the break
happens after you start the columnset environment. The value of the
beforesection key is inserted before the values from other keys are used.

page=,


   beforesection={\startcolumnset[BookColumns]},
   aftersection={\stopcolumnset},
]


Wolfgang

___
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] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Thangalin
Hi there,

How do I suppress the blank page in the following document while
maintaining the asymmetrical multicolumn layout? The problem centres
around "page=yes," whereby removing it eliminates the blank page, but
then wreaks havoc on the document layout.

\definepapersize[BookPaperSize][width=24in, height=12in,]
\setuppapersize[BookPaperSize]

\definelayout[BookTextLayout][
  topspace=.5in,
  backspace=.5in,
  header=\zeropoint,
  footer=\zeropoint,
  grid=yes,
]
\setuplayout[BookTextLayout]

\definecolumnset[BookColumns][n=4,distance=.25in]
\setupcolumnset[BookColumns:1][width=11.75in]
\setupcolumnset[BookColumns:2][width=3.46in]
\setupcolumnset[BookColumns:3][width=3.46in]
\setupcolumnset[BookColumns:4][width=3.46in]

\setuphead[section][
  page=yes,
  beforesection={\startcolumnset[BookColumns]},
  aftersection={\stopcolumnset},
]

\setuphead[subsection][
  after={\column},
]

\setuphead[subsubsection][
  after={\blank[small]},
]

\starttext
\startsection[title={Section Title}]
\startsubsection[title={Subtitle}]
\dorecurse{2}{\input knuth}

\dorecurse{2}{%
  \startsubsubsection[title={Subsubtitle}]
\dorecurse{1}{\input ward}
\dorecurse{2}{\input lorem}
\dorecurse{1}{\input bryson}
  \stopsubsubsection
}

\stopsubsection
\stopsection
\stoptext

Thank you!
___
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] PDF/A-3a attachment support query

2019-12-06 Thread Hans Hagen

On 12/6/2019 4:21 PM, Peter Rolf wrote:

Hi Rik,

I guess it's not supported yet.

In "lpdf-fmt.lua" it says:
[..]
["pdf/a-3a"] = { -- untested; NEW: any type of attachment is allowed
[..]

I remember adding the "a-2a" and "a-3a" versions back when Hans and I
added experimental support for "PDF/UA-1" (which is based on "PDF/A-3a",
but much more limited). This all lies back a few years, can't remember
the details.

So we have only basic support for "PDF/A-3a", the more advanced features
of that format are not supported yet. The main problem here is the
lacking PDF/A documentation (ISO pay wall). I guess there is currently
no real reason to use that format at all (?).

indeed (and to be honest, i never need these options myself)

anyway, i happily wait till you come up with an entry for it

(i have no clue what 'advanced' features mean here, something we need to 
implement or just something that needs a flag)


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
___


Re: [NTG-context] PDF/A-3a attachment support query

2019-12-06 Thread luigi scarso
On Fri, Dec 6, 2019 at 4:26 PM Peter Rolf  wrote:

>
> So we have only basic support for "PDF/A-3a", the more advanced features
> of that format are not supported yet. The main problem here is the
> lacking PDF/A documentation (ISO pay wall).
>

A complete installation of verapdf  has  a very detailed "documentation"
(sort of, it's embedded in the code) based on the ISO standard.

--
luigi
___
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] PDF/A-3a attachment support query

2019-12-06 Thread Peter Rolf
Hi Rik,

I guess it's not supported yet.

In "lpdf-fmt.lua" it says:
[..]
   ["pdf/a-3a"] = { -- untested; NEW: any type of attachment is allowed
[..]

I remember adding the "a-2a" and "a-3a" versions back when Hans and I
added experimental support for "PDF/UA-1" (which is based on "PDF/A-3a",
but much more limited). This all lies back a few years, can't remember
the details.

So we have only basic support for "PDF/A-3a", the more advanced features
of that format are not supported yet. The main problem here is the
lacking PDF/A documentation (ISO pay wall). I guess there is currently
no real reason to use that format at all (?).


Best wishes,

Peter



Am 06.12.2019 um 03:11 schrieb Rik Kabel:
> Hello list,
>
> The following document fails PDF/A-3a validation. It passes without the
> attachment.
>
> \setuplanguage   [en]
> \setuptagging    [state=start]
> \setupinteraction    [state=start]
> \setupbackend    [format={pdf/a-3a},profile={default_gray.icc},
>   intent={ISO coated v2 300\letterpercent\space
> (ECI)}]
> \setupstructure  [state=start,method=auto]
> \setupcolors [pagecolormodel=auto,start=yes,rgb=no,cmyk=no]
> \setupbodyfont   [Palatino,10pt]
> \starttext
>
>   Attaching a plain text file.
>
> % \attachment    [file=test.tex,
> % type={text/plain;charset=UTF-8}]
> % The \ConTeXt\ source code for this document is attached here.
>   \attachment    [file=testa.pdf,
>   type={application/pdf}]
>   A successfully validated pdf/a-3a file is attached here.
>
> \stoptext
>
> pdf-online reports:
>
> Validating file "test.pdf" for conformance level pdfa-3a
> The key F is required but missing.
> The appearance dictionary doesn't contain an entry.
> File specification 'testa.pdf' not associated with an object.
> The document does not conform to the requested standard.
> The document doesn't conform to the PDF reference (missing required
> entries, wrong value types, etc.).
> The document contains hidden, invisible, non-viewable or
> non-printable annotations.
> The document contains annotations or form fields with ambigous or
> without appropriate appearances.
> The document does not conform to the PDF/A-3a standard.
> Done.
>
> My understanding is that 3-a should support both pdf and non-pdf
> attachments. This fails in a similar manner with both pdf/a-3a-validated
> files and with plain text files. I also tested with verapdf, and it also
> rejected the document with an attachment.
>
> Is this my error, or is it not yet supported?
>
> --
> Rik Kabel
>
>
>
> ___
> 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] Using ConTeXt with LuaTeX variants

2019-12-06 Thread Ulrike Fischer
Am Wed, 4 Dec 2019 20:10:13 -0500 schrieb Jairo A. del Rio:

> I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV),
...
> Although this is pretty easy with LaTeX:
> 
> \usepackage{harfload}
> \setmainfont{font}[RawFeature={mode=harf}]

unrelated to your question but this is no longer the recommended way
to use harf mode in latex. 

After some discussion the latex team decided to build lualatex next
year over luahbtex. For testing purpose lualatex-dev already now
uses luahbtex. harftex has been archived and its development has
stopped. The harfload code has been integrated into luaotfload.
Also fontspec has been updated and offers keys to activate harf
mode.

So your document should look like this:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{font}[Renderer=Harfbuzz] 
...

This requires a current luaotfload and you should use lualatex-dev
to compile it. 



-- 
Ulrike Fischer 
https://www.troubleshooting-tex.de/

___
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] new beta

2019-12-06 Thread Hans Hagen

On 12/6/2019 1:34 PM, Otared Kavian wrote:


Is this too old? Is this file created during installation or is it contained in 
the zip files downloaded from Pragma's site?
Ok, I think that there is some issue with the builder. Mojca, it looks 
like there is no binary upload happening after a build. If needed I can 
revert to Alan for building but maybe it's something simple.


(There are two mac variants.)

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
___


Re: [NTG-context] Some questions regarding math typesetting

2019-12-06 Thread Hans Hagen

On 12/6/2019 9:24 AM, TeXnician wrote:

Dear list,

while doing some math typesetting, I have found the following features not
working in LMTX:

1. Non-displaystyle operators are simply not shown (try \sum or \lim in text or
scriptstyle). This works in MkIV (and iirc in LMTX versions from before
november).


fixed in next beta (relates to some new stuff in the engine related to 
some border case but often happening math spacing)



2. \underbrace{x}_{y} stopped working. It produces an underbrace but the
subscript is not centered below the brace. It will show up as right
subscript. This works in MkIV.


idem


3. \startformulas does not allow numbering formulas because the number will run
into the next column. I have posted this at

https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
it is a bug.


This one is for Aditya who knows more about these math alignments 
(needs) than I do.


Aditya: when we comment the \aligntab it's ok but i'm hesitant to do 
that patch ... so do you see bad consequences?


\def\math_alignment_NR_indeed[#1][#2]%
  {%\aligntab % HERE
   \dostoptagged % finish cell
   \strc_formulas_place_number_nested{#1}{#2}%
   \math_number_right_of_eqalign
   \global\settrue\c_math_eqalign_first
   \crcr
   \dostoptagged} % finish row


For the upper two cases: Is anything wrong with my LMTX installation or did I
miss some upgrade instructions for math in LMTX?

will be fixed

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
___


Re: [NTG-context] Some questions regarding math typesetting

2019-12-06 Thread Otared Kavian
Hi,

Regarding the first two issues your are reporting on, your file typesets 
correctly with my installation of LMTX (version 2019.12.04 21:35). I get the 
three different sizes of \sum as expected, and the underbrace has $n$ under the 
middle of the brace.

The third issue is present, as you are saying in your message. But I don't know 
what you are trying to achieve with two \startalign...\stopalign in the same 
formula.

Best regards: OK

> On 6 Dec 2019, at 09:24, TeXnician  wrote:
> 
> Dear list,
> 
> while doing some math typesetting, I have found the following features not
> working in LMTX:
> 
> 1. Non-displaystyle operators are simply not shown (try \sum or \lim in text 
> or
>   scriptstyle). This works in MkIV (and iirc in LMTX versions from before
>   november).
> 2. \underbrace{x}_{y} stopped working. It produces an underbrace but the
>   subscript is not centered below the brace. It will show up as right
>   subscript. This works in MkIV.
> 3. \startformulas does not allow numbering formulas because the number will 
> run
>   into the next column. I have posted this at
> 
> https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
>   and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
>   it is a bug.
> 
> For the upper two cases: Is anything wrong with my LMTX installation or did I
> miss some upgrade instructions for math in LMTX?
> 
> Many thanks for an answer.
> ___
> 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] new beta

2019-12-06 Thread Otared Kavian
Hi again,

I just installed anew lmtx from Pragma website

http://lmtx.pragma-ade.nl/install-lmtx/context-osx-64.zip

and I have the same problem: the format cannot be made.
Looking at luametatex in a Terminal window, I get

-rwxr--r-- 1 kavian staff 2.7M Dec 6 13:15 
/context-osx-64/tex/texmf-osx-64/bin/luametatex*

and I cannot tell whether it is old or recent, but typing

luametatex --version 

gives among other things:

Functionality : level 20191029

Is this too old? Is this file created during installation or is it contained in 
the zip files downloaded from Pragma's site?

Thanks for any help,
Best regards: Otared K.


> 
> On 6 Dec 2019, at 06:21, Wolfgang Schuster 
>  wrote:
> 
> Otared Kavian schrieb am 06.12.2019 um 04:23:
>> Dear Hans,
>> 
>> The problem I described in my previous message comes indeed from 
>> \defineexpansion which is not defined.
>> Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is 
>> the four lines:
>> 
>> \defineexpansion
>>   [\c!step=1,
>>\c!stretch=40,
>>\c!shrink=20]
>> 
>> I could remake the format with version 2019.12.05 18:59. Then lmtx works 
>> fine as far as my files are concerned, but I don't know if there are side 
>> effects…
>> (However, once the format is made, if I uncomment those lines then lmtx 
>> works fine, but clearly one cannot make again the format)
> 
> You Luametatex binary is too old which missed the new \adjustspacingstep 
> command shown in the error message from your previous mail.
> 
> Wolfgang
> 

___
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] new beta

2019-12-06 Thread Hans Hagen

On 12/5/2019 8:28 PM, Otared Kavian wrote:

Hi Hans,

Thanks for the new features and the new release.
I could download the new installer  for MacOS which installs the latest version 
but it cannot make the formats ending with the error message which I copy below.

Best regards: OK
PS: this is the error message when installing:

tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
control sequence
that means that the binary is not updated ... can this relate to the new 
osx policies?


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
___


Re: [NTG-context] issue with beta from 2019.11.29 21:47 in Windows

2019-12-06 Thread Arthur Reutenauer
On Thu, Dec 05, 2019 at 08:31:45PM +0100, Pablo Rodriguez wrote:
> He was impressed that I “developed” a
> system with no coding knowledge, but he objected that ConTeXt wasn’t
> standard software (the standard for him was OpenOffice.org). I replied
> that the standard was in the output PDF documents (which were PDF/A-3a).

  And what did he have to say to that?

> (I didn’t mention that working with OOo was a real pain and that trying
> to write conditionals with document merging was extremely annoying for me.)

  You should have.

Best,

Arthur
___
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] Some questions regarding math typesetting

2019-12-06 Thread TeXnician
Dear list,

while doing some math typesetting, I have found the following features not
working in LMTX:

1. Non-displaystyle operators are simply not shown (try \sum or \lim in text or
   scriptstyle). This works in MkIV (and iirc in LMTX versions from before
   november).
2. \underbrace{x}_{y} stopped working. It produces an underbrace but the
   subscript is not centered below the brace. It will show up as right
   subscript. This works in MkIV.
3. \startformulas does not allow numbering formulas because the number will run
   into the next column. I have posted this at

https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
   and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
   it is a bug.

For the upper two cases: Is anything wrong with my LMTX installation or did I
miss some upgrade instructions for math in LMTX?

Many thanks for an answer.
\starttext
\section{One}
\startitemize
\item \type{\displaystyle}: $\displaystyle\sum\lim$
\item \type{\textstyle}: $\sum\lim$
\item \type{\scriptstyle}: $\scriptstyle\sum\lim$
\stopitemize

\section{Two}

$\underbrace{xyz}_{n}$

\section{Three}
also posted at https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side

\placeformula
\startformulas
  \startformula
\startalign[number=auto]
  \NC a \NC= b \NR
\stopalign
  \stopformula
  \startformula
\startalign[number=auto]
  \NC a \NC= b \NR
\stopalign
  \stopformula
\stopformulas
\stoptext

mwe-math.pdf
Description: Adobe PDF document
___
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
___