Re: [NTG-context] Big double quotes
On 02/11/2013 11:29 PM, Marco Patzer wrote: On 2013--02--11 Devendra Ghate wrote: I am trying to reproduce as closely as possible the large double quotes in the attached file. Here are two solutions, one uses the delimitedtext mechanism. The quotation marks are not printed within the quoted text, though. The second solution using the annotation module fixes that. \usemodule [annotation] \definesymbol [MyLeftQuote] [\raisebox-10pt\hbox\bgroup\getscaledglyph {2.5} %% scale {Serif} %% font {}\egroup] \definesymbol [MyRightQuote] [\raisebox-10pt\hbox\bgroup\getscaledglyph {2.5} %% scale {Serif} %% font {}\egroup] \setupdelimitedtext [quotation] [left={\symbol[MyLeftQuote]}, right={\symbol[MyRightQuote]}] \defineannotation [quotationTwo] [alternative=command, command=\QuotationCmd] \define[2]\QuotationCmd {\dontleavehmode\symbol[MyLeftQuote]%% \placeannotationcontent\symbol[MyRightQuote]} There is an extra space before the right quote. So I added *\hskip-5pt* before \symbol[MyRightQuote]. Thank you for the solution. Regards, Devendra \starttext \startquotation \input ward \stopquotation \startquotationTwo \input ward \stopquotationTwo \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Big double quotes
Am 11.02.2013 um 20:21 schrieb Devendra Ghate devendra.gh...@gmail.com: There is an extra space before the right quote. So I added *\hskip-5pt* before \symbol[MyRightQuote]. Add \removeunwatedspaces before \symbol to remove the space. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Trademark symbols
Hello, In latex \textregistered gives the Regitered Trademark symbol. How do I get Trademark (TM) and Registered Trademark (encircled R) in ConTeXt? I will be using it with \high to get something like Simulink^® http://www.mathworks.in/products/simulink/ Regards, Devendra ___ 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] ToC - dots distance
On 2013–01–23 Wolfgang Schuster wrote: Out of curiosity: Is possible to set up the new filler mechanism in a way to yield alternating dots like in the TeXbook? default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 alternating look (Knuths' TeXbook style) 1. First chapter . . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller[pavel-0][alterntive=symbol,method=global,width=1em,leftmargin=.5em,rightmargin=.5em,symbol=\clap{.}] \definefiller[pavel-1][pavel-0][align=left] \definefiller[pavel-2][pavel-0][align=middle] […] Very nice. I wikified¹ that code in case someone needs it. Marco [1] http://wiki.contextgarden.net/Table_of_Contents#Alternating_filler_dots signature.asc Description: Digital signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ToC - dots distance
Am 23.01.2013 um 20:10 schrieb ha...@wpb.cz: Hi, I need to change the default distance of dots in ToC using alternative c. Could anybody tell me, how can I achieve this? So it should look like this: default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller [pavel] [alterntive=symbol, %method=global, width=1em, leftmargin=.5em, rightmargin=.5em] \setuplistalternative[c][filler={\filler[pavel]}] \starttext \completecontent[alternative=c] \chapter{First chapter} \chapter{Second chapter} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ToC - dots distance
On 01/24/2013 12:51 AM, Wolfgang Schuster wrote: Am 23.01.2013 um 20:10 schrieb ha...@wpb.cz: Hi, I need to change the default distance of dots in ToC using alternative c. Could anybody tell me, how can I achieve this? So it should look like this: default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller [pavel] [alterntive=symbol, %method=global, width=1em, leftmargin=.5em, rightmargin=.5em] \setuplistalternative[c][filler={\filler[pavel]}] \starttext \completecontent[alternative=c] \chapter{First chapter} \chapter{Second chapter} \stoptext Wolfgang ___ Is that a complete MWE? It doesn't work on ConTeXt ver: 2013.01.10 01:04 MKIV. I get: --- ! Undefined control sequence. system tex error on line 1 in file a.tex: Undefined control sequence ... 1 \definefiller 2 [pavel] 3 [alterntive=symbol, 4 %method=global, Searching the wiki and mailing list also turned zero results for \definefiller. Regards, Devendra If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ToC - dots distance
Am 23.01.2013 um 20:56 schrieb Devendra Ghate devendra.gh...@gmail.com: On 01/24/2013 12:51 AM, Wolfgang Schuster wrote: Am 23.01.2013 um 20:10 schrieb ha...@wpb.cz: Hi, I need to change the default distance of dots in ToC using alternative c. Could anybody tell me, how can I achieve this? So it should look like this: default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller [pavel] [alterntive=symbol, %method=global, width=1em, leftmargin=.5em, rightmargin=.5em] \setuplistalternative[c][filler={\filler[pavel]}] \starttext \completecontent[alternative=c] \chapter{First chapter} \chapter{Second chapter} \stoptext Wolfgang ___ Is that a complete MWE? Yes. It doesn't work on ConTeXt ver: 2013.01.10 01:04 MKIV. You need a newer version, the command is new and provides a high level interface for the \leaders macro. 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] ToC - dots distance
On 01/24/2013 01:35 AM, Wolfgang Schuster wrote: Am 23.01.2013 um 20:56 schrieb Devendra Ghate devendra.gh...@gmail.com: On 01/24/2013 12:51 AM, Wolfgang Schuster wrote: Am 23.01.2013 um 20:10 schrieb ha...@wpb.cz: Hi, I need to change the default distance of dots in ToC using alternative c. Could anybody tell me, how can I achieve this? So it should look like this: default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller [pavel] [alterntive=symbol, %method=global, width=1em, leftmargin=.5em, rightmargin=.5em] \setuplistalternative[c][filler={\filler[pavel]}] \starttext \completecontent[alternative=c] \chapter{First chapter} \chapter{Second chapter} \stoptext Wolfgang ___ Is that a complete MWE? Yes. It doesn't work on ConTeXt ver: 2013.01.10 01:04 MKIV. You need a newer version, the command is new and provides a high level interface for the \leaders macro. This is some serious pace of development. I had just about installed context couple of weeks ago and already I need an update. Thank you. Devendra Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ToC - dots distance
Am 23.01.2013 um 23:11 schrieb Marco Patzer home...@lavabit.com: On 2013–01–23 Wolfgang Schuster wrote: Out of curiosity: Is possible to set up the new filler mechanism in a way to yield alternating dots like in the TeXbook? default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1. First chapter . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 alternating look (Knuths' TeXbook style) 1. First chapter . . . . . . . . . . . 1 2. Second chapter . . . . . . . . . . 10 \definefiller[pavel-0][alterntive=symbol,method=global,width=1em,leftmargin=.5em,rightmargin=.5em,symbol=\clap{.}] \definefiller[pavel-1][pavel-0][align=left] \definefiller[pavel-2][pavel-0][align=middle] \newconditional\PavelState \define\PavelFiller {\ifconditional\PavelState \global\setfalse\PavelState \filler[pavel-1]% \else \global\settrue\PavelState \filler[pavel-2]% \fi} % \define\PavelFiller % {\ifodd\structurelistlocation % does the value alternate? % \filler[pavel-1]% %\else % \filler[pavel-2]% %\fi} \setuplistalternative[c][filler=\PavelFiller] \starttext \completecontent[alternative=c] \dorecurse{10}{\expanded{\chapter{Chapter \recurselevel}}} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta
On 1/4/2013 7:51 AM, Otared Kavian wrote: Dear Michael and Dalyoung, In order to test again and reproduce the problem you encounter I removed my texmf-cache and typeset the example: here is what I observe. --- with \enablemode[lmmath] the \hbar appears and is a math italic « h » with a bar in the top third of the vertical part of the letter --- without \enablemode[lmmath] the \hbar appears and is a roman « h » with a bar in the top third of the vertical part of the letter Your error message seems to indicate some character in texgyretermesmath-regular is not found and points to the file mkiv-base.map is this file present on your context tree? On my installation the file exists but there is no mention of texgyretermesmath-regular… So I am clueless about the issue because all three of us we have updated to LuaTeX, Version beta-0.74.0-2012122517 (rev 4541), ConTeXt ver: 2013.01.02 18:19 MKIV on Mac OS X Mountain Lion. Best regards: OK On 3 janv. 2013, at 15:26, Jeong Dal hak...@me.com wrote: Dear Michael and Otared, After updating ConTeXt to the latest version(2013.01.02.) and run the sample code. \starttext $\hbar$ \stoptext But I also got empty page. If I add either \setupbodyfont[xits] or \enablemode[lmmath], \hbar appeared. I also use Mac OSX mountain lion 64bit, luatex beta 0.74. In the log file, I found the message Missing character:… % … fonts typescripts unknown: library 'loc' (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} … … Missing character: There is no ħ (U+0127) in font texgyretermesmath-regular! backend xmp using file '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml' … % I think that Otared doesn't have this kind of message. Do you have any idea to fix this? It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts. I don't know the reason. Is it a often used math / physics symbol? If so, it probably should end up in the math fonts. (I could load a merged copy of the math font with a regular one but rather not.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MetaPost Animations
Am 01.01.2013 um 15:30 schrieb Jeong Dal hak...@me.com: Dear Wolfgang, Thank you for the explanation and the correction of the code. It works nicely. It also taught me some other things too. I'd like to ask you one more thing. When you update the animation module, would you please concern the location of the menu? I think that it is better to put it at the bottom center of the animation frame in default? Currently, it is located slightly left from the center. This is a bug in context which adds a space for each symbol in a fieldstack (the mechanism which is used to create the animation and which is documented in the metafun manual). I reported it a few days ago on the dev list and hope Hans will fix it in the next beta. 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] MetaPost Animations
Am 30.12.2012 um 14:19 schrieb Jeong Dal hak...@me.com: Dear Troy, The animations are impressive and thank you for sharing the code. In the creation of many pdf for animation, it changes the recurselevel only. I wonder if there is a way to make such kind of animation in ConTeXt using Wolfgang's animation module. Then we can include the animation in PDF output directly. Here is my trial. I modified it as following and got an animation. But it is only good for a few step animation. […] I also tried to simplify the code as following, but it just draw 10 figures not an animation. Is there a way to combine them as an animation? You can use a loop to create the frames, the only thing you have to be aware is how to access the counter loop iteration. In most cases you can get the current iteration of the loop with \recurselevel but this doesn’t work for animation because each frame is saved in a symbol with \definesymbol[frame][code] without expanding the content. To fix this you can expand the content with \expanded{\frame{… \recurselevel …}} or simpler by using “#1” instead of \recurselevel to access the counter. The braces around each frame as in your example are only one method to set the content for each frame (it emulates the \startoverlay and \startcombination input), when you use a loop you have to use \frame{…} or \startframe … \stopframe to set the content for each frame. Example: \usemodule[animation] \setupinteraction[state=start] \starttext \startanimation[menu=yes,framerate=10] \dorecurse{99} {\startframe \definedfont[Mono sa 4]\twodigits{#1}% \stopframe} \stopanimation \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] spacing: units in math
Dear Hans, On 12/19/2012 7:18 PM, Andreas Mang wrote: Hi there, sorry for being such a pain in the neck. Is there going to be a solution considering the spacing problems with the use of units (native mkiv command) in near future (within 2-3 weeks)? If there is none and I am not doing something wrong, I'll add a local work around every time I use units. As this is much work, I'd appreciate if someone told me if this is something that might be fixed soon. If not I'm good - I just need to know. Explanation of my problem: Maybe I am doing something wrong, but in the resulting document the spacing is bigger in math mode then in the text mode in case I use \units{...}. In particular, the distance for the decimal separator is as if I would type $1,2$ instead of $1{,}2$ (example: $\units{1,2}$).. can you try \appendtoks \disablemathpunctuation \to \everyunits Thanks for looking into this. The problem with the decimal separator is solved. You made my day with just 4 commands! Just that you know: I still observe a tiny difference in the blank space between numbers and times symbol (\times) when comparing math mode to standard text mode (minimal example below). AFAIK this does not make a difference. If I find the time i might just put every unit stuff into math mode (for consistency reasons). So my document is ready for being published (in this respect). It just still lacks content :) Happy holidays to all of you. Andreas % MINIMAL EXAMPLE \appendtoks \disablemathpunctuation \to \everyunits \starttext \unit{1,2e3 meter} $\unit{1,2e3 meter}$ \stoptext % MINIMAL EXAMPLE ___ 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] spacing: units in math
On 12/21/2012 7:36 PM, Andreas Mang wrote: Just that you know: I still observe a tiny difference in the blank space between numbers and times symbol (\times) when comparing math mode to standard text mode (minimal example below). AFAIK this does not make a difference. If I find the time i might just put every unit stuff into math mode (for consistency reasons). So my document is ready for being published (in this respect). It just still lacks content :) math spacing will always be somewhat different - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Regular expressions in Lua.
On 12/15/2012 2:10 AM, Andre Caldas wrote: Hello, Hans! I had just managed to do it. I will switch to yours instead of mine... I don't have any experience in Lua. Sorry for bothering with such easy requests... As ranges are sometimes handy I've added a parser to the core (no upload yet, will happen sometime next week) -- utilities.parsers.stepper(1,3-,5,function(i) print(,i) end) -- utilities.parsers.stepper(1-3,6,7) -- utilities.parsers.stepper(1-3,6,7,function(i) print(,i) end) -- utilities.parsers.stepper(1:3,6,7) -- utilities.parsers.stepper( 1 : 3, ,7 ) -- utilities.parsers.stepper(1-2,5-6,25-*,30) So: - * as optional final value symbol - optional spaces around : and, and around list - - as well as : - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ConTeXt standalone broken (texlua)
The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd): /usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt standalone broken (texlua)
On Thu, Dec 13, 2012 at 10:55 AM, Alan BRASLAU alan.bras...@cea.fr wrote: The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd): /usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale checking... -- luigi ___ 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] ConTeXt standalone broken (texlua)
On Thu, Dec 13, 2012 at 10:59 AM, luigi scarso luigi.sca...@gmail.com wrote: On Thu, Dec 13, 2012 at 10:55 AM, Alan BRASLAU alan.bras...@cea.fr wrote: The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd): /usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale checking... Linux luigicasa-K55VD 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux is ok -- luigi ___ 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] ConTeXt standalone broken (texlua)
On 12/13/2012 10:55 AM, Alan BRASLAU wrote: The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd): /usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale From the internet, I can deduce that this means that the runtime libc does not match the compile time libc. In particular, this seems relevant: http://comments.gmane.org/gmane.os.freebsd.devel.ports/105182 Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt standalone broken (texlua)
On Thu, 13 Dec 2012 11:20:49 +0100 Taco Hoekwater t...@elvenkind.com wrote: On 12/13/2012 10:55 AM, Alan BRASLAU wrote: The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd): /usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale From the internet, I can deduce that this means that the runtime libc does not match the compile time libc. In particular, this seems relevant: http://comments.gmane.org/gmane.os.freebsd.devel.ports/105182 Best wishes, Taco Yes, I forced a recompile locally (I am running 9.0, Mojca must have compiled on 9.1) and then modified first-setup.sh NOT to re-sync luatex from the standalone server and the update then succeeded. Strangely, the binary on the server worked yesterday. However, since then, an update of the ports updated pcre, notably, and this requires a recompile of many binaries. I suspect that this is the problem. On TeXlive, many precautions are taken to produce universal binaries (i.e. freebsd 7.2) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt standalone broken (texlua)
On Thu, Dec 13, 2012 at 11:46 AM, Alan BRASLAU wrote: On Thu, 13 Dec 2012 11:20:49 +0100 Taco Hoekwater t...@elvenkind.com wrote: On 12/13/2012 10:55 AM, Alan BRASLAU wrote: The ConTeXt standalone is broken, running first-setup.sh (amd64-freebsd): /usr/local/context/beta/bin/texlua: Undefined symbol _ThreadRuneLocale From the internet, I can deduce that this means that the runtime libc does not match the compile time libc. In particular, this seems relevant: http://comments.gmane.org/gmane.os.freebsd.devel.ports/105182 Best wishes, Taco Yes, I forced a recompile locally (I am running 9.0, Mojca must have compiled on 9.1) True. FreeBSD 9.1-PRERELEASE and then modified first-setup.sh NOT to re-sync luatex from the standalone server and the update then succeeded. Strangely, the binary on the server worked yesterday. However, since then, an update of the ports updated pcre, notably, and this requires a recompile of many binaries. I suspect that this is the problem. Interesting. On TeXlive, many precautions are taken to produce universal binaries (i.e. freebsd 7.2) But on the other hand, TeX Live has a much wider audience than ConTeXt does. I should check the logs, but I don't recall seeing that many users on (k)freebsd, and the ones who have it, use a recent version. I happily leave compilation of FreeBSD to you if my binaries don't work ;) Mojca ___ 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] Q about hangaround commands
On Wed, Nov 3, 2010 at 7:51 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 03.11.2010 um 05:47 schrieb Vladimir Lomov: Hi. Some answers I found myself :) P.S. I have feeling that feature like 'hangaround' doesn't fit well with tex (page layout ...?) model. Hangaround is a very robust command and works in more cases than \placefigure[left] but you have a conflict with the \item command which place the itemize symbol before the following text which is indented in your case. \unprotect \def\stophangaround {\endgraf \egroup} \def\starthangaround {\dosingleempty\dostarthangaround} \def\dostarthangaround[#1]% {\doifelse{#1}{\v!right} {\dostartrighthangaround} {\dostartlefthangaround }} \def\dostartlefthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent\nextboxwd \hangafter-\noflines \llap{\flushnextbox}\ignorespaces} \hbox} \def\dostartrighthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent-\nextboxwd \hangafter-\noflines \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces} \hbox} \protect \starttext \starthangaround{\externalfigure[cow][scale=500]} \input tufte \stophangaround \blank \starthangaround[right]{\externalfigure[cow][scale=500]} \input tufte \stophangaround \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Dear ConTeXt list, I apologize for digging up an old thread. I was searching for \starthangaround[right] and found this thread. I tried the code that Wolfgang gave in this thread but I guess something has changed since then, because it does not work with latest minimals. Would it be possible to get (a working) version of \starthangaround[right]? I think it even would be nice to have it in the core. As a minimal nonworking example, see the email from Wolgang in this thread. With best regards, Mikael ___ 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] Q about hangaround commands
Hi Mikael, The example given by Wolfgang works fine for me with mkii, but not in mkiv: probably something has changed in mkiv, for example the way [scale=500] must be used in mkiv. Best regards: OK On 6 déc. 2012, at 10:58, Mikael P. Sundqvist mic...@gmail.com wrote: On Wed, Nov 3, 2010 at 7:51 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 03.11.2010 um 05:47 schrieb Vladimir Lomov: Hi. Some answers I found myself :) P.S. I have feeling that feature like 'hangaround' doesn't fit well with tex (page layout ...?) model. Hangaround is a very robust command and works in more cases than \placefigure[left] but you have a conflict with the \item command which place the itemize symbol before the following text which is indented in your case. \unprotect \def\stophangaround {\endgraf \egroup} \def\starthangaround {\dosingleempty\dostarthangaround} \def\dostarthangaround[#1]% {\doifelse{#1}{\v!right} {\dostartrighthangaround} {\dostartlefthangaround }} \def\dostartlefthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent\nextboxwd \hangafter-\noflines \llap{\flushnextbox}\ignorespaces} \hbox} \def\dostartrighthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent-\nextboxwd \hangafter-\noflines \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces} \hbox} \protect \starttext \starthangaround{\externalfigure[cow][scale=500]} \input tufte \stophangaround \blank \starthangaround[right]{\externalfigure[cow][scale=500]} \input tufte \stophangaround \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Dear ConTeXt list, I apologize for digging up an old thread. I was searching for \starthangaround[right] and found this thread. I tried the code that Wolfgang gave in this thread but I guess something has changed since then, because it does not work with latest minimals. Would it be possible to get (a working) version of \starthangaround[right]? I think it even would be nice to have it in the core. As a minimal nonworking example, see the email from Wolgang in this thread. With best regards, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Q about hangaround commands
On Thu, Dec 6, 2012 at 11:44 AM, Otared Kavian ota...@gmail.com wrote: Hi Mikael, The example given by Wolfgang works fine for me with mkii, but not in mkiv: probably something has changed in mkiv, for example the way [scale=500] must be used in mkiv. Best regards: OK On 6 déc. 2012, at 10:58, Mikael P. Sundqvist mic...@gmail.com wrote: On Wed, Nov 3, 2010 at 7:51 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 03.11.2010 um 05:47 schrieb Vladimir Lomov: Hi. Some answers I found myself :) P.S. I have feeling that feature like 'hangaround' doesn't fit well with tex (page layout ...?) model. Hangaround is a very robust command and works in more cases than \placefigure[left] but you have a conflict with the \item command which place the itemize symbol before the following text which is indented in your case. \unprotect \def\stophangaround {\endgraf \egroup} \def\starthangaround {\dosingleempty\dostarthangaround} \def\dostarthangaround[#1]% {\doifelse{#1}{\v!right} {\dostartrighthangaround} {\dostartlefthangaround }} \def\dostartlefthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent\nextboxwd \hangafter-\noflines \llap{\flushnextbox}\ignorespaces} \hbox} \def\dostartrighthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent-\nextboxwd \hangafter-\noflines \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces} \hbox} \protect \starttext \starthangaround{\externalfigure[cow][scale=500]} \input tufte \stophangaround \blank \starthangaround[right]{\externalfigure[cow][scale=500]} \input tufte \stophangaround \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Dear ConTeXt list, I apologize for digging up an old thread. I was searching for \starthangaround[right] and found this thread. I tried the code that Wolfgang gave in this thread but I guess something has changed since then, because it does not work with latest minimals. Would it be possible to get (a working) version of \starthangaround[right]? I think it even would be nice to have it in the core. As a minimal nonworking example, see the email from Wolgang in this thread. With best regards, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ Hi Otared, thank you for your answer. I work in mkiv, so I have to wait for a fix if there will be one. (I work in a two-column document, so \placefigure[right]... does not work, it seems, otherwise I could have used that) Best regards, Mikael ___ 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] Q about hangaround commands
On 12/6/2012 10:58 AM, Mikael P. Sundqvist wrote: On Wed, Nov 3, 2010 at 7:51 AM, Wolfgang Schuster schuster..wolfg...@googlemail.com mailto:schuster.wolfg...@googlemail.com wrote: Am 03.11.2010 um 05:47 schrieb Vladimir Lomov: Hi. Some answers I found myself :) P.S. I have feeling that feature like 'hangaround' doesn't fit well with tex (page layout ...?) model. Hangaround is a very robust command and works in more cases than \placefigure[left] but you have a conflict with the \item command which place the itemize symbol before the following text which is indented in your case. \unprotect \def\stophangaround {\endgraf \egroup} \def\starthangaround {\dosingleempty\dostarthangaround} \def\dostarthangaround[#1]% {\doifelse{#1}{\v!right} {\dostartrighthangaround} {\dostartlefthangaround }} \def\dostartlefthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent\nextboxwd \hangafter-\noflines \llap{\flushnextbox}\ignorespaces} \hbox} \def\dostartrighthangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxht\strutht \nextboxdp\strutdp \hangindent-\nextboxwd \hangafter-\noflines \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces} \hbox} \protect \starttext \starthangaround{\externalfigure[cow][scale=500]} \input tufte \stophangaround \blank \starthangaround[right]{\externalfigure[cow][scale=500]} \input tufte \stophangaround \stoptext as mkiv has a starthangaround but uses a different parameter handler, this works: \unexpanded\def\starthangaround {\dontleavehmode\bgroup \dosingleempty\spac_hanging_around_start} \def\spac_hanging_around_start[#1]% {\edef\m_spac_hanging_location{#1}% \dowithnextboxcs\spac_hanging_around_finish\hbox} \def\spac_hanging_around_finish {\scratchdistance\directhangingparameter\c!distance\relax \ifdim\ht\nextbox\strutht \setbox\nextbox\tbox{\box\nextbox}% \fi \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \ht\nextbox\strutht \dp\nextbox\strutdp \hangafter-\noflines \scratchwidth\dimexpr\wd\nextbox+\scratchdistance\relax \ifx\m_spac_hanging_location\v!right \hangindent-\scratchwidth \rlap{\hskip\dimexpr\hsize-\wd\nextbox\relax\box\nextbox}% \else \hangindent\scratchwidth \llap{\box\nextbox\hskip\scratchdistance}% \fi \ignorespaces} i adapted the core code Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl mailto: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 ___ Dear ConTeXt list, I apologize for digging up an old thread. I was searching for \starthangaround[right] and found this thread. I tried the code that Wolfgang gave in this thread but I guess something has changed since then, because it does not work with latest minimals. Would it be possible to get (a working) version of \starthangaround[right]? I think it even would be nice to have it in the core. As a minimal nonworking example, see the email from Wolgang in this thread. With best regards, Mikael ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
Re: [NTG-context] \not\in doesn't work properly
On Mon, Dec 03, 2012 at 09:07:43PM +0100, Hans Hagen wrote: On 11/30/2012 10:26 AM, Jeong Dal wrote: Hi, After updating ConTeXt, math command '\not\in' is not shown properly. For example, $a \not\eq b$ is good. but $a \not\in A$ shows two symbols separately. I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012) ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english I assume that you use lm ... before I start looking into it I'd like to know Khaleds point of view on this. The main issue here is that \not in was largely a hack in CM fonts, the glyph was specially crafted so that it overlays the next symbol by having zero width and -ve right side bearing and it was centered over equal and similar symbols, anything with different width would not look good. This can't be relied on with OpenType fonts mainly because we don't control all the fonts and since U+0338 is a combining mark it tends to have -ve left side bearing (the opposite of CM). Previously I thought it should be handled as special math accent that don't get shifted above, but this didn't work because accent noads do not inherit the spacing of their nuclei, and changing this is not simple AFAICT. When I checked Word it had no notion of negations either, you can only use pre-composed negated symbols (but accents respect the spacing of its accentee, BTW). The solution currently used by unicode-math package is to look ahead and see if the next symbol after \not has a precomposed negated form and use it (such a list can be obtained by checking Unicode characters that decompose to something + U+0338), else just output U+0338. This probably can be even enhanced by inserting a kern between \not and the next symbol that would center their bounding boxes together, to handle cases why no precomposed symbol exists. My be we need a new primitive \Unegation that would do this in the engine? Regards, Khaled ___ 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] \not\in doesn't work properly
On Tue, Dec 4, 2012 at 4:18 PM, Khaled Hosny khaledho...@eglug.org wrote: On Mon, Dec 03, 2012 at 09:07:43PM +0100, Hans Hagen wrote: On 11/30/2012 10:26 AM, Jeong Dal wrote: Hi, After updating ConTeXt, math command '\not\in' is not shown properly. For example, $a \not\eq b$ is good. but $a \not\in A$ shows two symbols separately. I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012) ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english I assume that you use lm ... before I start looking into it I'd like to know Khaleds point of view on this. The main issue here is that \not in was largely a hack in CM fonts, the glyph was specially crafted so that it overlays the next symbol by having zero width and -ve right side bearing and it was centered over equal and similar symbols, anything with different width would not look good. If I recall correctly, a glyph with zero width give an invalid pdf/a-1. -- luigi ___ 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] \not\in doesn't work properly
On 12/4/2012 4:18 PM, Khaled Hosny wrote: The main issue here is that \not in was largely a hack in CM fonts, the glyph was specially crafted so that it overlays the next symbol by having zero width and -ve right side bearing and it was centered over equal and similar symbols, anything with different width would not look good. ok, so officially it has zero width This can't be relied on with OpenType fonts mainly because we don't control all the fonts and since U+0338 is a combining mark it tends to have -ve left side bearing (the opposite of CM). ah, ok Previously I thought it should be handled as special math accent that don't get shifted above, but this didn't work because accent noads do not inherit the spacing of their nuclei, and changing this is not simple AFAICT. When I checked Word it had no notion of negations either, you can only use pre-composed negated symbols (but accents respect the spacing of its accentee, BTW). The solution currently used by unicode-math package is to look ahead and see if the next symbol after \not has a precomposed negated form and use it (such a list can be obtained by checking Unicode characters that decompose to something + U+0338), else just output U+0338. This probably can be even enhanced by inserting a kern between \not and the next symbol that would center their bounding boxes together, to handle cases why no precomposed symbol exists. My be we need a new primitive \Unegation that would do this in the engine? we already have some mechanisms that deal with such issues so some kind of support is doable (if really needed) concerning the bug reports ... % \setupbodyfont[dejavu] % uses xits \enablemode[lmmath] \starttext % \imply : undefined % \notin : no virtual char \startformula \hbox{not = :} \not= \stopformula \startformula \hbox{notin :} \notin \stopformula \startformula \hbox{longrightarrow :} \Longrightarrow \stopformula \startformula \hbox{not in :} \not\in \stopformula \startformula \hbox{iff:} \iff\stopformula \startformula \hbox{mapsto :} \mapsto \stopformula \stoptext afaik \imply was never defined to start with; \notin needs a virtual glyph in the lm definitions; the rest seems to work ok I'll add a vf \notin and also \imply Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problematic Nightly (2012.12.01 13:03)
Hey list, I'm having trouble getting my book to build with nightly 2012.12.01 13:03. This is the error I am receiving: ! Math error: parameter \Umathquad\displaystyle is not set. \textmath ...\normalstartimath #1\normalstopimath \endgroup \fi \symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup \symb_place_retry ...name \symb_place_indeed {:#1} \else #1\fi \symb_place_normal_c ...lace_retry \currentsymbol \fi \symb_place_normal_b ...else \symb_place_normal_c \fi \symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup ... l.16 T o encourage contributors to refine their ideas, think them through, an... E ? You want to edit file Preface/Preface.tex at line 16 This is the file it is referring to. I don't see anything unusual on line 16: https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Preface/Preface.tex PS Please cc me, as I am not currently subscribed on the list currently. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Euler Constant and limit
On Sun, 2012-11-25 at 22:17 +0100, Wolfgang Schuster wrote: You have to define a typeface and enable it but Latin Modern as text font with patella etc. for math doesn’t look very nice. \definetypeface[mainface][rm][serif][modern] [default][designsize=auto] \definetypeface[mainface][ss][sans] [modern] [default][designsize=auto] \definetypeface[mainface][tt][mono] [modern] [default][designsize=auto] \definetypeface[mainface][mm][math] [pagella] \setupbodyfont[mainface] So that would define a typeface for Latin Modern as the main body text and Pagella for math? So any time one typesets formulas or uses \math, it will automatically come out as Pagella? If that is the case, it didn't seem to work. I added the following to my environment, but the typesetting of formulae did not change: ... % Font to use for math... \definetypeface[mainface][mm][math][pagella] ... In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula Works for me (Version 2012.11.23). It's probably the font I am using. BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text? I haven't any explanation. I just thought that that was how you were suppose to do it from reading the manuals. How should it be? \setupbodyfont[pagella] \starttext left \math{1 + 2 = 3} middle \m{\Eulerconst} right % \math and \m are synonyms \blank before \startformula 1 + 2 = 3release a new \stopformula after \stoptext Wolfgang Sorry Wolfgang, you lost me. What should the following have been written as? \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Euler Constant and limit
Am 27.11.2012 um 07:39 schrieb Kip Warner k...@thevertigo.com: On Sun, 2012-11-25 at 22:17 +0100, Wolfgang Schuster wrote: You have to define a typeface and enable it but Latin Modern as text font with patella etc. for math doesn’t look very nice. \definetypeface[mainface][rm][serif][modern] [default][designsize=auto] \definetypeface[mainface][ss][sans] [modern] [default][designsize=auto] \definetypeface[mainface][tt][mono] [modern] [default][designsize=auto] \definetypeface[mainface][mm][math] [pagella] \setupbodyfont[mainface] So that would define a typeface for Latin Modern as the main body text and Pagella for math? So any time one typesets formulas or uses \math, it will automatically come out as Pagella? If that is the case, it didn't seem to work. I added the following to my environment, but the typesetting of formulae did not change: ... % Font to use for math... \definetypeface[mainface][mm][math][pagella] Better define a complete set which includes also serif and sans. Afterwards you have to enable it with \setupbodyfont[…]. In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula Works for me (Version 2012.11.23). It's probably the font I am using. BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text? I haven't any explanation. I just thought that that was how you were suppose to do it from reading the manuals. How should it be? \setupbodyfont[pagella] \starttext left \math{1 + 2 = 3} middle \m{\Eulerconst} right % \math and \m are synonyms \blank before \startformula 1 + 2 = 3release a new \stopformula after \stoptext Wolfgang Sorry Wolfgang, you lost me. What should the following have been written as? \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula \placeformula[formula:Limit of Verhulst equation] \startformula \lim_{t\to\infty} P(t) = K. \stopformula Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problematic Nightly (2012.11.23 17:35)
Hey list, I'm having trouble getting my book to build with nightly 2012.11.23 17:35. This is the error I am receiving which I do not understand: ! Math error: parameter \Umathquad\displaystyle is not set. \textmath ...\normalstartimath #1\normalstopimath \endgroup \fi \symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup \symb_place_retry ...name \symb_place_indeed {:#1} \else #1\fi \symb_place_normal_c ...lace_retry \currentsymbol \fi \symb_place_normal_b ...else \symb_place_normal_c \fi \symb_place_indeed ...name \??symbol #1\endcsname \relax \endgroup ... l.16 T o encourage contributors to refine their ideas, think them through, an... ? You want to edit file Preface/Preface.tex at line 22 This is the file it is referring to. I don't see anything unusual on line 22: https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Preface/Preface.tex PS Please cc me, as I am not on the list currently. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Euler Constant and limit
Am 25.11.2012 um 02:13 schrieb Kip Warner k...@thevertigo.com: Hey list, I am trying to typeset the Verhulst equation which contains a Euler constant which I cannot get to display correctly: \placeformula[formula:Verhulst equation] \startformula \math{P(t) = \frac{K P_0 \Eulerconst^{rt}} {K + P_0(\Eulerconst^{r t} - 1)}} \stopformula The location for the \Eulerconst just shows up blank with nothing there, so I am assuming this is the wrong command. I am using ConTeXt 2012.11.16 under Ubuntu Precise. You need a font which has the symbol, e.g. Cambria or Lucida OT. In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula Works for me (Version 2012.11.23). BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text? 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] Euler Constant and limit
On Sun, 2012-11-25 at 10:37 +0100, Wolfgang Schuster wrote: You need a font which has the symbol, e.g. Cambria or Lucida OT. Hey Wolfgang. Thanks for pointing that out. I had suspected as much, which leads me to my next question: What is the setup for selecting a new font, but just for math? In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula Works for me (Version 2012.11.23). It's probably the font I am using. BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text? I haven't any explanation. I just thought that that was how you were suppose to do it from reading the manuals. How should it be? -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Euler Constant and limit
Am 25.11.2012 um 21:46 schrieb Kip Warner k...@thevertigo.com: On Sun, 2012-11-25 at 10:37 +0100, Wolfgang Schuster wrote: You need a font which has the symbol, e.g. Cambria or Lucida OT. Hey Wolfgang. Thanks for pointing that out. I had suspected as much, which leads me to my next question: What is the setup for selecting a new font, but just for math? You have to define a typeface and enable it but Latin Modern as text font with patella etc. for math doesn’t look very nice. \definetypeface[mainface][rm][serif][modern] [default][designsize=auto] \definetypeface[mainface][ss][sans] [modern] [default][designsize=auto] \definetypeface[mainface][tt][mono] [modern] [default][designsize=auto] \definetypeface[mainface][mm][math] [pagella] \setupbodyfont[mainface] In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula Works for me (Version 2012.11.23). It's probably the font I am using. BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text? I haven't any explanation. I just thought that that was how you were suppose to do it from reading the manuals. How should it be? \setupbodyfont[pagella] \starttext left \math{1 + 2 = 3} middle \m{\Eulerconst} right % \math and \m are synonyms \blank before \startformula 1 + 2 = 3 \stopformula after \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Euler Constant and limit
Am 25.11.2012 um 21:46 schrieb Kip Warner k...@thevertigo.com: On Sun, 2012-11-25 at 10:37 +0100, Wolfgang Schuster wrote: You need a font which has the symbol, e.g. Cambria or Lucida OT. Hey Wolfgang. Thanks for pointing that out. I had suspected as much, which leads me to my next question: What is the setup for selecting a new font, but just for math? You have to define a typeface and enable it but Latin Modern as text font with patella etc. for math doesn’t look very nice. \definetypeface[mainface][rm][serif][modern] [default][designsize=auto] \definetypeface[mainface][ss][sans] [modern] [default][designsize=auto] \definetypeface[mainface][tt][mono] [modern] [default][designsize=auto] \definetypeface[mainface][mm][math] [pagella] \setupbodyfont[mainface] In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula Works for me (Version 2012.11.23). It's probably the font I am using. BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text? I haven't any explanation. I just thought that that was how you were suppose to do it from reading the manuals. How should it be? \setupbodyfont[pagella] \starttext left \math{1 + 2 = 3} middle \m{\Eulerconst} right % \math and \m are synonyms \blank before \startformula 1 + 2 = 3 \stopformula after \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Euler Constant and limit
Hey list, I am trying to typeset the Verhulst equation which contains a Euler constant which I cannot get to display correctly: \placeformula[formula:Verhulst equation] \startformula \math{P(t) = \frac{K P_0 \Eulerconst^{rt}} {K + P_0(\Eulerconst^{r t} - 1)}} \stopformula The location for the \Eulerconst just shows up blank with nothing there, so I am assuming this is the wrong command. I am using ConTeXt 2012.11.16 under Ubuntu Precise. In addition, the following formula does not typeset correctly. There is no arrow linking 't' to infinity symbol: \placeformula[formula:Limit of Verhulst equation] \startformula \math{\lim_{t\to\infty} P(t) = K.\,} \stopformula PS Please cc me, as I am not on the list currently. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] Degree sign
Dnia 2012-11-23, o godz. 15:22:14 Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a): On Fri, Nov 23, 2012 at 3:17 PM, Marcin Borkowski wrote: Hi all, is there a canonical way to obtain a degree sign? I'd best like it to work in both text and math mode, and not use UTF-8 but some TeX-y \command (like \degree or so). \textdegree (see char-def.lua for example) Thanks! You might want to put this here: http://tex.stackexchange.com/questions/22086/macro-for-degree-symbol to keep up with Aditya's tradition of providing ConTeXt answers to LaTeX questions;). Mojca Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] Degree sign
On Fri, Nov 23, 2012 at 3:35 PM, Marcin Borkowski wrote: Dnia 2012-11-23, o godz. 15:22:14 Mojca Miklavec napisał(a): On Fri, Nov 23, 2012 at 3:17 PM, Marcin Borkowski wrote: Hi all, is there a canonical way to obtain a degree sign? I'd best like it to work in both text and math mode, and not use UTF-8 but some TeX-y \command (like \degree or so). \textdegree (see char-def.lua for example) Thanks! You might want to put this here: http://tex.stackexchange.com/questions/22086/macro-for-degree-symbol to keep up with Aditya's tradition of providing ConTeXt answers to LaTeX questions;). With something like: If you switch to ConTeXt, \textdegree will work in both text and math mode. ? ;) ;) ;) Mojca ___ 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] Degree sign
Dnia 2012-11-23, o godz. 15:43:56 Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a): On Fri, Nov 23, 2012 at 3:35 PM, Marcin Borkowski wrote: Dnia 2012-11-23, o godz. 15:22:14 Mojca Miklavec napisał(a): On Fri, Nov 23, 2012 at 3:17 PM, Marcin Borkowski wrote: Hi all, is there a canonical way to obtain a degree sign? I'd best like it to work in both text and math mode, and not use UTF-8 but some TeX-y \command (like \degree or so). \textdegree (see char-def.lua for example) Thanks! You might want to put this here: http://tex.stackexchange.com/questions/22086/macro-for-degree-symbol to keep up with Aditya's tradition of providing ConTeXt answers to LaTeX questions;). With something like: If you switch to ConTeXt, \textdegree will work in both text and math mode. ? ;) ;) ;) Well... kinda... yes. ;P You might want to look here for inspiration: http://tex.stackexchange.com/users/323/aditya?tab=answers (Clarification: joking aside, I guess that Aditya's habit of giving ConTeXt answers to LaTeX questions on TeX.SE is really great, since it allows to spread the word about ConTeXt, and also may help ConTeXt users.) Mojca Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] Symbols
On 11/20/2012 5:21 PM, Willi Egger wrote: Hi all, could someone bring light into the way how to use symbols…in MKIV I wanted to extract a symbol from uzdr (Zapfdingbats). (Somehow uzdr.afm and uzdr.pfb are not in my tex tree. I always thought that they were part of the standalone but nothing surprises me as these fonts have a history of instability.) (Copied from an upcoming font manual:) \startsection[title=Unicoding] Nowadays we will mostly use fonts that ship with a \UNICODE\ aware encoding. And in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE. However, there are some exceptions, for instance the Zapf Dingbats in \TYPEONE\ format. These have a rather obscure private encoding and the glyph names run from \type {a1} upto \type {a206} and have no relation to what the glyph represents. In the case of Dingbats we're somewhat lucky that they ended up in \UNICODE, so we can relocate the glyphs to match their rightful place. This is done by means of a goodies file. We already discussed this in \in {section} [goodies] so we only repeat the usage. \startbuffer \definefontfeature [dingbats] [mode=base, goodies=dingbats, unicoding=yes] \definefontsynonym [ZapfDingbats] [file:uzdr.afm] [features=dingbats] \stopbuffer \typebuffer \getbuffer I tend to qualify the Dingbat font in \TEX\ distributions as rather unstable because of name changes and them either or not being included. Therefore it's best to use the hard coded name because that triggers the most visible error message when the font is not found. A font like this can for instance be used with the glyph placement macros as is demonstrated below. In the last line we see that a direct \UTF\ input also works out well. \starttabulate[|||] \HL \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\number2701}} \NC \getglyphdirect {ZapfDingbats*dingbats}{\number2701} \NC \NR \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\char2701}} \NC \getglyphdirect {ZapfDingbats*dingbats}{\char2701} \NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a1}} \NC \getnamedglyphdirect{ZapfDingbats*dingbats}{a1} \NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a11}} \NC \getnamedglyphdirect{ZapfDingbats*dingbats}{a11} \NC \NR \HL \NC \type{\getglyphdirect {ZapfDingbats}{\number2701}} \NC \getglyphdirect {ZapfDingbats}{\number2701} \NC \NR \NC \type{\getglyphdirect {ZapfDingbats}{\char2701}}\NC \getglyphdirect {ZapfDingbats}{\char2701}\NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats}{a1}}\NC \getnamedglyphdirect{ZapfDingbats}{a1}\NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats}{a11}} \NC \getnamedglyphdirect{ZapfDingbats}{a11} \NC \NR \HL \NC \type{\definedfont[ZapfDingbats*dingbats]✁} \NC \definedfont[ZapfDingbats*dingbats]✁ \NC \NR \HL \stoptabulate Keep in mind that fonts like Dejavu (that we use here as document font) already has these characters which is why it shows up in the verbose part of the table. \stopsection -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Symbols
Hans, thank you very much for this section. - I see that the approach is different from what I was trying to do. - I will study and try it! Willi On Nov 21, 2012, at 10:26 AM, Hans Hagen wrote: On 11/20/2012 5:21 PM, Willi Egger wrote: Hi all, could someone bring light into the way how to use symbols…in MKIV I wanted to extract a symbol from uzdr (Zapfdingbats). (Somehow uzdr.afm and uzdr.pfb are not in my tex tree. I always thought that they were part of the standalone but nothing surprises me as these fonts have a history of instability.) (Copied from an upcoming font manual:) \startsection[title=Unicoding] Nowadays we will mostly use fonts that ship with a \UNICODE\ aware encoding. And in \CONTEXT, even if we use a \TYPEONE\ font, it gets mapped onto \UNICODE. However, there are some exceptions, for instance the Zapf Dingbats in \TYPEONE\ format. These have a rather obscure private encoding and the glyph names run from \type {a1} upto \type {a206} and have no relation to what the glyph represents. In the case of Dingbats we're somewhat lucky that they ended up in \UNICODE, so we can relocate the glyphs to match their rightful place. This is done by means of a goodies file. We already discussed this in \in {section} [goodies] so we only repeat the usage. \startbuffer \definefontfeature [dingbats] [mode=base, goodies=dingbats, unicoding=yes] \definefontsynonym [ZapfDingbats] [file:uzdr.afm] [features=dingbats] \stopbuffer \typebuffer \getbuffer I tend to qualify the Dingbat font in \TEX\ distributions as rather unstable because of name changes and them either or not being included. Therefore it's best to use the hard coded name because that triggers the most visible error message when the font is not found. A font like this can for instance be used with the glyph placement macros as is demonstrated below. In the last line we see that a direct \UTF\ input also works out well. \starttabulate[|||] \HL \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\number2701}} \NC \getglyphdirect {ZapfDingbats*dingbats}{\number2701} \NC \NR \NC \type{\getglyphdirect {ZapfDingbats*dingbats}{\char2701}} \NC \getglyphdirect {ZapfDingbats*dingbats}{\char2701} \NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a1}} \NC \getnamedglyphdirect{ZapfDingbats*dingbats}{a1} \NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats*dingbats}{a11}} \NC \getnamedglyphdirect{ZapfDingbats*dingbats}{a11} \NC \NR \HL \NC \type{\getglyphdirect {ZapfDingbats}{\number2701}} \NC \getglyphdirect {ZapfDingbats}{\number2701} \NC \NR \NC \type{\getglyphdirect {ZapfDingbats}{\char2701}}\NC \getglyphdirect {ZapfDingbats}{\char2701}\NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats}{a1}}\NC \getnamedglyphdirect{ZapfDingbats}{a1}\NC \NR \NC \type{\getnamedglyphdirect{ZapfDingbats}{a11}} \NC \getnamedglyphdirect{ZapfDingbats}{a11} \NC \NR \HL \NC \type{\definedfont[ZapfDingbats*dingbats]✁} \NC \definedfont[ZapfDingbats*dingbats]✁ \NC \NR \HL \stoptabulate Keep in mind that fonts like Dejavu (that we use here as document font) already has these characters which is why it shows up in the verbose part of the table. \stopsection -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] Symbols
Hi all, could someone bring light into the way how to use symbols…in MKIV I wanted to extract a symbol from uzdr (Zapfdingbats). In MIII the that worked like this: \definefontsynonym[Dingbats][uzdr] \definesymbol[box][\getglyph{Dingbats}{\char113}] In MKIV this is not the case. I tried to find out with the font-manual, unfortunately it only shows the content of the symb-imp-eur.mkiv. I tried to find the fonts mentioned in that file, but miserably failed. I tried different approaches but get now result, except for the black diamond, but this is defined internally in ConTeXt (\definesymbol[blackdiamond] [\textormathchar{2666}]. \definefontsynonym[Dingbats][uzdr] \definefontsynonym[MSAM][msam10] \definesymbol[boxA][\getglyph{Dingbats}{\char113}] %Seems to be changed... \definesymbol[boxB][\getglyph{Dingbats}{\char274F}] % U+0274F, 00052, a74 \definesymbol[cuttingscissors] [\getglyph{Dingbats}{\utfchar{2701}}] \definesymbol[blackdiamond][\textormathchar{2666}] \definesymbol[blackdiamondvar][\textormathchar{25C6}] \definesymbol[diamondfilled] [\getglyph{MSAM}{\utfchar{F0067}}] \starttext Thanks for support… Willi \symbol{boxA} \symbol{boxB} \symbol{cuttingscissors} \symbol{blackdiamond} \symbol{blackdiamondvar} \symbol{diamondfilled} \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] Annotation Module
Am 15.11.2012 20:32, schrieb ntg-context-requ...@ntg.nl: Take a look at the attachment for a example which use the latest version of the annotation module (a module to create customized commands/environments). Wolfgang -- next part -- A non-text attachment was scrubbed... Name: annotation-30.pdf Type: application/pdf Size: 10563 bytes Desc: not available URL:http://www.ntg.nl/pipermail/ntg-context/attachments/20121115/4129198a/attachment.pdf -- next part -- A non-text attachment was scrubbed... Name: annotation-30.tex Type: application/octet-stream Size: 1144 bytes Desc: not available URL:http://www.ntg.nl/pipermail/ntg-context/attachments/20121115/4129198a/attachment.obj Thanks alot, now everything works fine. My question to your module: How can I customize the \startannotation \stopannotation enovirnment, s.t. it does not start with , but with another symbol (or maybe without any symbol)? Huseyin ___ 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] Annotation Module
Am 18.11.2012 um 20:27 schrieb H. Özoguz h.oezo...@mmnetz.de: My question to your module: How can I customize the \startannotation \stopannotation enovirnment, s.t. it does not start with , but with another symbol (or maybe without any symbol)? The annotation module let you define a command/environment to collect text and format it in (nearly) any way you want, there is no distinction between \command{…} and \startcommand …\stopcommand. Copy this example and process it with context: \usemodule[annotation] \setuplayout [backspace=6cm, cutspace=2cm, width=middle] \setupannotation[color=blue] % one + two \defineannotation[one][alternative=paragraph] \defineannotation[two][alternative=text] % three \define[2]\ThreeCommand {\startframedtext[middle] #2 \stopframedtext} \defineannotation[three][alternative=command,command=\ThreeCommand] % four \startsetups [annotation:four] \startframedtext[width=broad,framecolor=red] \placeannotationcontent \doifsomething{\annotationparameter{author}}{\wordright{\annotationparameter{author}}} \stopframedtext \stopsetups \defineannotationalternative[four][renderingsetup=annotation:four] \defineannotation[four][alternative=four] \starttext \input knuth \one{\input ward } \input knuth \starttwo\input ward \stoptwo \input knuth \three{\input ward } \input knuth \startfour[author=Ward]\input ward \stopfour \input knuth \stoptext In the example above I define four annotation command, while the first two use predefined alternatives the third and fourth use ones I define in the document. The command “three” uses the “command” alternative which expects a command with two parameters, the first parameter can be used to print a title with the content of the “text” and “title” keys (not used in my example) and the second parameters prints the content of the command/environment. The “four” command (you could also have used \four[author=Ward]{\input ward } in the document) uses a different approach to define a customized layout. First you create a new alternative with \defineannotationalternative where you specify a setup. The setup itself is created with \startsetups … \stopsetups where you can use all context commands you like. Values from \setupannotation or optional arguments for \four or \startfour can be accessed with \annoationparameter{key}. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] In Reply to: ntg-context Digest, Vol 101, Issue 31 - Emphasizing Quotation with Start/Stop
Am 14.11.2012 00:49, schrieb ntg-context-requ...@ntg.nl: \setuplanguage [leftquotation=?, rightquotation=?] \define[1]\quotation {\italic{\symbol[leftquotation]#1\symbol[rightquotation]}} \starttext \quotation{Whatever} \stoptext Thank you! And how about the \startquotations \stopquotations How to emphasize them, too? Huseyin ___ 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] Mk IV version of wasysym?
Hans, Normally, I do refer first to Martin Vogel's set, but in this case I just needed a symbol from Roland's set. Do I take it then to mean the symb-was is not Mk IV compatible? Thanks. On Wed 14 Nov 2012 12:18:25 PM EST, Hans Hagen wrote: On 11/13/2012 1:49 PM, Pavneet Arora wrote: I am trying to use some of the symbols from Roland Waldi's symbols collection in a project. After not getting the minimal example to work, I looked for the 'symb-was.*' file, and came across only this; /opt/context/tex/texmf-context/tex/context/base/symb-was.mkii I notice that there doesn't seem to be a .mkiv version of this set. Could this be the problem? The minimal example was simply: \usesymbols[was] \showsymbolset[wasy general] best look in the symb-imp-mvs Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - -- - - Pavneet Arora Waroc Fine Audio + Custom Home Cinema www.waroc.com 416.937.WAROC (9276) ___ 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] Mk IV version of wasysym?
Am 14.11.2012 um 18:23 schrieb Pavneet Arora pavneet_ar...@waroc.com: Hans, Normally, I do refer first to Martin Vogel's set, but in this case I just needed a symbol from Roland's set. Do I take it then to mean the symb-was is not Mk IV compatible? MkIV uses a different name system for the files which covers symbols (symb-imp-xxx.mkiv), colors (colo-imp-xxx.mkiv) and typescripts (type-imp-xxx.mkiv). 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] ntg-context Digest, Vol 101, Issue 31
2012-11-13 H. Özoguz: Advice for your next posts: Try to provide a meaningful subject line like “Enclosing quotations in guillemets” or “Emphasising quotations”. And configure your mail reader to include a “In-Reply-To” header to not break the thread with each post. I want the complete quotation emphasized- without extra writing \emph. \setuplanguage [leftquotation=», rightquotation=«] \define[1]\quotation {\italic{\symbol[leftquotation]#1\symbol[rightquotation]}} \starttext \quotation{Whatever} \stoptext Marco ___ 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] ntg-context Digest, Vol 101, Issue 31
On Nov 13, 2012, at 5:29 AM, Marco Patzer home...@lavabit.com wrote: 2012-11-13 H. Özoguz: Advice for your next posts: Try to provide a meaningful subject line like “Enclosing quotations in guillemets” or “Emphasising quotations”. And configure your mail reader to include a “In-Reply-To” header to not break the thread with each post. I want the complete quotation emphasized- without extra writing \emph. \setuplanguage [leftquotation=», rightquotation=«] \define[1]\quotation {\italic{\symbol[leftquotation]#1\symbol[rightquotation]}} \starttext \quotation{Whatever} \stoptext Hans, how about adding color and style keys to quotation? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ntg-context Digest, Vol 101, Issue 31
Am 13.11.2012 um 14:47 schrieb Aditya Mahajan adit...@cim.mcgill.ca: On Nov 13, 2012, at 5:29 AM, Marco Patzer home...@lavabit.com wrote: 2012-11-13 H. Özoguz: Advice for your next posts: Try to provide a meaningful subject line like “Enclosing quotations in guillemets” or “Emphasising quotations”. And configure your mail reader to include a “In-Reply-To” header to not break the thread with each post. I want the complete quotation emphasized- without extra writing \emph. \setuplanguage [leftquotation=», rightquotation=«] \define[1]\quotation {\italic{\symbol[leftquotation]#1\symbol[rightquotation]}} \starttext \quotation{Whatever} \stoptext Hans, how about adding color and style keys to quotation? The command uses style and color settings but not in combination with the left/right symbols. \setupdelimitedtext [quotation] [left=«, right=», style=italic, color=red] \starttext \setupdelimitedtext[quotation][method=font] \tracingmacros1 before \quotation{between} after \tracingmacros0 \setupdelimitedtext[quotation][method=,location=margin] % default settings before \quotation{between} after \setupdelimitedtext[quotation][method=,location=paragraph] before \quotation{between} after \setupdelimitedtext[quotation][method=,location=text] before \quotation{between} after \setupdelimitedtext[quotation][style=normal] % same as above with the exception “style=normal” before \quotation{between} after \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in footnote conversion?
Am 31.10.2012 um 16:43 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: On Wed, 31 Oct 2012 16:19:53 +0100, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: \setupnotation[footnote][numberconversion=set 1] Wolfgang Thanks, it works. Question: set 1 is a built-in number conversion? - If so, what are other built-in [number] conversion sets? Predefined are “set 0” till “set 3”. \starttext \dorecurse {8}{\convertnumber{set 0}{#1}\quad}\par \dorecurse {9}{\convertnumber{set 1}{#1}\quad}\par \dorecurse{12}{\convertnumber{set 2}{#1}\quad}\par \dorecurse{15}{\convertnumber{set 3}{#1}\quad}\par \stoptext You can write your own symbol lists with (I use math mode because the spacing between the asterisks is better): \defineconversion[starred][\m{*},\m{**},\m{***}] - - Are they documented anywhere? You can look if you find something in the manuals or the wiki. 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] using variable for subscript in math+lua
···date: 2012-10-25, Thursday···from: Otared Kavian··· Hi Philipp, Thanks to you, Dalyoung and Hans for the nice example using luacode. I was wonedring how would you modify your code in order to be able to change the name of the matrix if necessary. For instance, how to modify your code in such a way that upon saying \ctxlua{document.print_matrix(b,3)} one gets a 3x3 matrix whos coefficients are b_{11},…b_{33}. This may be overkill but you can just wrap the matrix command in some TeX macro: · % macros=mkvi \unprotect \startluacode local context = context commands.matrix_with_symbol = function (sym, x, y) if not y then y = x end -- default to square context.startmatrix{ left = \\left(\\,, right = \\,\\right) } local schema = sym .. _{%d%d} -- %d: prints integer part for i=1, x do for j=1, y do context.NC() context(schema, i, j) end context.NR() end context.stopmatrix() end \stopluacode \unexpanded\def\printsymbolmatrix{% \dotripleempty\print_symbol_matrix_indeed% } \def\print_symbol_matrix_indeed[#first][#second][#num]{% \bgroup \def\sym{a}%% set default symbol to print, could be done in Lua \def\y{nil}% \ifsecondargument \ifthirdargument \edef\sym{#first}% \edef\x{#second}% \edef\y{#num}% \else \doifnumberelse{#first}% {\edef \x{#first}\edef\y{#second}}% {\edef\sym{#first}\edef\x{#second}}% \fi \else \edef\x{#first}% \fi \ctxcommand{matrix_with_symbol(\!!bs\sym\!!es, \x, \y)}% \egroup% } \protect \starttext \startformula \printsymbolmatrix[3]%% symbol is “a”, matrix is square \stopformula \startformula \printsymbolmatrix[4][8]%% symbol is “a”, matrix is 4x8 \stopformula \startformula \printsymbolmatrix[b][8]%% symbol is “b”, matrix is square \stopformula \startformula \printsymbolmatrix[c][5][3]%% symbol is “c”, matrix is 5x3 \stopformula \stoptext \endinput · Now the symbol will default to “a” but you can specify another one. (Btw. I think the Lua part could be done as easily with dorecurse.) Regards Philipp Thanks in advance: OK On 25 oct. 2012, at 03:02, Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de wrote: ···date: 2012-10-25, Thursday···from: Jeong Dal··· Dear Hans, Lucas, Wolfgang, Aditya Now, I write a matrix using \startluacode by the helps of you. Also, I can do some operations in matrices which reduced my typing job. In this code, I have to give all the entries of a matrix as a table. It is good to use in many cases. I have one more question. If the given array is as the following and it works well. However, there might be a better way to do job using for iteration. I tired to use i, j in several ways but it doesn't work. Inside a string the variables are just bytes. To print to a string you can interpolate with string.format() [1]. [1] http://www.lua.org/manual/5.1/manual.html#pdf-string.format · \startluacode document = document or { } -- recommended: use namespace document.print_matrix = function (x, y) if not y then y = x end -- default to square context.startmatrix{left = \\left(\\,, right = \\,\\right)} local schema = a_{%d%d} -- %d: prints integer part for i=1, x do for j=1, y do --- use the template defined above to print the --- row and column context.NC(string.format(schema, i, j)) end context.NR() end context.stopmatrix() end \stopluacode \starttext \startformula \ctxlua{document.print_matrix(3)} \stopformula \startformula \ctxlua{document.print_matrix(9,4)} \stopformula \startformula \ctxlua{document.print_matrix(9)} \stopformula \stoptext \endinput · Is there a way to do such a job using for iteration? Thank you for reading. Best regards, Dalyoung ___ 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 ___ -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments ___ If your question is of interest to others as well, please
Re: [NTG-context] ConTeXt unofficial test suite stub (chemistry)
Le jeudi 18 octobre 2012, Alan BRASLAU a écrit : By the way, \lohi[left]{2}{4}He is somewhat a tautology, like all such isotopic nomenclature, as He ALWAYS has an atomic number of 2, otherwise it is not He (and U ALWAYS has an atomic number of 92, otherwise it is no longer U). Sure but but the format is nevertheless usefull in some cases: - exercises like: what is the chemical symbol of the \lohi[left]{2}{4}X atom? - nuclear reactions where Z are usefull to balance the equations (see http://en.wikipedia.org/wiki/Nuclear_reaction for exemples). Of course if one know every Z and atomic symbol associated by heart, the nomenclature with Z is not needed. -- Romain Diss romain.d...@yahoo.fr ___ 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 get bolder and larger item symbol?
I'd like to have the number (and dot) in an itemize in boldface and larger (say, \bf\tfa). What do I do? \startitemize[n][symstyle=bold] didn't work. Why? TIA -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] How to get bolder and larger item symbol?
On Mon, 15 Oct 2012, Marcin Borkowski wrote: I'd like to have the number (and dot) in an itemize in boldface and larger (say, \bf\tfa). What do I do? \startitemize[n][symstyle=bold] didn't work. Why? \symstyle is for enteries defined using \sym. For the item symbol use the style key. \startitemize[n][style={\bfa}] Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Symbolsets, using Unicode symbols?
Am 06.10.2012 um 06:03 schrieb Mari Voipio mari.voi...@iki.fi: Hello! I'm having one of those ConTeXt moments when I feel really stupid, but I just cannot figure this out I'd need the heart symbol. You know, the one that goes on Facebook as 3. I think it is this Unicode symbol: ♥ U+2665 BLACK HEART SUIT #x2665; or #9829; or hearts; I'm using the LucidaOT (Unicode) font and my Mac should have some other of the basic symbol sets, but I just cannot figure out how to use the above knowledge to dish out the heart. (TeX culture shock, I think, I don't care about gazillion maths operators, I want my Dingbats and other little decorations.) I found the Symbols wiki page at http://wiki.contextgarden.net/Symbols, but cannot figure out how to implement it: - the command \usesymbols[uni] gives 'symbols unknown: library 'uni'' in the log. - the command \showsymbolset is just as hopeless: command \showsymbolset not found in file symb-run So, what bit in that process have I missed or not understood? I'm running mkIV in ConTeXt version Aug 17, 2012 in a Mac laptop. As Unicode and all that have been around for ages, this problem must be one of those you find between the chair and the screen! On a computer it’s easier to shoe these symbols because the OS uses different font when a symbol is missing in the the default system font but this doesn’t happen with ConTeXt. When I checked the Lucida font for the symbol I noticed that it isn’t available in the text font but you can use math mode where the symbol is available. \setupbodyfont[lucidaot] \starttext $♥$ \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Symbolsets, using Unicode symbols?
On Sat, 6 Oct 2012 09:13:07 +0200 Wolfgang Schuster wolfgang.schus...@gmail.com wrote: Am 06.10.2012 um 06:03 schrieb Mari Voipio mari.voi...@iki.fi: I'd need the heart symbol. You know, the one that goes on Facebook as 3. I think it is this Unicode symbol: ♥ U+2665 BLACK HEART SUIT #x2665; or #9829; or hearts; $♥$ How sweet! (The heart suit in the mathematical font goes along with the diamond, clover and spade and is very serious, intended for the mathematical description of card games. It has been around in TeX forever and is not just some sort of wingding frivolous shorthand. Just to explain why one finds it in math mode.) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xits font: some spacing and scaling problems
On Thu, Sep 27, 2012 at 01:01:35PM -0400, Aditya Mahajan wrote: On Thu, 27 Sep 2012, Khaled Hosny wrote: None of those glyphs were changed in XITS, they are exactly the same as the ones in STIX fonts, so possibly ConTeXt is using the wrong Unicode character for those symbols. The later two are smaller with LaTeX package unicode-math. That is most likely the issue. I never really understood what all these triangles should map to. Should we target unicode-math the reference implmentation? As unicode-math table is based on BB’s STIX symbol table, I think it is the closest we have to an authoritative Unicode → TeX csnames mapping (incidentally, I have recent version of BB’s table, if anyone wants it). Regards, Khaled ___ 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] \items is buggy in mkiv
On Wed, 12 Sep 2012, Otared Kavian wrote: Dear Hans, I noticed that with the latest version of mkiv (ConTeXt ver: 2012.09.10 00:57) the command \items[location=bottom] does not behave as usual (in mkii the bejaviour is correct) Minimal example: \starttext \items[symbol=8,n=5,width=\hsize,location=bottom]{png,eps,pdf,jpg,tif} \blank \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} \stoptext The syntax for MkIV is `alternative=bottom`. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \items is buggy in mkiv
Thanks Aditya: I added the new syntax to the wiki. http://wiki.contextgarden.net/Command/items Best regards: OK On 15 sept. 2012, at 20:10, Aditya Mahajan adit...@umich.edu wrote: On Wed, 12 Sep 2012, Otared Kavian wrote: Dear Hans, I noticed that with the latest version of mkiv (ConTeXt ver: 2012.09.10 00:57) the command \items[location=bottom] does not behave as usual (in mkii the bejaviour is correct) Minimal example: \starttext \items[symbol=8,n=5,width=\hsize,location=bottom]{png,eps,pdf,jpg,tif} \blank \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} \stoptext The syntax for MkIV is `alternative=bottom`. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \items is buggy in mkiv
Dear Hans, I noticed that with the latest version of mkiv (ConTeXt ver: 2012.09.10 00:57) the command \items[location=bottom] does not behave as usual (in mkii the bejaviour is correct) Minimal example: \starttext \items[symbol=8,n=5,width=\hsize,location=bottom]{png,eps,pdf,jpg,tif} \blank \items[symbol=8,n=5,location=bottom]{png,eps,pdf,jpg,tif} \stoptext Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Lua conditionals fail inside \starttexdefinition
On Tue, Sep 4, 2012 at 9:05 PM, Marco Patzer home...@lavabit.com wrote: On 2012-09-04 Herbert Voss herbert.v...@fu-berlin.de wrote: Hi Herbert, \starttext \startluacode if true then; context(true) else; context(false) end \stopluacode \stoptext that is no Lua syntax if true then; print(true) else; print(false) end This snippet fed into a standalone Lua interpreter prints “true” on the terminal. Not in my lua interpreter: saving the snippet into test.lua $lua test.lua gives lua: test.lua:1: unexpected symbol near ';' -- luigi ___ 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] Lua conditionals fail inside \starttexdefinition
Am 04.09.2012 21:05, schrieb Marco Patzer: if true then; print(true) else; print(false) end This snippet fed into a standalone Lua interpreter prints “true” on the terminal. I admit, I did not look up the syntax in the manual, but I have in mind that semicolons can be used to separate statements that are on one line. voss@shania:~/ConTeXt lua zzz.lua lua: zzz.lua:1: unexpected symbol near ';' voss@shania:~/ConTeXt lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio Herbert ___ 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] Lua conditionals fail inside \starttexdefinition
On 2012-09-04 Herbert Voss herbert.v...@fu-berlin.de wrote: voss@shania:~/ConTeXt lua zzz.lua lua: zzz.lua:1: unexpected symbol near ';' marco@homerow:/tmp$ lua t.lua true voss@shania:~/ConTeXt lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio marco@homerow:/tmp$ lua -v Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio Marco ___ 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] Lua conditionals fail inside \starttexdefinition
Am 04.09.2012 21:35, schrieb Marco Patzer: On 2012-09-04 Herbert Voss herbert.v...@fu-berlin.de wrote: voss@shania:~/ConTeXt lua zzz.lua lua: zzz.lua:1: unexpected symbol near ';' marco@homerow:/tmp$ lua t.lua true voss@shania:~/ConTeXt lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio marco@homerow:/tmp$ lua -v Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio the syntax changes, see http://www.lua.org/manual/5.2/manual.html#9 Herbert ___ 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] Lua conditionals fail inside \starttexdefinition
On Tue, Sep 4, 2012 at 9:35 PM, Marco Patzer home...@lavabit.com wrote: On 2012-09-04 Herbert Voss herbert.v...@fu-berlin.de wrote: voss@shania:~/ConTeXt lua zzz.lua lua: zzz.lua:1: unexpected symbol near ';' marco@homerow:/tmp$ lua t.lua true voss@shania:~/ConTeXt lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio marco@homerow:/tmp$ lua -v Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio Because in Lua 5.2 there is the empty statements http://www.lua.org/manual/5.2/manual.html#3 3.3.1 – Blocks A block is a list of statements, which are executed sequentially: block ::= {stat} Lua has empty statements that allow you to separate statements with semicolons, start a block with a semicolon or write two semicolons in sequence: stat ::= ‘;’ So stat ::= if exp then block {elseif exp then block} [else block] end means that if exp then ; else ; end is valid. Luatex still uses lua 5.1.4 -- luigi ___ 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] Lua conditionals fail inside \starttexdefinition
On 2012-09-04 Herbert Voss herbert.v...@fu-berlin.de wrote: voss@shania:~/ConTeXt lua -v Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio marco@homerow:/tmp$ lua -v Lua 5.2.1 Copyright (C) 1994-2012 Lua.org, PUC-Rio the syntax changes, see http://www.lua.org/manual/5.2/manual.html#9 You're totally right. LuaTeX uses does not use lua 5.2 and therefore the semicolon syntax is wrong. I also get an “unexpected symbol” with lua5.1 Thanks for the clarification Marco ___ 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] \setupdelimitedtext not working in TeXLive 2012
This used to work to provide proper behavior for nested quotations. Now, it doesn't work and the log shows errors for all 3 of missing or ungrouped '=' after 'n' (371quotation:)where n=1,2,3 as they are encountered. \setupdelimitedtext [quotation] [1] [left={\symbol[leftquotation]}, right={\symbol[rightquotation]}] \setupdelimitedtext [quotation] [2] [left={\symbol[leftquote]}, right={\symbol[rightquote]}] \setupdelimitedtext [quotation] [3] [left={\symbol[leftquotation]}, right={\symbol[rightquotation]}] Did the syntax change or is it a bug? -- Bill Meahan Westland, Michigan USA ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupdelimitedtext not working in TeXLive 2012
Am 03.09.2012 um 04:14 schrieb Bill Meahan subscribed_li...@meahan.net: This used to work to provide proper behavior for nested quotations. Now, it doesn't work and the log shows errors for all 3 of missing or ungrouped '=' after 'n' (371quotation:)where n=1,2,3 as they are encountered. \setupdelimitedtext [quotation] [1] [left={\symbol[leftquotation]}, right={\symbol[rightquotation]}] \setupdelimitedtext [quotation] [2] [left={\symbol[leftquote]}, right={\symbol[rightquote]}] \setupdelimitedtext [quotation] [3] [left={\symbol[leftquotation]}, right={\symbol[rightquotation]}] Did the syntax change or is it a bug? The syntax changed in MkIV, you need now \setupdelimitedtext[quotation:1][..,..=..,..] etc. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bold math trouble
Hi. I use ConTeXt in Debian. If this helps, please keep it in mind: dpkg -l context gives: ii context 2012.05.30.20120611-1 Now, if you consider the following: code \usetypescript[palatino][texnansi] \definetypeface[mainface][mm][math][modern][modern][encoding=texnansi] \definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi] \switchtobodyfont[palatino,14pt] \starttext Hi \startformula x = \boldsymbol{\Sigma}\Sigma \stopformula \stoptext /code The issue I have is that this doesn't work, and throws me: ! Math formula deleted: Insufficient symbol fonts. \mathboldsymbol ...t]$\mathsurround \zeropoint #1$ }} {\hbox {\switchtoformul... l.9 x = \boldsymbol{\Sigma} \Sigma However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is there something I am doing wrong? Thanks. Kumar -- Kumar Appaiah ___ 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] Bold math trouble
On 12-8-2012 22:25, Kumar Appaiah wrote: Hi. I use ConTeXt in Debian. If this helps, please keep it in mind: dpkg -l context gives: ii context 2012.05.30.20120611-1 Now, if you consider the following: code you can try ad here: \definebodyfontenvironment[14pt] \usetypescript[palatino][texnansi] \definetypeface[mainface][mm][math][modern][modern][encoding=texnansi] \definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi] \switchtobodyfont[palatino,14pt] \starttext Hi \startformula x = \boldsymbol{\Sigma}\Sigma \stopformula \stoptext /code The issue I have is that this doesn't work, and throws me: ! Math formula deleted: Insufficient symbol fonts. \mathboldsymbol ...t]$\mathsurround \zeropoint #1$ }} {\hbox {\switchtoformul... l.9 x = \boldsymbol{\Sigma} \Sigma However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is there something I am doing wrong? maybe there is no bold math available - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bold math trouble
Dear Hans, On Mon, Aug 13, 2012 at 12:41:09AM +0200, Hans Hagen wrote: you can try ad here: \definebodyfontenvironment[14pt] Thanks. \usetypescript[palatino][texnansi] \definetypeface[mainface][mm][math][modern][modern][encoding=texnansi] \definetypeface [boldmath] [mm] [boldmath] [modern] [modern] [encoding=texnansi] \switchtobodyfont[palatino,14pt] \starttext Hi \startformula x = \boldsymbol{\Sigma}\Sigma \stopformula \stoptext /code The issue I have is that this doesn't work, and throws me: ! Math formula deleted: Insufficient symbol fonts. \mathboldsymbol ...t]$\mathsurround \zeropoint #1$ }} {\hbox {\switchtoformul... l.9 x = \boldsymbol{\Sigma} \Sigma However, if I make the 14pt above 11pt or 12pt, it works perfectly. Is there something I am doing wrong? maybe there is no bold math available I see. In other words, you are saying that I don't have the fonts to generate bold math at those sizes? I'll settle with a workaround without bold math for now, then. Thanks! Kumar -- Kumar Appaiah ___ 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] Figured bass symbols in a text
On 10 aug. 2012, at 18:08:36 +0200, Wolfgang Schuster wolfgang.schus...@gmail.com wrote Am 10.08.2012 um 18:00 schrieb Rogers, Michael K mrog...@emory.edu: Hi, Since no one has offered a quick ConTeXt solution, I offer my usual -- a dumb Plain TeX solution: \def\lomihi#1#2#3{${\scriptstyle{#2}}\limits_{#1}^{#3}$} With the Computer Modern font, the top is a little further away from the middle than the bottom. It can be adjusted with something like \def\lomihi#1#2#3{${\scriptstyle{#2}}\limits_{#1}^{\lower0.23pt\hbox{$\scriptstyle{#3}$}}$} but this would probably have to be adjusted for each font and size. You can use \framed: \defineframed[lohimi][align=flushleft,location=middle,frame=off,foregroundstyle=\tx] \starttext text \lohi{1}{2} text \lohimi{1\\2\\3} text \stoptext Wolfgang Hi Wolfgang, Though you actually replied to Michael Rogers' mail I consider myself to be a recipient of your advice too. Thank you very much for your help. For my purpose the dumb Plain TeX solution that Michael Rogers suggested works better as the distances between the figures are short enough to make it look like one symbol. Which is the way I prefer it in this sort of text. Thanks again, Kind regards, Robert ___ 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] math formula linebreak
Hi Aditya, I wish that the breqn algorithm were described somethere; then one could play around implementing it in luatex. Have you seen the new User's Guide yet? It's from last May, very recent, so it may not have been there yet when last you looked. It includes the entire source code, and comments that quite thoroughly: the ratio works out to 16 lines of comment per 26 lines of code. (A page is about 42 lines.) And the comments go into the how, and not just the what. Might be useful at some point in the future, if it is indeed new. http://ctan.unixbrain.com/macros/latex/contrib/mh/breqn.pdf --Sietse P.s. The lack of an index and a table of contents is criminal, although probably due to this being a beta version (v0.98b) of the manual. I've extracted the sections and subsection titles, albeit without the page numbers. == User's guide == 1 A bit of history 2 Package loading 3 To do 4 Introduction 5 Principal features 6 Shortcomings of the package 6.1 Incompatibilities 6.2 Indention of delimited fragments 6.3 Math symbol subversion 6.4 Subscripts and superscripts 7 Incomplete 8 Package options 9 Environments and commands 9.1 Environments 9.2 Commands 10 Various environment options 11 The \@exisym package 12 Caution! Warning! 13 Examples == Implementation == 14 Introduction 15 Strategy 16 Prelim 17 Package options 18 Required packages 19 Some useful tools 20 Debugging 21 The \listwidth variable 22 Parameters 23 Measuring equation components 24 The dmath and dmath* environments 25 Special processing for end-of-equation 26 Preprocessing the equation body 27 Choosing optimal line breaks 28 Equation layout options 29 Centered Right-Number Equations 30 Framing an equation 31 Delimiter handling 32 Series of expressions 33 Equation groups 34 The darray environment 35 Miscellaneous 36 Wrap-up 37 To do ___ 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] Bug in \startitemize[randomize]
On 4-8-2012 17:22, Aditya Mahajan wrote: Hi, \startitemize[randomize] does not randomize properly (one entry at random is gobbled and another is repeated in its place). I guess that this is because of an off-by-one error somewhere. Example (from: http://tex.stackexchange.com/a/65662/323) \defineitemgroup[institm] \setupinstitm[1][text, random] \setupinstitm[1][symbol=2, indentnext=no, intro=yes] \starttext \startTEXpage[offset=5mm] \bold{Contributions} \startinstitm \startitem Foo Pvt Ltd {\sc nsw} \stopitem \startitem Bar Pvt Ltd {\sc vic} \stopitem \startitem Baz Pvt Ltd {\sc abc} \stopitem \stopinstitm \stopTEXpage \stoptext an \if going wild du eto a lack of \relax'ing \unexpanded\def\getrandomcount #1#2#3% {#1=\ctxcommand{getrandomcounta(\number#2,\number#3)}\relax} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in \startitemize[randomize]
Hi, \startitemize[randomize] does not randomize properly (one entry at random is gobbled and another is repeated in its place). I guess that this is because of an off-by-one error somewhere. Example (from: http://tex.stackexchange.com/a/65662/323) \defineitemgroup[institm] \setupinstitm[1][text, random] \setupinstitm[1][symbol=2, indentnext=no, intro=yes] \starttext \startTEXpage[offset=5mm] \bold{Contributions} \startinstitm \startitem Foo Pvt Ltd {\sc nsw} \stopitem \startitem Bar Pvt Ltd {\sc vic} \stopitem \startitem Baz Pvt Ltd {\sc abc} \stopitem \stopinstitm \stopTEXpage \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Luatex error in latest beta (standalone)
Hi, Keith— the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end In strc-not.mkiv, the lines are: \def\strc_notes_set_style_color_special {\iftrialtypesetting % keep \else\ifx\currentcolorparameter\empty \scratchcounter\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % todo calculate once \setlocationcolorspecified\scratchcounter \fi\fi} \unexpanded\def\strc_notes_inject_pointer % todo calculate once {\ifcase\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % unknown \or % same page \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!nextpage]}% \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!previouspage]}% \fi} But I have no idea what to make of this. Alan On Fri, Aug 3, 2012 at 10:04 AM, Keith J. Schultz keithjschu...@web.dewrote: Hi Alan, I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage. There are other possiblities. If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point, or somebody for to use a dummy function. regards Keith. Am 03.08.2012 um 15:04 schrieb Alan Bowen bowenala...@gmail.com: Files that used to process are now getting this error message: ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' main ctx instance:1: in main chunk. system tex error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error … ctxcommand ...\directlua \zerocount {commands.#1} \strc_notes_set_style_color_special ...tenumber )} \relax \setlocationcolorsp... \strc_notes_set_style_color_inline ...lor_special \fi \strc_notes_inject_symbol ...xtstyle \c!textcolor \hbox \strc_notes_get_refe... \195notation:note ...l \strc_notes_inject_symbol \else \unskip \unskip \glo... \strc_notations_command_nop ...handler \endcsname \strc_constructions_finali... I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone) Is there fix for this? Many thanks. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Luatex error in latest beta (standalone)
Alan wrote: the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end Three functions are defined directly above: L297: local function getsymbolpage(tag,n) L307: local function getnumberpage(tag,n) L317: function notes.deltapage(tag,n) There is no reference to /\deltapage/ anywhere (`\` is a word boundary), so I suggest turning L317 into local function getdeltapage(tag,n) and see whether that solves your problem. I can't test it myself, lacking a minimal (non)working example. (They should be called Minimal Illustrative Examples, really, or Minimal Complete Examples. But that ship has long sailed.) Cheers, Sietse On Fri, Aug 3, 2012 at 4:36 PM, Alan Bowen bowenala...@gmail.com wrote: Hi, Keith— the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end In strc-not.mkiv, the lines are: \def\strc_notes_set_style_color_special {\iftrialtypesetting % keep \else\ifx\currentcolorparameter\empty \scratchcounter\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % todo calculate once \setlocationcolorspecified\scratchcounter \fi\fi} \unexpanded\def\strc_notes_inject_pointer % todo calculate once {\ifcase\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % unknown \or % same page \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!nextpage]}% \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!previouspage]}% \fi} But I have no idea what to make of this. Alan On Fri, Aug 3, 2012 at 10:04 AM, Keith J. Schultz keithjschu...@web.de wrote: Hi Alan, I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage. There are other possiblities. If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point, or somebody for to use a dummy function. regards Keith. Am 03.08.2012 um 15:04 schrieb Alan Bowen bowenala...@gmail.com: Files that used to process are now getting this error message: ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' main ctx instance:1: in main chunk. system tex error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error … ctxcommand ...\directlua \zerocount {commands.#1} \strc_notes_set_style_color_special ...tenumber )} \relax \setlocationcolorsp... \strc_notes_set_style_color_inline ...lor_special \fi \strc_notes_inject_symbol ...xtstyle \c!textcolor \hbox \strc_notes_get_refe... \195notation:note ...l \strc_notes_inject_symbol \else \unskip \unskip \glo... \strc_notations_command_nop ...handler \endcsname \strc_constructions_finali... I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone) Is there fix for this? Many thanks. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry
Re: [NTG-context] Luatex error in latest beta (standalone)
Thanks, Sietse, but local function getdeltapage(tag,n) seems to mess up \definenote (the error appears when running context --make). And if one plows ahead anyway, the original error remains. Alan On Fri, Aug 3, 2012 at 11:01 AM, Sietse Brouwer sbbrou...@gmail.com wrote: Alan wrote: the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end Three functions are defined directly above: L297: local function getsymbolpage(tag,n) L307: local function getnumberpage(tag,n) L317: function notes.deltapage(tag,n) There is no reference to /\deltapage/ anywhere (`\` is a word boundary), so I suggest turning L317 into local function getdeltapage(tag,n) and see whether that solves your problem. I can't test it myself, lacking a minimal (non)working example. (They should be called Minimal Illustrative Examples, really, or Minimal Complete Examples. But that ship has long sailed.) Cheers, Sietse On Fri, Aug 3, 2012 at 4:36 PM, Alan Bowen bowenala...@gmail.com wrote: Hi, Keith— the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end In strc-not.mkiv, the lines are: \def\strc_notes_set_style_color_special {\iftrialtypesetting % keep \else\ifx\currentcolorparameter\empty \scratchcounter\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % todo calculate once \setlocationcolorspecified\scratchcounter \fi\fi} \unexpanded\def\strc_notes_inject_pointer % todo calculate once {\ifcase\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % unknown \or % same page \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!nextpage]}% \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!previouspage]}% \fi} But I have no idea what to make of this. Alan On Fri, Aug 3, 2012 at 10:04 AM, Keith J. Schultz keithjschu...@web.de wrote: Hi Alan, I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage. There are other possiblities. If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point, or somebody for to use a dummy function. regards Keith. Am 03.08.2012 um 15:04 schrieb Alan Bowen bowenala...@gmail.com: Files that used to process are now getting this error message: ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' main ctx instance:1: in main chunk. system tex error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error … ctxcommand ...\directlua \zerocount {commands.#1} \strc_notes_set_style_color_special ...tenumber )} \relax \setlocationcolorsp... \strc_notes_set_style_color_inline ...lor_special \fi \strc_notes_inject_symbol ...xtstyle \c!textcolor \hbox \strc_notes_get_refe... \195notation:note ...l \strc_notes_inject_symbol \else \unskip \unskip \glo... \strc_notations_command_nop ...handler \endcsname \strc_constructions_finali... I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone) Is there fix for this? Many thanks. Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http
Re: [NTG-context] math symbol: blacktriangle
Hi Hans, On 17-7-2012 20:41, Andreas Mang wrote: mathname=blacktriangle, to [0x25B4]={ adobename=blackuppointingsmalltriangle, category=so, description=BLACK UP-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25B4, }, why not 25B2 (the bigger one) [0x25BE]={ category=so, description=BLACK DOWN-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25BE, }, with mathname=blacktriangledown under the assumption you'd like to be consistent with the naming convention of latex. or 25BC (the bigger one) To make it short: I think Hans is correct. From my perspective there is an error in char-def.lua for blacktriangleleft and secondly the internet page I have looked this up is not consistent with what is implemented in ConTeXt, both facts of which lead me into the wrong direction (see below (P.S.), if you are interested). Both, http://www.unicodemap.org/details/0x25B2/index.html and http://www.unicodemap.org/details/0x25BC/index.html look consistent to \blacktriangleright (which I am already using in my document): http://www.unicodemap.org/details/0x25B6/index.html Cheers, Andreas P.S.: When I started to look into this I thought it might be possilble to define some command in the preamble of my document that uses unicode. From searching the internet I found http://www-sop.inria.fr/marelle/tralics/doc-b.html which says The \blacktriangle command is valid only in math mode. Its translation is moblacktriangle;/mo (Unicode U+25B4, ▴). However, there indeed is a problem (which I have not spotted in the first place). I had a look at char-def.lua which at first confirmed my impression on using small triangels: [0x25B8]={ category=so, description=BLACK RIGHT-POINTING SMALL TRIANGLE, direction=on, linebreak=al, mathclass=bin, mathname=blacktriangleleft, unicodeslot=0x25B8, }, However, this is not consistent with what you can find on the internetpage from above, since it 0x25B8 should be blacktriangleright The \blacktriangleright command is valid only in math mode. Its translation is moblacktriangleright;/mo (Unicode U+25B8, ▸). Secondly, the \triangleleft, which I have not used before, does not work (at least for me ConTeXt ver: 2012.07.10 09:52 MKIV fmt: 2012.7.15 int: english/english): simple example: \starttext $\blacktriangleleft$ % does not appear $\blacktriangleright$ % works \stoptext For the blacktriangleright we have: [0x25B6]={ adobename=blackrightpointingtriangle, category=so, cjkwd=a, description=BLACK RIGHT-POINTING TRIANGLE, direction=on, linebreak=ai, mathclass=bin, mathname=blacktriangleright, unicodeslot=0x25B6, }, which is _not_ consistent with The \blacktriangleright command is valid only in math mode. Its translation is moblacktriangleright;/mo (Unicode U+25B8, ▸). However, looking at http://www.unicodemap.org/details/0x25B6/index.html and given the fact that blacktriangleright works nicely, I'd assume that Hans is correct and it indeed is not the small ones but the big tirangles. ___ 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] math symbol: blacktriangle
Hi, I uploaded a new beta .. still not ok I guess: \setuplayout[header=0pt,footer=0pt,height=middle,width=middle] \setupbodyfont[dejavu,10pt] \startbuffer \starttabulate[|||pT|] \HL \NC \type{\blacktriangle } \NC \blacktriangle \NC \meaning\blacktriangle \NC \NR \NC \type{\blacktriangledown } \NC \blacktriangledown \NC \meaning\blacktriangledown \NC \NR \NC \type{\blacktriangleleft } \NC \blacktriangleleft \NC \meaning\blacktriangleleft \NC \NR \NC \type{\blacktriangleright} \NC \blacktriangleright \NC \meaning\blacktriangleright \NC \NR \HL \NC \type{\triangle } \NC \triangle \NC \meaning\triangle \NC \NR \NC \type{\bigtriangleup} \NC \bigtriangleup \NC \meaning\bigtriangleup \NC \NR \NC \type{\triangledown } \NC \triangledown \NC \meaning\triangledown \NC \NR \NC \type{\bigtriangledown}\NC \bigtriangledown\NC \meaning\bigtriangledown\NC \NR \NC \type{\triangleleft } \NC \triangleleft \NC \meaning\triangleleft \NC \NR \NC \type{\triangleright} \NC \triangleright \NC \meaning\triangleright \NC \NR \HL \stoptabulate \stopbuffer \starttext \switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank \stoptext I tend to taking xits as reference. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
Hi, Thanks Hans. It works for me :) Relating the output (\blacktriangleright and \blacktriangle) to some figure I have created with latex + tikz I do not see any difference. Cheers, Andreas Am Jul 18, 2012 um 10:37 AM schrieb Hans Hagen: Hi, I uploaded a new beta .. still not ok I guess: \setuplayout[header=0pt,footer=0pt,height=middle,width=middle] \setupbodyfont[dejavu,10pt] \startbuffer \starttabulate[|||pT|] \HL \NC \type{\blacktriangle } \NC \blacktriangle \NC \meaning\blacktriangle \NC \NR \NC \type{\blacktriangledown } \NC \blacktriangledown \NC \meaning\blacktriangledown \NC \NR \NC \type{\blacktriangleleft } \NC \blacktriangleleft \NC \meaning\blacktriangleleft \NC \NR \NC \type{\blacktriangleright} \NC \blacktriangleright \NC \meaning\blacktriangleright \NC \NR \HL \NC \type{\triangle } \NC \triangle \NC \meaning\triangle \NC \NR \NC \type{\bigtriangleup} \NC \bigtriangleup \NC \meaning\bigtriangleup \NC \NR \NC \type{\triangledown } \NC \triangledown \NC \meaning\triangledown \NC \NR \NC \type{\bigtriangledown}\NC \bigtriangledown\NC \meaning\bigtriangledown\NC \NR \NC \type{\triangleleft } \NC \triangleleft \NC \meaning\triangleleft \NC \NR \NC \type{\triangleright} \NC \triangleright \NC \meaning\triangleright \NC \NR \HL \stoptabulate \stopbuffer \starttext \switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank \stoptext I tend to taking xits as reference. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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] math symbol: blacktriangle
On Wed, Jul 18, 2012 at 12:29:52AM +0200, Hans Hagen wrote: On 17-7-2012 22:36, Khaled Hosny wrote: On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote: On 17-7-2012 19:39, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. keep in mind that not all those black triangles in ams math ended up in unicode AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX support covers them all from STIX Unicode fonts). Also the black triangles left and right (in ams compatible font sizes)? (Last time I messed with it I had to get them from the navigational symbol font). I don't know about the sizes, but every csname defined by amsfonts and amssymb is covered. Regards, Khaled ___ 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] math symbol: blacktriangle
On Wed, 18 Jul 2012, Hans Hagen wrote: Hi, I uploaded a new beta .. still not ok I guess: I haven't checked the new beta, but FWIW, these are the slots that unicode-math package uses (I usually treat that as a reference): \UnicodeMathSymbol{025B2}{\bigblacktriangleup }{\mathord}{black up-pointing triangle}% \UnicodeMathSymbol{025B3}{\bigtriangleup}{\mathbin}{big up triangle, open}% \UnicodeMathSymbol{025B4}{\blacktriangle}{\mathord}{up triangle, filled}% \UnicodeMathSymbol{025B5}{\vartriangle }{\mathrel}{/triangle - up triangle, open}% \UnicodeMathSymbol{025B6}{\blacktriangleright }{\mathord}{(large) right triangle, filled}% \UnicodeMathSymbol{025B7}{\triangleright}{\mathbin}{(large) right triangle, open; z notation range restriction}% \UnicodeMathSymbol{025B8}{\smallblacktriangleright }{\mathord}{right triangle, filled}% \UnicodeMathSymbol{025B9}{\smalltriangleright }{\mathord}{right triangle, open}% \UnicodeMathSymbol{025BA}{\blackpointerright}{\mathord}{black right-pointing pointer}% \UnicodeMathSymbol{025BB}{\whitepointerright}{\mathord}{white right-pointing pointer}% \UnicodeMathSymbol{025BC}{\bigblacktriangledown }{\mathord}{big down triangle, filled}% \UnicodeMathSymbol{025BD}{\bigtriangledown }{\mathord}{big down triangle, open}% \UnicodeMathSymbol{025BE}{\blacktriangledown}{\mathord}{down triangle, filled}% \UnicodeMathSymbol{025BF}{\triangledown }{\mathord}{down triangle, open}% \UnicodeMathSymbol{025C0}{\blacktriangleleft}{\mathord}{(large) left triangle, filled}% \UnicodeMathSymbol{025C1}{\triangleleft }{\mathbin}{(large) left triangle, open; z notation domain restriction}% \UnicodeMathSymbol{025C2}{\smallblacktriangleleft }{\mathord}{left triangle, filled}% \UnicodeMathSymbol{025C3}{\smalltriangleleft}{\mathord}{left triangle, open}% Aditya \setuplayout[header=0pt,footer=0pt,height=middle,width=middle] \setupbodyfont[dejavu,10pt] \startbuffer \starttabulate[|||pT|] \HL \NC \type{\blacktriangle } \NC \blacktriangle \NC \meaning\blacktriangle \NC \NR \NC \type{\blacktriangledown } \NC \blacktriangledown \NC \meaning\blacktriangledown \NC \NR \NC \type{\blacktriangleleft } \NC \blacktriangleleft \NC \meaning\blacktriangleleft \NC \NR \NC \type{\blacktriangleright} \NC \blacktriangleright \NC \meaning\blacktriangleright \NC \NR \HL \NC \type{\triangle } \NC \triangle \NC \meaning\triangle \NC \NR \NC \type{\bigtriangleup} \NC \bigtriangleup \NC \meaning\bigtriangleup \NC \NR \NC \type{\triangledown } \NC \triangledown \NC \meaning\triangledown \NC \NR \NC \type{\bigtriangledown}\NC \bigtriangledown\NC \meaning\bigtriangledown\NC \NR \NC \type{\triangleleft } \NC \triangleleft \NC \meaning\triangleleft \NC \NR \NC \type{\triangleright} \NC \triangleright \NC \meaning\triangleright \NC \NR \HL \stoptabulate \stopbuffer \starttext \switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank \stoptext I tend to taking xits as reference. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] Is startalign broken in mkiv?
Thanks. Now I have my own little sacrilege in the environment file. Matthias On Jul 17, 2012, at 11:13 PM, Rogers, Michael K mrog...@emory.edu wrote: Here's a backward-compatibility hack that works on your minimal example. Maybe it will save the dozens of files without changing all the s: \let\oldstartalign=\startalign \let\oldstopalign=\stopalign \let\oldbs=\\ \def\startalign{\catcode`=4\let\\=\cr\oldstartalign} \def\stopalign{\oldstopalign\catcode`=12\let\\=\oldbs} \starttext This \ that the other thing: \startformula \startalign v = u + at \\ h = ut + \frac12 gt^2 \\ \stopalign \stopformula That \ this yet another thing. \stoptext Hope that helps. Michael On Jul 17, 2012, at 6:48 PM, Matthias Weber wrote: It was never a problem in TeX to modify the control characters used according to your own pleasure. For me, the problem is now to change the 200+ occurrences of start/stopaligns distributed over dozens of files to the politically correct syntax. Matthias On Jul 17, 2012, at 7:41 PM, Khaled Hosny khaledho...@eglug.org wrote: The use of (which is a common symbol) as a control character is a long standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of. On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote: Thanks - I wasn't aware that the human readable version had been deprecated :( Matthias On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote: On 18-7-2012 00:22, Matthias Weber wrote: \starttext \startformula \startalign v = u + at \\ h = ut + \frac12 gt^2 \\ \stopalign \stopformula \stoptext ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english (...) ! Missing $ inserted. system tex error on line 3 in file test.tex: Missing $ inserted ... 1 \starttext 2 \startformula \startalign 3 v = u + at \\ 4 h = ut + \frac12 gt^2 \\ 5 \stopalign \stopformula 6 \stoptext Thanks - the context way is: \startformula \startalign \NC v \NC = u + at \NR \NC h \NC = ut + \frac12 gt^2 \NR \stopalign \stopformula - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math symbol: blacktriangle
Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? Cheers, Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
Hi Aditya, Thanks for the advice. As I am a newby, I'd decided to respond to the list: I had a look at char-def.lua and I think the only thing that needs to be done is to add mathname=blacktriangle, to [0x25B4]={ adobename=blackuppointingsmalltriangle, category=so, description=BLACK UP-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25B4, }, The unicodeslot is consistent to what I've found in the famous WWW http://www.fileformat.info/info/unicode/char/25b4/index.htm Same goes for [0x25BE]={ category=so, description=BLACK DOWN-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25BE, }, with mathname=blacktriangledown under the assumption you'd like to be consistent with the naming convention of latex. Right? Cheers, Andreas On Jul 17, 2012, at 7:39 PM, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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] math symbol: blacktriangle
On 17-7-2012 19:39, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. keep in mind that not all those black triangles in ams math ended up in unicode (future lm/gyre fonts might have some of these symbols) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote: On 17-7-2012 19:39, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. keep in mind that not all those black triangles in ams math ended up in unicode AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX support covers them all from STIX Unicode fonts). Regards, Khaled ___ 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] math symbol: blacktriangle
On 17-7-2012 22:36, Khaled Hosny wrote: On Tue, Jul 17, 2012 at 09:40:15PM +0200, Hans Hagen wrote: On 17-7-2012 19:39, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. keep in mind that not all those black triangles in ams math ended up in unicode AFAIK all ams symbols are in Unicode now (I know because the STIX LaTeX support covers them all from STIX Unicode fonts). Also the black triangles left and right (in ams compatible font sizes)? (Last time I messed with it I had to get them from the navigational symbol font). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math symbol: blacktriangle
On 17-7-2012 20:41, Andreas Mang wrote: Hi Aditya, Thanks for the advice. As I am a newby, I'd decided to respond to the list: I had a look at char-def.lua and I think the only thing that needs to be done is to add mathname=blacktriangle, to [0x25B4]={ adobename=blackuppointingsmalltriangle, category=so, description=BLACK UP-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25B4, }, why not 25B2 (the bigger one) The unicodeslot is consistent to what I've found in the famous WWW http://www.fileformat.info/info/unicode/char/25b4/index.htm Same goes for [0x25BE]={ category=so, description=BLACK DOWN-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25BE, }, with mathname=blacktriangledown under the assumption you'd like to be consistent with the naming convention of latex. or 25BC (the bigger one) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is startalign broken in mkiv?
The use of (which is a common symbol) as a control character is a long standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of. On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote: Thanks - I wasn't aware that the human readable version had been deprecated :( Matthias On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote: On 18-7-2012 00:22, Matthias Weber wrote: \starttext \startformula \startalign v = u + at \\ h = ut + \frac12 gt^2 \\ \stopalign \stopformula \stoptext ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english (...) ! Missing $ inserted. system tex error on line 3 in file test.tex: Missing $ inserted ... 1 \starttext 2 \startformula \startalign 3 v = u + at \\ 4 h = ut + \frac12 gt^2 \\ 5 \stopalign \stopformula 6 \stoptext Thanks - the context way is: \startformula \startalign \NC v \NC = u + at \NR \NC h \NC = ut + \frac12 gt^2 \NR \stopalign \stopformula - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] Is startalign broken in mkiv?
It was never a problem in TeX to modify the control characters used according to your own pleasure. For me, the problem is now to change the 200+ occurrences of start/stopaligns distributed over dozens of files to the politically correct syntax. Matthias On Jul 17, 2012, at 7:41 PM, Khaled Hosny khaledho...@eglug.org wrote: The use of (which is a common symbol) as a control character is a long standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of. On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote: Thanks - I wasn't aware that the human readable version had been deprecated :( Matthias On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote: On 18-7-2012 00:22, Matthias Weber wrote: \starttext \startformula \startalign v = u + at \\ h = ut + \frac12 gt^2 \\ \stopalign \stopformula \stoptext ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english (...) ! Missing $ inserted. system tex error on line 3 in file test.tex: Missing $ inserted ... 1 \starttext 2 \startformula \startalign 3 v = u + at \\ 4 h = ut + \frac12 gt^2 \\ 5 \stopalign \stopformula 6 \stoptext Thanks - the context way is: \startformula \startalign \NC v \NC = u + at \NR \NC h \NC = ut + \frac12 gt^2 \NR \stopalign \stopformula - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Is startalign broken in mkiv?
Here's a backward-compatibility hack that works on your minimal example. Maybe it will save the dozens of files without changing all the s: \let\oldstartalign=\startalign \let\oldstopalign=\stopalign \let\oldbs=\\ \def\startalign{\catcode`=4\let\\=\cr\oldstartalign} \def\stopalign{\oldstopalign\catcode`=12\let\\=\oldbs} \starttext This \ that the other thing: \startformula \startalign v = u + at \\ h = ut + \frac12 gt^2 \\ \stopalign \stopformula That \ this yet another thing. \stoptext Hope that helps. Michael On Jul 17, 2012, at 6:48 PM, Matthias Weber wrote: It was never a problem in TeX to modify the control characters used according to your own pleasure. For me, the problem is now to change the 200+ occurrences of start/stopaligns distributed over dozens of files to the politically correct syntax. Matthias On Jul 17, 2012, at 7:41 PM, Khaled Hosny khaledho...@eglug.org wrote: The use of (which is a common symbol) as a control character is a long standing idiosyncrasy of TeX that I'm glad ConTeXt has got rid of. On Tue, Jul 17, 2012 at 07:32:09PM -0400, Matthias Weber wrote: Thanks - I wasn't aware that the human readable version had been deprecated :( Matthias On Jul 17, 2012, at 7:17 PM, Hans Hagen pra...@wxs.nl wrote: On 18-7-2012 00:22, Matthias Weber wrote: \starttext \startformula \startalign v = u + at \\ h = ut + \frac12 gt^2 \\ \stopalign \stopformula \stoptext ConTeXt ver: 2012.07.17 16:42 MKIV fmt: 2012.7.17 int: english/english (...) ! Missing $ inserted. system tex error on line 3 in file test.tex: Missing $ inserted ... 1 \starttext 2 \startformula \startalign 3 v = u + at \\ 4 h = ut + \frac12 gt^2 \\ 5 \stopalign \stopformula 6 \stoptext Thanks - the context way is: \startformula \startalign \NC v \NC = u + at \NR \NC h \NC = ut + \frac12 gt^2 \NR \stopalign \stopformula - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___ 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] math: diagonal dots
Dear all, It seems that the \ddots in modern is mapped to the wrong Symbol: % \setupbodyfont[modern,12pt] \starttext $\ddots$ \stoptext % System: ConTeXt ver: 2012.07.10 09:52 MKIV result: three dots from bottom left to top right (corresponds to \iddots (which btw. does not exist in context, as it seems)) expected result: three dots from top left to bottom right Seems just to be the case for modern. Cheers, Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] quotationmarks just before new line
Am 03.07.2012 um 15:03 schrieb d_jan: Hello, Thanks! That did the job as far as I can see. I did set the Quotation Marks manually since I considered to change them to Guillemets (» «) later. When you want to change the quotation marks it’s better to change them with \setuplanguage and set the right sign for the current level with \symbol[…quotation] and \symbol[…quote]. \setuplanguage [de] [ leftquotation=», rightquotation=«, leftquote=›, rightquote=‹] \mainlanguage[de] \starttext text \quotation{text} text \quote{text} text text \quotation{text \quote{text} text} text text \quotation{text \quotation{text} text} text \setupdelimitedtext[quotation:1][left={\symbol[leftquotation]},right={\symbol[rightquotation]}] \setupdelimitedtext[quotation:2][left={\symbol[leftquote]}, right={\symbol[rightquote]}] text \quotation{text \quotation{text} text} text \stoptext BTW: There is a change in the way how to set the values for a certain delimited text level in MkIV as shown above. Wolfgang___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] itemize behaviour
I do not understand the workings of the itemize. What I want is two nested itemlists. The outer one unpacked, the inner one packed. In the inner one the itemlist should be joinedup with the text before it. I do not get this working, see the examples. The inner list is separated from the Intro to inner list. It looks like the joinedup in the second example has no effect, because deleting it makes no difference. Switching the joinedup over to the outer itemize in the third example pulls everything together and destroys the unpacked of the first list. How to achieve the following? -- - Intro to inner list o one inner list o two inner list - second outer item -- Hans van der Meer \starttext \setupitemgroup[itemize][1][unpacked][symbol=4] \setupitemgroup[itemize][2][unpacked][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \blank\thinrule\blank \setupitemgroup[itemize][1][unpacked][symbol=4] \setupitemgroup[itemize][2][packed,joinedup][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \blank\thinrule\blank \setupitemgroup[itemize][1][unpacked,joinedup][symbol=4] \setupitemgroup[itemize][2][packed][symbol=5] \startitemize \startitem Intro to inner list. \startitemize \startitem one inner list \stopitem \startitem two inner list \stopitem \stopitemize \stopitem \startitem second outer item \stopitem \stopitemize \stoptext itemize.pdf Description: itemize.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] List without bullets
Am 30.06.2012 um 00:49 schrieb Gilbert Houtekamer: Hi, I am would like to make \startitemize list with \head that has no bullets, e.g. Topic My text for topic Another Topic Text for another topic. With \startitemize and \head I get bullets before Topic and Another Topic, how can get rid of these? When you the head and the itemize entries are on the same level you can’t change/remove it because head uses the normal item symbol but when you move the entries at a deeper level you can use the empty symbol “none” for the top level and use the “bullet” symbol for the sub level. \starttext \startitemize \starthead {Topic} \startitem My text for topic \stopitem \stophead \starthead {Another Topic} \startitem Text for another topic. \stopitem \stophead \stopitemize \startitemize[none][width=0pt] \starthead {Topic} \startitemize[bullet] \startitem My text for topic \stopitem \stopitemize \stophead \starthead {Another Topic} \startitemize[bullet] \startitem Text for another topic. \stopitem \stopitemize \stophead \stopitemize \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___