[NTG-context] MnSymbol vectors and goodie file

2017-08-21 Thread Никола Милинковић
Hello, world! :)

I'm a recent LaTeX->ConTeXt convert, and I've started working on .lfg files
for
MnSymbol (and related MdSymbol and FdSymbol) fonts. The code written so far
is
on GitHub: https://github.com/nikmilpv/ConTeXt-MnSymbol

Here's a bit of info first, and then a couple of questions.

MnSymbol font consists of following files in several design sizes:
- MnSymbolA*.tfm - arrows
- MnSymbolB*.tfm - negated (stroked) arrows
- MnSymbolC*.tfm - binary operators
- MnSymbolD*.tfm - relations
- MnSymbolE*.tfm - brackets, braces, parens, sqrt, overbrace, widehat,...
- MnSymbolF*.tfm - big operators

Getting MnSymbolA-D to work is a matter of writing the right unicode->tfm
slot
vectors ("symb-a", ..., "symb-d") and is a WIP.

1. I couldn't get MnSymbolE to work with "extension=true", so I have patched
math-vfu.lua in a way that allows me to set bigger sizes for brackets, etc.
manually in mnsymbol.lfg. Is there a better/smarter way to do this?

2. MnSymbol has a lot of non-unicode glyphs. What's the right way of using
(some of) them in ConTeXt? I was thinking of mapping them to a private use
area
(eg. [0x0F000] = 18) and then defining \def\somename{\Umathchar"0"0"F000}
on TeX
end. What is the syntax of \Umathchar? I skimmed the LuaTeX manual, but
couldn't
find it.

3. Overbrace and underbrace don't work at all, but they do give correct
output
with \showmathfontcharacters. I can't figure out why. Widetilde and widehat
work
OK.

4. MnSymbol has both / (slash, solidus) and \ (backslash, reverse solidus)
in
several sizes. Slash works with \left, \middle, \right, but backslash
doesn't.
How can this be fixed?

5. There are glyphs for \cdots, \vdots, \udots, etc. in MnSymbolC, but even
after setting them in "symb-c" vector, I'm under the impression that faked
dots
from math-vfu.lua are used. Am I wrong?

6. How can I set rule thickness for \sqrt?

Thanks in advance!

-- Nikola Milinković
___
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] Footnote in TABLE isn't rendered anywhere

2017-08-21 Thread Pablo Rodriguez
On 08/21/2017 05:57 AM, Brian Ballsun-Stanton wrote:
> Hi Alan,
> 
> I'm sorry I'm... fuzzy today.
> 
> Are you asking me to add: "\automigrateinserts" to the wiki example as a
> different mechanism to demonstrate from earlier in this thread,
> proposing it as a different solution this problem, and/or proposing it
> as a solution to the "not rendering inside the wiki ConTeXt version?

Hi Brian,

I wonder how you may define fuzziness, but your question proposes three
well-defined options ;-).

As far as I understand it, Alan was simply proposing a way to get the
footnote out of the table. I mean, to have a footnote from a table.

This is already solved with \postponenotes and \flushnotes.

The problem with the wiki is that you don’t have standard footnotes.
Because having a full page wouldn’t be helpful in most cases.

> My apologies for misunderstanding.

I hope I’m not getting Alan’s point wrong.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-21 Thread Pablo Rodriguez
On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote:
> Hey folks, trying to be a good citizen, I added (And quoted) this
> message onto the wiki:
> 
> http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> 
> I tried for a bit to try to get the example to render, but no footnotes
> would show at all. Anyone have thoughts as to how to get wiki rendering
> to work here? And are there any other examples from this thread that
> should be added?

Hi Brian,

footnotes in the wiki are tricky:

\starttext
\startbuffer
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stopbuffer
\getbuffer
\startTEXpage[offset=1em]
\getbuffer
\stopTEXpage
\stoptext

The second page is similar to the problem with the wiki.

This might be a workaround for the wiki (if I’m not wrong):

\setupnotes[location=text]
\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\placenotes[footnote]
\stoptext

Just in cases it helps,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Line numbers in output

2017-08-21 Thread Roger Mason
"Schmitz Thomas A."  writes:

> http://wiki.contextgarden.net/Command/startlinenumbering is what you
> find when you search for “linenumbering” on the wiki.

Thanks Thomas.  I searched on 'context garden add line numbers'.

Cheers,
Roger
___
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] Line numbers in output

2017-08-21 Thread Schmitz Thomas A.

> On 21. Aug 2017, at 16:25, Roger Mason  wrote:
> 
> 
> Is there a switch to enable lines to be numbered in the output pdf
> document?  I have seen the garden entries on numbering for sections of
> verbatim text but I would like the whole document to have line numbers.

http://wiki.contextgarden.net/Command/startlinenumbering is what you find when 
you search for “linenumbering” on the wiki. 

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
___

[NTG-context] Line numbers in output

2017-08-21 Thread Roger Mason
Hello,

Is there a switch to enable lines to be numbered in the output pdf
document?  I have seen the garden entries on numbering for sections of
verbatim text but I would like the whole document to have line numbers.

My ConTEXt version is 2016.01.04 15:47.  Maybe it is time to update!

Thanks,
Roger
___
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
___