[NTG-context] Increasing the textwidth locally
Dear Hans, Dear Zichu, Thank you very much, All the best, Joas ___ 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] Increasing the textwidth locally
Dear everyone, I am looking for a functionality similar to the \adjustwidth command in LaTeX ables to reduce or increase the \textwidth locally. I know that ConTeXt has \startnarrower, which reduces the \textwidth. But how to increase it? All the best, Joas ___ 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] User-Defined Command With Key-Value Options
Dear everyone, I am currently implementing the old French Bible of David Martin in ConTeXt MkIV. The source code looks like this: \startproduct martin1707 \project bibles % Font settings, page layout, etc. \startbiblebook[number={1}, name={Genéſe}, abbreviation={Gen.}, title={Le premier livre de Moyſe dit la Genéſe}] \startbiblechapter[number={1}] \startbibleverse[number={1}] Au commencement Dieu créa les cieux la terre. \stopbibleverse \stopbiblechapter \stopbiblebook \startbiblebook[number={45}, name={Romains}, abbreviation={Rom.}, title={Epiſtre de ſaint Paul apoſtre aux romains}] \startbiblechapter[number={12}] \startbibleverse[number={1}] Je vous exhorte donc, \bibleaddition{mes} fréres, par les compaſſions de Dieu, que vous préſentiez vos corps en ſacrifice vivant, ſaint, agréable à Dieu, \bibleaddition{qui eſt} vôtre raiſonnable ſervice. \stopbibleverse \startbibleverse[number={2}] Et ne vous conformez point à ce préſent ſiecle, mais ſoyez transformez par le renouvellement de vôtre entendement, afin que vous éprouviez quelle eſt la volonté de Dieu, bonne, agréable, parfaite. \stopbibleverse \stopbiblechapter \stopbiblebook \stopproduct As you may know, the Bible is divided into books. These books are divided into chapters, and the chapters into verses. The purpose of \start(\stop)biblebook, \start(\stop)biblechapter, and \start(\stop)bibleverse is to format the books, chapters, and verses respectively (as the commands \start(\stop)section, \start(\stop)subsection, etc., do). As you see, theses commands are user-defined and take key-value options. My goal is to define their semantics (the way they do the formatting) with Lua. But I do not knwo how to do this. I know a bit about programming, and learning Lua is not a problem for me. Thanking you in advance, All the best.___ 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] Deleting The Blank Before Chapter Titles
Hi, I am customizing my chapters’ style. However, I cannot delete the blank before the printing of chapter titles. I tried: \setuphead [chapter] [before={}] \setuphead [chapter] [before={\blank[none]}] \setuphead [chapter] [before={\blank[back]}] but they do not work. Thank you, Best wishes, Joas.___ 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] Baskervald ADF Virtual Math Fonts
Hello, Replacing certain symbols in a math font with a text font is very easy with the fallback mechanism and the \definefallbackfamily command makes things even simpler. The command \definefallbackfamily seems not to be a typescript-level command. You need a newer version of ConTeXt to get that command. Ok. You may also answer my question: Let us consider the statememt: \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [\check=yes,force=yes] I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs from Baskervald italic having the same code.” But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a. How do you say: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs 0x61-0x7a (text a-z) from Baskervald italic”? For example something like: \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes] Thank you, Joas___ 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] Baskervald ADF Virtual Math Fonts
Hi, Thank you all. The commands of Wolfang work perfectly. The fallback mechanism is even easier than virtual fonts. ConTeXt is truly great. Thank you, Joas.___ 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] Baskervald ADF Virtual Math Fonts
Hello, Replacing certain symbols in a math font with a text font is very easy with the fallback mechanism and the \definefallbackfamily command makes things even simpler. Thank you for your answer. The command \definefallbackfamily seems not to be a typescript-level command. Let us try \definefontfallback. Let us consider the statememt: \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [\check=yes,force=yes] I understand it as: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs from Baskervald italic having the same code.” But how do you map 0x1D44E-0x1D467 of the source font to 0x61-0x7a. How do you say: “Replace the glyphs 0x1D44E-0x1D467 (mathematical a-z) of the source font with the glyphs 0x61-0x7a (text a-z) from Baskervald italic”? For example something like: \definefontfallback [BaskervaldOverPagella] [file:BaskervaldADFStd-Italic] [0x1D44E-0x1D467] [0x61-0x7a] [\check=yes,force=yes] Other question: What do check, force and offset means? Thank you. Best regards, Joas.___ 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] Baskervald ADF Virtual Math Fonts
Hello, I am going to solve my problem here: http://tex.stackexchange.com/questions/123647/from-xelatexs-unicode-math-to-contexts-typescript with virtual math fonts. I use Baskervald ADF instead of Libertine. I was pleased to see that the following files produced effects: Extract from environment file fonts.tex: \startenvironment fonts \starttypescript [math] [fonts] \loadfontgoodies[baskervald-math] \definefontsynonym[MathRoman][file:texgyrepagella-math@baskervald-math] \stoptypescript \definetypeface [fonts] [mm] [math] [fonts] [default] [features=default] \setupbodyfont [fonts, 12pt] \stopenvironment --- Extract from goodies file baskervald-math.lfg: -- return { name = baskervald-math, version = 1.00, comment = Goodies that give math support for the Baskervald ADF font., author = author, copyright = copyrigth, mathematics = { virtuals = { [baskervald-math] = { { name = texgyrepagella-math.otf, features = virtualmath, main = true }, { name = BaskervaldADFStd.otf, features = virtualmath, vector = tex-mr-missing } , { name = BaskervaldADFStd-Italic, vector = tex-it } , { name = BaskervaldADFStd-Bold.otf, vector = tex-bf, skewchar=0x7F } , { name = BaskervaldADFStd-BoldItalic.otf, vector = tex-bi } , { name = corbel.ttf, vector = tex-ss, optional=true }, { name = UbuntuMono-R.ttf, vector = tex-tt, optional=true }, }, } } } - Now I have two questions. The first and most important question is: Where do I define my own vector mapping? Should I modify ConTeXt’s source code in the math-ttv.lua file? How do I define my own baskervald-math.lua and what should I write in it (for example for mapping Pagella’s upright mathematic glyphs to Baskervald’s upright glyphs)? The second question is this. I have the following Project structure: Book (root directory) Book/book.tex (Project file) Book/fonts.tex (environment file) Book/Volume1 (subdirectory) Book/Volume1/volume1.tex (product file) Book/Volume1/Chapter1 (subsubdirectory) Book/Volume1/Chapter1/chapter1.tex (component file) I am forced to put the goodies file baskervald-math.lfg in Book/Volume1/Chapter1. When I put it in Book and compiled chapter1.tex separately ConTeXt failed to find it. What should I do to have the file baskervald-math.lfg in the Book directory and make ConTeXt find it when invoked from Book/Volume1/Chapter1. Best regards, Joas.___ 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] Baskervald ADF Virtual Math Fonts
Hello, Thank you for the answer. if you have a proper opentype math Font… As you know, Baskervald doesn’t come with an open type math version. Moreover the mapping mechanism works well with open type text fonts and is powerful and very general. It’s my prefered way of solving my problem. So I reiterate my questions: Question 1: Where do I define my own vector mapping? Should I modify ConTeXt’s source code in the math-ttv.lua file? How do I define my own baskervald-math.lua and what should I write in it (for example for mapping Pagella’s upright mathematic glyphs to Baskervald’s upright glyphs)? Question 2: I am forced to put the goodies file baskervald-math.lfg in Book/Volume1/Chapter1. When I put it in Book and compiled chapter1.tex separately, ConTeXt failed to find it. What should I do to have the file baskervald-math.lfg in the Book directory and make ConTeXt find it when invoked from Book/Volume1/Chapter1. Thank you. Joas.___ 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 ___