Re: [NTG-context] tikz is not found

2019-04-24 Thread Hans Hagen

On 4/24/2019 7:15 PM, Aditya Mahajan wrote:

As an elegent example of this see this excellent imitation of Byrne's 
Euclid: 
https://github.com/jemmybutton/byrne-euclid/releases/download/0.6%2B0.3/byrne_context.pdf 



(Source at https://github.com/jemmybutton/byrne-euclid)
Ha, that is nice ... i actually have a facsimile of that book somewhere 
but this is more fun


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] Text around a figure

2019-04-24 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 24.04.2019 um 19:51:

Hi Wolfgang,
Thank you t works but why should you add this command ?


ConTeXt has to update the number of remaining lines for side floats at
the begin each each paragraph but when you start a paragraph in a group,
e.g. {\bf ...} to information is lost after the closing brace. When you add
now \dontleavehmode before the group starts you flushed to information
because the paragraph already started.

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] Text around a figure

2019-04-24 Thread Wolfgang Schuster



Fabrice Couvreur schrieb am 24.04.2019 um 19:44:

Hi,
Why does bold text touch the figure ?
Thank you.
Fabrice


\definefloat
   [recipe]
   [figure]

\setupfloat
[recipe]
   [default={right,none}]


\starttext

\placerecipe{}{
  \setupbodyfont[8pt,pagella]
\startMPcode

    path p, q ;
    p:= unitsquare xyscaled (1.5cm,1.5cm) ;
    q:= unitsquare xyscaled (2.5cm,2.5cm) shifted (1.5cm,0);

    draw p withpen pencircle scaled 1pt ;
    draw q withpen pencircle scaled 1pt ;

    label.llft("$A$", p) ;
    label.lrt("$M$", p) ;
label.ulft("$P$", p) ;
    label.urt("$N$", p) ;
label.lrt("$B$", q) ;
    label.urt("$Q$", q) ;
label.ulft("$R$", q) ;

  \stopMPcode
    }
 Sur la figure ci-contre, \m{[AB]} est un segment de longueur 4.

\m{M} est un point mobile sur le segment \m{[AB]} .

    \m{AMNP} et \m{MBQR} sont deux carrés.

    On note \m{x} la distance \m{AM}.
    \blank
  {\bf On cherche les positions de \m{M} telles que la surface 
constituée par les deux carrés soit supérieure à 10.}


I guess this should work (untested).

\dontleavehmode{\bf ...}

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] Hyphenation questions

2019-04-24 Thread Wolfgang Schuster

Dmitry Starostin schrieb am 24.04.2019 um 19:34:
1. is there an analog to \hyp{} command from the 'hyphenat' package? 
Double words with a dash happen all too often.


1. Add \setbreakpoints[compound] to enable a line break at a hyphen.

\setbreakpoints[compound]

\starttext
electromagnetic-endioscopy
\stoptext

2. Use || to insert a breakable hyphen.

\starttext
electromagnetic||endioscopy
\stoptext


2. how to switch language for just three words for correct hyphenation?


\starttext
English ... \language[de]{Deutsch}
\stoptext

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] Text around a figure

2019-04-24 Thread Fabrice Couvreur
Hi,
Why does bold text touch the figure ?
Thank you.
Fabrice


\definefloat
   [recipe]
   [figure]

\setupfloat
   [recipe]
   [default={right,none}]


\starttext

  \placerecipe{}{
  \setupbodyfont[8pt,pagella]
  \startMPcode

path p, q ;
p:= unitsquare xyscaled (1.5cm,1.5cm) ;
q:= unitsquare xyscaled (2.5cm,2.5cm) shifted (1.5cm,0);

draw p withpen pencircle scaled 1pt ;
draw q withpen pencircle scaled 1pt ;

label.llft("$A$", p) ;
label.lrt("$M$", p) ;
label.ulft("$P$", p) ;
label.urt("$N$", p) ;
label.lrt("$B$", q) ;
label.urt("$Q$", q) ;
label.ulft("$R$", q) ;

  \stopMPcode
}
 Sur la figure ci-contre, \m{[AB]} est un segment de longueur 4.

\m{M} est un point mobile sur le segment \m{[AB]} .

\m{AMNP} et \m{MBQR} sont deux carrés.

On note \m{x} la distance \m{AM}.
\blank
  {\bf On cherche les positions de \m{M} telles que la surface
constituée par les deux carrés soit supérieure à 10.}
\blank
\startitemize[n]
\item À quel intervalle appartient \m{x} ?
\item Montrer que le problème revient à résoudre l'inéquation :
  \startformula
2x²-8x+6\geqslant 0.
  \stopformula
\item Développer le produit \m{(2x-6)(x-1)}.
\item En déduire les solutions de l'inéquation \m{2x²-8x+6\geqslant 0}
et conclure concernant le problème.
\stopitemize
\stoptext
___
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] Hyphenation questions

2019-04-24 Thread Dmitry Starostin
1. is there an analog to \hyp{} command from the 'hyphenat' package? Double
words with a dash happen all too often.

2. how to switch language for just three words for correct hyphenation?

3. if the citation in APS format falls out of the right margin, what needs
to be changed to adjust it?

4. In APS, I cannot figure out how to make a space appear between the
numbers for cited sources. [1, p. 1,2, p. 2]. But [1, p. 1, 2, p. 2] is
what is desired. In one case it did appear automatically, but all others
don't work.

\cite[righttext={{{, p.~1}},{{, p.~2}}}][book1,book2]
___
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] tikz is not found

2019-04-24 Thread Aditya Mahajan

On Wed, 24 Apr 2019, Wolfgang Schuster wrote:


Gour schrieb am 24.04.2019 um 18:57:

That I spotted and corrected, but I'm getting another error, I suppose:
$ cat  mp.tex
\starttext
Lorem Ipsum…

\startMPcode
draw ( (0,0)--(1,0)--(0,1)) with color red ;

Change "with color" to "withcolor" (no space).


Here is a more detailed example that mimics the tikz code that you sent in 
the other email.


\definecolor[myblue][r=0.3,g=0.3,b=1]
\definecolor[myred][r=0.6,g=0.2,b=0]

\starttext
\startMPpage
  newpair A, B, C;

  A := (-7.7, 2.75)*1cm;
  B := (0.88, 2.57)*1cm;
  C := (-3.04, -3.37)*1cm;

  newpath triangle;
  triangle := A -- B -- C -- cycle;
  fill triangle withcolor "myred" withtransparency("normal", 0.1);
  draw triangle withpen pencircle scaled 2pt
withcolor "myred";

  dotlabeldiam := 5pt;
  dotlabel.lft("A", A) withcolor "myblue";
  dotlabel.rt ("B", B) withcolor "myblue";
  dotlabel.bot("C", C) withcolor "myblue";

\stopMPpage
\stoptext

In ConTeXt, if you put quotes around the name of a color, it looks at the 
colors defined in tex rather than colors defined in metapost. This allows 
you to easily share the same colors in text and figures.


As an elegent example of this see this excellent imitation of Byrne's 
Euclid: 
https://github.com/jemmybutton/byrne-euclid/releases/download/0.6%2B0.3/byrne_context.pdf


(Source at https://github.com/jemmybutton/byrne-euclid)

Aditya___
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] tikz is not found

2019-04-24 Thread Wolfgang Schuster

Gour schrieb am 24.04.2019 um 18:57:

That I spotted and corrected, but I'm getting another error, I suppose:
$ cat  mp.tex
\starttext
Lorem Ipsum…

\startMPcode
draw ( (0,0)--(1,0)--(0,1)) with color red ;

Change "with color" to "withcolor" (no space).

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] tikz is not found

2019-04-24 Thread Gour
On Wed, 24 Apr 2019 09:29:26 -0600
Alan Braslau  wrote:

> Hans explained that third party modules are not automatically
> distributed or installed (yet) by the lmtx install.sh script. 

Ahh...I apologize for creating extra noise then. :-(

> All that you need to do is to copy the texmf-modules directory from a
> standard context distribution to the lmtx tree.

OK. Will try to do it.

> If you are intending on preparing math exams, I may suggest that
> native MetaPost IS better adapted for many reasons AND easier to use
> in ConTeXt.

I believe it is, but it seems that learning curve is steeper, while
GeoGebra is quite easy to easy...However, I downloaded MetaPost manual
and will test how it goes.

> Because your (or someone's) mail application replaced -- with
> emdashes.

That I spotted and corrected, but I'm getting another error, I suppose:

$ cat  mp.tex
\starttext
Lorem Ipsum…

\startMPcode
draw ( (0,0)--(1,0)--(0,1)) with color red ;
\stopMPcode

\stoptext

gives:

$ context mp.tex 
mtx-context | run 1: luatex
--fmt="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en"
--jobname="mp"
--lua="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en.lui"
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./mp.tex"
--c:input="./mp.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"

This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian) 
 system commands enabled.
open source > level 1, order 1, name
'/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv' system
> system  > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt:
> 2019.4.24  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv' close source
> level 2, order 2, name
> '/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
> system  > files > jobname 'mp', input './mp', result 'mp'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/gour/prj/tex/mp.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
metapost> initializing instance 'metafun' using format 'metafun'
metapost> loading 'metafun' as
'/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method
'default' metapost> initializing number mode 'scaled'

tex error   > mp error on line 6 in file /home/gour/prj/tex/mp.tex:

>> currentpen.with
! Improper type.

color
<*> draw ( (0,0)--(1,0)--(0,1)) with color
red ; ;
Next time say `withpen ';
I'll ignore the bad `with' clause and look for another.

! Extra tokens will be flushed.

color
<*> draw ( (0,0)--(1,0)--(0,1)) with color
red ; ;
I've just read as much of that statement as I could fathom,
so a semicolon should have been next. It's very puzzling...
but I'll try to get myself back together, by ignoring
everything up to the next `;'. Please insert a semicolon
now in front of anything that you don't want me to delete.
(See Chapter 27 of The METAFONTbook for an example.)

[1]

1 \starttext
2 Lorem Ipsum…
3 
4 \startMPcode
5 draw ( (0,0)--(1,0)--(0,1)) with color red ;
6 >>  \stopMPcode
7 
8 \stoptext
9 


? 


Any hint?


Sincerely,
Gour

-- 
An intelligent person does not take part in the sources of misery,
which are due to contact with the material senses. O son of Kuntī,
such pleasures have a beginning and an end, and so the wise man does
not delight in them.

-- 
One must deliver himself with the help of his mind, and not
degrade himself. The mind is the friend of the conditioned soul,
and his enemy as well.


___
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] adjusting tikz pictures

2019-04-24 Thread Aditya Mahajan

On Wed, 24 Apr 2019, Gour wrote:


Hello,

I believe that using GeoGebra for drawing, exporting to TikZ is the most
approachable method for me to be able to create mathematic-related
material like exams for the children in the primary school, but need some
info how to adjust GeoGebra's TikZ output (suitable for LaTeX) for
ConTeXt?


You need to change \begin{tikzpicture} ... \end{tikpicture} to 
\starttikzpicture ... \stoptikzpicture and any other \begin{...} ... 
\end{...} pairs that occur in tikz (like \begin{axis}, \begin{scope}, etc) 
to \start... \stop... pairs. There are a few other quirks which have 
simple workarounds. I am not sure if they are documented anywhere.


If you are more comfortable using a visual tool like GeoGebra than writing 
the tikz/metapost code by hand, then I'd say that simply process the 
generate latex code through latex to generate standalone pdfs and include 
them in your context document using \externalfigure[...].


There are benefits of using the tikz/metapost code in the tex document. 
The main advantage is that your images and main text use the same fonts, 
but that can be handled by using the same fonts in latex when generating 
the image. The other advantages such as consistent look and feel across 
multiple images go away when you copy-paste auto-generated code.


So, simply including the generated figures using \externalfigure[...] will 
allow you to get productive right away. If and when you start noticing the 
limitations of this approach, then you can learn metapost/tikz :-)


If you follow this route, then I would add

\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\PreviewEnvironment{tikzpicture}

in the latex preamble. This will create standalone pages that are the same 
size the tikzpicture, so that you don't have to crop manually.




Here is the simple example:

\documentclass[10pt]{article}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\definecolor{zzttqq}{rgb}{0.6,0.2,0}
\definecolor{ududff}{rgb}{0.30196078431372547,0.30196078431372547,1}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]
\begin{axis}[
x=1cm,y=1cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-12.678,
xmax=12.678,
ymin=-13.472,
ymax=8.91,
xtick={-12,-11,...,12},
ytick={-13,-12,...,8},]
\clip(-12.68,-13.47) rectangle (12.68,8.91);
\fill[line width=2pt,color=zzttqq,fill=zzttqq,fill opacity=0.1000149011612] 
(-7.7,2.75) -- (0.88,2.57) -- (-3.04,-3.37) -- cycle;
\draw [line width=2pt,color=zzttqq] (-7.7,2.75)-- (0.88,2.57);
\draw [line width=2pt,color=zzttqq] (0.88,2.57)-- (-3.04,-3.37);
\draw [line width=2pt,color=zzttqq] (-3.04,-3.37)-- (-7.7,2.75);
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(--25.3932-4.84*\x)/0.04});
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(-13.78-3.92*\x)/5.94});
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(--29.7366--8.58*\x)/0.18});
\begin{scriptsize}
\draw [fill=ududff] (-7.7,2.75) circle (2.5pt);
\draw[color=ududff] (-7.54,3.18) node {$A$};
\draw [fill=ududff] (0.88,2.57) circle (2.5pt);
\draw[color=ududff] (1.04,3) node {$B$};
\draw [fill=ududff] (-3.04,-3.37) circle (2.5pt);
\draw[color=ududff] (-2.88,-2.94) node {$C$};
\draw[color=zzttqq] (-3.34,2.58) node {$c$};
\draw[color=zzttqq] (-1.28,0.02) node {$a$};
\draw[color=zzttqq] (-5.04,0.12) node {$b$};
\draw [fill=ududff] (5.2,5.63) circle (2.5pt);
\draw[color=ududff] (5.36,6.06) node {$D$};
\draw [fill=ududff] (5.24,0.79) circle (2.5pt);
\draw[color=ududff] (5.4,1.22) node {$E$};
\draw[color=black] (4.92,8.82) node {$f$};
\draw [fill=ududff] (-2,-1) circle (2.5pt);
\draw[color=ududff] (-1.84,-0.56) node {$F$};
\draw[color=black] (-12.5,5.84) node {$g$};
\draw[color=black] (-3.04,8.82) node {$h$};
\end{scriptsize}
\end{axis}
\end{tikzpicture}
\end{document}

How would such example be adjusted to be used with ConTeXt?


Sincerely,
Gour


--
As the embodied soul continuously passes, in this body,
from boyhood to youth to old age, the soul similarly passes
into another body at death. A sober person is not bewildered
by such a change.


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

Re: [NTG-context] Formula number misplaced

2019-04-24 Thread Mikael P. Sundqvist
On Wed, Apr 24, 2019 at 9:52 AM Hans Hagen  wrote:
>
> On 4/23/2019 4:11 PM, Mikael P. Sundqvist wrote:
> > Den tis 23 apr. 2019 14:46Aditya Mahajan  > > skrev:
> >
> > On Tue, 23 Apr 2019, Henri Menke wrote:
> >
> >  >
> >  > Dear list,
> >  >
> >  > The problem I describe does not make itself apparent in all
> > situations,
> >  > but sometimes the formula number, which is placed by
> >  > \start...\stopplaceformula, is misplaced and there appears a gap
> > between
> >  > it and the right margin.  The MWE below reproduces the problem in the
> >  > latest beta and lmtx.  It can be "fixed", however, by replacing
> >  > \start...\stopTEXpage by \start...\stoptext, so this might not
> > represent
> >  > the most generic incarnation.
> >
> > This can be "fixed" by specifying a width for TEXpage.
> >
> > Aditya
> > 
> > ___
> > 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
> > 
> > ___
> >
> >
> > Yes, but it can also appear when not using TEXpage. When I tried out
> > lmtx on a large file (not using TEXpage), it was there. I was not able
> > to reproduce on a smaller file, though. I could give it another try, if
> > necessary.
>
> Probably only when you use framed and construct that depend on it. Then
> use:
>
> \startTEXpage[autowidth=no]
>
> 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
> -

Today I managed to install lmtx on my laptop (I got an error
yesterday, but that was probably the network at the hotel).

I now ran context on the big file, and it looks fine. When I get home
(next week) I will be able to compile on the lmtx installation at
home, where I first saw the problem.

Right now, I cannot construct any example with the problem showing.

/Mikael

PS I did not use any strange constructs like frames around the
formulas in question.
___
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] tikz is not found

2019-04-24 Thread Alan Braslau
On Wed, 24 Apr 2019 12:42:03 +0200
Gour  wrote:

> in order to try using TikZ figures (exported from Geogebra) I tried
> with some simple TikZ example with lmtx install,

> so wonder how to add missing tikz module?

Hans explained that third party modules are not automatically distributed or 
installed (yet) by the lmtx install.sh script. All that you need to do is to 
copy the texmf-modules directory from a standard context distribution to the 
lmtx tree.

If you are intending on preparing math exams, I may suggest that native 
MetaPost IS better adapted for many reasons AND easier to use in ConTeXt.

> That example does not work for me, but I've got a clue.

Because your (or someone's) mail application replaced -- with emdashes.

Alan
___
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] How to write a wiki page?

2019-04-24 Thread Rudolf Bahr

Hello All!

I'd like to write a wiki page on special Fraktur fonts, but I don't know how to 
begin
technically. Are there rules? Certanly, but where? To whom would I send the 
result to
correct it with respect to format, ConTeXt commands, English language, bringing 
it into
the ConTeXt wiki and so on?

Greetings,

Rudolf
___
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] preparing math exams

2019-04-24 Thread Marcin Borkowski

On 2019-04-23, at 17:57, Fabrice L  wrote:

> Metapost (Metafun) is your best friend here. You can insert directly in

Also, TikZ, which is more LaTeX-centric, but works with ConTeXt, too (at
least it did when I last tried ConTeXt a few years ago).

Hth,

-- 
Marcin Borkowski
http://mbork.pl
___
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] adjusting tikz pictures

2019-04-24 Thread Gour
Hello,

I believe that using GeoGebra for drawing, exporting to TikZ is the most
approachable method for me to be able to create mathematic-related
material like exams for the children in the primary school, but need some
info how to adjust GeoGebra's TikZ output (suitable for LaTeX) for
ConTeXt?

The link on the wiki's page (https://wiki.contextgarden.net/TikZ) fior the
manual is dead..


Here is the simple example:

\documentclass[10pt]{article}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\definecolor{zzttqq}{rgb}{0.6,0.2,0}
\definecolor{ududff}{rgb}{0.30196078431372547,0.30196078431372547,1}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]
\begin{axis}[
x=1cm,y=1cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-12.678,
xmax=12.678,
ymin=-13.472,
ymax=8.91,
xtick={-12,-11,...,12},
ytick={-13,-12,...,8},]
\clip(-12.68,-13.47) rectangle (12.68,8.91);
\fill[line width=2pt,color=zzttqq,fill=zzttqq,fill opacity=0.1000149011612] 
(-7.7,2.75) -- (0.88,2.57) -- (-3.04,-3.37) -- cycle;
\draw [line width=2pt,color=zzttqq] (-7.7,2.75)-- (0.88,2.57);
\draw [line width=2pt,color=zzttqq] (0.88,2.57)-- (-3.04,-3.37);
\draw [line width=2pt,color=zzttqq] (-3.04,-3.37)-- (-7.7,2.75);
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(--25.3932-4.84*\x)/0.04});
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(-13.78-3.92*\x)/5.94});
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(--29.7366--8.58*\x)/0.18});
\begin{scriptsize}
\draw [fill=ududff] (-7.7,2.75) circle (2.5pt);
\draw[color=ududff] (-7.54,3.18) node {$A$};
\draw [fill=ududff] (0.88,2.57) circle (2.5pt);
\draw[color=ududff] (1.04,3) node {$B$};
\draw [fill=ududff] (-3.04,-3.37) circle (2.5pt);
\draw[color=ududff] (-2.88,-2.94) node {$C$};
\draw[color=zzttqq] (-3.34,2.58) node {$c$};
\draw[color=zzttqq] (-1.28,0.02) node {$a$};
\draw[color=zzttqq] (-5.04,0.12) node {$b$};
\draw [fill=ududff] (5.2,5.63) circle (2.5pt);
\draw[color=ududff] (5.36,6.06) node {$D$};
\draw [fill=ududff] (5.24,0.79) circle (2.5pt);
\draw[color=ududff] (5.4,1.22) node {$E$};
\draw[color=black] (4.92,8.82) node {$f$};
\draw [fill=ududff] (-2,-1) circle (2.5pt);
\draw[color=ududff] (-1.84,-0.56) node {$F$};
\draw[color=black] (-12.5,5.84) node {$g$};
\draw[color=black] (-3.04,8.82) node {$h$};
\end{scriptsize}
\end{axis}
\end{tikzpicture}
\end{document}

How would such example be adjusted to be used with ConTeXt?


Sincerely,
Gour


-- 
As the embodied soul continuously passes, in this body,
from boyhood to youth to old age, the soul similarly passes
into another body at death. A sober person is not bewildered
by such a change.


___
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] tikz is not found

2019-04-24 Thread Gour
Hello,

in order to try using TikZ figures (exported from Geogebra) I tried
with some simple TikZ example with lmtx install, but I get the
following: 

system  > ConTeXt  ver: 2019.04.16 09:07 MKIV beta  fmt:
2019.4.23  int: english/english system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/gour/opt/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv close
source> level 2, order 2, name
'/home/gour/opt/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'tik', input './tik', result 'tik'
fonts   > latin modern fonts are not preloaded languages
> language 'en' is active open source > level 2, order 3, name
> '/home/gour/prj/tex/tik.tex' colors  > 'rgb' color space is
> supported
colors  > 'cmyk' color space is supported
modules > 'tikz' is not found
[...]

so wonder how to add missing tikz module?

I'm running Devuan (Debian) 'testing' (x86-64)...

Sincerely,
Gour

-- 
From anger, complete delusion arises, and from delusion
bewilderment of memory. When memory is bewildered,
intelligence is lost, and when intelligence is lost
one falls down again into the material pool.


___
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] preparing math exams

2019-04-24 Thread Gour
On Tue, 23 Apr 2019 11:57:34 -0400
Fabrice L  wrote:

> Metapost (Metafun) is your best friend here. You can insert directly
> in context some MetaFun code, like this:
> 
> \starttext
> Lorem Ipsum…
> 
> \startMPcode
> draw ( (0,0) — (1,0) — (0,1)) with color red ;
> \stopMPcode
> 
> \stoptext
> 

That example does not work for me, but I've got a clue.

However, someone in other forum suggested me to use GeoGebra - that's
what even math textboooks use here which is interactive and can, amongst
several other formats, export to TikZ, and in the beginning it seems as
quicker/easier start.


Sincerely,
Gour

-- 
In this endeavor there is no loss or diminution,
and a little advancement on this path can protect
one from the most dangerous type of fear.


___
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] Formula number misplaced

2019-04-24 Thread Hans Hagen

On 4/23/2019 4:11 PM, Mikael P. Sundqvist wrote:
Den tis 23 apr. 2019 14:46Aditya Mahajan > skrev:


On Tue, 23 Apr 2019, Henri Menke wrote:

 >
 > Dear list,
 >
 > The problem I describe does not make itself apparent in all
situations,
 > but sometimes the formula number, which is placed by
 > \start...\stopplaceformula, is misplaced and there appears a gap
between
 > it and the right margin.  The MWE below reproduces the problem in the
 > latest beta and lmtx.  It can be "fixed", however, by replacing
 > \start...\stopTEXpage by \start...\stoptext, so this might not
represent
 > the most generic incarnation.

This can be "fixed" by specifying a width for TEXpage.

Aditya

___
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

___


Yes, but it can also appear when not using TEXpage. When I tried out 
lmtx on a large file (not using TEXpage), it was there. I was not able 
to reproduce on a smaller file, though. I could give it another try, if 
necessary.


Probably only when you use framed and construct that depend on it. Then 
use:


\startTEXpage[autowidth=no]

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] Move footnotes without moving the footnotes-reference

2019-04-24 Thread Huseyin Özoguz

Hello,

is this maybe not possible with activated grid? Or is my question just 
not clear:



\setuplayout[grid=yes]
\showgrid
\starttext
\dorecurse{779}{test }\footnote{Just a footnote. Wants to stay on this
page without forcing the last line of the first page to move on this
page (the 41rd line of the first page is now empty, but it should not).
So the reference of the footnote and the foonote itself would be on
different pages, but that would be ok. Is that possible?}
\stoptext


Thanks.

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.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
___