[NTG-context] Heros Condensed

2009-11-21 Thread Wolfgang Murth


Hi all,

I need a condensed font and Heros Condensed came into my mind. But I haven't 
any clue how to use that font. How can I use that font
with mkiv?

Thanks for your help

Wolfgang Murth

___
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] latest beta: trouble with font loading

2009-11-21 Thread Yanrui Li
2009/11/21 Yanrui Li liyanrui...@gmail.com:
 2009/11/21 Hans Hagen pra...@wxs.nl:
 Yanrui Li wrote:

 2009/11/20 Hans Hagen pra...@wxs.nl:

 Yanrui Li wrote:

 I did so and solved this problem. However I can not use Chinese OTF
 fonts such as 'AdobeSongStd-Light.otf', because luatex need very very
 large memory to load it in the stage of *enhancing* . This is a test
 file:

 \definefont[song][name:adobesongstd]
 \starttext
 \song 测试
 \stoptext

 The process of compiling stops here:

 !load otf       : loading:
 /usr/share/fonts/adobe/AdobeSongStd-Light.otf (hash:
 adobesongstd-light)
 !load otf       : file size: 16229772
 !load otf       : enhancing ...

 that's only the first time


 But it looks like abnormal. It is still *enhancing* after spending
 3.3GB memory and about 1 minute. Finally I got the message:

 fixed in beta, was some kind of loop


 Sorry for my noice. The problem still exists in the latest beta
 (2009.11.21 00:06, linux x86) which was installed after I removed the
 previous one completely. The problem just arise in loading Chinese OTF
 fonts. It is normal for loading Chinese TTF font.


I find out that the problem is caused by the new
'resolvers.split_path' function in data-res.lua. It can be solved with
the old  'resolvers.split_path' function instead of the new one.

-- 
Best regards,

Li Yanrui
___
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] Heros Condensed

2009-11-21 Thread Wolfgang Schuster

Am 21.11.2009 um 09:06 schrieb Wolfgang Murth:

 Hi all,
 
 I need a condensed font and Heros Condensed came into my mind. But I haven't 
 any clue how to use that font. How can I use that font
 with mkiv?

\usemodule[simplefonts]

\setmainfont[TeX Gyre Heros][weight=condensed]

\starttext

\rm\tf roman \it italic \bf bold \bi bolditalic \sc smallcaps

\stoptext

PS. The bolditalic font is wrong because there was a ',' missing in the module, 
i will upload a new version later today.

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] Fields and JS Calculations

2009-11-21 Thread jeroen muskee

I want to calculate the pressure of a hydrostatic fluid column with 
p(psi)=0.052*density(lb/gal)*depth(ft)

I have created a form with fields to enter the input, but I need somehow to 
pass the information entered to the JS calculation to display the result.

How can you pass an entered field value to JS caluclation and show the result 
into another field.

 

Thanks

Jeroen

 

 

 

\setupcolors[state=start] 

\setupinteraction[state=start] 

 
\starttext 

 
\definefield[textdensity] [line] [linedensity] [] [] 
\definefield[textdepth] [line] [linedepth] [] [] 
\definefield[textpressure] [line] [linepressure] [] [] 

 
\setupfield 
[linedensity] 
[label,frame,horizontal] 
[frame=off] 
[height=18pt,width=15em,align=middle,frame=off] 
[height=18pt,width=20em,align=right,style=\tfx,,frame=on] 

 
\setupfield 
[linedepth] 
[label,frame,horizontal] 
[frame=off] 
[height=18pt,width=15em,align=middle,frame=off] 
[height=18pt,width=20em,align=right,style=\tfx,,frame=on] 

 
\setupfield 
[linepressure] 
[label,frame,horizontal] 
[frame=off] 
[height=18pt,width=15em,align=middle,frame=off] 
[height=18pt,width=20em,align=right,style=\tfx,,frame=on] 

 
\startJScode{presscalc}
pressure=0.052*density*depth;
\stopJScode

 
Calculate the hydrostatic pressure in psi with p = 0.05194 x density x depth
\blank
\field[textdensity][Please enter Density (lb/gal):] 
\blank
\field[textdepth][Please enter Depth (ft):] 
\blank 
\goto{Calculate Pressure}[JS(presscalc)]
\blank
\field[textpressure][Hydrostatic Pressure (psi):] 

 
\stoptext 
_
Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009___
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] local footnote (Tables) problem

2009-11-21 Thread Bowen Alan C.
Please excuse my persistence. The following is a minimal file illustrating a 
problem that I am having with a multipage table with local footnotes. Setting 
split=yes or split=repeat in \setuptables produces obviously unsatisfactory 
results. What I need is a multipage table that has good page divisions and puts 
the table's label on the last page only. I have been unable to find  
documentation that would help with this yet.

I am using MK2 in today’s Context in the Context Minimals.

Alan

\showframe

\starttext

\dorecurse{3}{\input knuth\par}

\start

\setuptables
[bodyfont=9pt,
 width=\textwidth,
 rulethickness=0.03em,
 distance=big,
 split=repeat]

\placetable
[split,top,nonumber]
[tab:Table03]
{Table 3}
{\startlocalfootnotes[conversion=character,bodyfont=9pt]
 \placelegend
   {\startframedtext[frame=off,offset=none,width=fit]
\starttablehead
\HL[3]
\NC \REF[c]{Column A} \NC \REF[c]{Column B} \NC\SR
\HL
\stoptablehead
\starttable[|p(11.5pc)|p(11.5pc)|]
\NC \REF[c]{1[4].341||345 [= F21.82||86]} \NC\REF[c]{6.29.3||4} \NC\SR
\NC Text A\note[a]\NC Text B\note[b]\NC\SR
   \NC \input knuth\NC  \NC\AR
  \NC \NC \input knuth  \NC\AR
  \NC \input knuth\NC   \NC\AR
\stoptable
\stopframedtext}
   {\footnotetext[a]{A local footnote.}
\footnotetext[b]{Another local footnote.}
\hskip2pc\mbox{\placelocalfootnotes}}
 \stoplocalfootnotes}

\stop

\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] Heros Condensed

2009-11-21 Thread Wolfgang Murth

Hello Wolfgang,

Thanks for your solution but one problem leads to another. First I found that I 
had to get the simplefonts module with
first-setup.bat --extras=t-simplefonts

And now I get a luatex error

loading : ConTeXt User Module / Simplefonts
)
! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: 
attempt to call field 'data_state' (a nil value)
stack traceback:
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: in 
 function 'resetdata'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:671: in 
 function 'identify'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:696: in 
 function 'load'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:707: in 
 function 'load'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:844: in 
 function 'resolve'
   ...text/tex/texmf-context/tex/context/base/font-syn.lua:1235: in 
 function 'exists'
   ...text/tex/context/third/simplefonts/t-simplefonts.lua:183: in 
 function 'selectfont'
   main ctx instance:1: in main chunk.
\currentcommalistcommand ...arameter \c!weight )}
  
\next1 #1,-\currentcommalistcommand {#1}
 \doprocesscommaitem 
argument \relax regular,
  italic,slanted,bold,bolditalic,boldslanted,caps, i...
\doprocesscommalist ...aitem \gobbleoneargument #1
  ,]\relax \global \advance ...
\simplefo...@definetextfont ...rocesscommacommand 
  \simplefo...@typescript {\...
l.3 \setmainfont[TeX Gyre Heros][weight=condensed]


kind regards 

Wolfgang Murth

___
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] Heros condensed and Font switching

2009-11-21 Thread Wolfgang Murth

Hi Wolfgang, Hi all,

My last post regarding Heros Condensed leads me to another unsolved mystery. 
I'm working on converting my lecture papers from latex
to ConTeXt, where I also use a condended font, but only for Excel formulas and 
not as main body font .
For example 
   {
   \changefont{cmss}{sbc}{n}\small%
   \begin{tabbing}%
   \hspace{1cm}\=\$E\$9:\$E\$13 =\$D\$9:\$D\$13\\
   \ {\$F\$18:\$H\$18 =0}\\
   \end{tabbing}
   }%

My question is how I can change a font only for a particular text. Not only 
normal-condensed, even change the complete font like
using Zapf for a special markup in a Helvetica/Heros text.

Thanks for you help.

Wolfgang Murth

___
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] mtx-texworks.lua can't find TeXworks on linux

2009-11-21 Thread Khaled Hosny
On Thu, Nov 19, 2009 at 09:58:32PM +0100, Hans Hagen wrote:
 ok, i see the problem (it's not just splitting at : or ; as in tex  
 config files specs can bw much more complex); will be solved in next beta

The application launches now, but it is of no much use on linux since
all typesetting commands are windows specific (mtxrun.cmd, cmd.exe etc.)

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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] mtx-texworks.lua can't find TeXworks on linux

2009-11-21 Thread Taco Hoekwater

Khaled Hosny wrote:

On Thu, Nov 19, 2009 at 09:58:32PM +0100, Hans Hagen wrote:
ok, i see the problem (it's not just splitting at : or ; as in tex  
config files specs can bw much more complex); will be solved in next beta


The application launches now, but it is of no much use on linux since
all typesetting commands are windows specific (mtxrun.cmd, cmd.exe etc.)


Oh, I knew that, I have a local patch even (from when it was still
TeXworks). I'll send my patch to Hans.

Best wishes,
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
___


[NTG-context] font-syn.lua error

2009-11-21 Thread Andreas Harder
Hi,

if I try to run 
$ mtxrun --script fonts –reload
it ends with: 
...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
field 'data_state' (a nil value)


The same with

\definefont[test][name:minionpro-regular]
\starttext
\test Hallo Welt, das ist ein Test
\stoptext


Greetings,
Andreas
___
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] latest beta: trouble with font loading

2009-11-21 Thread Bernhard Rosensteiner
Hello all,i wrote an email last thursday but got no answer because of this:Your request to the ntg-context mailing listPosting of your message titled "fonts broken in recent ConTeXtmkiv...?"has been rejected by the list moderator. The moderator gave thefollowing reason for rejecting your request:"Your message was too big; please trim it to less than 64 KB in size."Any questions or comments should be directed to the list administratorat:ntg-context-ow...@ntg.nlwhatever...

keine otf fonts.log
Description: Binary data


keine otf fonts.tex
Description: Binary data
now i only have attached the .log and .tex (minimal example) files (first i attached the .otf font too). My problem with the otf font loading still exists (even after completely removing the old minimals and uptating via first-setup.sh). All my documents compile normal but the fonts are not visible (in one document i can see some strange numbers...predominantly 9) no matter what otf font i use (all my fonts are located in /Users/bernhardrosensteiner/Library/Fonts). All graphic related stuff works normal even the defined position on the paper is right. Fallback fonts (normal cmr) works (when i out-comment the \definefont line in my minimal example). I have Mac OS X 10.6.please helpbest regardsBernhardAm 21.11.2009 um 02:28 schrieb Yanrui Li:2009/11/21 Hans Hagen pra...@wxs.nl:Yanrui Li wrote:2009/11/20 Hans Hagen pra...@wxs.nl:Yanrui Li wrote:I did so and solved this problem. However I can not use Chinese OTFfonts such as 'AdobeSongStd-Light.otf', because luatex need very verylarge memory to load it in the stage of *enhancing* . This is a testfile:\definefont[song][name:adobesongstd]\starttext\song 测试\stoptextThe process of compiling stops here:!load otf: loading:/usr/share/fonts/adobe/AdobeSongStd-Light.otf (hash:adobesongstd-light)!load otf: file size: 16229772!load otf: enhancing ...that's only the first timeBut it looks like abnormal. It is still *enhancing* after spending3.3GB memory and about 1 minute. Finally I got the message:fixed in beta, was some kind of loopSorry for my noice. The problem still exists in the latest beta(2009.11.21 00:06, linux x86) which was installed after I removed theprevious one completely. The problem just arise in loading Chinese OTFfonts. It is normal for loading Chinese TTF font.-- Best regards,Li Yanrui___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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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] simplefonts

2009-11-21 Thread Vyatcheslav Yatskovsky

Hi Wolfgang,

I just saw interesting commands:

\usemodule[simplefonts]

\setmainfont[TeX Gyre Heros][weight=condensed]
   
Searching for wiki, I found the line For instance, assuming the 
Delicious fonts http://www.josbuivenga.demon.nl/delicious.html are 
properly installed and recognized by ConTeXt, you can simply write. 
What do you mean by properly installed and recognized? Can I just say


\setmainfont[Times New Roman]

and get Window's standard Times New Roman working?

Regards,
Vyatcheslav

___
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] font-syn.lua error

2009-11-21 Thread Tim Wraight
On 21 Nov 2009, at 18:49, Andreas Harder wrote:
 if I try to run 
 $ mtxrun --script fonts –reload
 it ends with: 
 ...text/tex/texmf-context/tex/context/base/font-syn.lua:666: attempt to call 
 field 'data_state' (a nil value)
Yes, I'm getting a similar error here too:
$ mtxrun --script font --list --reload
produces:
‘.../tex/texmf-context/scripts/context/lua/mtx-fonts.lua:116: attempt to index 
global 'names' (a nil value)’

MTXrun | current version: 2009.11.21 11:45

Tim
___
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] latest beta: trouble with font loading

2009-11-21 Thread Yanrui Li
2009/11/22 Bernhard Rosensteiner brosenstei...@gmail.com:
 Hello all,

 now i only have attached the .log and .tex (minimal example) files (first i
 attached the .otf font too). My problem with the otf font loading still
 exists (even after completely removing the old minimals and uptating via
 first-setup.sh). All my documents compile normal but the fonts are not
 visible (in one document i can see some strange numbers...predominantly 9)
 no matter what otf font i use (all my fonts are located in
 /Users/bernhardrosensteiner/Library/Fonts). All graphic related stuff works
 normal even the defined position on the paper is right. Fallback fonts
 (normal cmr) works (when i out-comment the \definefont line in my minimal
 example). I have Mac OS X 10.6.

You can try

\definefont[TitleFont][name:GaramondPremrPro-Disp at 30pt]

-- 
Best regards,

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