[NTG-context] LuaTeX-plain - Get well-know function names like sin cos to display in roman
Hi there, Am used to seeing the names of well known functions in upright math font, instead of italics. With LaTeX, it seems, this is default, plus one can use macros like `\mathrm` or `\textrm` for other text. An `\hbox{}` too, in plain TeX, but not around `\sin`, for example. With ConTeXt's LuaTeX-Plain format (may ConTeXt itself as well), these functions are in italics. Is it possible to control this via the redefinition of the math fonts? Following does not work for me: \font\lmromr = {LucidaBrightMathOT:mode=base} at 14pt \font\lmromi = {LucidaBrightMathOT:mode=base} at 14pt \font\lmromsr = {LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt \font\lmromsi = {LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt \font\lmromssr = {LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt \font\lmromssi = {LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt \textfont0 = \lmromr%--sin, cos, numbers \scriptfont0 = \lmromsr % \scriptscriptfont0 = \lmromssr % \textfont1 = \lmromi%--variables \scriptfont1 = \lmromsi % \scriptscriptfont1 = \lmromssi % \textfont2 = \lmromr%--symbols \scriptfont2 = \lmromsr % \scriptscriptfont2 = \lmromssr % \textfont3 = \lmromr%--extras \scriptfont3 = \lmromsr % \scriptscriptfont3 = \lmromssr % Same for CambriaMath or LatinModernRomanMath. For `\font0`, tried a non-math font, but it did not work. How to set `\font0` to use roman? and `\font1` to use italics? Thanks in advance, Aire. PS. Info from Khaled Hosny: [http://www.khaledhosny.org/node/131] ___ 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] LuaTeX-plain File Database Problem
On Thu May 15 23:23:07 2014, Aíre Funvake wrote: On Thu May 15 23:07:40 2014, Aditya Mahajan wrote: On Thu, 15 May 2014, Aíre Funvake wrote: Hi all, Never felt so incompetent in my life -- just cannot get LuaTeX to find fonts or `*.tex` files for use with `\input filename`, or `font\xxx = font-or-filename`. Even though, these commands were executed (all I could find): mktexlsr mtxrun --script base --generate luatools --generate context --generate mtxrun --script fonts --update --force mtxrun --script fonts --udpate --simple Tried putting files in (in the roots and subdirectories): ~/texmf ~/ctx/tex/texmf-project ~/ctx/tex/texmf-local ~/ctx/tex/texmf-fonts Checked if the file could be found: luatools --find-file .tex --- finds it luatools --find-file xxx.otf--- finds it mtxrun --locate .tex--- finds it mtxrun --locate xxx.otf --- finds it kpsewhich/where --- finds only if in `~/texmf` In .tex file (even when files are in `~/texmf` dir): \input or .tex--- no luck \font\myfont = name:--- no luck \font\myfont = file:.otf--- no luck Sorry, but reading and searching for hours did not bring any solu- tion. Not sure if there is a configuration file like `texmf.cnf` or the `context.cnf` that must be modified, or and environment var- iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's OK, if only it would only work). Sorry to spam this list with questions which may seem very fundamental to you. Hope to be able to reciprocate sometime. What am I missing? Read about TDS (TeX Directory Structure). You need to put files in $TEXMF/tex/plain/ subdirectory for Plain format to find it, or in $TEXMF/tex/generic/ subdirectory for all macro packages (plain, latex, context) to find it. Aditya Thank you, will re-read it forthwith, must have missed something. It just feels wrong to put re-usable project files inside the distribution tree. Still feel like an idiot, if not more so. Can anyone enlighten me then as to the purpose of `$HOME/texmf`, `$TEXMF/tex/texmf-local`, `$TEXMF/tex/texmf-fonts`, etc., considering they are all, for example, configured in the file: `$TEXMF/tex/texmf/web2c/texmf.cnf`? Which I assumed incorrectly it seems, the name resolvers would use. http://tex.stackexchange.com/questions/177459/learning-plain-tex-via-contexts-luatex-plain-format Maybe helpful to someone. ___ 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] LuaTeX-plain File Database Problem
On Fri May 16 23:51:08 2014, Hans Hagen wrote: On 5/16/2014 10:56 PM, Aíre Funvake wrote: On Thu May 15 23:23:07 2014, Aíre Funvake wrote: On Thu May 15 23:07:40 2014, Aditya Mahajan wrote: On Thu, 15 May 2014, Aíre Funvake wrote: Hi all, Never felt so incompetent in my life -- just cannot get LuaTeX to find fonts or `*.tex` files for use with `\input filename`, or `font\xxx = font-or-filename`. Even though, these commands were executed (all I could find): mktexlsr mtxrun --script base --generate luatools --generate context --generate mtxrun --script fonts --update --force mtxrun --script fonts --udpate --simple Tried putting files in (in the roots and subdirectories): ~/texmf ~/ctx/tex/texmf-project ~/ctx/tex/texmf-local ~/ctx/tex/texmf-fonts Checked if the file could be found: luatools --find-file .tex --- finds it luatools --find-file xxx.otf--- finds it mtxrun --locate .tex--- finds it mtxrun --locate xxx.otf --- finds it kpsewhich/where --- finds only if in `~/texmf` In .tex file (even when files are in `~/texmf` dir): \input or .tex--- no luck \font\myfont = name:--- no luck \font\myfont = file:.otf--- no luck Sorry, but reading and searching for hours did not bring any solu- tion. Not sure if there is a configuration file like `texmf.cnf` or the `context.cnf` that must be modified, or and environment var- iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's OK, if only it would only work). Sorry to spam this list with questions which may seem very fundamental to you. Hope to be able to reciprocate sometime. What am I missing? Read about TDS (TeX Directory Structure). You need to put files in $TEXMF/tex/plain/ subdirectory for Plain format to find it, or in $TEXMF/tex/generic/ subdirectory for all macro packages (plain, latex, context) to find it. Aditya Thank you, will re-read it forthwith, must have missed something. It just feels wrong to put re-usable project files inside the distribution tree. Still feel like an idiot, if not more so. project specific files go into texroot/texmf-project/tex/context/user additional fonts into texroot/texmf-fonts/fonts/data these are in the tds tree but never overwritten Can anyone enlighten me then as to the purpose of `$HOME/texmf`, `$TEXMF/tex/texmf-local`, `$TEXMF/tex/texmf-fonts`, etc., considering they are all, for example, configured in the file: `$TEXMF/tex/texmf/web2c/texmf.cnf`? Which I assumed incorrectly it seems, the name resolvers would use. http://tex.stackexchange.com/questions/177459/learning-plain-tex-via-contexts-luatex-plain-format context mkiv doesn't use texmf.cnf at all but texmfcnf.lua instead (and also has its own file management subsystem) already right from the start context had process management with 'texmfstart + texexec' (mkii) and 'mtxrun + context' (mkiv) Hans Thank you very much. Does this apply to LuaTeX-plain as well (`luatex.exe --fmt luatex-plain`)? LuaTeX works fine if I set `$TEXMFHOME` (MacOSX) or `%TEXMFHOME%` (Windows) environment variables, or put files in default location `$HOME/texmf` (Mac). But otherwise, I seem to have problems. Will try the to use the `texmf-project/..` and `texmf-fonts/..` directories though. ___ 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] LuaTeX-plain OpenType Features Select
On Wed May 14 00:16:54 2014, Philipp Gesang wrote: ···date: 2014-05-13, Tuesday···from: Hans Hagen··· On 5/13/2014 8:16 PM, Aíre Funvake wrote: On Tue May 13 19:56:34 2014, Hans Hagen wrote: On 5/13/2014 7:48 PM, Aíre Funvake wrote: On Mon May 12 23:12:06 2014, Aíre Funvake wrote: On 2014-05-12, 22:59 , Aíre Funvake wrote: On Mon May 12 22:52:43 2014, Hans Hagen wrote: On 5/12/2014 10:46 PM, Aíre Funvake wrote: On Mon May 12 22:01:04 2014, Hans Hagen wrote: On 5/12/2014 9:48 PM, Aíre Funvake wrote: Hi all, Trying to select slashed zero and lining figures from a font. For Lucida Bright OT, as another example, +scmp works, but not for Charter ITC Pro. But the font that concerns me the most right now, is TheSansMono Condensed... Font URL: http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/ PDF Info: https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf 8---minimal example8 \newdimen\fntcodesz \fntcodesz = 11.5pt \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz \kwr 0123456789 \bye 8--8 sometimes you need to select a script/language combination too or when digits are concerned disable oldstyle I'm too inexperienced to know what that means, or how to apply that. there is some info in font manuals and the context wiki I've opened the font in FontForge, and can see the glyphs I'm looking for, but again, it does not carry much applicable meaning for me. For example, can I use this information?: Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO 1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE ... Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO 1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE ... so you need to select the lnum feature too Was this not it?: ... \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz ... But thanks; will keep on reading; if solution found, will add it here. Regards, Aíre Solution: \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt Thank you! Spoke too soon. The zero.slashed is selected, instead of zero.lf.slashed, so that the zero is smaller than the rest of the lining figure numbers. In desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and it worked fine. `;color=XX` also works with `luaotfload`, but not with LuaTeX-plain from ConTeXt. no, and that is unlikely to show up in context as it makes no sense to specify colors that way .. just use the normal color commands Any ideas would be welcome. Exhausted Google query permutations and most font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt. Can I maybe as a hack switch the glyphs, or something? how about adding mode=node in the plain setup (often not needed in context) Hans Thanks for the reply. Tried `mode=node`. Read about it, but never thought of putting it here!? The correct specification then is: \font\mono = {TheSansMonoCd-W5Regular:% script=latn;+lnum;+zero;mode=node} at \fntsze Confused about the color though. Read most of luatexref-t.pdf, and may have missed it. The only reference (and it works in `luaotfload` under TeXLive2013) is like this: \font\mono = {TheSansMonoCd-W5Regular:% script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze so it looks like oftload adds that (or maybe the latex font definition code) but even then, it's probably implemented someplace else in the latex code Found no other reference to setting color on fonts in LuaTeX-plain (the ConTeXt version). Would love a pointer to the information though. it must be something latex i think (maybe to provide xetex compatibility) but it's definitely not in luatex (nor will be) and also not in context (which has more advanced color support than hex specs anyway) That’s correct. The “color” key triggers a custom callback that tints every glyph of the defined font. It’s part of Luaotfload solely for compatibility for Xetex. IMO it’s not worth the hassle; I recommend using a proper color package instead. Thank you for the kind advice, Philipp. Is there a color package that works with ConTeXt's luatex-plain.fmt that you can suggest? if you want color, use context instead of plain Probably the best suggestion =) Noted. My ultimate goal. Philipp Regards, Aíre ___ 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] LuaTeX-plain File Database Problem
Hi all, Never felt so incompetent in my life -- just cannot get LuaTeX to find fonts or `*.tex` files for use with `\input filename`, or `font\xxx = font-or-filename`. Even though, these commands were executed (all I could find): mktexlsr mtxrun --script base --generate luatools --generate context --generate mtxrun --script fonts --update --force mtxrun --script fonts --udpate --simple Tried putting files in (in the roots and subdirectories): ~/texmf ~/ctx/tex/texmf-project ~/ctx/tex/texmf-local ~/ctx/tex/texmf-fonts Checked if the file could be found: luatools --find-file .tex --- finds it luatools --find-file xxx.otf--- finds it mtxrun --locate .tex--- finds it mtxrun --locate xxx.otf --- finds it kpsewhich/where --- finds only if in `~/texmf` In .tex file (even when files are in `~/texmf` dir): \input or .tex--- no luck \font\myfont = name:--- no luck \font\myfont = file:.otf--- no luck Sorry, but reading and searching for hours did not bring any solu- tion. Not sure if there is a configuration file like `texmf.cnf` or the `context.cnf` that must be modified, or and environment var- iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's OK, if only it would only work). Sorry to spam this list with questions which may seem very fundamental to you. Hope to be able to reciprocate sometime. What am I missing? Thank you kindly, Aíre. ___ 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] LuaTeX-plain File Database Problem
On Thu May 15 23:07:40 2014, Aditya Mahajan wrote: On Thu, 15 May 2014, Aíre Funvake wrote: Hi all, Never felt so incompetent in my life -- just cannot get LuaTeX to find fonts or `*.tex` files for use with `\input filename`, or `font\xxx = font-or-filename`. Even though, these commands were executed (all I could find): mktexlsr mtxrun --script base --generate luatools --generate context --generate mtxrun --script fonts --update --force mtxrun --script fonts --udpate --simple Tried putting files in (in the roots and subdirectories): ~/texmf ~/ctx/tex/texmf-project ~/ctx/tex/texmf-local ~/ctx/tex/texmf-fonts Checked if the file could be found: luatools --find-file .tex --- finds it luatools --find-file xxx.otf--- finds it mtxrun --locate .tex--- finds it mtxrun --locate xxx.otf --- finds it kpsewhich/where --- finds only if in `~/texmf` In .tex file (even when files are in `~/texmf` dir): \input or .tex--- no luck \font\myfont = name:--- no luck \font\myfont = file:.otf--- no luck Sorry, but reading and searching for hours did not bring any solu- tion. Not sure if there is a configuration file like `texmf.cnf` or the `context.cnf` that must be modified, or and environment var- iable like `TEXMFHOME` (default seems to be `~/texmf`, and that's OK, if only it would only work). Sorry to spam this list with questions which may seem very fundamental to you. Hope to be able to reciprocate sometime. What am I missing? Read about TDS (TeX Directory Structure). You need to put files in $TEXMF/tex/plain/ subdirectory for Plain format to find it, or in $TEXMF/tex/generic/ subdirectory for all macro packages (plain, latex, context) to find it. Aditya Thank you, will re-read it forthwith, must have missed something. It just feels wrong to put re-usable project files inside the distribution tree. Still feel like an idiot, if not more so. Can anyone enlighten me then as to the purpose of `$HOME/texmf`, `$TEXMF/tex/texmf-local`, `$TEXMF/tex/texmf-fonts`, etc., considering they are all, for example, configured in the file: `$TEXMF/tex/texmf/web2c/texmf.cnf`? Which I assumed incorrectly it seems, the name resolvers would use. Thanks a lot again, I realise this must be beneath you all, Aíre. ___ 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] LuaTeX-plain OpenType Features Select
On Mon May 12 23:12:06 2014, Aíre Funvake wrote: On 2014-05-12, 22:59 , Aíre Funvake wrote: On Mon May 12 22:52:43 2014, Hans Hagen wrote: On 5/12/2014 10:46 PM, Aíre Funvake wrote: On Mon May 12 22:01:04 2014, Hans Hagen wrote: On 5/12/2014 9:48 PM, Aíre Funvake wrote: Hi all, Trying to select slashed zero and lining figures from a font. For Lucida Bright OT, as another example, +scmp works, but not for Charter ITC Pro. But the font that concerns me the most right now, is TheSansMono Condensed... Font URL: http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/ PDF Info: https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf 8---minimal example8 \newdimen\fntcodesz \fntcodesz = 11.5pt \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz \kwr 0123456789 \bye 8--8 sometimes you need to select a script/language combination too or when digits are concerned disable oldstyle I'm too inexperienced to know what that means, or how to apply that. there is some info in font manuals and the context wiki I've opened the font in FontForge, and can see the glyphs I'm looking for, but again, it does not carry much applicable meaning for me. For example, can I use this information?: Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO 1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE ... Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO 1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE ... so you need to select the lnum feature too Was this not it?: ... \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz ... But thanks; will keep on reading; if solution found, will add it here. Regards, Aíre Solution: \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt Thank you! Spoke too soon. The zero.slashed is selected, instead of zero.lf.slashed, so that the zero is smaller than the rest of the lining figure numbers. In desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and it worked fine. `;color=XX` also works with `luaotfload`, but not with LuaTeX-plain from ConTeXt. Any ideas would be welcome. Exhausted Google query permutations and most font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt. Can I maybe as a hack switch the glyphs, or something? Thanks again regards, Aíre. ___ 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] LuaTeX-plain OpenType Features Select
On Tue May 13 20:57:55 2014, Hans Hagen wrote: On 5/13/2014 8:16 PM, Aíre Funvake wrote: On Tue May 13 19:56:34 2014, Hans Hagen wrote: On 5/13/2014 7:48 PM, Aíre Funvake wrote: On Mon May 12 23:12:06 2014, Aíre Funvake wrote: On 2014-05-12, 22:59 , Aíre Funvake wrote: On Mon May 12 22:52:43 2014, Hans Hagen wrote: On 5/12/2014 10:46 PM, Aíre Funvake wrote: On Mon May 12 22:01:04 2014, Hans Hagen wrote: On 5/12/2014 9:48 PM, Aíre Funvake wrote: Hi all, Trying to select slashed zero and lining figures from a font. For Lucida Bright OT, as another example, +scmp works, but not for Charter ITC Pro. But the font that concerns me the most right now, is TheSansMono Condensed... Font URL: http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/ PDF Info: https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf 8---minimal example8 \newdimen\fntcodesz \fntcodesz = 11.5pt \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz \kwr 0123456789 \bye 8--8 sometimes you need to select a script/language combination too or when digits are concerned disable oldstyle I'm too inexperienced to know what that means, or how to apply that. there is some info in font manuals and the context wiki I've opened the font in FontForge, and can see the glyphs I'm looking for, but again, it does not carry much applicable meaning for me. For example, can I use this information?: Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO 1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE ... Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO 1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE ... so you need to select the lnum feature too Was this not it?: ... \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz ... But thanks; will keep on reading; if solution found, will add it here. Regards, Aíre Solution: \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt Thank you! Spoke too soon. The zero.slashed is selected, instead of zero.lf.slashed, so that the zero is smaller than the rest of the lining figure numbers. In desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and it worked fine. `;color=XX` also works with `luaotfload`, but not with LuaTeX-plain from ConTeXt. no, and that is unlikely to show up in context as it makes no sense to specify colors that way .. just use the normal color commands Any ideas would be welcome. Exhausted Google query permutations and most font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt. Can I maybe as a hack switch the glyphs, or something? how about adding mode=node in the plain setup (often not needed in context) Hans Thanks for the reply. Tried `mode=node`. Read about it, but never thought of putting it here!? The correct specification then is: \font\mono = {TheSansMonoCd-W5Regular:% script=latn;+lnum;+zero;mode=node} at \fntsze Confused about the color though. Read most of luatexref-t.pdf, and may have missed it. The only reference (and it works in `luaotfload` under TeXLive2013) is like this: \font\mono = {TheSansMonoCd-W5Regular:% script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze so it looks like oftload adds that (or maybe the latex font definition code) but even then, it's probably implemented someplace else in the latex code Found no other reference to setting color on fonts in LuaTeX-plain (the ConTeXt version). Would love a pointer to the information though. it must be something latex i think (maybe to provide xetex compatibility) but it's definitely not in luatex (nor will be) and also not in context (which has more advanced color support than hex specs anyway) if you want color, use context instead of plain It's OK, can live without the color for now. Big thanks for the `mode=node`; took me 6hrs to try and fix to no avail. best try out these things with context (and if needed turn on tracing) Probably misplaced intentions, but I want to want to understand TeX properly first (TeXbook, etc.), before moving on to the higher level of ConTeXt. But in the meantime, it would still be nice if good looking documents could be produced, even if it requires much manual tweaking. Started as an assembler programmer, then Forth, then C, etc. Learn best from the bottom up:) Have a good evening, and thank you for your time and attention. ___ 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
Re: [NTG-context] LuaTeX-plain OpenType Features Select
On Mon May 12 22:01:04 2014, Hans Hagen wrote: On 5/12/2014 9:48 PM, Aíre Funvake wrote: Hi all, Trying to select slashed zero and lining figures from a font. For Lucida Bright OT, as another example, +scmp works, but not for Charter ITC Pro. But the font that concerns me the most right now, is TheSansMono Condensed... Font URL: http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/ PDF Info: https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf 8---minimal example8 \newdimen\fntcodesz \fntcodesz = 11.5pt \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz \kwr 0123456789 \bye 8--8 sometimes you need to select a script/language combination too or when digits are concerned disable oldstyle I'm too inexperienced to know what that means, or how to apply that. I've opened the font in FontForge, and can see the glyphs I'm looking for, but again, it does not carry much applicable meaning for me. For example, can I use this information?: Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO 1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE ... Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO 1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE ... Also, under Font Info - Lookups, I see something which may help: ... lookup zeroSlashedZeroinLatinlookup25 { lookupflag 0; sub \zero by \zero.slashed ; sub \zero.oldstyle by \zero.oldstyle.slashed ; sub \zero.alt1 by \zero.alt1.slashed ; sub \zero.lf by \zero.lf.slashed ; sub \zero.basic by \zero.basic.slashed ; } zeroSlashedZeroinLatinlookup25; ... The whole feature set: https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-W5Regular.fea Thanks for your time, Aíre. ___ 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] LuaTeX-plain OpenType Features Select
On Mon May 12 22:52:43 2014, Hans Hagen wrote: On 5/12/2014 10:46 PM, Aíre Funvake wrote: On Mon May 12 22:01:04 2014, Hans Hagen wrote: On 5/12/2014 9:48 PM, Aíre Funvake wrote: Hi all, Trying to select slashed zero and lining figures from a font. For Lucida Bright OT, as another example, +scmp works, but not for Charter ITC Pro. But the font that concerns me the most right now, is TheSansMono Condensed... Font URL: http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/ PDF Info: https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf 8---minimal example8 \newdimen\fntcodesz \fntcodesz = 11.5pt \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz \kwr 0123456789 \bye 8--8 sometimes you need to select a script/language combination too or when digits are concerned disable oldstyle I'm too inexperienced to know what that means, or how to apply that. there is some info in font manuals and the context wiki I've opened the font in FontForge, and can see the glyphs I'm looking for, but again, it does not carry much applicable meaning for me. For example, can I use this information?: Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO 1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE ... Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO 1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE ... so you need to select the lnum feature too Was this not it?: ... \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz ... But thanks; will keep on reading; if solution found, will add it here. Regards, Aíre ___ 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] LuaTeX-plain OpenType Features Select
On 2014-05-12, 22:59 , Aíre Funvake wrote: On Mon May 12 22:52:43 2014, Hans Hagen wrote: On 5/12/2014 10:46 PM, Aíre Funvake wrote: On Mon May 12 22:01:04 2014, Hans Hagen wrote: On 5/12/2014 9:48 PM, Aíre Funvake wrote: Hi all, Trying to select slashed zero and lining figures from a font. For Lucida Bright OT, as another example, +scmp works, but not for Charter ITC Pro. But the font that concerns me the most right now, is TheSansMono Condensed... Font URL: http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/ PDF Info: https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf 8---minimal example8 \newdimen\fntcodesz \fntcodesz = 11.5pt \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz \kwr 0123456789 \bye 8--8 sometimes you need to select a script/language combination too or when digits are concerned disable oldstyle I'm too inexperienced to know what that means, or how to apply that. there is some info in font manuals and the context wiki I've opened the font in FontForge, and can see the glyphs I'm looking for, but again, it does not carry much applicable meaning for me. For example, can I use this information?: Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO 1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE ... Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO 1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE ... so you need to select the lnum feature too Was this not it?: ... \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz ... But thanks; will keep on reading; if solution found, will add it here. Regards, Aíre Solution: \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt Thank you! ___ 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] LuaTeX-Plain and Inline Math
Hi, Sorry to be a pain: %%tst01.tex Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end %% $ luatex --fmt luatex-plain tst01.tex This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) (format=luatex-plain 2014.5.7) 7 MAY 2014 11:48 \write18 enabled. **tst01.tex 8 (../tex/generic/context/luatex/luatex mplib.tex) ! Missing { inserted. to be read again $ l.2 Inline $\sqrt{1.2}$ math. %-- same for $\root n of x$ Works fine with `luatex` and `pdftex` from MacTeXbasic 2013 (+extras) LuaTeX, Version beta-0.76.0-2013061817 (TeX Live 2013) (rev 4627) pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013) Font issue with roots? ___ 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] LuaTeX-Plain and Inline Math
On 2014-05-07, 21:32 , Hans Hagen wrote: On 5/7/2014 7:56 PM, Aíre Funvake wrote: Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end replace this in luatex-math.tex: \def\sqrt {\Uroot 0 221A{}} \def\root#1\of{\Uroot 0 221A{#1}} Worked like a charm, thank you. ___ 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] LuaTeX-Plain and OTF/TTF Fonts
On Tue May 6 21:13:43 2014, Hans Hagen wrote: On 5/6/2014 4:49 PM, Aire Funvake wrote: Dear Group, Thank you for your time. I'm starting out with TeX/ConTeXt, but want to arrive via LuaTeX (`luatex-plain.tex/fmt`). Managed to build, move and use `luatex-plain`. Have the same problem under MacOSX Win7 (here is the Win-specific decription -- `%CTX%` is my ConTeXt root): Setting `OSFONTDIR` before font update and/or before running `luatex-plain`, have no observable effect. So, I do have a manual fix/solution. But is there an easier way? I assume you made a plain format with: mtxrun --script plain --make Then, does this work: mtxrun --script plain luatex-test okay? Hans 8- Hi Hans, No, I made it with `luatex --ini luatex-plain.fmt` and copied the resulting `.fmt` file. But, I executed the first command just now, just to be sure, and then ran the next command: `mtxrun --script plain luatex-test`. Result: \write18 enabled. ... tex/texmf-cache/luatex-cache/generic/fonts/data/luatex-fonts-names.luc)(load luc : c:/ctx/tex/texmf-cache/luatex-cache/generic/fonts/otf/lmroman10-bold.luc)unkn own font in database, run: mtxrun --script fonts --reload --simple ! LuaTeX error ...ntext/tex/generic/context/luatex/luatex-fonts-merged.lua:6213: attempt to index field 'known' (a nil value). to be read again \par l.33 ?Renter After `R`, it did produced `luatex-test.pdf`. Not sure if it looks the way it should ... couple of overfull boxes, narrow third page. Either way, I updated the fonts again as above, checked that it recreated the `luatex-fonts-names.lua` file like before. If I delete the old `luatex-fonts-names.luc`, the next run of `luatex-plain hello.tex` produces the same result. Added the paths to the fonts in `luatex-fonts-names.lua` (minion myriad), ran `luatex-plain hello.tex` again ... and all is fine. Further experimentation: Copied the Source Sans Pro fonts to a subdirectory alongside the `minion` and `myriad` directories, (`%CTX%\tex\texmf-fonts\otf\sourcesans`), and again updated the fonts database(s). Upon inspection of `luatex-fonts-names.lua`, the Source Sans fonts and files are listed, but they *did* have the path prefixed to the font file names, and consequently, I could use them without modifying `luatex-fonts-names.lua`. Thank you for your reply. I'm convinced this is no bug, just my inexperience at play. This is not a crippling problem. I can tackle The TeXbook now. Regards, Aíre Funvake. ___ 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 ___