[NTG-context] MKIV to LMTX (enumerations)

2020-05-30 Thread Weber, Matthias
Dear List,

After staying with a frozen MKIV version for time-critical work for a while, I 
took the plunge and ran one of my longer math-heavy documents through LMTX. To 
my delight, it mostly looks fine or trivially fixable.
There is one problem I have with enumerations. The spacing between them in LMTX 
is notoriously smaller than in MKIV.

I bet there is a parameter I can set to tweak that? Below is a MWE with output 
for both engines.
Thanks!

Matthias




Test.tex
Description: Test.tex


Test-LMTX.pdf
Description: Test-LMTX.pdf


Test-MKIV.pdf
Description: Test-MKIV.pdf
___
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] Vertical lines in matrices

2020-05-04 Thread Weber, Matthias
Hi Aditya,

Ideally I would like to be able to typeset blocks in block matrices visually 
separated, as for instance is done in

https://tex.stackexchange.com/questions/23853/specific-blockmatrices/23857

My current solution for just vertical lines below has the drawback that it uses 
the standard delimiter \vert for the vertical line(s),
which is too thick for my taste.

Thanks,

Matthias



\definemathmatrix
  [bvmatrix]
  [left={\left(\,},right={\ \right|}]

\definemathmatrix
  [rbmatrix]
  [left={\left.\,},right={\,\right)}]
  
\starttext
\startformula
\startbvmatrix
\NC 0 \NC  0\NC  0 \NR
\NC 1 \NC  0\NC  1 \NR
\HL
\NC 1 \NC  0\NC  1 \NR
\stopbvmatrix
\startrbmatrix
\NC  0 \NR
\NC  1 \NR
\HL
\NC  1 \NR
\stoprbmatrix
\stopformula
\stoptext



> On May 4, 2020, at 13:00, Aditya Mahajan  wrote:
> 
> On Mon, 4 May 2020, Weber, Matthias wrote:
> 
>> I was aware of this. While there is no solution that adds vertical lines 
>> into matrices,
> 
> It should not be too difficult to support "proper" vertical and horizontal 
> lines. It should be possible to just add solid lines relatively easily. With 
> dashed and other forms of lines, it is more a question of finding the right 
> user-interface than anything else.
> 
> Can you give more details of the features and visual output that you are 
> looking for?
> 
> 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
> ___

___
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] Vertical lines in matrices

2020-05-04 Thread Weber, Matthias
Thanks Jeong,

I was aware of this. While there is no solution that adds vertical lines into 
matrices, one can juxtapose two (or more) of them with
properly chosen delimiters, like so:

\definemathmatrix
  [bvmatrix]
  [left={\left(\,},right={\ \right\vert}]

\definemathmatrix
  [rbmatrix]
  [left={\left.\,},right={\,\right)}]
  
\starttext
\startformula
\startbvmatrix
\NC 0 \NC  0\NC  0 \NR
\NC 1 \NC  0\NC  1 \NR
\stopbvmatrix
\startrbmatrix
\NC  0 \NR
\NC  1 \NR
\stoprbmatrix
\stopformula
\stoptext

> On May 4, 2020, at 04:25, Jeong Dal  wrote:
> 
> Dear Weber Mattias,
> 
> Please see page 10 of “mathalign.pdf” made by Aditya.
> He showed the way of writing  aligned math including  matrices.
> For example,
> 
> \startformula
> 
>  \startmatrix[left={\left(\,},right={\,\right)}]
> 
>   \NC 1 \NC 0 \NC 0 \NR
>   \NC 0 \NC 1 \NC 0 \NR
>   \NC 0 \NC 0 \NC 1 \NR
> 
> \stopmatrix 
>   \stopformula 
> There are many other examples that you can use.
> 
> Best regards,
> Dalyoung
> 
>> Message: 2
>> Date: Sun, 3 May 2020 17:47:24 +
>> From: "Weber, Matthias" 
>> To: mailing list for ConTeXt users 
>> Subject: [NTG-context] Vertical lines in matrices
>> Message-ID: 
>> Content-Type: text/plain; charset="utf-8"
>> 
>> Dear List,
>> 
>> I am trying to get vertical (separating) lines into matrices, as is possible 
>> in tables:
>> 
>> \starttext
>> \startformula
>> \left(
>> \starttable[|c|c|c|]
>> \NC 0 \NC  0\VL  0 \FR
>> \NC 1 \NC  0\VL  1 \FR
>> \stoptable
>> \right)
>> \stopformula
>> \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
> ___

___
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] Vertical lines in matrices

2020-05-03 Thread Weber, Matthias
Dear List,

I am trying to get vertical (separating) lines into matrices, as is possible in 
tables:

\starttext
\startformula
\left(
\starttable[|c|c|c|]
\NC 0 \NC  0\VL  0 \FR
\NC 1 \NC  0\VL  1 \FR
\stoptable
\right)
\stopformula
\stoptext

But my parentheses don’t fit, and I am not sure whether using tables in math 
mode is the proper way of doing things.
\startmatrix seems to ignore a \VL.

Any. suggestions?

Thanks,

Matthias
___
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] Nodes module for commutative diagrams etc

2020-03-29 Thread Weber, Matthias
Dear list,

I need to typeset a handful of simple commutative diagrams like the one below, 
and I found the nodes manual by Alan that has exactly what I want.

But what is the incantation to load the module, or am I missing something else?

Thanks,

Matthias

\starttext 
\startMPcode
path p ; 
p := fullsquare scaled 3cm ;
nodepath = p ;
draw node(0,"\node{$G(X)$}") ;
draw node(1,"\node{$G(Y)$}") ;
draw node(2,"\node{$F(Y)$}") ;
draw node(3,"\node{$F(X)$}") ;
drawarrow fromto.bot(0,0,1, "\nodeSmall{$G(f)$}") ; drawarrow fromto.top(0,3,2, 
"\nodeSmall{$F(f)$}") ; drawarrow fromto.rt (0,2,1, "\nodeSmall{$η_Y$}") ; 
drawarrow fromto.lft(0,3,0, "\nodeSmall{$η_X$}") ;
\stopMPcode
\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] Second derivative ''

2020-03-04 Thread Weber, Matthias
Dear List,

\starttext
\startformula
\left(f\right)'' = f''
\stopformula
\stoptext

has the second apostrophe set too low. This is in MKIV on ConTeXt live as well 
as in my slightly older version.
What is the “right” way to typeset a second derivative?

Thanks,

Matthias
___
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] Adding line numbers to all pages?

2019-12-02 Thread Weber, Matthias
Now that is embarrassing finding my question answered in an earlier post by 
Oliver from today.

Sorry for the noise.

Matthias

On Dec 2, 2019, at 17:49, Weber, Matthias 
mailto:matwe...@indiana.edu>> wrote:

Dear All,

Is there a simple way to add line numbers to the margin of each page of a 
document? They should recommence at 1 on every page,
and either omit formulas or handle them “gracefully”. I’d be happy to have any 
ad-hoc solution.

Thanks,

Matthias



\starttext

\input tufte
\startformula
1+1=1
\stopformula
\input knuth

\input tufte
\startformula
1+1=2
\stopformula
\input knuth

\input tufte
\startformula
1+1=3
\stopformula
\input knuth

\stoptext

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl<mailto: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
___


[NTG-context] Adding line numbers to all pages?

2019-12-02 Thread Weber, Matthias
Dear All,

Is there a simple way to add line numbers to the margin of each page of a 
document? They should recommence at 1 on every page,
and either omit formulas or handle them “gracefully”. I’d be happy to have any 
ad-hoc solution.

Thanks,

Matthias



\starttext

\input tufte
\startformula
1+1=1
\stopformula
\input knuth

\input tufte
\startformula
1+1=2
\stopformula
\input knuth

\input tufte
\startformula
1+1=3
\stopformula
\input knuth

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


Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Weber, Matthias
A while back I asked a similar question, and Hans pointed out the following 
which I still use:

\defineenumeration
 [exercise]
 [way=bysection,
  text=Exercise,
  coupling=solution,
  location=hanging]

\defineenumeration
 [solution]
 [text=Solution,
  way=bysection,
  coupling=exercise,
  location=hanging]

\defineblock[exercise]
\defineblock[solution]
\hideblocks[solution]

\setupinteraction
 [state=start]

\starttext

\section{Main Text}

\subsection[subsec:1]{problem section 1}

\startexercise
Addition\index{addition} problem: $1+1=?$ 
\stopexercise

\beginsolution[one]
\startsolution
Answer: 2. 
\stopsolution
\endsolution

\subsection[subsec:2]{problem section 2}

\startexercise
Multiplication problem: $1\times1=?$
\stopexercise

\beginsolution[two]
\startsolution
Answer: 1.
\stopsolution
\endsolution

\page

%\reset[solution]

\section{Answers to the Problems}

\subsection{Answers to \in{section}[subsec:1]}

\useblocks[solution][one]

\subsection{Answers to \in{section}[subsec:2]}

\useblocks[solution][two]

\stoptext


> On Jan 31, 2019, at 5:02 PM, Wolfgang Schuster 
>  wrote:
> 
> Hi Sanjoy,
> 
> when you have a equal number of questions ans answers you can create a 
> enumeration for each and collect the answers with the block mechanism.
> 
> At the end of the document you can flush the collected answers.
> 
> \defineblock [answer]
> 
> \defineenumeration [question]
> \defineenumeration [answer]
> 
> \starttext
> 
> \startquestion
> Question 1
> \stopquestion
> 
> \beginanswer
> \startanswer
> Answer 1
> \stopanswer
> \endanswer
> 
> \startquestion
> Question 2
> \stopquestion
> 
> \beginanswer
> \startanswer
> Answer 2
> \stopanswer
> \endanswer
> 
> \page
> 
> \useblocks[answer]
> 
> \stoptext
> 
> Wolfgang
> 
> 
> Sanjoy Mahajan schrieb am 31.01.19 um 22:51:
>> Dear List,
>> I'm trying to have problem solutions automatically collected, each with
>> its corresponding problem number, e.g. 2.3, and then typeset at the end
>> of a document.  Thus, I imagine something like
>> \startproblem{A problem title}  % Problem 1.1
>> A question
>> \startsolution
>> An answer
>> \stopsolution
>> \stopproblem
>> And then the solution(s) would appear at the end (with the "1.1"
>> remembered from when the problem was typeset):
>>   Solution to Problem 1.1.
>>   An answer
>> It seems that buffers are the way to do this.  But I cannot quite get
>> the automatic numbering to work.  The delayed evaluation and information
>> passing between lua and ConTeXt has me confused and tangled in a knot.
>> Below is a minimal almost-working example.  The issue is in the line
>>   {\ctxlua{userdata.addTempToBuffer('#1', [==[\getnumber[problem]]==])}}
>> which ends up putting the verbatim string "\getnumber[problem]" into the
>> temp buffer, rather than the typeset result, which would be something
>> like 1.1 or 1.2.
>> I've read the cld-mkiv.pdf manual, but I must be missing a simple
>> solution to getting ConTeXt to send back the result of
>> \getnumber[problem].  I've also tried the analogous
>> context.getnumber({"problem"}), though without success.
>> Does anyone see what I am missing?
>> Many thanks!
>> -Sanjoy
>> \defineenumeration[problem]
>>   [title=yes, text=Problem, way=bychapter, prefix=chapter]
>> \defineenumeration[solution][problem]
>> \setupenumeration [solution][text={Solution to problem}, number=no]
>> \def\test#1{[#1]}
>> % appendbuffer modified from Sietse Brouwer's on mailing list (Jan 15, 2013)
>> \startluacode
>> userdata = userdata or { }
>> function userdata.addTempToBuffer(buffername, problem)
>> buffers.append(
>> buffername,
>> '\\startsolution{' .. problem .. '}\n' .. 
>> buffers.getcontent('APPENDTEMP') .. '\n\\stopsolution\n\n'
>> )
>> end
>> \stopluacode
>> \def\startappendbuffer[#1]%
>>   {\def\stopappendbuffer%
>>   {\ctxlua{userdata.addTempToBuffer('#1', [==[\getnumber[problem]]==])}}
>>\dostartbuffer[APPENDTEMP][startappendbuffer][stopappendbuffer]}
>> \starttext
>> \chapter{One}
>> \startproblem{Test}
>>   Test problem
>> \startappendbuffer[soln]
>> Solution
>> \stopappendbuffer
>> \stopproblem
>> \startproblem{Test}
>> Test problem
>> \startappendbuffer[soln]
>> Solution
>> \stopappendbuffer
>> \stopproblem
>> \typebuffer[soln]
>> \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
>> ___
> ___
> If your question is of interest to others as well, please add an entry to 

Re: [NTG-context] Update problems

2019-01-07 Thread Weber, Matthias
Update:

The page setup works after Hans’ fix. Thanks, that was a relief.
I still don’t know what’s going on with PDF inclusion. The ones that cause 
trouble are kind of old (from 2005), and I could “upgrade”
Them manually and things work now for this document. I have others that might 
cause problems, too. Unfortunately, the error message only tells which page 
couldn’t be flushed but not what figure is causing issues. Going through a 
hundred figures and trying whether they work is somewhat painful.

A more verbose error message would be helpful, or a hint what has changed with 
pdf import.

Thanks,

Matthias

> On Jan 7, 2019, at 11:26 AM, Weber, Matthias  wrote:
> 
> Dear List,
> 
> After a while I decided updating my ConTeXt installation to ConTeXt  ver: 
> 2019.01.07 10:07 MKIV beta  fmt: 2019.1.7.
> 
> With an old document of mine I ran into two issues so far: Some of my old pdf 
> images are not accepted as figures anymore.
> 
> Example:
> 
> \starttext
> \externalfigure[cardioid.pdf][width=1.5in]{Cardioid}
> \stoptext
> Using the following pdf which is version 1.4 
> 
> 
> More recent PDFs (1.5)seem to work.
> 
> Secondly, paper setup seems to require a new kind of massage.
> 
> \setuppapersize[S6][S6]
> 
> \starttext
> \dorecurse{10}{\input knuth}
> \input knuth
> \stoptext
> 
> produces
> 
> 
> On the other hand, the garden version looks ok. What could be wrong on my end?
> 
> Thanks!
> 
> Matthias___
> 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
___

[NTG-context] Update problems

2019-01-07 Thread Weber, Matthias
Dear List,

After a while I decided updating my ConTeXt installation to ConTeXt  ver: 
2019.01.07 10:07 MKIV beta  fmt: 2019.1.7.

With an old document of mine I ran into two issues so far: Some of my old pdf 
images are not accepted as figures anymore.

Example:

\starttext
\externalfigure[cardioid.pdf][width=1.5in]{Cardioid}
\stoptext
Using the following pdf which is version 1.4 



cardioid.pdf
Description: cardioid.pdf

More recent PDFs (1.5)seem to work.

Secondly, paper setup seems to require a new kind of massage.

\setuppapersize[S6][S6]

\starttext
\dorecurse{10}{\input knuth}
\input knuth
\stoptext

produces



test0.pdf
Description: test0.pdf

On the other hand, the garden version looks ok. What could be wrong on my end?

Thanks!

Matthias___
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] future versions

2018-07-25 Thread Weber, Matthias
I have an entirely different suggestion, possibly fitting the description of a 
possible  “lean” version.

One important feature of TeX has been the longevity of the documents. This is 
of course of little interest to those of us who
typeset a book/journal for publishing and care little about it when it’s done. 
But there is an interest in keeping the documents available in the long term,
meaning decades and possibly centuries (making assumptions about the human race 
here).  TeX has survived the transition from dvi/ps to pdf, and it is probably 
fair
to assume that pdf won’t be around forever. But it is probably also fair to 
assume that there will be straightforward ways to generate from TeX sources 
documents in a
future PDF replacement. 
This is in particular of concern in the scientific community where 
mathematical/physical/chemical formulas and diagrams are very hard to parse 
semantically
(which, admittedly, might change in the future, too). For instance, the 
preprint server at arXiv.org has been storing scientific preprints since 1991, 
preferably in TeX or LaTeX.
It would be an enormous benefit if the arXiv would accept a ConTeXt version. 
Scientific journals might then follow suit. 
At the moment I believe they use LaTeX from TeXLive 2016. 

It is of course a question whether a potentially much larger user base is 
desirable, because it likely means more requests for support/documentation etc.

In any case, I would very much appreciate another “frozen” release like MK II 
that one can use for documents that need to be  retypeset over years
(like my lecture notes that need an update every few years).

Matthias

> On Jul 25, 2018, at 8:50 AM, Hans Hagen  wrote:
> 
> On 7/25/2018 12:03 PM, Richard Mahoney | Indica et Buddhica wrote:
>> Agree wholeheartedly, and possibly also support for Tibetan.
> define support ... what is needed
> 
> -
>  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] Problem with math alignment

2017-11-12 Thread Weber, Matthias
Same here. Curiously, the Garden version is ok, while the newest beta seems to 
make all alignments centered.


Minimal  Example:


\starttext
\startformula
A=\startmathmatrix[align={right,right}]
\NC1\NC-1\NR
\NC-1\NC1\NR
\stopmathmatrix
\stopformula
\stoptext

Matthias

> On Nov 12, 2017, at 11:37 AM, Otared Kavian  wrote:
> 
> Hi everybody,
> 
> Does anyone have noticed that the mathalignment has changed its behaviour 
> recently? I think a bug has managed to enter the environment which handles 
> the mathalignment, at least since a few weeks ago. I did not report it 
> earlier because I was traveling and did not have a stable internet access.
> 
> Here is a minimal example where on can see in the first displayed formula 
> that the first and third column are centered while the first one shoud be 
> right-aligned and the third one left-aligned. (Actually it seems that all 
> columns are centered…)
> %%% begin pb-math-align.tex
> \definemathmatrix[alignedcases]
>   [align={right,left,left},
>   distance=3pt,
>   left={\left\{},
>   right={\right.},
>   style=\displaystyle]
> 
> 
> \starttext
> 
> \startformula
> \startalignedcases
> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0  \NC \quad\mbox{in 
> }\;(0,T)\times\Omega \NR
> \NC  u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
> \NC  \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR 
> \NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on 
> }\; (0,T)\times\partial\Omega. \NR
> \stopalignedcases
> \stopformula
> 
> 
> \startformula
> \startalignedcases
> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; 
> (0,T)\times\Omega \NR
> \NC - \Delta v  \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR
> \stopalignedcases
> \stopformula
> 
> \stoptext
> %%% end pb-math-align.tex
> 
> 
> 
> ___
> 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] Thicker \cdot ?

2017-11-06 Thread Weber, Matthias
Thanks, this is very helpful. 

Matthias

> On Nov 6, 2017, at 4:12 PM, Schmitz Thomas A. <thomas.schm...@uni-bonn.de> 
> wrote:
> 
> 
> 
>> On 6. Nov 2017, at 21:44, Weber, Matthias <matwe...@indiana.edu> wrote:
>> 
>> It looks like Metapost is a good way of doing this.
>> If anybody knows a better way, please let me know.
> 
> Not “better,” but maybe simpler: you can just scale the cdot; if you want to 
> be fancy, you can make a macro and center it vertically, but the basic 
> process would be:
> 
> \starttext
> 
> \getglyph{file:xits-math.otf}{\char"00B7}
> \space
> \getscaledglyph{1.2}{file:xits-math.otf}{\char"00B7}
> \space
> \getscaledglyph{1.6}{file:xits-math.otf}{\char"00B7}
> \space
> \getscaledglyph{2}{file:xits-math.otf}{\char"00B7}
> 
> \stoptext
> 
> So knock yourself out...
> 
> 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
> ___

___
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] Thicker \cdot ?

2017-11-06 Thread Weber, Matthias
It looks like Metapost is a good way of doing this.
If anybody knows a better way, please let me know.


\def\fatdot{\startMPcode
h := \strutheight-\strutdepth;
k:=h/2;
pickup pencircle scaled k;
setbounds currentpicture to boundingbox unitsquare xyscaled (2*h, h);
  drawdot (h, h/2);
  \stopMPcode}

\starttext

\startformula
a \cdot b \fatdot c \bullet d
\stopformula

\stoptext

> On Nov 6, 2017, at 2:01 PM, Weber, Matthias <matwe...@indiana.edu> wrote:
> 
> Dear List,
> 
> I am looking for a ConTeXt way to create a thicker \cdot (but not as thick as 
> \bullet).
> 
> 
> Minimal non-example
> 
> \starttext
> \startformula
> a \cdot[1mm] b 
> \stopformula
> \stoptext
> 
> does not accomplish anything useful….
> 
> 
> Thanks -
> 
> Matthias
> ___
> 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
___

[NTG-context] Thicker \cdot ?

2017-11-06 Thread Weber, Matthias
Dear List,

I am looking for a ConTeXt way to create a thicker \cdot (but not as thick as 
\bullet).


Minimal non-example

\starttext
\startformula
 a \cdot[1mm] b 
\stopformula
\stoptext

does not accomplish anything useful….


Thanks -

Matthias
___
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] Math: Spacing around colons

2017-10-18 Thread Weber, Matthias
I didn’t include the last (asymmetric) attempt:

\startformula
(a \colon b \colon c)
\stopformula

M.

> On Oct 18, 2017, at 5:58 PM, Weber, Matthias <matwe...@indiana.edu> wrote:
> 
> Dear List,
> 
> I need a binary math operator with narrower spacing then the default. My 
> feeble attempts below all lead to the same spacing
> except for the last one which however is not symmetric.
> 
> Thanks for any hints!
> 
> Matthias
> 
> \definemathcommand [col]  [rel] {\mathstylevcenteredhbox\colon}
> \starttext
> \startformula
> (a \centercolon b \centercolon c)
> \stopformula
> 
> \startformula
> (a \col b \col c)
> \stopformula
> 
> \startformula
> (a : b : c)
> \stopformula
> \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
> ___

___
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] Math: Spacing around colons

2017-10-18 Thread Weber, Matthias
Dear List,

I need a binary math operator with narrower spacing then the default. My feeble 
attempts below all lead to the same spacing
except for the last one which however is not symmetric.

Thanks for any hints!

Matthias

\definemathcommand [col]  [rel] {\mathstylevcenteredhbox\colon}
\starttext
\startformula
(a \centercolon b \centercolon c)
\stopformula

\startformula
(a \col b \col c)
\stopformula

\startformula
(a : b : c)
\stopformula
\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
___

Re: [NTG-context] Question about enumerations/before/after

2017-10-09 Thread Weber, Matthias
Thanks Pablo,

that does it.

Matthias

> On Oct 9, 2017, at 2:12 PM, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> On 10/09/2017 01:07 PM, Weber, Matthias wrote:
>> Dear all,
>> 
>> I have something like
>> 
>> \defineenumeration[test] 
>>  [before={\startcolor[red]},
>>  after={\stopcolor}] 
>> 
>> When I comment out the before/after, I get paragraph breaks before
>> and after the enumeration. How can I have them with the before/after?
> Matthias,
> 
> adding \blank to before and after the color block does the trick:
> 
>[before={\blank\startcolor[red]},
>after={\stopcolor\blank}]
> 
> It my the first idea that came to mind.
> 
> 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
> ___

___
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] Question about enumerations/before/after

2017-10-09 Thread Weber, Matthias
Dear all,

I have something like

\defineenumeration  [test] 
[text={Test:},
headstyle=bold,
number=no,
before={\startcolor[red]},
after={\stopcolor},
style=normal,
title=no
]   

\starttext

\input{knuth}

\starttest
\input{tufte}
\stoptest
\input{knuth}
\stoptext

When I comment out the before/after, I get paragraph breaks before and after 
the enumeration. How can I have them with the before/after?


Thanks,

Matthias
___
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] \right| spacing issue

2016-05-09 Thread Weber, Matthias
Dear All,

the right hand side moves the Y into the |.
This used to look ok in older versions of mkiv & mkii.

\starttext
\startformula
 |X\times Y|= \left| X\times Y\right|
\stopformula
\stoptext


Matthias
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Weber, Matthias
Hi Jaroslav,

could you explain a bit more what you mean by "the installation will fail”?

What error message do you get at what stage?

You need to make sure that you have write permission to the installation 
directory; anything inside your home directory should be safe.
Also, as a general precaution, make sure the path to your installation 
directory doesn’t contain unusual characters.

Matthias


> On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar  wrote:
> 
> Hello ConTeXist.
> I am trying to install a standalone ConTeXt on MacBook. I am doing everything 
> exactly as instructed on contextgarden.net, but the installation will fail. 
> It seems that the problem is with rsync, with copying the installation script 
> first-setup.sh into my Mac. Since I am a longtime Windows user and I'm a 
> newbie on OS X, I'd like to find out what the problem may be. I dont know 
> nothing about OS X, but I suppose that might be a problem with the firewall 
> settings or access rights to the directories which  I use to install ConTeXt 
> etc. Can someone please advise how to perform the installation? There is an 
> option to download the installation package and install ConTeXt differently?
> Thanks for replies.
> 
> Jaroslav Hajtmar
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Instalation ConTeXt to MAC - newbie problem

2016-01-17 Thread Weber, Matthias
Here is what I do:

Tetrahedron:ConTeXt matthias$ mkdir ~/context
Tetrahedron:ConTeXt matthias$ cd ~/context
Tetrahedron:context matthias$ rsync -ptv 
rsync://contextgarden.net/minimals/setup/first-setup.sh .
first-setup.sh

sent 38 bytes  received 3636 bytes  1469.60 bytes/sec
total size is 3525  speedup is 0.96


and the files are definitely there. Do you have a space in /context directory? 
Then you might need apostrophes.

Matthias


On Jan 17, 2016, at 8:08 AM, Jaroslav Hajtmar 
<hajt...@gyza.cz<mailto:hajt...@gyza.cz>> wrote:

Hello Matthias.
Thank you for the quick response. During installation, no error occurs, even 
seems that rsync copied without error message first-setup.sh to my 
%HOME/context directory. When then I look into this directory, then there is no 
file. Subsequently command sudo sh ./first-setup.sh reports nonexistent file or 
directory. I tried to install it into your Applications folder too (I have 
administrative access), but not in this way I have not done.

(As you say: home directory should be safe and path no occure any problematic 
characters. My home directory is "hajtmar")

Thanx Jaroslav

Dne 17.01.16 v 13:27 Weber, Matthias napsal(a):
Hi Jaroslav,

could you explain a bit more what you mean by "the installation will fail”?

What error message do you get at what stage?

You need to make sure that you have write permission to the installation 
directory; anything inside your home directory should be safe.
Also, as a general precaution, make sure the path to your installation 
directory doesn’t contain unusual characters.

Matthias


On Jan 17, 2016, at 7:19 AM, Jaroslav Hajtmar 
<hajt...@gyza.cz<mailto:hajt...@gyza.cz>> wrote:

Hello ConTeXist.
I am trying to install a standalone ConTeXt on MacBook. I am doing everything 
exactly as instructed on contextgarden.net<http://contextgarden.net>, but the 
installation will fail. It seems that the problem is with rsync, with copying 
the installation script first-setup.sh into my Mac. Since I am a longtime 
Windows user and I'm a newbie on OS X, I'd like to find out what the problem 
may be. I dont know nothing about OS X, but I suppose that might be a problem 
with the firewall settings or access rights to the directories which  I use to 
install ConTeXt etc. Can someone please advise how to perform the installation? 
There is an option to download the installation package and install ConTeXt 
differently?
Thanks for replies.

Jaroslav Hajtmar

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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<mailto:ntg-context@ntg.nl> / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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<mailto:ntg-context@ntg.nl> / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \mapsto + SimpleSlides

2012-05-10 Thread Weber, Matthias

Dear all,

I don't get \mapsto to display using SimpleSlides and MkIV.
It shows in normal MkIV documents, and works in MKII

Example below.

Thanks for any advice.

Matthias

\usemodule[simpleslides]
 [style=BottomSquares,
 color=blue]


\starttext

\SlideTitle{Help!}
\startformula
\text{Mk II}\mapsto \text{Mk IV}
\stopformula
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___