Re: [NTG-context] convert old dvi files

2016-04-19 Thread Aditya Mahajan

On Tue, 19 Apr 2016, Hans Hagen wrote:


On 4/19/2016 10:32 PM, Meer, Hans van der wrote:

it makes not much sense to add very old dvps stuff to the distribution


Some of these dvips support files are needed to use the pstricks module. 
See


https://mailman.ntg.nl/pipermail/ntg-context/2013/076165.html
https://mailman.ntg.nl/pipermail/ntg-context/2014/080256.html

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] convert old dvi files

2016-04-19 Thread Hans Hagen

On 4/19/2016 10:32 PM, Meer, Hans van der wrote:

I need to convert some old dvi files into pdf.
One of the routes seems dvi --(dvips) ->- ps --> pdf
But dvips (taken from the ConTeXt-beta distribution) complains "Couldn't find header 
file: tex.pro"

Where can I find it? It doesn't seem present in the above mentioned 
distribution.
Or is there a ConTeXt mtxrun-call or such, that can do it directly?


looks like it needs some prologue file (a blob of ps code), maybe you 
can find it on ctan ... it might depend on how the dvi was made (maybe 
the pro file is loaded via a special)


it makes not much sense to add very old dvps stuff to the distribution

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
___

[NTG-context] convert old dvi files

2016-04-19 Thread Meer, Hans van der
I need to convert some old dvi files into pdf.
One of the routes seems dvi --(dvips) ->- ps --> pdf
But dvips (taken from the ConTeXt-beta distribution) complains "Couldn't find 
header file: tex.pro"

Where can I find it? It doesn't seem present in the above mentioned 
distribution.
Or is there a ConTeXt mtxrun-call or such, that can do it directly?

Hans van der Meer




___
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] parallel texts, setuptabulate and widows-orphans control

2016-04-19 Thread massifr
Hello list,
I've found that \start ... \stoptabulate can be used to format parallel texts,
with paragraphs that are synchronized and split well on different pages.

I also found that they don't play well with widow-orphan penalties.
Try this:

\setuptabulate[split=yes]

\starttext
  \setpenalties\widowpenalties{1}{1}
  \setpenalties\clubpenalties{1}{1}
  \starttabulate[|p|p|]
\NC
\dorecurse{3}{\input knuth}
\NC
\dorecurse{2}{\input knuth}
\NC\NR
  \stoptabulate
\stoptext

The penalties' settings make some lines overlap.
Comment out those two lines and everything works well.
Not a great problem, since I don't think you need
widow-orphan control in parallel texts.

It took me some time to understand what was making 
lines overlap.
So I leave it here for future reference, if someone else
stumbles on the same problem.
___
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] Problem with Cambria (in Windows)

2016-04-19 Thread Wolfgang Schuster

Mari Voipio 
19. April 2016 um 08:09
Hi Wolfgang,

here's what I get:


c:\context>mtxrun -script font --list --all cambria*

cambria cambriabolditalic c:/windows/fonts/cambriaz.ttf
cambriabold cambriabold c:/windows/fonts/cambriab.ttf
cambriabolditalic cambriabolditalic c:/windows/fonts/cambriaz.ttf
cambriaitalic cambriaitalic c:/windows/fonts/cambriai.ttf
cambriamath cambriamath c:/windows/fonts/cambria.ttc index:
2
cambriamathnormal cambriamath c:/windows/fonts/cambria.ttc index:
2
cambriamathregular cambriamath c:/windows/fonts/cambria.ttc index:
2
cambrianormal cambriaitalic c:/windows/fonts/cambriai.ttf


Doesn't look good, does it. Windows Fonts shows Cambria Regular (and I
can use it in e.g. Word) and then bold, italic and bold italic, but it
seems like the regular is gone from the list above. I may have a
problem...
1. You can try to reload the font database with "mtxrun --script fonts 
--reload --force"

   and try it again.

2. You can write your own typescripts for cambria (the existing ones 
rely on normalized
   names to support various versions of cambria which use different 
file names).


3. You can use the \definefontfamily command to load the fonts.

%% begin example
\definefontfamily [manuals] [rm] [Cambria]
\definefontfamily [manuals] [ss] [Calibri] [scale=0.95]
\definefontfamily [manuals] [tt] [Courier] [scale=0.90]
\definefontfamily [manuals] [mm] [Cambria Math]

\setupbodyfont[manuals,10pt]

\starttext

\input tufte

\stoptext
%% end example

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] uppercase, small caps, numerals and German capital sharp s

2016-04-19 Thread Wolfgang Schuster

Thomas Fehige 
19. April 2016 um 09:10
Hello,

I'm new to ConTeXt and this list. After a long time of using LaTeX and 
xeLaTeX I was finally lured into trying ConTexT by its ability of grid 
typesetting.


Today's problem is a bit complex. In a book project I have several 
points where stuff is capitalized or turned into caps+smallcaps or 
pure smallcaps. My guess is that that should work either with 
\WORD{Stuff}, \Cap{Stuff} and \cap{Stuff} or with \uppercase, \sc, and 
{\sc\lowercase{Stuff}}. (Not quite, it seems)


I'll use a commercial font called Calluna, but have added Linux 
Biolinum O to the example for those who don't want to download Calluna 
(the "Regular" can be "bought" for free, e.g. at 
https://www.fontspring.com/fonts/exljbris/calluna).


Both Calluna and Biolinum contain the glyph "LATIN CAPITAL LETTER 
SHARP S" at "1E9E. Calluna also has a small caps version at "F727", 
while Biolinum has it at "E092. I'd like to use these glyphs in the 
capitalizations mentioned, but that only works erratically (cf. example).


Secondly, Calluna comes with oldstyle numerals switched on, which is 
nice for normal text, but should change to proportional lining numbers 
in uppercase and to small-cap proportional lining numbers in an 
all-small-cap text. I'm not sure what I'd want in a caps+smallcaps 
context, but certainly not oldstyle numerals with their descenders.
Use separate threads for each problem. The uppercase sharp s replacement 
with \WORD can be changed in the next beta.


%% begin example
\usemodule[lingual-de]

\setupbodyfont[libertine]

\starttext

Gruß Straße Buße

\WORD{Gruß Straße Buße}

\enabledirectives[fonts.uppercasesharps]

\WORD{Gruß Straße Buße}

\disabledirectives[fonts.uppercasesharps]

\WORD{Gruß Straße Buße}

\stoptext
%% end example

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] uppercase, small caps, numerals and German capital sharp s

2016-04-19 Thread Thomas Fehige

Hello,

I'm new to ConTeXt and this list. After a long time of using LaTeX and 
xeLaTeX I was finally lured into trying ConTexT by its ability of grid 
typesetting.


Today's problem is a bit complex. In a book project I have several 
points where stuff is capitalized or turned into caps+smallcaps or pure 
smallcaps. My guess is that that should work either with \WORD{Stuff}, 
\Cap{Stuff} and \cap{Stuff} or with \uppercase, \sc, and 
{\sc\lowercase{Stuff}}. (Not quite, it seems)


I'll use a commercial font called Calluna, but have added Linux Biolinum 
O to the example for those who don't want to download Calluna (the 
"Regular" can be "bought" for free, e.g. at 
https://www.fontspring.com/fonts/exljbris/calluna).


Both Calluna and Biolinum contain the glyph "LATIN CAPITAL LETTER SHARP 
S" at "1E9E. Calluna also has a small caps version at "F727", while 
Biolinum has it at "E092. I'd like to use these glyphs in the 
capitalizations mentioned, but that only works erratically (cf. example).


Secondly, Calluna comes with oldstyle numerals switched on, which is 
nice for normal text, but should change to proportional lining numbers 
in uppercase and to small-cap proportional lining numbers in an 
all-small-cap text. I'm not sure what I'd want in a caps+smallcaps 
context, but certainly not oldstyle numerals with their descenders.


Any hints and ideas? Thanks for reading! -- Thomas

PS: I asked the same question on stackexchange, there's also an image of 
the result of my example: 
http://tex.stackexchange.com/questions/302823/context-uppercase-%C3%9F-customizing-glyph-substitution


%%
\mainlanguage[de]
\language[de]

\uccode`ß="1E9E% This gives the capital ß to \uppercase

\definefontfeature[fcalluna][default][]	% I tried all the font features 
built into Calluna, to no avail.


\definefontfamily [myfamily] [serif][Calluna][features=fcalluna]
\definefontfamily [myfamily] [sans] [Linux Biolinum O][features=fcalluna]
\definefontfamily [myfamily] [mono] [TeX Gyre Cursor]

\setupbodyfont [myfamily]
\startTEXpage[offset=10pt]
\starttabulate[|l|l|l|]
 \NC \it Command \NC \it Calluna \NC \it Linux Biolinum \NC\NR
\NC\type{\WORD{Gruß134}}: 		\NC\WORD{Gruß134} 			\NC 
{\ss\WORD{Gruß134}} 		\NC\NR
\NC\type{\uppercase{Gruß134}}:	\NC\uppercase{Gruß134} 
\NC{\ss\uppercase{Gruß134}} 	\NC\NR
\NC\type{\sc{Gruß134}}: 			\NC{\sc Gruß134} 			\NC{\ss{\sc 
Gruß134}}			\NC\NR
\NC\type{\Cap{Gruß134}:} 		\NC\Cap{Gruß134} 			\NC{\ss 
\Cap{Gruß134}}		\NC\NR
\NC\type{\cap{Gruß134}:} 		\NC\cap{Gruß134} 			\NC{\ss 
\cap{Gruß134}}		\NC\NR
\NC\type{{\sc\lowercase{Gruß134}}:} 	 
\NC{\sc\lowercase{Gruß134}} 			\NC{\ss\sc\lowercase{Gruß134}}	\NC\NR

\stoptabulate
\stopTEXpage
%%
___
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
___