[NTG-context] From XeLaTeX's Unicode-math to ConTeXt's typescript

2013-07-12 Thread Joas Kinouani
Hello everyone,

 

I search a way to translate the following XeLaTeX's declarations (based on
the unicode-math package):

 

\setmainfont{Linux Libertine G}

\setsansfont[Scale=MatchLowercase]{Liberation Sans}

\setmonofont[Scale=MatchLowercase,

  ItalicFont=lmmono10-italic.otf,

  BoldFont=lmmonolt10-bold.otf,

  BoldItalicFont=lmmonolt10-boldoblique.otf,

  SmallCapsFont=lmmonocaps10-regular]{lmmono10-regular.otf}

\setmathfont[Scale=MatchLowercase]{TeX Gyre Termes Math}

\setmathfont[Scale=MatchLowercase, range=\mathup]{linlibertine_r_g.ttf}

\setmathfont[Scale=MatchLowercase, range=\mathbfup]{linlibertine_rz_g.ttf}

\setmathfont[Scale=MatchLowercase,
range=\mathsfup]{liberationsans-regular.ttf}

\setmathfont[Scale=MatchLowercase,
range=\mathsfit]{liberationsans-italic.ttf}

\setmathfont[Scale=MatchLowercase,
range=\mathbfsfup]{liberationsans-bold.ttf}

\setmathfont[Scale=MatchLowercase,
range=\mathbfsfit]{liberationsans-bolditalic.ttf}

\setmathfont[Scale=MatchLowercase, range=\mathtt]{lmmono10-italic.otf}

\setmathfont[Scale=MatchLowercase, range=\mathscr]{asana-math.otf}

 

into a ConTeXt's typescript. I succeed to set the serif, sansserif and mono
fonts; but I need help for the math settings.

 

\startenvironment liberty
  \starttypescript [liberty]
\definefontsynonym [Serif] [file:LinLibertine_R_G]
\definefontsynonym [SerifCaps] [Serif] [features=smallcaps]
\definefontsynonym [SerifItalic] [file:LinLibertine_RI_G]
\definefontsynonym [SerifSlanted] [SerifItalic]
\definefontsynonym [SerifBold] [file:LinLibertine_RZ_G]
\definefontsynonym [SerifBoldItalic] [file:LinLibertine_RZI_G]
\definefontsynonym [SerifBoldSlanted] [SerifBoldItalic]
 
\definefontsynonym [Sans] [file:LiberationSans-Regular]
\definefontsynonym [SansCaps] [Sans] [features=smallcaps]
\definefontsynonym [SansItalic] [file:LiberationSans-Italic]
\definefontsynonym [SansSlanted] [SansItalic]
\definefontsynonym [SansBold] [file:LiberationSans-Bold]
\definefontsynonym [SansBoldItalic] [file:LiberationSans-BoldItalic]
\definefontsynonym [SansBoldSlanted] [SansBoldItalic]
 
\definetypeface [liberty] [rm] [serif] [liberty] [default]
\definetypeface [liberty] [ss] [sans] [liberty] [default] [rscale=0.816]
\definetypeface [liberty] [tt] [mono] [modern] [default]
  \stoptypescript
  \setupbodyfont[liberty, serif, 10pt]
\stopenvironment

Thanks in advance.

Joas Kinouani

PS: Does someone know what is the equivalent of Scale=MatchLowercase?

 

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

2013-07-12 Thread Pablo Rodríguez
On 13/07/13 03:57, Otared Kavian wrote:
> On 12 juil. 2013, at 20:06, Aditya Mahajan  wrote:
>> On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
>>> On 12/07/13 19:21, Hans Hagen wrote:
 Hi,

 I uploaded a beta. There are not that many changes. Currently I develop
 in a separate branch but it might be that some changes are reflected in
 the betas, and hopefully not breaking anything.
>>>
>>> Thanks for the new beta, Hans.
>>
>> For me first-setup.sh still downloads the 2013.06.10.
> 
> This is also my case: has something changed in first-setup.sh? 

I didn’t check that after downloading the new beta from yesterday.

first-setup.sh has just downloaded ConTeXt - 2013.06.10 22:51.


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


Re: [NTG-context] new beta

2013-07-12 Thread Otared Kavian

On 12 juil. 2013, at 20:06, Aditya Mahajan  wrote:

> On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
> 
>> On 12/07/13 19:21, Hans Hagen wrote:
>>> Hi,
>>> 
>>> I uploaded a beta. There are not that many changes. Currently I develop
>>> in a separate branch but it might be that some changes are reflected in
>>> the betas, and hopefully not breaking anything.
>> 
>> Thanks for the new beta, Hans.
> 
> For me first-setup.sh still downloads the 2013.06.10.

This is also my case: has something changed in first-setup.sh? 
___
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] new beta

2013-07-12 Thread Aditya Mahajan

On Fri, 12 Jul 2013, Pablo Rodríguez wrote:


On 12/07/13 19:21, Hans Hagen wrote:

Hi,

I uploaded a beta. There are not that many changes. Currently I develop
in a separate branch but it might be that some changes are reflected in
the betas, and hopefully not breaking anything.


Thanks for the new beta, Hans.


For me first-setup.sh still downloads the 2013.06.10.

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

Re: [NTG-context] new beta

2013-07-12 Thread Pablo Rodríguez
On 12/07/13 19:21, Hans Hagen wrote:
> Hi,
> 
> I uploaded a beta. There are not that many changes. Currently I develop 
> in a separate branch but it might be that some changes are reflected in 
> the betas, and hopefully not breaking anything.

Thanks for the new beta, Hans.

Could the two bugs with compressed linenotes be fixed? ()

Many thanks for your help,



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


[NTG-context] new beta

2013-07-12 Thread Hans Hagen

Hi,

I uploaded a beta. There are not that many changes. Currently I develop 
in a separate branch but it might be that some changes are reflected in 
the betas, and hopefully not breaking anything.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] Some questions about the letter module

2013-07-12 Thread Hans Hagen

On 7/12/2013 4:26 PM, Michael Ash wrote:

PS Would it be feasible to add a PDF-certificate-signer so that ConTeXt
prompts for a passphrase and produces a signed PDF?  This would be
particularly useful in the letter module but would in fact be welcome
throughout.

I have been using http://portablesigner.sourceforge.net/ to sign
finished PDF files, but it would be neat to have the process integrated
in ConTeXt.


afaik it has to be done on a finished document (postprocessing) so best 
if to call a program like qpdf afterwards or so


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] underbraces slightly too narrow (with MkIV 2013.05.28)

2013-07-12 Thread Sanjoy Mahajan
Hans Hagen  writes:

> what you observe is the fact that we have a discrete number of sizes
> till we run out of them and go stretchable

That makes sense.

> anyhow, i've now defined then in a different way (ok, some more trickery 
> had to be applied as it's one of these aspects of open type math that 
> still inherits old stuff) so in a next version you can do this:

> \setupmathstackers[vfenced][hoffset=10pt]

When it's ready to test, I'll try it out and wikify an example.

-Sanjoy
___
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] Some questions about the letter module

2013-07-12 Thread Michael Ash
PS Would it be feasible to add a PDF-certificate-signer so that ConTeXt
prompts for a passphrase and produces a signed PDF?  This would be
particularly useful in the letter module but would in fact be welcome
throughout.

I have been using http://portablesigner.sourceforge.net/ to sign finished
PDF files, but it would be neat to have the process integrated in ConTeXt.

Best,
Michael


On Fri, Jul 12, 2013 at 10:11 AM, Michael Ash  wrote:

> Dear all,
>
> I am using the letter module that came with context.   A sample of a basic
> letter is below; I have put in "dummy" for the logo and the signature, but
> these are working fine when I include the files.
>
> I have several questions:
>
>1. to center the footer.
>2. to lower the  footer (closer to the bottom of the page)
>3. to delete the word "Date" above the date.
>4. to put the date *above *the recipient address (and how in general
>do I adjust the vertical space here).
>5. to left-justify the date.
>6. to control the foldmarks (for US-letter-size paper, omit, etc.)
>
> I have consulted http://wiki.contextgarden.net/Letter but there are many
> things I don't understand.   What is the meaning  of "alternative=example";
> what is the option "preset="  in \setuplayer[foot] ?
>
> Also is there a better way to manage color?  I \definecolor, \startcolor,
> \stopcolor, but maybe there is a better way to indicate that certain
> sections of the letter should be in a color.  Thanks.
>
> Thank you very much for your guidance.
>
> Yours,
> Michael
>
>
>
>
>
>
>
>
> \usemodule[letter]
> \setuppapersize[letter][letter]
> \definecolor[maroon][h=990033]
>
> \setuplanguage [en] [date={dd, month, year}]
>
> \setupletteroptions
> [language=english,
> bodyfont={rm,12pt},
> ]
>
> % Define logo for the first page
> \defineletterelement[layer][head][example]%
> {\framed[background=logohead,height=25mm,frame=off,align=left]%
> {\externalfigure[dummy]}}
>
> % We put our logo in the head
> \setupletterlayer[head]
> [alternative=example,
> x=9mm,
> y=10mm
> ]
>
> \defineletterelement[layer][foot][example]%
> {\startcolor[maroon] \ss  \tfx The University of
> Massachusetts is an Affirmative Action/Equal Opportunity Institution.
> \stopcolor}
>\setupletterlayer[foot][
>  align=centerbottom,
>  alternative=example]
>
> \setupletter[
> name={Michael Ash},
> dept={Department of Economics},
> building={Thompson Hall},
> street={200 Hicks Way},
> city={Amherst, MA 01003-9277},
> phone={+1-413-545-2590},
> fax={+1-413-545-2921},
> email={m...@econs.umass.edu}
> ]
>
>\defineletterelement[layer][location][example]%
>{\setuptabulate[bodyfont=normal]
>  \startcolor[maroon]
>\starttabulate[|lw(.4\textwidth)|rw(.55\textwidth)|]
>\NC \tfa \sc University of Massachusetts   \NC
> \NR
>\NC \tfa \sc Amherst   \NC
>  \correspondenceparameter{dept} \NR
>\NC   \NC
>   \NR
>\NC\correspondenceparameter{building} \NC  tel
> \correspondenceparameter{phone} \NR
>\NC\correspondenceparameter{street} \NC fax
> \correspondenceparameter{fax}\NC\NR
>\NC\correspondenceparameter{city} \NC
> \correspondenceparameter{email} \NC\NR
>\stoptabulate
>  \stopcolor}
>
>  \setupletterlayer[location]
>  [alternative=example,
>  x=42mm,
>  y=4mm
>  ]
>
>
> \starttext
>
>\startletter[
>toname={Professor Addressee},
>toaddress={123 West Home Ave.\\Chicago, IL 60614},
>opening={Dear Dr. Addressee,},
>subject={A test letter},
>closing={Best regards,},
>signature={\externalfigure[dummy]\\Michael Ash}
>]
>
>
>  Thank you very much for the invitation I am truly honored by the
>  opportunity and delighted to attend. I look forward to meeting
>  you.  Thank you again for the invitation.
>
>
>\stopletter
>
> \stoptext
>



-- 
Michael Ash, Chair, Department of Economics
Professor of Economics and Public Policy
University of Massachusetts
Amherst, MA 01003
Email m...@econs.umass.edu
Tel +1-413-545-2590 Twitter @michaelaoash
___
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] Some questions about the letter module

2013-07-12 Thread Michael Ash
Dear all,

I am using the letter module that came with context.   A sample of a basic
letter is below; I have put in "dummy" for the logo and the signature, but
these are working fine when I include the files.

I have several questions:

   1. to center the footer.
   2. to lower the  footer (closer to the bottom of the page)
   3. to delete the word "Date" above the date.
   4. to put the date *above *the recipient address (and how in general do
   I adjust the vertical space here).
   5. to left-justify the date.
   6. to control the foldmarks (for US-letter-size paper, omit, etc.)

I have consulted http://wiki.contextgarden.net/Letter but there are many
things I don't understand.   What is the meaning  of "alternative=example";
what is the option "preset="  in \setuplayer[foot] ?

Also is there a better way to manage color?  I \definecolor, \startcolor,
\stopcolor, but maybe there is a better way to indicate that certain
sections of the letter should be in a color.  Thanks.

Thank you very much for your guidance.

Yours,
Michael








\usemodule[letter]
\setuppapersize[letter][letter]
\definecolor[maroon][h=990033]

\setuplanguage [en] [date={dd, month, year}]

\setupletteroptions
[language=english,
bodyfont={rm,12pt},
]

% Define logo for the first page
\defineletterelement[layer][head][example]%
{\framed[background=logohead,height=25mm,frame=off,align=left]%
{\externalfigure[dummy]}}

% We put our logo in the head
\setupletterlayer[head]
[alternative=example,
x=9mm,
y=10mm
]

\defineletterelement[layer][foot][example]%
{\startcolor[maroon] \ss  \tfx The University of
Massachusetts is an Affirmative Action/Equal Opportunity Institution.
\stopcolor}
   \setupletterlayer[foot][
 align=centerbottom,
 alternative=example]

\setupletter[
name={Michael Ash},
dept={Department of Economics},
building={Thompson Hall},
street={200 Hicks Way},
city={Amherst, MA 01003-9277},
phone={+1-413-545-2590},
fax={+1-413-545-2921},
email={m...@econs.umass.edu}
]

   \defineletterelement[layer][location][example]%
   {\setuptabulate[bodyfont=normal]
 \startcolor[maroon]
   \starttabulate[|lw(.4\textwidth)|rw(.55\textwidth)|]
   \NC \tfa \sc University of Massachusetts   \NC
  \NR
   \NC \tfa \sc Amherst   \NC
 \correspondenceparameter{dept} \NR
   \NC   \NC
  \NR
   \NC\correspondenceparameter{building} \NC  tel
\correspondenceparameter{phone} \NR
   \NC\correspondenceparameter{street} \NC fax
\correspondenceparameter{fax}\NC\NR
   \NC\correspondenceparameter{city} \NC
\correspondenceparameter{email} \NC\NR
   \stoptabulate
 \stopcolor}

 \setupletterlayer[location]
 [alternative=example,
 x=42mm,
 y=4mm
 ]


\starttext

   \startletter[
   toname={Professor Addressee},
   toaddress={123 West Home Ave.\\Chicago, IL 60614},
   opening={Dear Dr. Addressee,},
   subject={A test letter},
   closing={Best regards,},
   signature={\externalfigure[dummy]\\Michael Ash}
   ]


 Thank you very much for the invitation I am truly honored by the
 opportunity and delighted to attend. I look forward to meeting
 you.  Thank you again for the invitation.


   \stopletter

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