[NTG-context] creating multirow curly brace in tables to symbolize row span
List: I'm trying to create a table with this effect: Parcel |Area ⎧ | 1 acre trees parcel 1 ⎨ | 2 acre vines ⎩ | 3 acre open ⎧ | 5 acre trees parcel 2 ⎨ | 6 acre vines ⎩ | 4 acre open In other words, I would like a big curly bracket with leftwards point spanning three table rows to tell the reader that the leftmost column's entries apply to a three-row span in the next column (a style often seen in tables in older books). I've tried, probably naively, the following approach, using the unicode symbols for the bracket pieces and alternatively using math-mode symbols found in http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/unimath-symbols.pdf Every symbol defined by unicode-math. The symbols are recognized in neither form, unfortunately. Any suggestions on how I can either make these symbols render, or a different approach to achieve my goal? Complete test document: \enableregime[utf]\setuppapersize[letter][letter] \usetypescript[serif,sans,mono][hanging][normal] \setupalign[hanging] \usetypescript[modern-base][texnansi] \setupbodyfont[reset] \setupbodyfont[modern] \definetypeface[boldmath][mm][boldmath][modern][default] \usemodule[cmscbf] \usemodule[unicode-math] \setupbodyfont[11pt] \starttext \bTABLE \bTR{}\bTD{}Parcel \eTD\bTD{} \eTD\bTD Area \eTD\eTR% \bTR{}\bTD{} \eTD\bTD{}\mathematics{\lbraceuend} \eTD\bTD 1 \eTD\eTR% \bTR{}\bTD{}parcel 2 \eTD\bTD{}\mathematics{\lbracemid} \eTD\bTD 2 \eTD\eTR% \bTR{}\bTD{} \eTD\bTD{}\mathematics{\lbracelend} \eTD\bTD 3 \eTD\eTR% \eTABLE \bTABLE \bTR{}\bTD{} \eTD\bTD{}⎧ \eTD\bTD 1 \eTD\eTR% \bTR{}\bTD{}parcel 4 \eTD\bTD{}⎨ \eTD\bTD 2 \eTD\eTR% \bTR{}\bTD{} \eTD\bTD{}⎩ \eTD\bTD 3 \eTD\eTR% \eTABLE \stoptext -- Henry House ___ 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] creating multirow curly brace in tables to symbolize row span
On Thu, 20 Aug 2015, Henry House wrote: List: I'm trying to create a table with this effect: Parcel |Area ⎧ | 1 acre trees parcel 1 ⎨ | 2 acre vines ⎩ | 3 acre open ⎧ | 5 acre trees parcel 2 ⎨ | 6 acre vines ⎩ | 4 acre open In other words, I would like a big curly bracket with leftwards point spanning three table rows to tell the reader that the leftmost column's entries apply to a three-row span in the next column (a style often seen in tables in older books). Any suggestions on how I can either make these symbols render, or a different approach to achieve my goal? As an alternative, have you considered separating the groups by white space. For example: \starttext \bTABLE[frame=off, loffset=0.5em] \bTH \bTD Parcel \eTD \bTD Area \eTD \eTH \bTR \bTD[nr=3, align={lohi}] Parcel 1 \eTD \bTD 1 acre trees \eTD \eTR \bTR \bTD 2 acre vines \eTD \eTR \bTR \bTD 3 acre open \eTD \eTR \bTR[topdistance=\lineheight] \bTR \bTD[nr=3, align={lohi}] Parcel 2 \eTD \bTD 5 acre trees \eTD \eTR \bTR \bTD 6 acre vines \eTD \eTR \bTR \bTD 4 acre open \eTD \eTR \eTABLE \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 ___
[NTG-context] \switchtobodyfont issue, also with newotf
While working to get italic smallcaps in a secondary font face, I came across an issue with \switchbodyfont. When this is used in a certain way, the \tf font-style is changed, but not the \it, \bf, and so on. The example below compiles cleanly as presented, and the problem is not present. Each test line shows the expected font name and text. When the Oops! line is uncommented, the only test line for the test font that is correct is the \tf line. Other lines use the default font face in the specified font styles, but the font features are a mix (note that some are onum, some lining, and that long-s t ligatures are inconsistent). When the newotf module is enabled, the example fails to compile without errors, but produces similar results to non-newotf when the errors are ignored. This is not a problem with individual fonts—I have tried a variety of fonts both as default and secondary and get the same result. %\usemodule[newotf] \setupwhitespace[medium] \define\testAlphabet{\purefontname\font\quad ABCDEFGHIJKLmnopqrsſtuvwxyz \ 012345789} \starttypescript[Secondary] \definetypeface[Secondary][rm][serif][ebgaramond][default] % \definetypeface[Secondary][rm][serif][palatino][default] % \definetypeface[Secondary][rm][serif][libertine][default] \stoptypescript \setupbodyfont [modern, 10pt] %\setupbodyfont [palatino, 10pt] \starttext % {\switchtobodyfont[Secondary]Oops!\par}% Oops! Default tf: {\tf \testAlphabet}\par Default bf: {\bf \testAlphabet}\par Default it: {\it \testAlphabet}\par Default sl: {\sl \testAlphabet}\par Default bi: {\bi \testAlphabet}\par Default bs: {\bs \testAlphabet}\par Default sc: {\sc \testAlphabet}\par Default xx: {\it\setff{smallcaps}\testAlphabet}\par \switchtobodyfont[Secondary] Secondary tf: {\tf \testAlphabet}\par Secondary bf: {\bf \testAlphabet}\par Secondary it: {\it \testAlphabet}\par Secondary sl: {\sl \testAlphabet}\par Secondary bi: {\bi \testAlphabet}\par Secondary bs: {\bs \testAlphabet}\par Secondary sc: {\sc \testAlphabet}\par Secondary xx: {\it\setff{smallcaps}\testAlphabet}\par \stoptext Have I failed to properly specify the secondary typeface? Do I need a more complete typescript? Or is there a bug here? -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \installprettytype problem
Hello, I want to use the C-Pretty-Printing http://modules.contextgarden.net/pret-c module. According to the Verbatim page of the Context garden, I have to use the \installprettytype command, but this one doesn't work (error : undefined control sequence). I'm using the 2015.08.13 19:33 Context version. Example : \installprettytype[C][C] \definetyping[C][option=C] \startC int func(int a){ if(a 4) return 0; // comment else/* comment */ return 10; } \stopC Thank you. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad PDF to text crawlers
On Wed, 2015-08-19 at 23:35 +0200, Peter Münster wrote: Even if you would find a way today, tomorrow there would be other bots, that see the same text, as the humans. Yes, probably. Get the value of HTTP_USER_AGENT and send the replacement text, if the agent is a bot. Or use robots.txt. I'll give that some thought. Thank you. -- Kip Warner -- Senior 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] \installprettytype problem
Bonsoir Matthieu, Give a try to https://github.com/nibua-r/pretty-c and tell me if anything goes wrong… It's basically a rewrite of Peter's module adapted to mkiv + new verbatim (new at the time of writing) I'll test it tomorrow… Anyway, you're welcome to contribute and/or submit issues. Best regards, Renaud Le 20 août 2015 10:43 PM, Matthieu Leroy matt57.le...@orange.fr a écrit : Hello, I want to use the C-Pretty-Printing module. According to the Verbatim page of the Context garden, I have to use the \installprettytype command, but this one doesn't work (error : undefined control sequence). I'm using the 2015.08.13 19:33 Context version. Example : \installprettytype[C][C] \definetyping[C][option=C] \startC int func(int a){ if(a 4) return 0; // comment else /* comment */ return 10; } \stopC Thank you. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___