Re: [NTG-context] Column(set)s & overlapping lines

2019-09-30 Thread Procházka Lukáš Ing .

Hello,

thank you for quick response - I didn't notice such question.

I added some info to wiki:

https://wiki.contextgarden.net/Command/startcolumnset#Note

Best,

Lukas


On Tue, 01 Oct 2019 08:24:19 +0200, Henri Menke  wrote:


This has been asked many times.
Columnsets need grid.

\setuplayout[grid=yes]

Cheers, Henri

On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote:

Hello,

I have the following code:


\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]

\setupexternalfigures[location=default]

%

\starttext
   \startcolumnset[example]
 \startcolumnsetspan[wide]
   %\externalfigure[hacker][width=120mm] % Produces overlapping last two 
lines in the first column, too
   \vbox to80mm{}
 \stopcolumnsetspan

 \input knuth
   \stopcolumnset
\stoptext


The last two lines in the first column overlap (it seems that the last line is 
typeset a bit higher than the pre-last line) - how to avoid it?

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
___




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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] Column(set)s & overlapping lines

2019-09-30 Thread Henri Menke
This has been asked many times.
Columnsets need grid.

\setuplayout[grid=yes]

Cheers, Henri

On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> I have the following code:
> 
> 
> \definecolumnset[example][n=3,balancing=no]
> \definecolumnsetspan[wide][n=2]
> 
> \setupexternalfigures[location=default]
> 
> %
> 
> \starttext
>\startcolumnset[example]
>  \startcolumnsetspan[wide]
>%\externalfigure[hacker][width=120mm] % Produces overlapping last two 
> lines in the first column, too
>\vbox to80mm{}
>  \stopcolumnsetspan
> 
>  \input knuth
>\stopcolumnset
> \stoptext
> 
> 
> The last two lines in the first column overlap (it seems that the last line 
> is typeset a bit higher than the pre-last line) - how to avoid it?
> 
> 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] Column(set)s & overlapping lines

2019-09-30 Thread Procházka Lukáš Ing .

Hello,

I have the following code:


\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]

\setupexternalfigures[location=default]

%

\starttext
  \startcolumnset[example]
\startcolumnsetspan[wide]
  %\externalfigure[hacker][width=120mm] % Produces overlapping last two 
lines in the first column, too
  \vbox to80mm{}
\stopcolumnsetspan

\input knuth
  \stopcolumnset
\stoptext


The last two lines in the first column overlap (it seems that the last line is 
typeset a bit higher than the pre-last line) - how to avoid it?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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] circuitikz meters

2019-09-30 Thread Henri Menke
Circuitikz uses \textbf inside, which is a LaTeX macro.  Unfortunately, this is
hardcoded within the ammeter and voltmeter nodes, so you can't easily change
it.  Instead you can simply provide a macro that does the correct thing.

\usemodule[circuitikz]
\let\textbf\bold % <---
\starttext
\starttikzpicture
\draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0);
\draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
\draw (0,2) to[voltmeter, l=$U$] (++3,2);
\stoptikzpicture
\stoptext

Cheers, Henri

On 10/1/19 5:07 AM, Martin Althoff wrote:
> Hello ...
> 
> I am drawing some simple circuits for an electro-physics class I am teaching 
> using
> circuitikz. Using meters gives some effects I don't quite understand.
> 
> The MWE works as shown. The commented lines fail with "Undefined control 
> sequence". If I
> put the same 3 lines into Latex (via Texstudio on Linux), just the opposite 
> happens. The
> line with rmeter fails, the other two work. 
> 
> Why the difference? Some version issue? The "circuitikz manual version 
> 0.9.4.pdf" shows
> all 3 types of meters as choice. 
> 
> Actually I would prefer to use the "ammeter" and "voltmeter" within Context.
> 
> Thanks for any pointers.
> 
> Greetings, Martin
> 
> \usemodule[circuitikz]
> \starttext
> \starttikzpicture
> %\draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0);
> \draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
> %\draw (0,2) to[voltmeter, l=$U$] (++3,2);
> \stoptikzpicture
> \stoptext
> 
> 
> Latex MWE, works as shown
> 
> \documentclass{article}
> \usepackage{circuitikz}
> \begin{document}
> \begin{circuitikz}
>   \draw (0,0) to[ammeter, t=A, i=$i$] ++(3,0);
>   %\draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
>   \draw (0,2) to[voltmeter, l=$U$] (++3,2);
> \end{circuitikz}
> \end{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
> ___
> 
___
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] SSL certificate expired

2019-09-30 Thread Taco Hoekwater


> Op 30 sep. 2019 om 22:43 heeft Henri Menke  het 
> volgende geschreven:
> 
> Dear list,
> 
>$ curl https://mailman.ntg.nl/
>curl: (60) SSL certificate problem: certificate has expired

This has been fixed by Ferdy (reissued)

Best,

Taco
___
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] SSL certificate expired

2019-09-30 Thread Henri Menke
Dear list,

$ curl https://mailman.ntg.nl/
curl: (60) SSL certificate problem: certificate has expired

Cheers,
Henri
___
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] general syntax for startparagraph command

2019-09-30 Thread Henning Hraban Ramm

> Am 2019-09-30 um 19:37 schrieb Wolfgang Schuster 
> :
> 
> Jeroen schrieb am 30.09.2019 um 02:18:
>> Many thanks. Is there also a simple way to place a 2 above the = character 
>> as the definition does.
> The sample ways are:
> 
> \starttext
> 
> \setupruby[style=]
> 
> = \ruby{=}{*}

In case you’re wondering about the macro name:
https://en.wikipedia.org/wiki/Ruby_character



Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

___
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] Error during installation of LMTX

2019-09-30 Thread Mojca Miklavec
On Mon, 30 Sep 2019 at 20:04, Jan U. Hasecke wrote:
>
> I tried to update or install LMTX today and get this error:
>
> /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found
> (required by /home/juh/context-linux-64/bin/mtxrun)
>
> I am running debian 10 buster.

This could be related to Hans updating the Ubuntu version on WSL on
his computer recently (if that's the source of the distributed
binaries).

We do have binaries on
http://dl.contextgarden.net/build/luametatex/x86_64-linux/
which should work on Debian 9 (cmake on Debian 8 is too old and it
would require a bit more tricks to support the version that old), but
I'm not sure what you need to do to use them as a drop-in replacement
during "bootstrapping" phase.

This should probably be answered by Hans.

Mojca
___
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] ConTeXt on current Debian

2019-09-30 Thread Jan U. Hasecke
Dear all,

todays upgrade broke my context installation (context and lmtx) as
context now uses GLIBC_2.29 which is not available in Debian 10 buster.

After using my backup I now wonder if from now on ConTeXt won't support
Debian stable anymore?

juh
___
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] Error during installation of LMTX

2019-09-30 Thread Jan U. Hasecke
I tried to update or install LMTX today and get this error:

/lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found
(required by /home/juh/context-linux-64/bin/mtxrun)

I am running debian 10 buster.

juh
___
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] general syntax for startparagraph command

2019-09-30 Thread Wolfgang Schuster

Jeroen schrieb am 30.09.2019 um 02:18:
Many thanks. Is there also a simple way to place a 2 above the = 
character as the definition does.

The sample ways are:

\starttext

\setupruby[style=]

= \ruby{=}{*}

\blank

= \framed[location=bottom,align=middle,frame=off,offset=0pt]{*\\=}

\stoptext


The numbers in the command reference are positioned with a different
low level TeX method where you use a box to change the vertical and
horizontal position of the box.

You can find more information about this method (search for raise/lower)
on books about plain TeX [1,2] or Hans new manual about low level box
command [3].

[1] https://ctan.org/pkg/texbytopic
[2] https://ctan.org/pkg/impatient
[3] lowlevel-boxes.pdf (included in the context minimals)

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] Mkiv, fonts in text and math mode, with \definebodyfont

2019-09-30 Thread Stefano Sanguinetti
Hello,

I am trying to understand something more about fonts in text and math mode,
in Mkiv Context. I would like to be able to change things at the "define
body fonts" level.

I tried the following, in order to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][rm][tf=rsfs10 sa *]
\starttext
\tf ABCD
\tfa ABCD
\stoptext

The \tfa ABCD is displayed as rsfs as I wanted, but the \tf ABCD is
displayed as default fonts. Why ? What could I change in order to have \tf
ABCD in rsfs ?

In math mode, I am not able to have rsfs fonts :
\setupbodyfont[12pt]
\definebodyfont[12pt][mm][mr=rsfs10 sa *,ex=rsfs10 sa *,mi=rsfs10 sa
*,sy=rsfs10 sa *,ma=rsfs10 sa *,mb=rsfs10 sa *]
\starttext
$ABCD$
\stoptext

That gives ABCD in default math mode fonts.
Is there a simple way to do it with the \definebodyfont command ?

Thank you in advance for your comments.
___
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] Custom Footertext

2019-09-30 Thread Pablo Rodriguez
On 9/30/19 2:16 AM, Jeroen wrote:
> I have condensed it into a single document. The footer has in the right
> side the page numbering and at the left the "section". Both only start
> at the second page, which is good. I was wondering if the "section"
> could have the "title" in front of it. The title always stays the same,
> and the section changes.

Hi Jeroen,

I reply to your questions and make some comments.

> \setuppapersize[A4,portrait]
>    [A4,portrait]

This isn’t required, since this is the default.

> \usetypescript[pagella]
> \setupbodyfont[pagella,12pt]

I would say that the first line isn’t required.

> \setupcolors[state=start]

If I’m not wrong, this is also the default.

> \setupfootertexts[section][]

This might be what you need:

\setupfootertexts[section][\getvariable{document}{metadata:title}]

> \startdocument[
>   metadata:title={MkIV Context Notes},
>   metadata:subtitle={},
>   metadata:subject={MkIV Context},
>   affiliation=Context]

I don’t know why, your sample doesn’t include the matching \stopdocument
command. Could you compile your sample source without errors?

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
___


[NTG-context] circuitikz meters

2019-09-30 Thread Martin Althoff
Hello ...

I am drawing some simple circuits for an electro-physics class I am teaching 
using
circuitikz. Using meters gives some effects I don't quite understand.

The MWE works as shown. The commented lines fail with "Undefined control 
sequence". If I
put the same 3 lines into Latex (via Texstudio on Linux), just the opposite 
happens. The
line with rmeter fails, the other two work. 

Why the difference? Some version issue? The "circuitikz manual version 
0.9.4.pdf" shows
all 3 types of meters as choice. 

Actually I would prefer to use the "ammeter" and "voltmeter" within Context.

Thanks for any pointers.

Greetings, Martin

\usemodule[circuitikz]
\starttext
\starttikzpicture
%\draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0);
\draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
%\draw (0,2) to[voltmeter, l=$U$] (++3,2);
\stoptikzpicture
\stoptext


Latex MWE, works as shown

\documentclass{article}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[ammeter, t=A, i=$i$] ++(3,0);
%\draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
\draw (0,2) to[voltmeter, l=$U$] (++3,2);
\end{circuitikz}
\end{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
___


Re: [NTG-context] Multi-letter words/identifiers in math

2019-09-30 Thread Hans Hagen

On 9/29/2019 9:30 AM, Shuxian Wang wrote:

Dear list,

I am trying to typeset some multi-letter words/identifiers in 
mathematical formulas. Currently, doing things like |{\it variable}| or 
|{\mathit variable}| under math mode will cause the engine to shift all 
characters into the corresponding unicode mathematical alphanumeric 
block position. However, most OpenType fonts that have good support for 
unicode math are optimized for single-character usage. Therefore, the 
outcome of such method is non-ideal, as no kerning or ligatures will be 
enabled. Especially, this gives bad output when typesetting variable 
names with combinations like “ffi”.


Looking through some past discussions on the list, I am aware of the 
usage of |\mathword| and |\mathtext|. Using those command will keep all 
the characters “as is” and typeset them under text mode (as far as I can 
tell). But those commands switch to the main body fonts temporarily to 
accomplish this. Sometime when using a different math font than the main 
font (like Palatino with Latin Modern Math), I wish my variable names 
can also be in the math font (or at least very similar, such as Latin 
Modern vs. Latin Modern Math) to better merge with the formula.


The way I am currently doing is to introduce some “math text fonts” that 
is different from the main text font but close to the math font. And 
with custom font switchers like |\mwrm| and |\mwit| to help me define 
things like

|
\def\wordrm#1{\mbox{\mwrm #1}}
\def\wordit#1{\mbox{\mwit #1}}
|
Am I missing some builtin functionalities or easier ways to do this? If 
not, would it be a good idea to extend the functionality of |\mathword| 
so it lifts out the restriction of only using the main text font?

maybe \mfunction{...} is what you are looking for

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

2019-09-30 Thread Thomas A. Schmitz

On 29.09.19 16:31, Hans Hagen wrote:

Hi,

A week ago we had the (nice and pleasant) annual context meeting and as 
usual some new stuff has been presented there which was not yet in the 
distribution at that moment. Some pending code is now being moved into 
the distribution. Part is font related (lmtx only, not relevant for most 
users), most is metafun (luametafun or metafun xl or whatever name 
suits) related (including a new preliminary manual) which uses some new 
interfaces and therefore (currently) is lmtx only.


Hi Hans,

I just updated. I had to delete the cache for context to work again, got 
weird errors compiling a file that works normally. So my question: since 
creating a new cache and format takes only a few seconds, wouldn't it 
make sense to include it in install.sh ?


All best, thanks for the new version

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