Re: [NTG-context] Ubuntu Light font
Thanks Wolfgang, it works really well! Let me be very annoying and ask you about the ligatures... Thanks again, F. On 29 January 2014 20:31, Wolfgang Schuster wrote: > > Am 28.01.2014 um 02:34 schrieb Flavien Lambert : > > > Still another question...I managed to have the ubuntu light for both > regular and italic as well as greek letters in the text but I am still > unable to obtain greek letters in math text. Could you indicate to me the > right way? > > Thanks, > > F. > > > > \definefontfamily [mainface] [sans] [Ubuntu] > [regularfont=ubuntulight,,italicfont=ubuntulightitalic,boldfont=ubuntu] > > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=math:lowercaseitalic,tf=style:light] > > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=range:greek,tf=style:light] > > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=math:digitsnormal,tf=style:light] > > \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] > > You tried "range:greek" but this is wrong because the preset can only be > used for normal greek text, in math mode you have to choose one of the > following presets: > > - math:lowercasegreeknormal > - math:lowercasegreekitalic > - math:uppercasegreeknormal > - math:uppercasegreekitalic > - math:lowercasegreekbold > - math:lowercasegreekbolditalic > - math:uppercasegreekbold > - math:uppercasegreekbolditalic > > To use the lightitalic style of the ubuntu font you have to use the name > of file methods because there is no lightitalic pattern for the style > method (but I try add it). > > \definefontfamily [mainface] [sans] [Ubuntu] [tf=style:light] > > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=math:lowercaseitalic,tf=style:light] > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=math:digitsnormal,tf=style:light] > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=math:lowercasegreekitalic,tf=name:ubuntulightitalic] > > \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] > > \setupbodyfont[mainface,11pt] > > \starttext > 123 \math{123 \alpha\beta\gamma} > \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 > > ___ > ___ 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] Problem with setupitemize, columns, and packed?
The following MWE doesn't print item two when using the packed option with three columns. \starttext % correct \startitemize[columns, three] \startitem one \stopitem \startitem two \stopitem \startitem three \stopitem \startitem four \stopitem \startitem five \stopitem \stopitemize % item two not printed \startitemize[columns, three, packed] \startitem one \stopitem \startitem two \stopitem \startitem three \stopitem \startitem four \stopitem \startitem five \stopitem \stopitemize \stoptext I'm using ConTeXt ver: 2014.01.29 23:48 MKIV beta fmt: 2014.1.29 int: english/english Is this a bug or do I misunderstand the options for setupitemize? Thanks, Casey S Casey Jones Math Teacher and Department Chair Hillgrove High School | Powder Springs, Georgia | USA ___ 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] Lucida fonts with ConTeXt
Am 29.01.2014 um 22:28 schrieb Fabrice Couvreur : >> If you have the type1 fonts > How do we know ? > Sorry, but I'm not at all an expert font ! The opentype version of the fonts have otf as files extension while the type 1 version consists of files with afm and pub as file extension. 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] Lucida fonts with ConTeXt
Am 29.01.2014 um 21:33 schrieb Aditya Mahajan : > On Wed, 29 Jan 2014, Fabrice Couvreur wrote: > >> Hi, >> I want to use the Lucida fonts. I understand that these are commercial >> fonts that >> I must buy. What should buy and where ? >> In the meantime, I tried to test the following file : >> > >> \loadtypescriptfile[lucida-typeone] >> \setupbodyfont[lucida,12pt] > > ... >> )> Could not understand Type1 font: >> /home/fab/texmf/fonts/type1/bh/lucida/fonts/afm/bh/lucida/lbr.afm > > If you don't have the fonts, but the opentype version of the font rather than > the type1 version. If you have the type1 fonts, it should be possible to use > them with ConTeXt. When you have the type 1 version of the font and don’t need math the specserif and specsans typescripts can be used (\definefontfamily doesn’t work because context uses only the basic font loader for type 1 fonts): \definetypeface [mainface] [rm] [specserif] [Lucida Bright] [default] \definetypeface [mainface] [ss] [specsans] [Lucida Sans] [default] \setupbodyfont[mainface] \starttext \input knuth \ss \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 ___
Re: [NTG-context] Lucida fonts with ConTeXt
If you have the type1 fonts How do we know ? Sorry, but I'm not at all an expert font ! 2014-01-29 Aditya Mahajan > On Wed, 29 Jan 2014, Fabrice Couvreur wrote: > > Hi, >> I want to use the Lucida fonts. I understand that these are commercial >> fonts that >> I must buy. What should buy and where ? >> In the meantime, I tried to test the following file : >> >> > >> \loadtypescriptfile[lucida-typeone] >> \setupbodyfont[lucida,12pt] >> > > ... > > )> Could not understand Type1 font: >> /home/fab/texmf/fonts/type1/bh/lucida/fonts/afm/bh/lucida/lbr.afm >> > > If you don't have the fonts, but the opentype version of the font rather > than the type1 version. If you have the type1 fonts, it should be possible > to use them with ConTeXt. > > 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 > > ___ > ___ 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] on the \show command
On Wed, 29 Jan 2014, Pablo Rodriguez wrote: On 01/29/2014 07:39 PM, Aditya Mahajan wrote: On Wed, 29 Jan 2014, Pablo Rodriguez wrote: [...] I have discovered today the \show command in TeX. But I cannot get it work in ConTeXt: [...] BTW, you can also run context --pipe to start an interactive session. Many thanks, Aditya. This is a way to solve it. Although the error message seems misleading to me. TeX error message are always misleading :) Here is a list of messages you can get: http://www.math.mun.ca/tex-archive/systems/knuth/local/tex/tex.pool and some hints on how to understand the error messages: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=erroradvice http://www.tex.ac.uk/cgi-bin/texfaq2html?label=errstruct 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 ___
[NTG-context] Metafun: numeric=color
Hi, With the latest beta, ConTeXt ver: 2013.06.07 17:34 MKII fmt: 2014.1.29 in a file typeset with mkii I have a bunch of metapost macros (drawing a logo…) which used to typeset correctly until last week, I get an error message saying: Preloading the plain mem file, version 1.004 for metafun ii >> cyan >> (0,1,1) ! Equation cannot be performed (numeric=color). Unfortunately I cannot reproduce this error message in a minimal example, but can anyone tell me whether something has changed in MetaPost? Best regards: OK ___ 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] Lucida fonts with ConTeXt
On Wed, 29 Jan 2014, Fabrice Couvreur wrote: Hi, I want to use the Lucida fonts. I understand that these are commercial fonts that I must buy. What should buy and where ? In the meantime, I tried to test the following file : \loadtypescriptfile[lucida-typeone] \setupbodyfont[lucida,12pt] ... ) If you don't have the fonts, but the opentype version of the font rather than the type1 version. If you have the type1 fonts, it should be possible to use them with ConTeXt. 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] on the \show command
On 01/29/2014 07:39 PM, Aditya Mahajan wrote: > On Wed, 29 Jan 2014, Pablo Rodriguez wrote: >> [...] >> I have discovered today the \show command in TeX. But I cannot get it >> work in ConTeXt: > [...] > > BTW, you can also run > > context --pipe > > to start an interactive session. Many thanks, Aditya. This is a way to solve it. Although the error message seems misleading to me. 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] Lucida fonts with ConTeXt
On 29 jan. 2014, at 20:04, Fabrice Couvreur wrote: > Hi, > I want to use the Lucida fonts. I understand that these are commercial fonts > that I must buy. What should buy and where ? Available from lucida-ad...@tug.org. 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 ___
Re: [NTG-context] Lucida fonts with ConTeXt
On 1/29/2014 8:04 PM, Fabrice Couvreur wrote: Hi, I want to use the Lucida fonts. I understand that these are commercial fonts that I must buy. What should buy and where? https://www.tug.org/store/lucida/opentype.html - 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 ___
[NTG-context] Lucida fonts with ConTeXt
Hi, I want to use the Lucida fonts. I understand that these are commercial fonts that I must buy. What should buy and where ? In the meantime, I tried to test the following file : \setuppapersize[A4] \setuplayout [backspace=15mm, width=middle, topspace=15mm, height=middle, header=0pt, footer=0pt] \setuppagenumbering[location=] \mainlanguage[fr] \loadtypescriptfile[lucida-typeone] \setupbodyfont[lucida,12pt] \setupTABLE[each][each][width=1cm,height=1cm,align={middle,lohi}] \starttext \startluacode context.bTABLE() context.bTR() context.bTD() context.math("x") context.eTD() context.bTD() context.math("f(x)") context.eTD() for i=-1,5 do context.bTR() context.bTD() context(i) context.eTD() context.bTD() context(-i^2+5*i-8) context.eTD() context.eTR() end context.eTR() context.eTABLE() \stopluacode \stoptext fab@debian:~$ source context/tex/setuptex Setting "/home/fab/context/tex" as ConTeXt root. fab@debian:~$ context demo10.tex mtx-context | run 1: luatex --fmt="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="demo10" --lua="/home/fab/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./demo10.tex" --c:input="./demo10.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv" This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) \write18 enabled. (/home/fab/context/tex/texmf-context/tex/context/base/cont-yes.mkiv job > passes > version mismatch: 1.22 <> 1.24 ConTeXt ver: 2014.01.26 16:07 MKIV beta fmt: 2014.1.27 int: english/english system > 'cont-new.mkiv' loaded (/home/fab/context/tex/texmf-context/tex/context/base/cont-new.mkiv) system > files > jobname 'demo10', input './demo10', result 'demo10' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/fab/demo10.tex (/home/fab/context/tex/texmf-context/tex/context/base/type-imp-lucida-typeone.mkiv){/home/fab/texmf/fonts/type1/bh/lucida/fonts/map/dvips/lucida.map} fonts > defining > font with asked name 'LucidaBright' is not found using lookup 'name' fonts > defining > unknown font 'LucidaBright', loading aborted fonts > defining > unable to define 'LucidaBright' as 'lucida-12pt-rm-tf-0--0' {/home/fab/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} backend > xmp > using file '/home/fab/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 ) )___ 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] on the \show command
On Wed, 29 Jan 2014, Pablo Rodriguez wrote: Dear list, I have discovered today the \show command in TeX. But I cannot get it work in ConTeXt: \starttext \show\input \stoptext When I compile using `context filename` I get: \input=\protected macro: ->\normalinput . system > tex > error on line 3 in file /tmp/test.tex: ? ... which shows that \input is a protected macro that maps to \normalinput. BTW, you can also run context --pipe to start an interactive session. 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 ___
[NTG-context] on the \show command
Dear list, I have discovered today the \show command in TeX. But I cannot get it work in ConTeXt: \starttext \show\input \stoptext What am I doing wrong? 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 ___
Re: [NTG-context] xterm dynamic title
On 1/29/2014 12:33 PM, Alan BRASLAU wrote: Hello, Using xterm and related emulators, one can set a dynamic title. Many applications set this title. (Of course, the user can program the emulator to ignore such dynamic titles, if preferred). I find it useful, especially when I have many terminal windows open, all running different processes in parallel. May I suggest the following simple change to the context script: #!/bin/sh case "$TERM" in *xterm*) echo -e -n "\e]0;${0##*/} $*\a" ;; esac mtxrun --script context "$@" 1. Perhaps it would be preferred to implement such a feature in the mtx-context.lua script, for example, rather than the shell script, as one could then add useful information such as the run number. Also, one may (or may not) want to do this when running -batch, etc. 2. On non-unix-like systems, perhaps the $TERM case would be different. mtxrun already has (as kind of joke) a --ansi option, so you can see what happens if you add in the relevant section of mtxrun(.lua) local script = e_argument("script") or e_argument("scripts") if type(script) == "string" then logs.writer("]0;"..script.."") end that is (when not seen in mail: logs.writer("]0;"..script.."") 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] Ubuntu Light font
Am 28.01.2014 um 02:34 schrieb Flavien Lambert : > Still another question...I managed to have the ubuntu light for both regular > and italic as well as greek letters in the text but I am still unable to > obtain greek letters in math text. Could you indicate to me the right way? > Thanks, > F. > > \definefontfamily [mainface] [sans] [Ubuntu] > [regularfont=ubuntulight,,italicfont=ubuntulightitalic,boldfont=ubuntu] > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=math:lowercaseitalic,tf=style:light] > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=range:greek,tf=style:light] > \definefallbackfamily [mainface] [math] [Ubuntu] > [preset=math:digitsnormal,tf=style:light] > \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] You tried “range:greek” but this is wrong because the preset can only be used for normal greek text, in math mode you have to choose one of the following presets: - math:lowercasegreeknormal - math:lowercasegreekitalic - math:uppercasegreeknormal - math:uppercasegreekitalic - math:lowercasegreekbold - math:lowercasegreekbolditalic - math:uppercasegreekbold - math:uppercasegreekbolditalic To use the lightitalic style of the ubuntu font you have to use the name of file methods because there is no lightitalic pattern for the style method (but I try add it). \definefontfamily [mainface] [sans] [Ubuntu] [tf=style:light] \definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercaseitalic,tf=style:light] \definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:digitsnormal,tf=style:light] \definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercasegreekitalic,tf=name:ubuntulightitalic] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface,11pt] \starttext 123 \math{123 \alpha\beta\gamma} \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] xterm dynamic title
Hello, Using xterm and related emulators, one can set a dynamic title. Many applications set this title. (Of course, the user can program the emulator to ignore such dynamic titles, if preferred). I find it useful, especially when I have many terminal windows open, all running different processes in parallel. May I suggest the following simple change to the context script: #!/bin/sh case "$TERM" in *xterm*) echo -e -n "\e]0;${0##*/} $*\a" ;; esac mtxrun --script context "$@" 1. Perhaps it would be preferred to implement such a feature in the mtx-context.lua script, for example, rather than the shell script, as one could then add useful information such as the run number. Also, one may (or may not) want to do this when running -batch, etc. 2. On non-unix-like systems, perhaps the $TERM case would be different. Alan ___ 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 ___