Re: [NTG-context] math font fallback for palatino \cal

2016-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 14 Aug 2016 13:17:35 -0600, Wolfgang Schuster  
 wrote:



Idris Samawi Hamid ادريس سماوي حامد 
14. August 2016 um 20:33
Dear gang,

Using pagella (palatino) for a project here. Unfortunately
texgyrepagella-math.otf has a rather unattractive set of \cal caps;
schola, termes, bonum etc. all use the same and much better-looking set.

So I decided to try and define a palatino math set with the \cal caps
from schola (= termes etc.). Succeeded after some trial and error:
attached are the positive results. Others may find the experiment
useful or even worth wikifying; it's a nice fallback exercise.

Maybe there is a better or more up-to-date way to do this: In any
case, feel free to critique the attached.

You can save a few lines for your font setup when you use the
\definefontfamily and \definefallbackfamily commands.

\definefontfamily [palatino_cg] [rm] [TeX Gyre Pagella]
\definefallbackfamily [palatino_cg] [mm] [TeX Gyre Schola Math]
[range={lowercasescript,lowercaseboldscript,uppercasescript,uppercaseboldscript},force=yes]
\definefontfamily [palatino_cg] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[palatino]

\starttext

\m{\cal ABCDEFG \quad \bf ABCDEFG}

\switchtobodyfont[palatino_cg]

\m{\cal ABCDEFG \quad \bf ABCDEFG}

\stoptext


Wonderful, Wolfgang, just wonderful. Lots to learn and explore... And some  
info here:


http://wiki.contextgarden.net/Command/definefontfamily

Thanks again!
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] math font fallback for palatino \cal

2016-08-14 Thread Wolfgang Schuster

Idris Samawi Hamid ادريس سماوي حامد 
14. August 2016 um 20:33
Dear gang,

Using pagella (palatino) for a project here. Unfortunately 
texgyrepagella-math.otf has a rather unattractive set of \cal caps; 
schola, termes, bonum etc. all use the same and much better-looking set.


So I decided to try and define a palatino math set with the \cal caps 
from schola (= termes etc.). Succeeded after some trial and error: 
attached are the positive results. Others may find the experiment 
useful or even worth wikifying; it's a nice fallback exercise.


Maybe there is a better or more up-to-date way to do this: In any 
case, feel free to critique the attached.
You can save a few lines for your font setup when you use the 
\definefontfamily and \definefallbackfamily commands.


\definefontfamily [palatino_cg] [rm] [TeX Gyre Pagella]
\definefallbackfamily [palatino_cg] [mm] [TeX Gyre Schola Math] 
[range={lowercasescript,lowercaseboldscript,uppercasescript,uppercaseboldscript},force=yes]

\definefontfamily [palatino_cg] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[palatino]

\starttext

\m{\cal ABCDEFG \quad \bf ABCDEFG}

\switchtobodyfont[palatino_cg]

\m{\cal ABCDEFG \quad \bf ABCDEFG}

\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] math font fallback for palatino \cal

2016-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 14 Aug 2016 12:33:53 -0600, Idris Samawi Hamid ادريس سماوي حامد  
 wrote:



Dear gang,

Using pagella (palatino) for a project here. Unfortunately  
texgyrepagella-math.otf has a rather unattractive set of \cal caps;  
schola, termes, bonum etc. all use the same and much better-looking set.


So I decided to try and define a palatino math set with the \cal caps  
from schola (= termes etc.). Succeeded after some trial and error:  
attached are the positive results. Others may find the experiment useful  
or even worth wikifying; it's a nice fallback exercise.


Maybe there is a better or more up-to-date way to do this: In any case,  
feel free to critique the attached.


Decided to support lower-case \cal as well;attached.

--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

test-math_cg.pdf
Description: Adobe PDF document


test-math_cg.tex
Description: TeX 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
___

[NTG-context] math font fallback for palatino \cal

2016-08-14 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Using pagella (palatino) for a project here. Unfortunately  
texgyrepagella-math.otf has a rather unattractive set of \cal caps;  
schola, termes, bonum etc. all use the same and much better-looking set.


So I decided to try and define a palatino math set with the \cal caps from  
schola (= termes etc.). Succeeded after some trial and error: attached are  
the positive results. Others may find the experiment useful or even worth  
wikifying; it's a nice fallback exercise.


Maybe there is a better or more up-to-date way to do this: In any case,  
feel free to critique the attached.


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523

test-math_cg.tex
Description: TeX document


test-math_cg.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] placelocalfootnotes breaks center alignment

2016-08-14 Thread Henri Menke
Bump

On 07/29/2016 12:48 PM, Henri Menke wrote:
> Dear list,
> 
> sometimes, one wants to place footnotes in a table which then appear right 
> below the last row.  Therefore ConTeXt ships the clever 
> `\start...\stoplocalfootnotes` mechanism.  Unfortunately, putting 
> `\placelocalfootnotes` outside of the table breaks the centering of the table 
> itself.  For illustration please see the example below.  How can I have my 
> table centered while the footnotes are either left-aligned with respect to 
> the left border of the table or left-aligned with respect to the page 
> (whatever is easier)?
> 
> Cheers, Henri
> 
> ---
> 
> \starttext
> 
> \startplacetable
>   [title={some table}]
>   \startlocalfootnotes
> \startTABLE
>   \NC Content\footnote{Footnote} \NC\NR
> \stopTABLE
> \placelocalfootnotes % commenting out unbreaks alignment
>   \stoplocalfootnotes
> \stopplacetable
> 
> \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
___

Re: [NTG-context] Interlining in a TwoColumns set

2016-08-14 Thread Wolfgang Schuster

Jean-Pierre Delange 
14. August 2016 um 16:13
About the image on the top right of the TwoColumns doc : it works with 
mill.png image (but not with spider). I guess the 'Logo.svg' is too 
heavy (or something like that).
LuaTeX can only use images in the formats PDF, PNG, JPG, JP2 or JBIG2. 
Graphics which are provided in another format have to be converted in 
one mentioned before, for some formats (e.g. SVG) ConTeXt is able to 
convert them on the fly but you need the required programs (e.g. 
Inkscape for the conversion of SVG to PDF) on your system.


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] Interlining in a TwoColumns set

2016-08-14 Thread Wolfgang Schuster

Jean-Pierre Delange 
14. August 2016 um 16:06
Hi Pablo,

Many thanks to be patient. I apologize to be a little bit slow minded 
: I presume that the


 \setupexternalfigure[location=default] command

would say that the figure is in the same directory than ConTeXt 
documents (i.e. 'default'). I have requested an external figure in 
*.svg format (Logo.svg), but the print on the top right shows only 
these informations :

name : Logo.svg
file : Logo.svg
state : unknown

By the way, even if my images are loaded in a ConTeXt subdirectory (as 
context\ConTeXt-Documents\Images), in place of default directory, the 
parsing doesn't load the image.

You can set the following keywords for the location key:

  - default: Load images from your TeX installation (needed to load 
ConTeXt’s example graphics)
  - local: Load images in the same folder as your TeX file and 2 folder 
upwards in the path
  - global: Load images in the path provided with the directory key for 
\setupexternalfigure


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] Interlining in a TwoColumns set

2016-08-14 Thread Pablo Rodriguez
On 08/14/2016 04:06 PM, Jean-Pierre Delange wrote:
> Hi Pablo,
> 
> Many thanks to be patient. I apologize to be a little bit slow minded : 
> I presume that the
> 
>   \setupexternalfigure[location=default] command
> 
> would say that the figure is in the same directory than ConTeXt
> documents (i.e. 'default'). I have requested an external figure in *.svg
> format (Logo.svg), but the print on the top right shows only these
> informations :
> name : Logo.svg
> file : Logo.svg
> state : unknown
> 
> By the way, even if my images are loaded in a ConTeXt subdirectory
> (as context\ConTeXt-Documents\Images), in place of default directory,
> the parsing doesn't load the image.

Hi Jean-Pierre,

the default directory is tex/texmf-context/tex/context/sample/common
from ConTeXt Standalone.

If you have the file in the same directory than your text source file,
you don’t need any setup for the external figure.

To solve the issue (after fixing it, you might investigate it further),
please, copy the file Logo.svg to the same directory where you have your
ConTeXt source file.

Compile the document and it should work (provided that you have Inkscape
installed on your system).

Please, let us know whether this basic approach works.


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] Interlining in a TwoColumns set

2016-08-14 Thread Jean-Pierre Delange
About the image on the top right of the TwoColumns doc : it works with 
mill.png image (but not with spider). I guess the 'Logo.svg' is too 
heavy (or something like that).



Le 14/08/2016 à 13:47, Pablo Rodriguez a écrit :

On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:

Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
But how to insert a logo on the top right ?

Jean-Pierre,

I included it in the sample. Here you have it again:

 \setupexternalfigure[location=default]

 \definelayer[logo_layer][state=start]

 \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
 x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

 \setupbackgrounds[page][background={logo_layer}]

 \starttext

 \dorecurse{5}{\input knuth\par}
 \stoptext

Or is there any issue with the sample? At least, the spider should be
placed in the top right corner of the first page. To have it in all
pages, replace "state=start" with "state=repeat".

If this isn’t what you need, please let us know how the logo should be
placed.


Pablo


___
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] Interlining in a TwoColumns set

2016-08-14 Thread Jean-Pierre Delange

Hi Pablo,

Many thanks to be patient. I apologize to be a little bit slow minded : 
I presume that the


 \setupexternalfigure[location=default] command

would say that the figure is in the same directory than ConTeXt documents (i.e. 
'default'). I have requested an external figure in *.svg format (Logo.svg), but 
the print on the top right shows only these informations :
name : Logo.svg
file : Logo.svg
state : unknown

By the way, even if my images are loaded in a ConTeXt subdirectory (as 
context\ConTeXt-Documents\Images), in place of default directory, the parsing 
doesn't load the image.


Le 14/08/2016 à 13:47, Pablo Rodriguez a écrit :

On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:

Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
But how to insert a logo on the top right ?

Jean-Pierre,

I included it in the sample. Here you have it again:

 \setupexternalfigure[location=default]

 \definelayer[logo_layer][state=start]

 \setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
 x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

 \setupbackgrounds[page][background={logo_layer}]

 \starttext

 \dorecurse{5}{\input knuth\par}
 \stoptext

Or is there any issue with the sample? At least, the spider should be
placed in the top right corner of the first page. To have it in all
pages, replace "state=start" with "state=repeat".

If this isn’t what you need, please let us know how the logo should be
placed.


Pablo


___
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] TEI to context XML mappings?

2016-08-14 Thread Hans Hagen

On 8/14/2016 7:03 AM, Mica Semrick wrote:


After doing some research, I stumbled upon saxon-lint
(https://github.com/sputnick-dev/saxon-lint), a perl program
capable of using xpath3 expressions.

In the crudest form possible:

!# /bin/bash
for ELM in `saxon-lint.pl  --xpath
"distinct-values(//*/name())" file.xml`
do
echo -e "\\startxmlsetups xml:$ELM \n\t \\xmlflush{#1} \n \\stopxmlsetups"
done

I still need to write $ELM into an array to make it do the following:

\startxmlsetups xml:blank:map % xml:[filename] would be also fine
\xmlsetsetup{\xmldocument}
{xml:elements:from:the:variable:elm} % list the results from saxon-lint
{xml:*}
\stopxmlsetups

That would give me the "blank" mapping file I want, saving me the
trouble of typing out the whole thing every time.


we already have an analyzer:

context --extra=xml --analyze --autopdf music-collection.xml

i'll add a --template option for generating a bunch of setups (not the 
most efficient way to define a mapping but anyway)


context --extra=xml --analyze --template --autopdf music-collection.xml


Best,
Mica

Pablo Rodriguez  @ 2016-02-24 01:10 PST:


On 02/24/2016 09:20 AM, Hans Hagen wrote:

On 2/23/2016 10:26 PM, Mica Semrick wrote:

Reading the docbook thread earlier today reminded me to ask this:

Is there any feature or script that anyone can share that will read in
an XML document and spit out a blank mapping file?


what is a blank mapping file


Just guessing (or that would be useful for me too), a file with the
following scheme:

\startxmlsetups xml:blank:map % xml:[filename] would be also fine
\xmlsetsetup{\xmldocument}
{xml:elements} % all elements used in document listed here
{xml:*}

\xmlsetsetup{\xmldocument}
{h2[contains(@class,'author')]} % list also all elements
{xml:title:author} % with attributes
\stopxmlsetups

\xmlregistersetup{xml:pandoc}

\startxmlsetups xml:elements % basic configuration for elements
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:title:author % basic configuration for attributes
\xmlflush{#1}
\stopxmlsetups

I guess that the usefulness of this is not the actual configuration, but
to know what you have to configure.

I hope it helps,

Pablo



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




--

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

Re: [NTG-context] Interlining in a TwoColumns set

2016-08-14 Thread Pablo Rodriguez
On 08/13/2016 12:45 PM, Jean-Pierre Delange wrote:
> Thank you very much Wolfgang ! With Pablo help, I can manage this flyer.
> But how to insert a logo on the top right ?

Jean-Pierre,

I included it in the sample. Here you have it again:

\setupexternalfigure[location=default]

\definelayer[logo_layer][state=start]

\setlayer[logo_layer][preset=lefttop, y=.01\paperheight,
x=.82\paperwidth]{\externalfigure[spider][height=0.2\textwidth]}

\setupbackgrounds[page][background={logo_layer}]

\starttext

\dorecurse{5}{\input knuth\par}
\stoptext

Or is there any issue with the sample? At least, the spider should be
placed in the top right corner of the first page. To have it in all
pages, replace "state=start" with "state=repeat".

If this isn’t what you need, please let us know how the logo should be
placed.


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] pdftex error message in TeXWorks

2016-08-14 Thread Hans Hagen

On 8/13/2016 4:12 PM, Vya. Y. wrote:


Hello,

After updating to the latest beta, TeXWorks shows an error message every
time I open and compile a document. ("The procedure entry point could
not be located in the dynamic link library").

I don't undestand how pdftex is involved when I compile to luatex.


are you sure you run luatex?

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