Re: [NTG-context] Epub export css buglets

2020-01-09 Thread Hans Hagen

On 1/6/2020 7:08 PM, Rik Kabel wrote:

A couple of small issues with the css for epub output.

First, back-exp.lua creates, in \jobname-styles.css

@namespace context url('%namespace%') ;

This should probably be:

@namespace context url('http://www.pragma-ade.com/context/export') ;

That file also has:

document,
%namespace%div.document {
 font-size  : %size% !important ;
 max-width  : %width% !important ;
 text-width : %align% !important ;
 hyphens: %hyphens% !important ;
}

which contains the invalid css property text-width. Perhaps that should 
be text-align or text-justify.


Something else appears to be creating, in \jobname-defaults.css:

pubfld[detail="title"],
div.pubfld.title {
 display : inline ;
 font-weight : italic ;
}

which incorrectly assigns italic to font-weight when of course it  is a 
font-style as far as css is concerned. This can be seen in file 
export-example.css in the distribution.

can you make a mwe ...



-
  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] @inproceedings not formatted

2020-01-09 Thread Exp
Never mind, I just realized that I need \usebtxdefinitions[apa]

On Thu, Jan 9, 2020 at 3:26 PM Exp  wrote:

> Hi all,
>
> It seems that the \placelistofpublications refuses to format the
> @inproceedings entries.
> Instead, it yields something like "inproceedings: [author: AnAuthor]
> [title: SomeTitle]".
>
> I tried the command \showbtxfields following [
> http://pragma-ade.nl/general/manuals/mkiv-publications.pdf], Table 3.2,
> but instead of 25 entries where @inproceedings is supposed to appear, it
> gives only 4 (article, book, demo-a, demo-b).
>
> Any help would be appreciated!
>
> code list:
>
> (main.bib)
> @inproceedings{AnArticle,
>   author="AnAuthor",
>   title="SomeTitle"
> }
>
> (main.mkiv)
> \usebtxdataset[main.bib]
> \starttext
> \placelistofpublications[method=dataset]
> \stoptext
>
> (context --version)
> mtx-context | current version: 2019.03.21 21:39
>


-- 
胡树伟
PKU EECS 2012
___
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] @inproceedings not formatted

2020-01-09 Thread Exp
Hi all,

It seems that the \placelistofpublications refuses to format the
@inproceedings entries.
Instead, it yields something like "inproceedings: [author: AnAuthor]
[title: SomeTitle]".

I tried the command \showbtxfields following [
http://pragma-ade.nl/general/manuals/mkiv-publications.pdf], Table 3.2, but
instead of 25 entries where @inproceedings is supposed to appear, it gives
only 4 (article, book, demo-a, demo-b).

Any help would be appreciated!

code list:

(main.bib)
@inproceedings{AnArticle,
  author="AnAuthor",
  title="SomeTitle"
}

(main.mkiv)
\usebtxdataset[main.bib]
\starttext
\placelistofpublications[method=dataset]
\stoptext

(context --version)
mtx-context | current version: 2019.03.21 21:39
___
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] interline space default changed?

2020-01-09 Thread Hans Hagen

On 1/9/2020 2:47 PM, Sandra Snan wrote:

Thank you so much for the swift reply, Hans. Much appreciated.

Hans Hagen  writes:


On 1/9/2020 11:08 AM, Sandra Snan wrote:

I was rerunning ConTeXt on some older documents and the interline space
isn't the same. Sure, the new default looks great, but what was the old
default? I need to match what I've already published. Thank you♥

The interlinespace is defined in 'ex' units so it depends on that value
in the font that you use ... maybe the font changed?


That's certainly possible. I switched computers and distros so all of
those things might've been refreshed or altered upstream. I'm using
Junicode for the main & bold but with Tex Gyre Schola for italic, and
then grabbing miscellaneoussymbols out of a DejaVu Serif fallback and
using DejaVu Sans Mono for mono (althought this particular page doesn't
have any mono). If it isn't that case that those fonts have changed
their metrics, which I wouldn't know, I'm kinda out of the loop
generally (#unplugged), I was thinking that maybe the culprit could be
that it used to work off of the italic's ex height and now works off of
the main's ex height but that's just wild guessing on my part.


if you still have the old installation you can do this someplace in the 
file:


\the\dimex2.8ex % or whatever value you used for interlinespacing

and then use the reported value in the updated installation


I'm working around the problem by setting the interline space to
3.0675ex which makes the recompiled pages match the previously compiled
pages exactly. (I don't know why that number. I found it by trying every
number and seeing what matched.) The previously compiled pages didn't
have an interline space set.

Thanks again.

Sandra




--

-
  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] extreme table and right frames with vertically spanned cells

2020-01-09 Thread Hans Hagen

On 1/4/2020 7:00 PM, Damien Thiriet wrote:

Hi list,


It looks like switching off right frame is not taken into account when
spanning cell vertically.

Consider this example:

\starttext
\startxtable
\startxrow
   \startxcell A
   \stopxcell
   \startxcell [ny=2,rightframe=off] B
   \stopxcell
\stopxrow
\startxrow
   \startxcell C
   \stopxcell
\stopxrow
\stopxtable
\stoptext


can you test (for side effects) with this in cont-new.mkiv:
 \unprotect

\unexpanded\def\dummyxcell
  {\begingroup
   \let\inheritedxtableframed\relax
   \tabl_x_start_cell_nop
   \tabl_x_stop_cell
   \endgroup}

\protect

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] interline space default changed?

2020-01-09 Thread Hans Hagen

On 1/9/2020 11:08 AM, Sandra Snan wrote:

I was rerunning ConTeXt on some older documents and the interline space
isn't the same. Sure, the new default looks great, but what was the old
default? I need to match what I've already published. Thank you♥
The interlinespace is defined in 'ex' units so it depends on that value 
in the font that you use ... maybe the font changed?


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] Check for parity of pair tags on source file to be closed

2020-01-09 Thread Pablo Rodriguez
On 1/9/20 1:00 PM, cont...@vivaldi.net wrote:
> Hello,
>
> in most cases, when a source file is to be closed, pair elements (tags)
> should balanced.
>
> This concerns e.g. { - }, \bgroup - \egroup, \startitemize -
> \stopitemize, \if - \fi etc.
>
> When we have a complicated project structure and when compiling the
> topmost (root) source, a log for a disbalanced tag may appear, but the
> unbalanced tag however may be difficult to find.
>
> Is there a way to enable "watching" pair tags (at least mentioned
> before) in the way that their disbalance would be reported (logged)?

Hi Lukas,

maybe this helps you:

mtxrunjit --autogenerate --script check file.tex

It only works with single files, since t doesn’t load other files (with
\input).

But it might fit your needs.

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] interline space default changed?

2020-01-09 Thread Pablo Rodriguez
On 1/9/20 11:08 AM, Sandra Snan wrote:
> I was rerunning ConTeXt on some older documents and the interline space
> isn't the same. Sure, the new default looks great, but what was the old
> default? I need to match what I've already published. Thank you♥

Hi Sandra,

which version did you use to generate those documents?

I mean, \setupinterlinespace defaults are defined in spac-def.mkiv (for
MkIV), which read in the latest beta:

\setupinterlinespace
  [\c!minheight=0pt, % only special purpose
   \c!mindepth=0pt, % only special purpose
   \c!height=.72,
   \c!depth=.28,
   \c!top=1.0,
   \c!bottom=0.4,
   \c!distance=1pt,
   \c!line=2.8ex,
   \c!stretch=0]

In MkII, the definition seems to be basically the same in latest beta.

There is a GitHub repo at
https://github.com/contextgarden/context-mirror/. Older defaults could
be checked there.

BTW, I thought that the default was "\setupinterlinespace[line=2.85ex]".
But it seems that it is 2.8ex since at least 2013
(http://pmrb.free.fr/contextref.pdf#page=113).

It might be that default values for interline space haven’t been
modified in ConTeXt for a long while.

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
___


[NTG-context] Check for parity of pair tags on source file to be closed

2020-01-09 Thread context

Hello,

in most cases, when a source file is to be closed, pair elements (tags) 
should balanced.


This concerns e.g. { - }, \bgroup - \egroup, \startitemize - 
\stopitemize, \if - \fi etc.


When we have a complicated project structure and when compiling the 
topmost (root) source, a log for a disbalanced tag may appear, but the 
unbalanced tag however may be difficult to find.


Is there a way to enable "watching" pair tags (at least mentioned 
before) in the way that their disbalance would be reported (logged)?


Maybe a "enable tracker" could provide that...

Sample:

 A.mkiv
\starttext
  A
  \input B.mkiv
\stoptext

 B.mkiv
  \startitemize
\item B
 <- "\startitemize" is unbalanced (unfinished by \stopitemize) in 
the scope of B.mkiv,
so a message/log ("unfinished \startitemize") should be printed 
when B.mkiv is to be closed.


Best regards,

Lukas
___
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] interline space default changed?

2020-01-09 Thread Sandra Snan
I was rerunning ConTeXt on some older documents and the interline space
isn't the same. Sure, the new default looks great, but what was the old
default? I need to match what I've already published. Thank you♥

Sandra

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