Re: [NTG-context] Sans serif for all math in a document.-

2016-06-06 Thread Hans Åberg

> On 7 Jun 2016, at 00:05, Hans Hagen  wrote:
> 
> On 6/6/2016 11:10 PM, Hans Åberg wrote:

>> You are welcome. Unicode has added math styles, which some fonts have, like 
>> STIX. Those not in the chart below have other positions, as they were added 
>> earlier.
>> 
>> http://www.unicode.org/charts/
>> http://www.unicode.org/charts/PDF/U1D400.pdf
> 
> they are not really styles but alphabets, where shapes have some meaning in a 
> domain
> 
> you can just enter the right coee points or you can switch to an alphabet 
> with (a combination of) commands
> 
> for complete sans support one needs more (also in order to distinguish 
> betwene sans alphabets and sans sans ones)
> 
> the same applies to bold .. they are bold alphabets + a few bold symbols with 
> special meaning

Those math semantic sanfs-serif styles were added because in some types of 
applied math, they are required, as in the standard I indicated in another 
thread. However, the OP did not indicate their use.


___
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] Sans serif for all math in a document.-

2016-06-06 Thread Hans Hagen

On 6/6/2016 11:10 PM, Hans Åberg wrote:



On 6 Jun 2016, at 22:48, Freddy Omar López Quintero 
 wrote:

Thanks for your tips!!


You are welcome. Unicode has added math styles, which some fonts have, like 
STIX. Those not in the chart below have other positions, as they were added 
earlier.

http://www.unicode.org/charts/
http://www.unicode.org/charts/PDF/U1D400.pdf


they are not really styles but alphabets, where shapes have some meaning 
in a domain


you can just enter the right coee points or you can switch to an 
alphabet with (a combination of) commands


for complete sans support one needs more (also in order to distinguish 
betwene sans alphabets and sans sans ones)


the same applies to bold .. they are bold alphabets + a few bold symbols 
with special meaning



Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Sans serif for all math in a document.-

2016-06-06 Thread Hans Åberg

> On 6 Jun 2016, at 22:48, Freddy Omar López Quintero 
>  wrote:
> 
> Thanks for your tips!!

You are welcome. Unicode has added math styles, which some fonts have, like 
STIX. Those not in the chart below have other positions, as they were added 
earlier.

http://www.unicode.org/charts/
http://www.unicode.org/charts/PDF/U1D400.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Sans serif for all math in a document.-

2016-06-06 Thread Wolfgang Schuster

Hans Hagen 
6. Juni 2016 um 22:03


There is support for hvmath (a virtual unicode font is constructed 
then) but you need to get those files somewhere.


An alternative is to roll out your own virtual math font (take a look 
at the *.lfg files that have math in their name).


On the agenda for the tex gyre project is a serif math font (lato or 
so) but that will take a while (also awaits funding).
The font fallback mechanism is another alternative but one shouldn’t 
expect too much because a real sans serif math is necessary to get 
larger operators.


\definefontfamily [mainface] [ss] [Latin Modern Sans]

\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:digitsnormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:digitsbold]


\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:uppercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:uppercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:uppercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:uppercasebolditalic]


\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:lowercasenormal]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:lowercaseitalic]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:lowercasebold]
\definefallbackfamily [mainface] [mm] [Latin Modern Sans] 
[preset=math:lowercasebolditalic]


\definefontfamily [mainface] [mm] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext

abcdefg ABCDEFG 123456

\startformula
{\tf abcdefg\,ABCDEFG} \quad abcdefg\,ABCDEFG \quad 123456 
\quad {\bf 123456}

\stopformula

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Package esvect and Context

2016-06-06 Thread Hans Hagen

On 6/6/2016 9:39 PM, Fabrice Couvreur wrote:

Hi Joseph,
This is already the command I used, but I think the point of the too
small arrow.


If you really want to go over the top:

\useMPlibrary[mat]

% will be in meta-imp-mat.mkiv

\startMPextensions
vardef math_stacker_arrow_shape =
image (
drawarrow
(OverlayWidth,OverlayOffset) -- (0,OverlayOffset)
withcolor
OverlayLineColor ;
setbounds currentpicture to boundingbox currentpicture 
bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ;

)
enddef ;
vardef math_stacker_leftarrow_shape =
math_stacker_arrow_shape
enddef ;
vardef math_stacker_rightarrow_shape =
math_stacker_arrow_shape rotated 180
enddef ;
\stopMPextensions

\startuniqueMPgraphic{math:stacker:\number"2190}
math_stacker_draw(math_stacker_leftarrow_shape) ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{math:stacker:\number"2192}
math_stacker_draw(math_stacker_rightarrow_shape) ;
\stopuniqueMPgraphic

% so far

\setupmathstackers
  [both] % vfenced]
  [color=darkred,
   alternative=mp]

\setupmathstackers
  [top]
  [color=darkred,
   alternative=mp]

\setupmathstackers
  [bottom]
  [color=darkred,
   alternative=mp]

\starttext

$\overbracket   {a+b+c+d} \quad \underbracket{a+b+c+d} \quad 
\doublebracket{a+b+c+d}$ \blank
$\overparent{a+b+c+d} \quad \underparent {a+b+c+d} \quad 
\doubleparent {a+b+c+d}$ \blank
$\overbrace {a+b+c+d} \quad \underbrace  {a+b+c+d} \quad 
\doublebrace  {a+b+c+d}$ \blank
$\overbar   {a+b+c+d} \quad \underbar{a+b+c+d} \quad 
\doublebar{a+b+c+d}$ \blank


$\overleftarrow  {a+b+c+d} \quad \overrightarrow  {a+b+c+d} $ \blank
$\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Sans serif for all math in a document.-

2016-06-06 Thread Freddy Omar López Quintero
Thanks for your tips!!

On Mon, Jun 6, 2016 at 4:26 PM, Hans Åberg  wrote:

>
> > On 6 Jun 2016, at 20:20, Freddy Omar López Quintero <
> freddy.lopez.quint...@gmail.com> wrote:
>
> > I'm trying to make a document that need fill the requirement to have all
> fonts sans serifed; but, with the following minimal code, just work for the
> normal text and doesn't for the math portion.
>
> The STIX fonts have them, except for non-bold Greek it seems, but they
> must be accessed directly, either by typing directly in UTF-8, or somehow
> redefine them.
>
> \setupbodyfont[xits,10pt]
>
> \startformula
>   \startalign
> \NC Y \NC= X\beta+\varepsilon \NR
> \NC 혠 \NC= 혟흱+ 흴 \NR
>   \stopalign
> \stopformula
>
>
>


-- 
«...my role is to be on the bottom of things.»

Donald Knuth
___
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] basic fontsizes question

2016-06-06 Thread Wolfgang Schuster

Hi Thomas,

please the following article when you have your next question: 
http://www.shlomifish.org/philosophy/computers/netiquette/email/start-new-thread.html

Thomas Fehige 
6. Juni 2016 um 16:05

In the fonts book I found the \definebodyfont command, but it does not 
to do what I expected. What I need (for a poster) is a set of absolute 
font sizes. I tried the code below. I put some quirks in, like the 
huge value for "a", to see if it works, but it doesn't. It just uses 
the preset proportions relative to the preceding fontsize command (in 
the example, \tfx is bigger than \tf).


\definebodyfontenvironment[palatino][24pt][

text = 24pt,

small = 22pt,

x=22pt,

scriptscript = 16pt,

xx = 16pt,

big=28pt,

a = 80pt, % 28pt

b = 40pt,

c = 50pt,

d = 50pt,

interlinespace = 3ex,

em = italic

]

\setupbodyfont[palatino,24pt]

\starttext

\tf tf\\

\tfa tfa\\

\tfb tfb\\

\tfx tfx\\

\tfx tfx

\stoptext


When you have only a small amount of text the use of 
\definebodyfontenvironment is overkill because you can use the 
\definedfont command to set a certain font size.


\starttext

\start \definedfont[Serif at 20pt]
\input ward
\stop

\startfont[SansBoldItalic at 18pt]
\input ward
\stopfont

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Sans serif for all math in a document.-

2016-06-06 Thread Hans Åberg

> On 6 Jun 2016, at 20:20, Freddy Omar López Quintero 
>  wrote:

> I'm trying to make a document that need fill the requirement to have all 
> fonts sans serifed; but, with the following minimal code, just work for the 
> normal text and doesn't for the math portion.

The STIX fonts have them, except for non-bold Greek it seems, but they must be 
accessed directly, either by typing directly in UTF-8, or somehow redefine them.

\setupbodyfont[xits,10pt]

\startformula
  \startalign
\NC Y \NC= X\beta+\varepsilon \NR
\NC 혠 \NC= 혟흱+ 흴 \NR
  \stopalign
\stopformula
 

___
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] Sans serif for all math in a document.-

2016-06-06 Thread Hans Hagen

On 6/6/2016 8:20 PM, Freddy Omar López Quintero wrote:

​Hello,

I'm trying to make a document that need fill the requirement to have all
fonts sans serifed; but, with the following minimal code, just work for
the normal text and doesn't for the math portion.

%%
\starttext
\usemodule[simplefonts]% [size=11pt]
\setmainfont[Latin Modern Sans]
\setmathfont[Latin Modern Sans]
\startsection[title={Testing ConTeXt}]

  This is my {\em first} ConTeXt document.

\startformula
Y=X\beta+\varepsilon
\stopformula

\stopsection
\stoptext​
%%

​Could you help me?


There is support for hvmath (a virtual unicode font is constructed then) 
but you need to get those files somewhere.


An alternative is to roll out your own virtual math font (take a look at 
the *.lfg files that have math in their name).


On the agenda for the tex gyre project is a serif math font (lato or so) 
but that will take a while (also awaits funding).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Package esvect and Context

2016-06-06 Thread Fabrice Couvreur
Hi Joseph,
This is already the command I used, but I think the point of the too small
arrow.
Regards,
Fabrice

2016-06-06 21:23 GMT+02:00 :

> Hi Fabrice,
>
> Have you tried \vec command ?
>
> \startformula
>
> \vec{AB} = \vec{AC} + \vec{CB}
>
> \stopformula
>
> Best regards
>
> Joseph
>
> *From:* Fabrice Couvreur 
> *Sent:* ‎Saturday‎, ‎June‎ ‎4‎, ‎2016 ‎9‎:‎12‎ ‎AM
> *To:* ntg-context@ntg.nl
>
> Hello everyone,
> When I used LaTeX, I was writing the vectors with esvect package.
> Is there an equivalent with Context ?
> Fabrice
>
> https://www.ctan.org/tex-archive/macros/latex/contrib/esvect/
>
>
> ___
> 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] Package esvect and Context

2016-06-06 Thread josephcanedo
Hi Fabrice,


Have you tried \vec command ?


\startformula


\vec{AB} = \vec{AC} + \vec{CB}


\stopformula


Best regards


Joseph





From: Fabrice Couvreur
Sent: ‎Saturday‎, ‎June‎ ‎4‎, ‎2016 ‎9‎:‎12‎ ‎AM
To: ntg-context@ntg.nl





Hello everyone,
When I used LaTeX, I was writing the vectors with esvect package.
Is there an equivalent with Context ?
Fabrice

https://www.ctan.org/tex-archive/macros/latex/contrib/esvect/___
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] Sans serif for all math in a document.-

2016-06-06 Thread Freddy Omar López Quintero
​Hello,

I'm trying to make a document that need fill the requirement to have all
fonts sans serifed; but, with the following minimal code, just work for the
normal text and doesn't for the math portion.

%%
\starttext
\usemodule[simplefonts]% [size=11pt]
\setmainfont[Latin Modern Sans]
\setmathfont[Latin Modern Sans]
\startsection[title={Testing ConTeXt}]

  This is my {\em first} ConTeXt document.

\startformula
Y=X\beta+\varepsilon
\stopformula

\stopsection
\stoptext​
%%

​Could you help me?

Thanks in advance!​

-- 
«...my role is to be on the bottom of things.»

Donald Knuth


test2.pdf
Description: Adobe PDF 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] basic fontsizes question

2016-06-06 Thread Thomas Fehige
edit: Sorry, I meant the command \definebodyfontenvironment, of course, 
like in the code sample.


Am 06.06.2016 um 16:05 schrieb Thomas Fehige:


In the fonts book I found the \definebodyfont command, but it does not 
to do what I expected. What I need (for a poster) is a set of absolute 
font sizes. I tried the code below. I put some quirks in, like the 
huge value for "a", to see if it works, but it doesn't. It just uses 
the preset proportions relative to the preceding fontsize command (in 
the example, \tfx is bigger than \tf).


\definebodyfontenvironment[palatino][24pt][

text = 24pt,

small = 22pt,

x=22pt,

scriptscript = 16pt,

xx = 16pt,

big=28pt,

a = 80pt, % 28pt

b = 40pt,

c = 50pt,

d = 50pt,

interlinespace = 3ex,

em = italic

]

\setupbodyfont[palatino,24pt]

\starttext

\tf tf\\

\tfa tfa\\

\tfb tfb\\

\tfx tfx\\

\tfx tfx

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


___
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] basic fontsizes question

2016-06-06 Thread Thomas Fehige
In the fonts book I found the \definebodyfont command, but it does not 
to do what I expected. What I need (for a poster) is a set of absolute 
font sizes. I tried the code below. I put some quirks in, like the huge 
value for "a", to see if it works, but it doesn't. It just uses the 
preset proportions relative to the preceding fontsize command (in the 
example, \tfx is bigger than \tf).


\definebodyfontenvironment[palatino][24pt][

text = 24pt,

small = 22pt,

x=22pt,

scriptscript = 16pt,

xx = 16pt,

big=28pt,

a = 80pt, % 28pt

b = 40pt,

c = 50pt,

d = 50pt,

interlinespace = 3ex,

em = italic

]

\setupbodyfont[palatino,24pt]

\starttext

\tf tf\\

\tfa tfa\\

\tfb tfb\\

\tfx tfx\\

\tfx tfx

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

[NTG-context] Luatex 0.95.0 announcement

2016-06-06 Thread luigi scarso
==
LuaTeX Release 0.95 for TeX Live 2016 was released 2016042515
==

This is the official frozen TeXlive 2016 version and
a prerelease of the stable 1.0 version.

- deleted 'beta' from the luatex_version_string
- glues now have gluespec merged in (idem math and insert)
- registers are still glue specs
- the spec field in glues are gone
- extra tex.setglue and tex.setmuglue
- obsolete dvi related dir fields removed



Have fun,
Hans, Luigi, 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Partial \framed

2016-06-06 Thread Thomas Fehige

Thank you Wolfgang, that is exactly what I was looking for.

I apologize for the incomplete example. I have no idea, however, how all 
the empty lines got in there. They weren't there when I clicked "send", 
only when I saw it in the list.


Thomas

Am 06.06.2016 um 12:32 schrieb Wolfgang Schuster:

\startuseMPgraphic{leftbracket}
z[0] = (EmWidth,OverlayHeight) ;
z[1] = (0,OverlayHeight) ;
z[2] = (0,0) ;
z[3] = (EmWidth,0) ;
draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
\stopuseMPgraphic

\startuseMPgraphic{rightbracket}
z[0] = (-EmWidth,OverlayHeight) ;
z[1] = (0,OverlayHeight) ;
z[2] = (0,0) ;
z[3] = (-EmWidth,0) ;
draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
\stopuseMPgraphic

\installleftframerenderer {bracket}{\useMPgraphic {leftbracket}}
\installrightframerenderer{bracket}{\useMPgraphic{rightbracket}}

\defineframed
  [bracketframed]
  [frame=off,
   offset=1ex,
   leftframe=bracket,
   rightframe=bracket,
   framecolor=red,
   foregroundstyle=\ssx,
   foregroundcolor=darkgray,
   align=normal,
   width=max]

\starttext
\bracketframed{\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] guiding line in tabulate

2016-06-06 Thread Csikos Bela
Dear context users:

I would like to make a document with a table where guiding lines are located 
between table items, like this:

text in cell . . . . . . . . . . . .  text in next cell
text . . . . . . . . . . . . . . . . . next cell

Here is a MWE:

\starttext
\starttabulate[|lw(8cm)|cg{.}w(2cm)|]
\NC sample text in row \NC 4.25 \NC \NR
\NC another sample \NC 1200 \NC \NR
\NC last   \NC 46.345 \NC \NR
\stoptabulate
\stoptext

Is it possible to add the guiding dots between cell items?

Thanks is advance,

bcsikos
___
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] Partial \framed

2016-06-06 Thread Wolfgang Schuster

Thomas Fehige 
6. Juni 2016 um 10:11
I'm trying to put a piece of text in a partial frame that's meant to 
look like square brackets aligned with the left and right edges of the 
textblock.


I tried to use two \framed constructions inside each other, the outer 
one with width=textwidth and negative toffset and boffset, the inner 
one with a smaller width, a fat rulethickness and the color of the 
background, expecting it to erase the outer frame where it's not needed:


\color[zier]{%

\framed[%

align=middle,

width=\textwidth,

toffset=-4mm,

boffset=-4mm,

strut=no,

]{%

\color[paper]{\framed[%

align=middle,

width=222mm, % i.e. \textwidth-4mm

toffset=6mm,

boffset=5mm,

rulethickness=5mm

]{%

\color[zier]{\tfd \strut Here's the text that is menat to look 
important; its length/number of lines is undetermined.\strut}


}}%

}%

}%

... but it doesn't work. Apparently the inner frame is drawn before 
the outer one. Putting the wider frame inside the narrower results in 
alignment problems --  due to the overfull hbox, I presume.
Your example is of not much use because it can’t be converted to a PDF 
(missing \starttext and empty lines).
Is  there a simple solution in ConTeXt that I haven't found yet, or 
will I have to try some plain TeX box magic myself?

You can use MetaPost to draw the frame/lines for the left and right borders.

\startuseMPgraphic{leftbracket}
z[0] = (EmWidth,OverlayHeight) ;
z[1] = (0,OverlayHeight) ;
z[2] = (0,0) ;
z[3] = (EmWidth,0) ;
draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
\stopuseMPgraphic

\startuseMPgraphic{rightbracket}
z[0] = (-EmWidth,OverlayHeight) ;
z[1] = (0,OverlayHeight) ;
z[2] = (0,0) ;
z[3] = (-EmWidth,0) ;
draw z[0]--z[1]--z[2]--z[3] withcolor \MPcolor{\overlaylinecolor} ;
\stopuseMPgraphic

\installleftframerenderer {bracket}{\useMPgraphic {leftbracket}}
\installrightframerenderer{bracket}{\useMPgraphic{rightbracket}}

\defineframed
  [bracketframed]
  [frame=off,
   offset=1ex,
   leftframe=bracket,
   rightframe=bracket,
   framecolor=red,
   foregroundstyle=\ssx,
   foregroundcolor=darkgray,
   align=normal,
   width=max]

\starttext
\bracketframed{\input knuth }
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Partial \framed

2016-06-06 Thread Thomas Fehige
I'm trying to put a piece of text in a partial frame that's meant to 
look like square brackets aligned with the left and right edges of the 
textblock.


I tried to use two \framed constructions inside each other, the outer 
one with width=textwidth and negative toffset and boffset, the inner one 
with a smaller width, a fat rulethickness and the color of the 
background, expecting it to erase the outer frame where it's not needed:


\color[zier]{%

\framed[%

align=middle,

width=\textwidth,

toffset=-4mm,

boffset=-4mm,

strut=no,

]{%

\color[paper]{\framed[%

align=middle,

width=222mm, % i.e. \textwidth-4mm

toffset=6mm,

boffset=5mm,

rulethickness=5mm

]{%

\color[zier]{\tfd \strut Here's the text that is menat to look 
important; its length/number of lines is undetermined.\strut}


}}%

}%

}%

... but it doesn't work. Apparently the inner frame is drawn before the 
outer one. Putting the wider frame inside the narrower results in 
alignment problems --  due to the overfull hbox, I presume.


Is  there a simple solution in ConTeXt that I haven't found yet, or will 
I have to try some plain TeX box magic myself?


Thanks -- 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Redirect compilation to another .pdf?

2016-06-06 Thread Hans Hagen

On 6/6/2016 9:21 AM, Procházka Lukáš Ing. wrote:

Hello Hans,

just to remind -
- would it be possible to use "--result=OutputFileName" as the name for
the output stream immediately?


not now (as it also relates to all kind of other name things like 
preventing a file to load itself as graphic and and i'm not going to 
mess up that code now)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Redirect compilation to another .pdf?

2016-06-06 Thread Procházka Lukáš Ing .

Hello Hans,

just to remind -
- would it be possible to use "--result=OutputFileName" as the name for the 
output stream immediately?

(See the history bellow.)

Best regards,

Lukas


On Sun, 10 Apr 2016 23:43:30 +0200, Hans Hagen  wrote:


On 4/10/2016 9:49 PM, Lukáš Procházka wrote:


- the option "--jobname" is not listed when you type "context.exe" (=
help), so it seems like a "hidden" option;


it's not supported as engine flag


- Suggestion: would it be possible to use "--result=OutputFileName" as
the name for the output stream immediately,
 i.e. not to produce "default PDF file" + rename it to
"OutputFileName" (= --result),
 but to use the "OutputFileName" initially as the output stream?


maybe ... but it has to wait till after tex live code freeze (because it
demands an extra flag to the engine --output-file

so remind me in a month or so

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



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

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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] two questions about \definefontfamily

2016-06-06 Thread Thomas A. Schmitz

On 06/05/2016 09:52 PM, Wolfgang Schuster wrote:

It was a bug and I fixed it.

Wolfgang


Thank you, Wolfgang!

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___