[NTG-context] Access to fonts in /usr/share/fonts/X11/
ConTeXt is working fine,and I am pretty sure that OSFONTDIR is set correctly I have recently run mtxrun --script fonts --reload and context --generate I am able to see/use fonts in the /usr/share/fonts/opentype and /usr/share/fonts/truetype I can see/use *some* of the fonts in the /usr/share/fonts/X11/ directory: mtxrun --script fonts --list --all --pattern=Symbol* symbol symbol /usr/share/fonts/X11/Type1/Symbol.afm symbolbold symbol /usr/share/fonts/X11/Type1/Symbol.afm ls -l /usr/share/fonts/X11/Type1/Symbol.* /usr/share/fonts/X11/Type1/Symbol.afm - ../../type1/mathml/Symbol.afm /usr/share/fonts/X11/Type1/Symbol.pfb - ../../type1/mathml/Symbol.pfb But I can't see with mtxrun (or use in documents) *many* of the fonts in this directory: mtxrun --script fonts --list --all --pattern=Dorian* no output ls -l /usr/share/fonts/X11/Type1/Dorian* /usr/share/fonts/X11/Type1/DorianCLM-Book.afm /usr/share/fonts/X11/Type1/DorianCLM-Book.pfa I note that the fonts that I can use appear to be symbolic links to a different directory. Thank you very much for advice. Best, Michael I'm using mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2014.04.28 23:24 on linux (ubuntu 14.04) -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Calling fonts (was: Hebrew vowel placement in ConTeXt)
... see message 56606 http://www.mail-archive.com/ntg-context%40ntg.nl/msg56606.html in the list archive. This is not the post-simplefonts solution, but the pre-simplefonts solution. It does allow much better control over all of the fonts that make up the typeface (using ConTeXt terminology). If you set only some Hebrew/Aramaic/Arabic, and especially if you do not need font variants (bold, italic, ...) you might prefer to define a single font. Thank you very much again. This was helpful, and here is my minimal working example: \definefontfeature[hebrew][default][script=hebr,ccmp=yes] \definefont [myhebrew] [SILEOTSR.ttf*hebrew] \setupdirections[bidi=on,method=two] \starttext Here is the first line of the Bible. {\myhebrew בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃ } \stoptext I still have some questions. It took me a long time to understand that \definefont [myhebrew] [SILEOTSR.ttf*hebrew] would use the fontfeature hebrew that I had defined together with the font file SILEOTSR.ttf and assign this pairing to the nickname myhebrew. Rik's example also has sa 1 which I do not understand. \definefontfeature [aramaic] [default][ccmp=yes,script=hebr] \definefont [aramaic] [KeterYG-Medium.ttf*aramaic sa 1] Is the syntax for definefont using * documented somewhere? Is it similar to definefontsynonym at http://wiki.contextgarden.net/Fonts_in_LuaTeX (and below)? I also do not understand the full syntax from the referenced message. Here is my best effort to annotate it, but I would appreciate corrections or additions %% The following defines the fontfeature hebrew %% which can then be applied to a font. %% definefontfeature is documented at %% http://wiki.contextgarden.net/Command/definefontfeature %% and the available features are specific to the font %% e.g. http://www.microsoft.com/typography/otspec/featurelist.htm \definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes] %% I am confused below. When was font:fallback:serif defined? %% Why file: but features= ? %% How will the fontsynonym Serif function? \starttypescript [serif] [ezrasil] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:sileot] [features=hebrew] \stoptypescript %% Still confused \starttypescript [ezrasil] \definetypeface [ezrasil] [rm] [serif] [ezrasil] [default] \quittypescriptscanning \stoptypescript %% Sets the main body to the font %% that has been named and given features \setupbodyfont[ezrasil] %% Would an alternative at this point be to use %% \definefont [myezrasil] [ezrasil] %% to define a single font and then use {\myezrasil בְּרֵאשִׁ֖ית} for short passages \setupalign[r2l] \starttext בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃ \stoptext Thank you again for your guidance. Best, Michael ___ 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] Calling fonts (was: Hebrew vowel placement in ConTeXt)
Wolfgang and Rik Thank you very much. This was exactly what I needed. I'll add these to http://wiki.contextgarden.net/Fonts_in_LuaTeX Michael You can find a description about the options in the old and new fonts manuals: - http://pragma-ade.com/general/manuals/mfonts.pdf - http://pragma-ade.com/general/manuals/fonts-mkiv.pdf Wolfgang Font definition in ConTeXt allows extreme degrees of indirection. There is a lot of flexibility that follows from this. By defining synonyms such as serif and serifbold and using these in the document, the document can be written independently of the actual fonts used. The names are to some degree arbitrary, but used conventionally. There is nothing stopping you from placing a sans font at the end of a chain of serif references. Rik ___ 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] Hebrew vowel placement in ConTeXt. (Rik Kabel)
Thank you very much for the reply. I switched to ConTeXt standalone and now it is working. Best, Michael This works: \usemodule[simplefonts] \definefontfeature[hebrew][default][script=hebr,ccmp=yes] \setmainfont[Ezra SIL SR][features=hebrew] \setupdirections[bidi=on] \starttext בְרֵאשִ֖ית בָרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext BTW what is the \definefontfamily syntax that would work with \setupbodyfont in the new post-simplefonts era? Best, Michael PS Just FYI here is what I had been working with: What platform are you using, what version of Ezra SIL SR (likely 2.51, but worth asking)? I am using linux (ubuntu 14.04) fonts-sil-ezra package Package fonts-sil-ezra: i 2.51-8 trusty 500 (I presume this means version 2.51.) I am using the current ppa:reviczky/context-daily version of context: ConTeXt ver: 2014.03.25 16:58 MKIV beta fmt: 2014.5.1 int: english/english Here is the error message that I was receiving (when I include script=hebr): + /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua)error: /usr/share/texmf/tex/context/base/font-otn.lua:805: attempt to call upvalue 'getprop' (a nil value) May I bump? The following code used to work, but now it gives an error: \usemodule[simplefonts] \definefontfeature[hebrew][default][mode=node,script=hebr,language=dflt,mark=yes,ccmp=yes] \setmainfont[Ezra SIL SR][features=hebrew] \setupdirections[bidi=on] \starttext ?? ?? ? ?? ?? \stoptext The following variant (without script=hebr) compiles but the vowels are misplaced (not centered below the letters), which ccmp=yes (see http://www.microsoft.com/typography/otspec/features_ae.htm#ccmp) is supposed to request: \usemodule[simplefonts] \definefontfeature[hebrew][default][mode=node,language=dflt,mark=yes,ccmp=yes] \setmainfont[Ezra SIL SR][features=hebrew] \setupdirections[bidi=on] \starttext ?? ?? ? ?? ?? \stoptext The problem in definefontfeature seems to be that the feature ccmp=yes is not taking effect, and the feature script=hebr generates an error. Thank you very much for your advice. Michael Michael, Sorry to say, no problem here with your example, and trimming the second line even further to \definefontfeature[hebrew][default][script=hebr,ccmp=yes] still produces results with no errors and proper nikkud alignment (run on a system running Windows 8.1 x64 and ConTeXt standalone 2014-04-28 standard and jit). Similarly, no problem with traditional font definition without simplefonts. ___ 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] Hebrew vowel placement in ConTeXt.
May I bump? The following code used to work, but now it gives an error: \usemodule[simplefonts] \definefontfeature[hebrew][default][mode=node,script=hebr,language=dflt,mark=yes,ccmp=yes] \setmainfont[Ezra SIL SR][features=hebrew] \setupdirections[bidi=on] \starttext בְרֵאשִ֖ית בָרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext The following variant (without script=hebr) compiles but the vowels are misplaced (not centered below the letters), which ccmp=yes (see http://www.microsoft.com/typography/otspec/features_ae.htm#ccmp) is supposed to request: \usemodule[simplefonts] \definefontfeature[hebrew][default][mode=node,language=dflt,mark=yes,ccmp=yes] \setmainfont[Ezra SIL SR][features=hebrew] \setupdirections[bidi=on] \starttext בְרֵאשִ֖ית בָרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext The problem in definefontfeature seems to be that the feature ccmp=yes is not taking effect, and the feature script=hebr generates an error. Thank you very much for your advice. Michael On Thu, May 1, 2014 at 1:28 AM, Michael Ash m...@econs.umass.edu wrote: This seems to have broken in my latest upgrade. The diacriticals (vowels) are no longer centered under the Hebrew lettes. They are now misaligned again. Also, the script=hebr option in definefontfeature now generates an error (see the original code in the second message). The following code works but with misaligned vowels. So the ccmp option doesn't seem to be working anymore. \usemodule[simplefonts] \definefontfeature[hebrew][default][ccmp=yes,mark=yes] \setmainfont[Ezra SIL][features=hebrew] \setupalign[r2l] \starttext בְרֵאשִ֖ית בָרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext Thank you very much for suggestions. Best, Michael On Mon, Jun 17, 2013 at 2:18 PM, Michael Ash m...@econs.umass.edu wrote: There is a nice answer from W. Schuster to the vowel placement question in the archives at http://www.ntg.nl/pipermail/ntg-context/2011/059969.html (I didn't find it because the subject is Misaligned Marks rather than Hebrew vowel placement but it resolves the question. (Idris's suggestions regarding options to \definefontfeature were right on -- thanks) and I also learned more about \setupalign http://wiki.contextgarden.net/Command/setupalign *I am trying to set some text in Hebrew with diacritical marks, and whenever there is a diacritical that's supposed to come in the middle of a letter, all the marks are coming off misaligned, right after the glyph rather than in the middle of it (or wherever they're supposed to be). * Solution: \usemodule[simplefonts] \definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes] \setmainfont[Ezra SIL][features=hebrew] \setupalign[r2l] \starttext בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext Thanks all. On Mon, Jun 17, 2013 at 12:31 PM, Michael Ash m...@econs.umass.eduwrote: Thank you. The unicode text looked good (although reversed left-to-right as I sent it) in my sent mail, and it looked perfect (corrected right-to-left) in your response. But it did not look good in the digest email (all the letters were convered to ?'s). Also it's typesetting fine in ConTeXt except for the vowel placement. Any suggestions there? Thank you again. Yours, Michael On Mon, Jun 17, 2013 at 12:22 PM, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Greetings, Michael, On Mon, 17 Jun 2013 10:15:11 -0600, Michael Ash m...@econs.umass.edu wrote: Is there a standard way to send unicode text to this list? Your Unicode text came through perfectly: \textdir TRT \hebrew לָכֵן חַכּוּ־לִי נְאֻם־יְהוָה לְיוֹם קוּמִי לְעַד כִּי מִשְׁפָּטִי לֶאֱסֹף גּוֹיִם לְקָבְצִי מַמְלָכוֹת לִשְׁפֹּךְ עֲלֵיהֶם זַעְמִי כֹּל חֲרוֹן אַפִּי כִּי בְּאֵשׁ קִנְאָתִי תֵּאָכֵל כָּל־הָאָרֶץ׃ \stoptext Maybe the encoding of your browser/mail-client needs to be set to Unicode (Automatic usually works too). For high-level text-direction control, you may experiment with \righttoleft \lefttoright as well as \setupdirections[bidi=global] \setupdirections[bidi=local] Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash -- Michael Ash, Chair
Re: [NTG-context] Hebrew vowel placement in ConTeXt.
This seems to have broken in my latest upgrade. The diacriticals (vowels) are no longer centered under the Hebrew lettes. They are now misaligned again. Also, the script=hebr option in definefontfeature now generates an error (see the original code in the second message). The following code works but with misaligned vowels. So the ccmp option doesn't seem to be working anymore. \usemodule[simplefonts] \definefontfeature[hebrew][default][ccmp=yes,mark=yes] \setmainfont[Ezra SIL][features=hebrew] \setupalign[r2l] \starttext בְרֵאשִ֖ית בָרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext Thank you very much for suggestions. Best, Michael On Mon, Jun 17, 2013 at 2:18 PM, Michael Ash m...@econs.umass.edu wrote: There is a nice answer from W. Schuster to the vowel placement question in the archives at http://www.ntg.nl/pipermail/ntg-context/2011/059969.html (I didn't find it because the subject is Misaligned Marks rather than Hebrew vowel placement but it resolves the question. (Idris's suggestions regarding options to \definefontfeature were right on -- thanks) and I also learned more about \setupalign http://wiki.contextgarden.net/Command/setupalign *I am trying to set some text in Hebrew with diacritical marks, and whenever there is a diacritical that's supposed to come in the middle of a letter, all the marks are coming off misaligned, right after the glyph rather than in the middle of it (or wherever they're supposed to be). * Solution: \usemodule[simplefonts] \definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes] \setmainfont[Ezra SIL][features=hebrew] \setupalign[r2l] \starttext בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext Thanks all. On Mon, Jun 17, 2013 at 12:31 PM, Michael Ash m...@econs.umass.eduwrote: Thank you. The unicode text looked good (although reversed left-to-right as I sent it) in my sent mail, and it looked perfect (corrected right-to-left) in your response. But it did not look good in the digest email (all the letters were convered to ?'s). Also it's typesetting fine in ConTeXt except for the vowel placement. Any suggestions there? Thank you again. Yours, Michael On Mon, Jun 17, 2013 at 12:22 PM, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Greetings, Michael, On Mon, 17 Jun 2013 10:15:11 -0600, Michael Ash m...@econs.umass.edu wrote: Is there a standard way to send unicode text to this list? Your Unicode text came through perfectly: \textdir TRT \hebrew לָכֵן חַכּוּ־לִי נְאֻם־יְהוָה לְיוֹם קוּמִי לְעַד כִּי מִשְׁפָּטִי לֶאֱסֹף גּוֹיִם לְקָבְצִי מַמְלָכוֹת לִשְׁפֹּךְ עֲלֵיהֶם זַעְמִי כֹּל חֲרוֹן אַפִּי כִּי בְּאֵשׁ קִנְאָתִי תֵּאָכֵל כָּל־הָאָרֶץ׃ \stoptext Maybe the encoding of your browser/mail-client needs to be set to Unicode (Automatic usually works too). For high-level text-direction control, you may experiment with \righttoleft \lefttoright as well as \setupdirections[bidi=global] \setupdirections[bidi=local] Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Configure AUCTeX to run context not texec
Dear all, I have a working version of context mash-laptop:~$ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2013.11.07 15:28 However, I edit files in emacs/AUCTeX and the compile command C-c C-c calls texexec instead of context and so can't compile in emacs. Does anyone know how to change the command from texexec to context in emacs/AUCTeX? Thanks. Best, Michael -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Configure AUCTeX to run context not texec
Thank you very much for the advice on configuring AUCTeX to compile context files. Inserting the following snippet in my .emacs (emacs configuration) file worked. --8---cut here---start-8--- (eval-after-load 'tex '(add-to-list 'TeX-command-list '(ConTeXt context --nonstopmode %t TeX-run-TeX nil (context-mode) :help Run ConTeXt))) --8---cut here---end---8--- This fix is imperfect because even though context runs properly, AUCTeX reports ConTeXt: problems after [0] pages AUCTeX doesn't believe that the file has been compiled and C-c C-c offers to run context again. It is necessary to select View Some googling suggests that the return codes from context are not properly interpreted by AUCTeX. I'm not sure if this is a context non-standardization or an AUCTeX problem. thoughts? Best, Michael On Fri, Nov 8, 2013 at 12:47 PM, Michael Ash m...@econs.umass.edu wrote: Dear all, I have a working version of context mash-laptop:~$ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2013.11.07 15:28 However, I edit files in emacs/AUCTeX and the compile command C-c C-c calls texexec instead of context and so can't compile in emacs. Does anyone know how to change the command from texexec to context in emacs/AUCTeX? Thanks. Best, Michael -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Is there documentation for the memo module?
The code is at http://bay.uchicago.edu/tex-archive/macros/context/contrib/context-letter/tex/context/third/letter/base/t-memo.mkiv Thank you very much. Sincerely, Michael ___ 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] How to update context modules; thank you, write-up, and a couple of questions
I asked how to update context modules. Thank you very much to Marco for guidance, and I would like to write up how I used his advice to update a module without first-setup.sh. (I use a ubuntu/PPA installation of context and hence don't use first-setup.sh, which would make updating easy). 1. I downloaded the current version of the module (letter; http://modules.contextgarden.net/dl/t-letter-2013.07.31.zip in this case) from http://modules.contextgarden.net/ 2. I already have a personal /home/me/texmf directory (or would have created it). I put the zipped module update in this directory and unzipped it preserving the subdirectory structure. 3. I set the environment variable TEXMFHOME to my personal texmf directory (export TEXMFHOME=/home/me/texmf) 4. I ran mtxrun --script update --modules=letter to tell context where to look for the new version of the letter module. I could now tell from the output that the updated version of the letter module was installed, and I also confirmed from the log file: resolversmodules 'letter' is loaded interfacemacros processed mkvi file '/home/me/texmf/tex/context/third/letter/base/s-cor-01.mkvi', delta 36 interfacemacros processed mkvi file '/home/me/texmf/tex/context/third/letter/base/s-cor-01.mkvi', delta 0 (before the update, the lines above read /usr/share/texmf... instead of /home/me/texmf...) I hope that this write-up is helpful to others. Please feel free to comment or amend if I've misunderstood. I have several questions: (1) Is it possible to tell which version of a module is installed, i.e., that I am using the 2013.07.31 version of letter? (The version of context appears in the log file but not the version of the module.) (2) After I update of the entire context installation, how will I tell context to again use the /usr/share/texmf version instead of the personal version? (3) Could I have done this installation into /usr/share/texmf and used sudo mtxrun... to make the updated module work on a multi-user system? (4) Where can I put personal files that I would like context to use regularly. For example I have three personal files: env_letter.tex which I include with \environment env_letter; a pdf file with my logo; and a pdf file with a scan of my signature. Is there a standard directory to hold such files, and how do I let context know where to find them, for example, with mtxrun? (It seems like a waste to copy them to a new location every time I want to write a letter). Thank you very much. Yours, Michael ___ 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] Locating pdf files in the texmf directory structure
I asked: (4) Where can I put personal files that I would like context to use regularly. which Marco kindly answered: In the directory TEXMFHOME points to or texmf-local. This works for my personal file env_letter.tex which is called with \environment env_letter.tex.This file env_letter.tex calls the letter module, sets some correspondenceparameters, etc. But env_letter.tex calls two pdf files with \externalfigure (see below). These two pdf files are also in the directory pointed to by TEXMFHOME but they show up in the finished document as gray state: unknown boxes Does this involve tracking as discussed in http://wiki.contextgarden.net/Command/externalfigure ? Thank you very much for guidance. best, Michael % Define logo for the first page header \defineletterelement[layer][head][example]{% \framed[background=logohead,frame=off,align=left]{% \externalfigure[UMA_Seal_200_Maroon.pdf][height=3.1cm]} } \setupletter[ signature={\externalfigure[signature-blue.pdf]} ] ___ 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] Updating modules with a ppa:reviczky/context-daily installation
I would like to bump my question back into the queue. Thank you for your consideration. I would also like to add: where can I put files that I would like context to see. For example if I have a file env_letter.tex which I include with \environment env_letter that includes a bunch of boilerplate, what is a good directory to put it in? Thanks. Michael On Wed, Jul 31, 2013 at 9:57 AM, Michael Ash m...@econs.umass.edu wrote: I have a question about how to update context modules. In earlier correspondence Question: I am still having a problem with...[the letter module] Answer: This is now fixed... I use a context installation managed by ubuntu/apt-get from the Personal Package Archive *ppa:reviczky/context-daily* ( https://launchpad.net/~reviczky/+archive/context-daily). The current version is: ConTeXt ver: 2013.07.24 14:11 MKIV beta fmt: 2013.7.31 int: english/english How is it possible to (1) tell which version of a module is installed? (2) update a module to the latest version? Because I use the PPA version, I have not used first-setup.sh. I have only a limited understanding of where the context supporting material is maintained. Thank you very much for your guidance. Best, Michael PS Thank you very much for the guidance on the correspondence documentation and the reference line alternatives in the letter module BTW are the values for the alternative key (example, e, c, etc.) documented somewhere? You can look at the predefined arguments in the old manual which is available online: https://bitbucket.org/wolfs/correspondence/downloads. -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Updating modules with a ppa:reviczky/context-daily installation
I have a question about how to update context modules. In earlier correspondence Question: I am still having a problem with...[the letter module] Answer: This is now fixed... I use a context installation managed by ubuntu/apt-get from the Personal Package Archive *ppa:reviczky/context-daily* ( https://launchpad.net/~reviczky/+archive/context-daily). The current version is: ConTeXt ver: 2013.07.24 14:11 MKIV beta fmt: 2013.7.31 int: english/english How is it possible to (1) tell which version of a module is installed? (2) update a module to the latest version? Because I use the PPA version, I have not used first-setup.sh. I have only a limited understanding of where the context supporting material is maintained. Thank you very much for your guidance. Best, Michael PS Thank you very much for the guidance on the correspondence documentation and the reference line alternatives in the letter module BTW are the values for the alternative key (example, e, c, etc.) documented somewhere? You can look at the predefined arguments in the old manual which is available online: https://bitbucket.org/wolfs/correspondence/downloads. ___ 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] Change URL color to match layer
I would like to change the color of URL's in parts of a document. In particular I am using the letter module and would like to have the color of URL's match the color of text in the letterhead and then change to match the color in the main body of the letter. I can set the URL color once with \setupinteraction but I do not see how to change it thereafter. Thank you very much for your guidance. Best, Michael \usemodule[letter] \setupinteraction[state=start,color=black] %% \setupinteraction[state=start,color=red] %% Would like this URL to match the color of the return address (location) \useURL[author-email][mailto:m...@econs.umass.edu][][m...@econs.umass.edu] %% Would like this URL to match the color of the recipient's address (address) \useURL[recipient-email][mailto:addres...@gmail.com][][addres...@gmail.com] %% Would like this URL to match the color of the main body \useURL[knuthbio][ http://en.wikipedia.org/wiki/Donald_Knuth][][http://en.wikipedia.org/wiki/Donald_Knuth ] \setupletter[ name={Michael Ash}, email={\from[author-email]} ] \setupletter[signature={Michael Ash}] \defineletterelement[layer][location][example]{\correspondenceparameter{name} \correspondenceparameter{email}\par} \setupletterlayer[location][alternative=example,color=red] \defineletterelement[layer][address][example]{\correspondenceparameter{toname}\par} \setupletterlayer[address][alternative=example,color=blue] \starttext \startletter[ toname={The Addressee\\\from[recipient-email]}, opening={Dear Addressee:}, closing={Best regards,}] Enjoy \from[knuthbio] \stopletter \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] Change URL color to match layer
I think that I have found an answer: in the \setupinteraction command that manages URL's, hyperlinks, PDF properties, etc. include color=,contrastcolor=, \usemodule[letter] %% Would like this URL to match the color of the return address (location) \useURL[author-email][mailto:aut...@myhome.com][][aut...@myhome.com] %% Would like this URL to match the color of the recipient's address (address) \useURL[recipient-email][mailto:addres...@gmail.com][][addres...@gmail.com] %% Would like this URL to match the color of the main body \useURL[knuthbio][ http://en.wikipedia.org/wiki/Donald_Knuth][][http://en.wikipedia.org/wiki/Donald_Knuth ] \setupinteraction[state=start,color=,contrastcolor=,style=normal] \setupletter[ name={Michael Ash}, email={\from[author-email]} ] \setupletter[signature={Michael Ash}] \defineletterelement[layer][location][example]{\correspondenceparameter{name} \correspondenceparameter{email}\par} \setupletterlayer[location][alternative=example,color=red] \defineletterelement[layer][address][example]{\correspondenceparameter{toname}\par} \setupletterlayer[address][alternative=example,color=blue] \starttext \startletter[ toname={The Addressee\\\from[recipient-email]}, opening={Dear Addressee:}, closing={Best regards,}] Enjoy \from[knuthbio] \stopletter \stoptext On Tue, Jul 30, 2013 at 5:57 PM, Michael Ash m...@econs.umass.edu wrote: I would like to change the color of URL's in parts of a document. In particular I am using the letter module and would like to have the color of URL's match the color of text in the letterhead and then change to match the color in the main body of the letter. I can set the URL color once with \setupinteraction but I do not see how to change it thereafter. Thank you very much for your guidance. Best, Michael \usemodule[letter] \setupinteraction[state=start,color=black] %% \setupinteraction[state=start,color=red] %% Would like this URL to match the color of the return address (location) \useURL[author-email][mailto:m...@econs.umass.edu][][m...@econs.umass.edu] %% Would like this URL to match the color of the recipient's address (address) \useURL[recipient-email][mailto:addres...@gmail.com][][addres...@gmail.com ] %% Would like this URL to match the color of the main body \useURL[knuthbio][ http://en.wikipedia.org/wiki/Donald_Knuth][][http://en.wikipedia.org/wiki/Donald_Knuth ] \setupletter[ name={Michael Ash}, email={\from[author-email]} ] \setupletter[signature={Michael Ash}] \defineletterelement[layer][location][example]{\correspondenceparameter{name} \correspondenceparameter{email}\par} \setupletterlayer[location][alternative=example,color=red] \defineletterelement[layer][address][example]{\correspondenceparameter{toname}\par} \setupletterlayer[address][alternative=example,color=blue] \starttext \startletter[ toname={The Addressee\\\from[recipient-email]}, opening={Dear Addressee:}, closing={Best regards,}] Enjoy \from[knuthbio] \stopletter \stoptext -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Left-justifying the date in the letter module
I am still having a problem with left-justifying the date in letters. The date is towards the left but is aligned several mm to the right of the other text. \usemodule[letter] %% Omit the word Date, attempt to left-justify date (doesn't align perfectly) \setupletterlayer[reference][alternative=c] \defineletterelement[layer][address][example]{\correspondenceparameter{toname}\par} \setupletterlayer[address][alternative=example] \starttext \startletter[ toname={The Addressee}, opening={Dear Addressee:}, closing={Best regards,}, signature={I.M. Sender}] \input knuth \stopletter \stoptext BTW are the values for the alternative key (example, e, c, etc.) documented somewhere? Thank you again. Best, Michael ___ 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] Some questions about the letter module (Wolfgang Schuster)
Thank you very much; this was again very helpful. I am still having a problem with left-justifying the date: \setupletterlayer[reference][alternative=c] does not properly left-justify the date; the date is towards the left but is aligned several mm to the right of the other text. (This was true on the mwe that Wolfgang sent.) BTW are the values for the alternative key (example, e, c, etc.) documented somewhere? Thank you again. Best, Michael Message: 5 Date: Thu, 18 Jul 2013 14:57:33 +0200 From: Wolfgang Schuster schuster.wolfg...@gmail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Subject: Re: [NTG-context] Some questions about the letter module Message-ID: aaec0b67-ca76-4b98-95ed-e3bbc7916...@gmail.com Content-Type: text/plain; charset=windows-1252 Am 18.07.2013 um 03:12 schrieb Michael Ash m...@econs.umass.edu: Dear Wolfgang, Thank you very much. This is very helpful. One note is that to center the footer required \setupletterframe[foot][align=middle] Of course, the alignment is a framed feature. (NOT \setupletterlayer. Per http://wiki.contextgarden.net/Letter#Setup) A couple more questions. (1) is there a more efficient way to indent only the content of the letter: \setupindenting[yes,small] \setuplettersection[opening][indenting=no] \setuplettersection[subject][indenting=no] \setuplettersection[closing][indenting=no] \setuplettersection[signature][indenting=no] You can use \setupletteroptions[indenting=?] which only passed to the content section. (2) The following did not properly left-justify the date (the date was towards the left but was not perfectly aligned with the other left-justified text): \setupletterlayer[reference][alternative=e] This should be alternative c and not e. \usemodule[letter] \setupletterlayer[reference][alternative=c] %\setupletterlayer[reference][alternative=c,list=reference] % default: list=date %\setupletter[reference=\currentdate] \setupletteroptions[indenting={yes,medium,next}] \startletter \input knuth \stopletter 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] Some questions about the letter module
Dear Wolfgang, Thank you very much. This is very helpful. One note is that to center the footer required \setupletterframe[foot][align=middle] (NOT \setupletterlayer. Per http://wiki.contextgarden.net/Letter#Setup) A couple more questions. (1) is there a more efficient way to indent only the content of the letter: \setupindenting[yes,small] \setuplettersection[opening][indenting=no] \setuplettersection[subject][indenting=no] \setuplettersection[closing][indenting=no] \setuplettersection[signature][indenting=no] (2) The following did not properly left-justify the date (the date was towards the left but was not perfectly aligned with the other left-justified text): \setupletterlayer[reference][alternative=e] Thank you again. Best, Michael On Wed, Jul 17, 2013 at 4:08 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 15.07.2013 um 18:34 schrieb Michael Ash m...@econs.umass.edu: Dear all, (This is a repeat post. I apologize if that's rude, but I would appreciate some assistance with the letter module or a pointer to documentation. Thanks.) I am using the letter module that came with context. A sample of a basic letter is below; I have put in dummy for the logo and the signature, but these are working fine when I include the files. I have several questions: 1. to center the footer. You can use the align key but you have to use a valid value, e.g. middle. \setupletterlayer[foot][align=middle] 1. to lower the footer (closer to the bottom of the page) You can control the distance between the margins and the footer block with the x and y keys for \setupletterlayer. \setupletterlayer[foot][y=10pt] 1. to delete the word Date above the date. There is no key for \setupletterstyle etc. to disable/enable the label but you can clear the label text. \setuplettertext[en][date=] 1. to put the date *above *the recipient address (and how in general do I adjust the vertical space here). Move the layer up with the \setupletterlayer command. \setupletterlayer[reference][y=4cm] 1. to left-justify the date. When you want only the date in the reference line without the label use alternative “e” (you don’t even have to clear the label because it isn’t used). \setupletterlayer[reference][alternative=e] \setupletter[reference=\currentdate] 1. to control the foldmarks (for US-letter-size paper, omit, etc.) You can disable the marks with \setupletteroptions[marking=no], the position can be changed with \setupletterlayer[topmark][y=7cm] and \setupletterlayer[topmark][y=14cm]. I have consulted http://wiki.contextgarden.net/Letter but there are many things I don't understand. What is the meaning of alternative=example; With the alternative key you select one of the predefined or used defined styles for the reference, footer etc. blocks. what is the option preset= in \setuplayer[foot] ? When you want to change the origin for a layer from the top left margin to the bottom left you have to change the value of the location and corner keys. As there are few often used combination for the four corners Hans predefined the with the \definelayerpreset command. These predefined setups can be loaded with the preset key which saves some typing. Below is a short example where I set first the arguments myself and later use the predefined setups. \definelayer[test][width=\textwidth,height=\textheight] \starttext \setlayer[test][corner={left,top},location={right,bottom}]{LT 1} \setlayer[test][corner={right,top},location={left,bottom}]{RT 1} \setlayer[test][corner={left,bottom},location={right,top}]{LB 1} \setlayer[test][corner={right,bottom},location={left,top}]{RB 1} \flushlayer[test] \setlayer[test][preset=lefttop]{LT 2} \setlayer[test][preset=righttop]{RT 2} \setlayer[test][preset=leftbottom]{LB 2} \setlayer[test][preset=rightbottom]{RB 2} \flushlayer[test] \stoptext Also is there a better way to manage color? I \definecolor, \startcolor, \stopcolor, but maybe there is a better way to indicate that certain sections of the letter should be in a color. Thanks. All block elements provide color and style keys which can be used to set the font and color for them, e.g. \setupletterlayer[foot][color=blue,style=sans]. Wolfgang -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter https://twitter.com/michaelaoash ___ 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] Some questions about the letter module
Dear all, (This is a repeat post. I apologize if that's rude, but I would appreciate some assistance with the letter module or a pointer to documentation. Thanks.) I am using the letter module that came with context. A sample of a basic letter is below; I have put in dummy for the logo and the signature, but these are working fine when I include the files. I have several questions: 1. to center the footer. 2. to lower the footer (closer to the bottom of the page) 3. to delete the word Date above the date. 4. to put the date *above *the recipient address (and how in general do I adjust the vertical space here). 5. to left-justify the date. 6. to control the foldmarks (for US-letter-size paper, omit, etc.) I have consulted http://wiki.contextgarden.net/Letter but there are many things I don't understand. What is the meaning of alternative=example; what is the option preset= in \setuplayer[foot] ? Also is there a better way to manage color? I \definecolor, \startcolor, \stopcolor, but maybe there is a better way to indicate that certain sections of the letter should be in a color. Thanks. Thank you very much for your guidance. Yours, Michael \usemodule[letter] \setuppapersize[letter][letter] \definecolor[maroon][h=990033] \setuplanguage [en] [date={dd, month, year}] \setupletteroptions [language=english, bodyfont={rm,12pt}, ] % Define logo for the first page \defineletterelement[layer][head][example]% {\framed[background=logohead,height=25mm,frame=off,align=left]% {\externalfigure[dummy]}} % We put our logo in the head \setupletterlayer[head] [alternative=example, x=9mm, y=10mm ] \defineletterelement[layer][foot][example]% {\startcolor[maroon] \ss \tfx The University of Massachusetts is an Affirmative Action/Equal Opportunity Institution. \stopcolor} \setupletterlayer[foot][ align=centerbottom, alternative=example] \setupletter[ name={Michael Ash}, dept={Department of Economics}, building={Thompson Hall}, street={200 Hicks Way}, city={Amherst, MA 01003-9277}, phone={+1-413-545-2590}, fax={+1-413-545-2921}, email={m...@econs.umass.edu} ] \defineletterelement[layer][location][example]% {\setuptabulate[bodyfont=normal] \startcolor[maroon] \starttabulate[|lw(.4\textwidth)|rw(.55\textwidth)|] \NC \tfa \sc University of Massachusetts \NC \NR \NC \tfa \sc Amherst \NC \correspondenceparameter{dept} \NR \NC \NC \NR \NC\correspondenceparameter{building} \NC tel \correspondenceparameter{phone} \NR \NC\correspondenceparameter{street} \NC fax \correspondenceparameter{fax}\NC\NR \NC\correspondenceparameter{city} \NC \correspondenceparameter{email} \NC\NR \stoptabulate \stopcolor} \setupletterlayer[location] [alternative=example, x=42mm, y=4mm ] \starttext \startletter[ toname={Professor Addressee}, toaddress={123 West Home Ave.\\Chicago, IL 60614}, opening={Dear Dr. Addressee,}, subject={A test letter}, closing={Best regards,}, signature={\externalfigure[dummy]\\Michael Ash} ] Thank you very much for the invitation I am truly honored by the opportunity and delighted to attend. I look forward to meeting you. Thank you again for the invitation. \stopletter \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 ___
[NTG-context] Some questions about the letter module
Dear all, I am using the letter module that came with context. A sample of a basic letter is below; I have put in dummy for the logo and the signature, but these are working fine when I include the files. I have several questions: 1. to center the footer. 2. to lower the footer (closer to the bottom of the page) 3. to delete the word Date above the date. 4. to put the date *above *the recipient address (and how in general do I adjust the vertical space here). 5. to left-justify the date. 6. to control the foldmarks (for US-letter-size paper, omit, etc.) I have consulted http://wiki.contextgarden.net/Letter but there are many things I don't understand. What is the meaning of alternative=example; what is the option preset= in \setuplayer[foot] ? Also is there a better way to manage color? I \definecolor, \startcolor, \stopcolor, but maybe there is a better way to indicate that certain sections of the letter should be in a color. Thanks. Thank you very much for your guidance. Yours, Michael \usemodule[letter] \setuppapersize[letter][letter] \definecolor[maroon][h=990033] \setuplanguage [en] [date={dd, month, year}] \setupletteroptions [language=english, bodyfont={rm,12pt}, ] % Define logo for the first page \defineletterelement[layer][head][example]% {\framed[background=logohead,height=25mm,frame=off,align=left]% {\externalfigure[dummy]}} % We put our logo in the head \setupletterlayer[head] [alternative=example, x=9mm, y=10mm ] \defineletterelement[layer][foot][example]% {\startcolor[maroon] \ss \tfx The University of Massachusetts is an Affirmative Action/Equal Opportunity Institution. \stopcolor} \setupletterlayer[foot][ align=centerbottom, alternative=example] \setupletter[ name={Michael Ash}, dept={Department of Economics}, building={Thompson Hall}, street={200 Hicks Way}, city={Amherst, MA 01003-9277}, phone={+1-413-545-2590}, fax={+1-413-545-2921}, email={m...@econs.umass.edu} ] \defineletterelement[layer][location][example]% {\setuptabulate[bodyfont=normal] \startcolor[maroon] \starttabulate[|lw(.4\textwidth)|rw(.55\textwidth)|] \NC \tfa \sc University of Massachusetts \NC \NR \NC \tfa \sc Amherst \NC \correspondenceparameter{dept} \NR \NC \NC \NR \NC\correspondenceparameter{building} \NC tel \correspondenceparameter{phone} \NR \NC\correspondenceparameter{street} \NC fax \correspondenceparameter{fax}\NC\NR \NC\correspondenceparameter{city} \NC \correspondenceparameter{email} \NC\NR \stoptabulate \stopcolor} \setupletterlayer[location] [alternative=example, x=42mm, y=4mm ] \starttext \startletter[ toname={Professor Addressee}, toaddress={123 West Home Ave.\\Chicago, IL 60614}, opening={Dear Dr. Addressee,}, subject={A test letter}, closing={Best regards,}, signature={\externalfigure[dummy]\\Michael Ash} ] Thank you very much for the invitation I am truly honored by the opportunity and delighted to attend. I look forward to meeting you. Thank you again for the invitation. \stopletter \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] Some questions about the letter module
PS Would it be feasible to add a PDF-certificate-signer so that ConTeXt prompts for a passphrase and produces a signed PDF? This would be particularly useful in the letter module but would in fact be welcome throughout. I have been using http://portablesigner.sourceforge.net/ to sign finished PDF files, but it would be neat to have the process integrated in ConTeXt. Best, Michael On Fri, Jul 12, 2013 at 10:11 AM, Michael Ash m...@econs.umass.edu wrote: Dear all, I am using the letter module that came with context. A sample of a basic letter is below; I have put in dummy for the logo and the signature, but these are working fine when I include the files. I have several questions: 1. to center the footer. 2. to lower the footer (closer to the bottom of the page) 3. to delete the word Date above the date. 4. to put the date *above *the recipient address (and how in general do I adjust the vertical space here). 5. to left-justify the date. 6. to control the foldmarks (for US-letter-size paper, omit, etc.) I have consulted http://wiki.contextgarden.net/Letter but there are many things I don't understand. What is the meaning of alternative=example; what is the option preset= in \setuplayer[foot] ? Also is there a better way to manage color? I \definecolor, \startcolor, \stopcolor, but maybe there is a better way to indicate that certain sections of the letter should be in a color. Thanks. Thank you very much for your guidance. Yours, Michael \usemodule[letter] \setuppapersize[letter][letter] \definecolor[maroon][h=990033] \setuplanguage [en] [date={dd, month, year}] \setupletteroptions [language=english, bodyfont={rm,12pt}, ] % Define logo for the first page \defineletterelement[layer][head][example]% {\framed[background=logohead,height=25mm,frame=off,align=left]% {\externalfigure[dummy]}} % We put our logo in the head \setupletterlayer[head] [alternative=example, x=9mm, y=10mm ] \defineletterelement[layer][foot][example]% {\startcolor[maroon] \ss \tfx The University of Massachusetts is an Affirmative Action/Equal Opportunity Institution. \stopcolor} \setupletterlayer[foot][ align=centerbottom, alternative=example] \setupletter[ name={Michael Ash}, dept={Department of Economics}, building={Thompson Hall}, street={200 Hicks Way}, city={Amherst, MA 01003-9277}, phone={+1-413-545-2590}, fax={+1-413-545-2921}, email={m...@econs.umass.edu} ] \defineletterelement[layer][location][example]% {\setuptabulate[bodyfont=normal] \startcolor[maroon] \starttabulate[|lw(.4\textwidth)|rw(.55\textwidth)|] \NC \tfa \sc University of Massachusetts \NC \NR \NC \tfa \sc Amherst \NC \correspondenceparameter{dept} \NR \NC \NC \NR \NC\correspondenceparameter{building} \NC tel \correspondenceparameter{phone} \NR \NC\correspondenceparameter{street} \NC fax \correspondenceparameter{fax}\NC\NR \NC\correspondenceparameter{city} \NC \correspondenceparameter{email} \NC\NR \stoptabulate \stopcolor} \setupletterlayer[location] [alternative=example, x=42mm, y=4mm ] \starttext \startletter[ toname={Professor Addressee}, toaddress={123 West Home Ave.\\Chicago, IL 60614}, opening={Dear Dr. Addressee,}, subject={A test letter}, closing={Best regards,}, signature={\externalfigure[dummy]\\Michael Ash} ] Thank you very much for the invitation I am truly honored by the opportunity and delighted to attend. I look forward to meeting you. Thank you again for the invitation. \stopletter \stoptext -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash ___ 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] Hebrew vowel placement in ConTeXt.
I am new to ConTeXt and very impressed. Much thanks to Hans Hagen and Idris Samawi Hamid for an excellent introduction. I am using the Hebrew Ezra SIL Hebrew Unicode Fonts. My question concerns the placement of the Hebrew vowel points (niqqud). For most letters, the vowel points are placed too far to the left, as opposed to centered directly under the letter. A short example follows. For some of the letters, e.g., Hebrew Letter Alef With Qamats (kind of a t-shaped vowel underneath the alef), the vowel is correctly centered. For others it appears incorrectly to the left. (This may be connected with whether the letter+vowel is packaged as a single character or whether it is being composed on the fly.) I have used the same font in several predecessor programs (the makor package for lamed and the cjhebrew package for LaTeX) and the vowels points are placed correctly. Please let me know if you have any suggestions regarding adjusting the placement of the vowel points. (ConTeXt version info is at the end of the message.) Thank you, Michael \definefontfeature[hebrew][arabic][script=hebr] \definefont[hebrew][name:ezrasil] \starttext Zephania 3:8 includes all of the letters in the Hebrew alphabet, the equivalent of \quotation{The quick brown fox jumps over the lazy dogs} in English. \startalignment[left] \textdir TRT \hebrew לָכֵן חַכּוּ־לִי נְאֻם־יְהוָה לְיוֹם קוּמִי לְעַד כִּי מִשְׁפָּטִי לֶאֱסֹף גּוֹיִם לְקָבְצִי מַמְלָכוֹת לִשְׁפֹּךְ עֲלֵיהֶם זַעְמִי כֹּל חֲרוֹן אַפִּי כִּי בְּאֵשׁ קִנְאָתִי תֵּאָכֵל כָּל־הָאָרֶץ׃ \stoptext Here is the ConTeXt version and operating system: $ uname -a Linux mash-laptop 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:24:54 UTC 2013 i686 i686 i686 GNU/Linux $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2013.06.04 23:52 ___ 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] Hebrew vowel placement in ConTeXt.
PS I see that the Hebrew text did not come through the list email (at least not on the version that I received). Is there a standard way to send unicode text to this list? Best, Michael On Mon, Jun 17, 2013 at 12:07 PM, Michael Ash m...@econs.umass.edu wrote: I am new to ConTeXt and very impressed. Much thanks to Hans Hagen and Idris Samawi Hamid for an excellent introduction. I am using the Hebrew Ezra SIL Hebrew Unicode Fonts. My question concerns the placement of the Hebrew vowel points (niqqud). For most letters, the vowel points are placed too far to the left, as opposed to centered directly under the letter. A short example follows. For some of the letters, e.g., Hebrew Letter Alef With Qamats (kind of a t-shaped vowel underneath the alef), the vowel is correctly centered. For others it appears incorrectly to the left. (This may be connected with whether the letter+vowel is packaged as a single character or whether it is being composed on the fly.) I have used the same font in several predecessor programs (the makor package for lamed and the cjhebrew package for LaTeX) and the vowels points are placed correctly. Please let me know if you have any suggestions regarding adjusting the placement of the vowel points. (ConTeXt version info is at the end of the message.) Thank you, Michael \definefontfeature[hebrew][arabic][script=hebr] \definefont[hebrew][name:ezrasil] \starttext Zephania 3:8 includes all of the letters in the Hebrew alphabet, the equivalent of \quotation{The quick brown fox jumps over the lazy dogs} in English. \startalignment[left] \textdir TRT \hebrew לָכֵן חַכּוּ־לִי נְאֻם־יְהוָה לְיוֹם קוּמִי לְעַד כִּי מִשְׁפָּטִי לֶאֱסֹף גּוֹיִם לְקָבְצִי מַמְלָכוֹת לִשְׁפֹּךְ עֲלֵיהֶם זַעְמִי כֹּל חֲרוֹן אַפִּי כִּי בְּאֵשׁ קִנְאָתִי תֵּאָכֵל כָּל־הָאָרֶץ׃ \stoptext Here is the ConTeXt version and operating system: $ uname -a Linux mash-laptop 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:24:54 UTC 2013 i686 i686 i686 GNU/Linux $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2013.06.04 23:52 -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash ___ 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] Hebrew vowel placement in ConTeXt.
Thank you. The unicode text looked good (although reversed left-to-right as I sent it) in my sent mail, and it looked perfect (corrected right-to-left) in your response. But it did not look good in the digest email (all the letters were convered to ?'s). Also it's typesetting fine in ConTeXt except for the vowel placement. Any suggestions there? Thank you again. Yours, Michael On Mon, Jun 17, 2013 at 12:22 PM, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Greetings, Michael, On Mon, 17 Jun 2013 10:15:11 -0600, Michael Ash m...@econs.umass.edu wrote: Is there a standard way to send unicode text to this list? Your Unicode text came through perfectly: \textdir TRT \hebrew לָכֵן חַכּוּ־לִי נְאֻם־יְהוָה לְיוֹם קוּמִי לְעַד כִּי מִשְׁפָּטִי לֶאֱסֹף גּוֹיִם לְקָבְצִי מַמְלָכוֹת לִשְׁפֹּךְ עֲלֵיהֶם זַעְמִי כֹּל חֲרוֹן אַפִּי כִּי בְּאֵשׁ קִנְאָתִי תֵּאָכֵל כָּל־הָאָרֶץ׃ \stoptext Maybe the encoding of your browser/mail-client needs to be set to Unicode (Automatic usually works too). For high-level text-direction control, you may experiment with \righttoleft \lefttoright as well as \setupdirections[bidi=global] \setupdirections[bidi=local] Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash ___ 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] Hebrew vowel placement in ConTeXt.
There is a nice answer from W. Schuster to the vowel placement question in the archives at http://www.ntg.nl/pipermail/ntg-context/2011/059969.html (I didn't find it because the subject is Misaligned Marks rather than Hebrew vowel placement but it resolves the question. (Idris's suggestions regarding options to \definefontfeature were right on -- thanks) and I also learned more about \setupalign http://wiki.contextgarden.net/Command/setupalign *I am trying to set some text in Hebrew with diacritical marks, and whenever there is a diacritical that's supposed to come in the middle of a letter, all the marks are coming off misaligned, right after the glyph rather than in the middle of it (or wherever they're supposed to be). * Solution: \usemodule[simplefonts] \definefontfeature[hebrew][default][script=hebr,ccmp=yes,mark=yes] \setmainfont[Ezra SIL][features=hebrew] \setupalign[r2l] \starttext בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ \stoptext Thanks all. On Mon, Jun 17, 2013 at 12:31 PM, Michael Ash m...@econs.umass.edu wrote: Thank you. The unicode text looked good (although reversed left-to-right as I sent it) in my sent mail, and it looked perfect (corrected right-to-left) in your response. But it did not look good in the digest email (all the letters were convered to ?'s). Also it's typesetting fine in ConTeXt except for the vowel placement. Any suggestions there? Thank you again. Yours, Michael On Mon, Jun 17, 2013 at 12:22 PM, Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu wrote: Greetings, Michael, On Mon, 17 Jun 2013 10:15:11 -0600, Michael Ash m...@econs.umass.edu wrote: Is there a standard way to send unicode text to this list? Your Unicode text came through perfectly: \textdir TRT \hebrew לָכֵן חַכּוּ־לִי נְאֻם־יְהוָה לְיוֹם קוּמִי לְעַד כִּי מִשְׁפָּטִי לֶאֱסֹף גּוֹיִם לְקָבְצִי מַמְלָכוֹת לִשְׁפֹּךְ עֲלֵיהֶם זַעְמִי כֹּל חֲרוֹן אַפִּי כִּי בְּאֵשׁ קִנְאָתִי תֵּאָכֵל כָּל־הָאָרֶץ׃ \stoptext Maybe the encoding of your browser/mail-client needs to be set to Unicode (Automatic usually works too). For high-level text-direction control, you may experiment with \righttoleft \lefttoright as well as \setupdirections[bidi=global] \setupdirections[bidi=local] Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash -- Michael Ash, Chair, Department of Economics Professor of Economics and Public Policy University of Massachusetts Amherst, MA 01003 Email m...@econs.umass.edu Tel +1-413-545-2590 Twitter @michaelaoash ___ 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 ___