[NTG-context] is this possbile ? \externalfigure[c:\test\test.pdf at page 5 (0, 0) (20, 20)]
Title: Samsung Enterprise Portal mySingle Greeting Context users, I like to ask if following command is possible in context. \externalfigure[c:\test\test.pdf at page 5 (0,0) (20,20)] What I like to do is “getting certain area of certain page of a PDF file” using context command without saving to a separate JPG file. Thank you in advance. onion...@naver.com ___ 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] Augmented matrix?
How can I typeset an augmented matrix, that is, a matrix where some columns are separated by a vertical line? \VL doesn't seem to work within a formula. Thanks very much! cheers, Alasdair -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew ___ 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] Difference between texexec and context when using indent
2011/4/17 Wolfgang Schuster schuster.wolfg...@googlemail.com: With the following code: \setupindenting[yes,medium,next] \starttext \input knuth \blank \input knuth \stoptext When using texexec (MKII) the paragraph after the \blank is not indented. When using context (MKIV) it is. Why this difference? And you think it’s better to let \blank behave different dependent on the indenting settings? % engine=pdftex \starttext \setupindenting[yes,medium,first] \input knuth \blank \input knuth \page \setupindenting[yes,medium,next] \input knuth \blank \input knuth \stoptext To control whether the next paragraph is indented or not should better be controlled with by \setupblank and not from \setupindenting. I did not know that it could be done with \setupblank. I was told that I needed to define a \myblank for it. But still I think it would be good that after a blank there is no indentation. Firstly: that is the way it works in mkii. Why does mkiv do it differently? Secondly: You use -in my opinion- next, because the first paragraph is clear that it is a new paragraph. After a bank (or a flowchart) it is clear that there starts a new paragraph. So it does not need to be indented in my opinion. -- Cecil Westerhof ___ 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 this possbile ? \externalfigure[c:\test\test.pdf at page 5 (0, 0) (20, 20)]
정진기 jinkijinki.j...@partner.samsung.com writes: What I like to do is “getting certain area of certain page of a PDF file” using context command without saving to a separate JPG file. \clip[...]{\externalfigure[filename.pdf][page=X]} See also: http://wiki.contextgarden.net/Reference/en/externalfigure and http://wiki.contextgarden.net/Reference/en/clip I guess, that \ in a filename is not allowed. Perhaps it's better to use c:/test/test.pdf. -- Peter ___ 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 produce a dotless i with ConTeXt?
On 04/16/2011 11:42 AM, Thomas Schmitz wrote: On Sat, 16 Apr 2011 11:24:00 +0200 Verhaag, G.C.H.M. verhaagg...@ziggo.nl wrote: I for example tried to generate the soft g, the g with the caron (inverted circumflex!) above it, using \gcaron, which just works fine. But I'm unable to generate a dotless i! So what did you try? Here's 3 methods that work for me: 1. (best): write the character directly into your source file: #305; 2. \dotlessi (see the list of characters in char-def.lua) 3. \i (compatibility, defined in enco-ini.mkiv) HTH Thomas Hi, Thanks for the answers! Only one suggestion doesn't work for me; inserting the #305; (it looks like an HTML code not ConTeXt code!?) in my source file. Well, I prefer to use \dotlessi and \i, and don't like #305 or \char0131, because I'm not very good at remembering number codes! Regards, Gerard Verhaag ___ 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] Widget and mandatory Rect field?
On 18-4-2011 7:31, Reviczky, Adam wrote: Hi I have a PDF with widgets and everything's fine with it, and I'm testing it by opening it with Adobe Reader. Now I had a look again with other viewers and when I open it with evince (poppler based), then it gives me some strange errors like this: Error: Annotation rectangle is wrong type Though it opens it fine and no problems at all. there can also be a puzzling FormFieldButton::setState called on a readOnly field I googled a bit and found a bug report on this: https://bugs.freedesktop.org/show_bug.cgi?id=29954 There it is said that its ConTeXt's fault, as It has a Widget annotation without the mandatory Rect field. Is it really so? I couldn't find any threads on this on the list. \nopdfcompression \setupinteraction[state=start] \definefieldbody[email][type=line] \starttext \startTEXpage \fieldbody[email] \par \fieldbody[email] \stopTEXpage \stoptext gives 17 0 obj /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK /CA () /F 4 /Rect [0 14.4275 59.7758 26.3827] endobj 18 0 obj /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK /CA () /F 4 /Rect [0 0 59.7758 11.9552] endobj which look like Annot's with Rect's to me. There is a parent field 16 0 obj /Q 0 /Subtype /Widget /T feff0065006d00610069006c /F 4 /Kids 15 0 R /V feff /DV feff /Ff 0 /MaxLen 1024 /FT /Tx /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) endobj but it's not an annot (just a container for shared data). (Actually children can have different rectangles so it would not make sense to share one). Can someone confirm this, can this be even fixed? Are you saying that Evince does forms (and Javascript as it's associated) or is it checking something that is not interpreted anyway? Officially a viewer should ignore annots that it cannot handle. Anyhow, in context we've always had such widgets implemented using a parent / child model and it's the child that matters for rendering (and it definitely has a Rect as it's an Annot) while the parent is just a dictionary and not an annot (one can argue that the Subtype key is not needed there but - at least in the past - it had to be there.) BTW, I'm currently playing with the luatex epdf interface (under construction and being cleaned up for 0.70) and I noticed the same message. Interesting is that there are such widget tests in popler but at the same time more important tests (arrays getting out of bounds leading to crashes) are not there. But Hartmut is working on getting that all fixed in the luatex variant (interface) eventually. The mentioned message probably have to be intercepted as well and be fed into the regular message system. So, unless I'm sure what (and if something) is wrong I'll do nothing. (Acrobat preflights the document all right and some widgets types are too instable to mess with too much anyway.) 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] How to produce a dotless i with ConTeXt?
On Mon, 18 Apr 2011 10:23:54 +0200 Verhaag, G.C.H.M. verhaagg...@ziggo.nl wrote: Thanks for the answers! Only one suggestion doesn't work for me; inserting the #305; (it looks like an HTML code not ConTeXt code!?) in my source file. Well, I prefer to use \dotlessi and \i, and don't like #305 or \char0131, because I'm not very good at remembering number codes! As Mojca already pointed out, I meant typing the character directly. I'm using a web mail interface which unfortunately replaces the character with this strange entity. Thomas ___ 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] Widget and mandatory Rect field?
17 0 obj /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK /CA () /F 4 /Rect [0 14.4275 59.7758 26.3827] endobj 18 0 obj /Type /Annot /Q 0 /Subtype /Widget /Parent 16 0 R /DA (/rmtf 11.9552 Tf 1.1955 Ts 0 0 0 rg 0 0 0 RG) /MK /CA () /F 4 /Rect [0 0 59.7758 11.9552] endobj which look like Annot's with Rect's to me. There is a parent field I was puzzled by this too, but apparently its the parent where the error message is thrown out (rightly or falsely). Are you saying that Evince does forms (and Javascript as it's associated) or is it checking something that is not interpreted anyway? Officially a viewer should ignore annots that it cannot handle. Evince does forms by now, at least to some extent, without JavaScript of course. I've tested this: http://help.adobe.com/en_US/Acrobat/9.0/Samples/interactiveform_enabled.pdf which gives me a Unimplemented annotation: POPPLER_ANNOT_LINE, please post a bug report in Evince bugzilla (http://bugzilla.gnome.org) with a testcase. So there must be some checking. Anyhow, in context we've always had such widgets implemented using a parent / child model and it's the child that matters for rendering (and it definitely has a Rect as it's an Annot) while the parent is just a dictionary and not an annot (one can argue that the Subtype key is not needed there but - at least in the past - it had to be there.) Sounds fair enough, and I'm not complaining :). So, unless I'm sure what (and if something) is wrong I'll do nothing. (Acrobat preflights the document all right and some widgets types are too instable to mess with too much anyway.) That's fine, and as long as its working I don't really care. Hans Cheers Adam ___ 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] section headings
no one has an idea? Am 09.04.2011 20:55, schrieb Herbert Voss: With the following code I get 1. Teil foo § 1 1 bar i baz but I need 1. Teil foo § 1 A. bar I. baz I cannot get the needed information from the wiki and the documentation. \def\PartNo#1{#1.\,Teil} \def\ChapterNo#1{§ \headnumber[part] \determineheadnumber[chapter]\currentheadnumber} \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber} \setuphead[part][number=yes,after=\blank,numbercommand=\PartNo, style={\tfc\ss\bf},placehead=yes] \setuphead[chapter][before=\blank,after=\blank,conversion=Characters, numbercommand=\ChapterNo, continue=yes,style={\tfb\ss\bf}] \setuphead[section][conversion=Romannumerals, numbercommand=\SectionNo,style={\tfb\ss\bf}] \starttext \part{foo} \chapter{bar} \section{baz} \stoptext 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 ___ ___ 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] no line break in CJK text in footnotes
2011/4/8 Li Yanrui (李延瑞) liyanrui...@gmail.com: Hi Hans, At least for the beta 2011.04.03, the line break can not work for cjk text in footnotes. See the following example: \definefontsynonym[Serif][name:adobesongstd] \definetypeface[myfonts][rm][serif][myfonts][default] \setscript[hanzi] \setupbodyfont[myfonts,rm,11pt] \starttext \startbuffer[test-footnote] 所有动物都生而平等,但有些动物比其他动物更平等。所有动物都生而平等, 但有些动物比其他动物更平等。所有动物都生而平等,但有些动物比其他动物更平等。 \stopbuffer \getbuffer[test-footnote] \blank 测试\footnote{\getbuffer[test-footnote]} \stoptext Just I added \setupfootnotes[style={\setscript[hanzi]}], the line break can work. The problem is still in the beta 2011.04.13. -- Best regards, Li Yanrui (李延瑞) ___ 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] Difference between texexec and context when using indent
Am 18.04.2011 um 09:24 schrieb Cecil Westerhof: I did not know that it could be done with \setupblank. I was told that I needed to define a \myblank for it. It isn’t possible to control the indentation with \setupblank but for me it would be the right command. The only way currently is to define your own \myblank command. But still I think it would be good that after a blank there is no indentation. Firstly: that is the way it works in mkii. Why does mkiv do it differently? It’s not easy to say what’s the correct behavior of \blank should be, i prefer the mkiv output because it’s same result as when you use \vskip: \setupindenting[yes,medium] \starttext \input knuth \blank \input knuth \vskip\lineheight \input knuth \stoptext Secondly: You use -in my opinion- next, because the first paragraph is clear that it is a new paragraph. After a bank (or a flowchart) it is clear that there starts a new paragraph. So it does not need to be indented in my opinion. I showed in my example that \blank indents the following paragraph only when you use the “first” key for indentation but not with “next”. It’s also not always so easy to see the start of a new paragraph with a small vertical distance like in the next example: \setupindenting[yes,medium] \starttext \input knuth \blank[small] \input knuth \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] The appendices envrionment and title in toc
Am 17.04.2011 um 12:57 schrieb seasoul: I want to include appendices part in MKIV. The appendices should prefixed by Appendix, like Appendix A, Appendix B. I use \setuplabeltext [appendix=Appendix ] \startappendices \component chapters/appen-01 \stopappendices appen-01.tex is the appendix file. The appendix part tile is correct, but in the toc, the title is something like Chapter A. How to solve this problem? It has to be fixed by Hans. ConTeXt looks only for the label of the current heading (e.g. chapter) and not for the label which is set for a certain sectionblock (e.g. “chapter” for the bodypart and “appendix” for the appendices). I wrote a minimal which can be used to see the problem and to test for the correct result once the thing is resolved. \setuplabeltext [chapter=Chapter ] \setuplabeltext[appendix=Appendix ] \setuplist[chapter][label=yes,width=5em] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Bodypart} \stopbodymatter \startappendices \chapter{Appendix} \stopappendices \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] Difference between texexec and context when using indent
On Mon, 18 Apr 2011, Wolfgang Schuster wrote: Am 18.04.2011 um 09:24 schrieb Cecil Westerhof: I did not know that it could be done with \setupblank. I was told that I needed to define a \myblank for it. It isn’t possible to control the indentation with \setupblank but for me it would be the right command. The only way currently is to define your own \myblank command. +1. Adding indentnext to \setupblank will be more consistent. 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] Google Chart URL
On Sat, Apr 16, 2011 at 13:31, Reviczky, Adam adam.revic...@kcl.ac.uk wrote: ! Undefined control sequence. system tex error on line 3 in file test.tex: Undefined control sequence ... as far as I can tell it's the | symbol where it has problems. The | symbol is not allowed unescaped in URLs. As per RFC 3986 section 2.2, the reserved delimiters are: reserved= gen-delims / sub-delims gen-delims = : / / / ? / # / [ / ] / @ sub-delims = ! / $ / / ' / ( / ) / * / + / , / ; / = and as per section 2.3, the unreserved characters are: unreserved = ALPHA / DIGIT / - / . / _ / ~ Everything else needs to be %-encoded. If your browser isn't doing so, you'll need to do it manually. mathew -- URL:http://www.pobox.com/~meta/ ___ 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] Google Chart URL
Am 16.04.2011 um 21:49 schrieb Aditya Mahajan: On Sat, 16 Apr 2011, Reviczky, Adam wrote: Hmm I still have some problems with this. How would it look like for this URL? I've tried asciimode and \letterbar + \letterpercent, but no luck. http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5 \enabletrackers [resolvers.schemes] \enabledirectives[schemes.cleanmethod=md5] \asciimode \asciimode can be overkill because it makes also “%” a normal character, better you define a command which change the catcodes. \def\googlechart {\begingroup \setcatcodetable\vrbcatcodes \dodoubleempty\dogooglechart} \def\dogooglechart[#1][#2]% {\endgroup \externalfigure[#1][method=png,#2]} \starttext \googlechart[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello|World] \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] How to produce a dotless i with ConTeXt?
LuaTeX has total unicode representation in terms of content (are unicode characters possible for macro declarations? this is unclear at this point but clearly useful..) So, the last thing you need to do is abstract your special characters. Just input them according to how you would normally make them appear in a text field on your screen. On Mon, Apr 18, 2011 at 3:41 PM, Thomas Schmitz tschm...@uni-bonn.dewrote: On Mon, 18 Apr 2011 10:23:54 +0200 Verhaag, G.C.H.M. verhaagg...@ziggo.nl wrote: Thanks for the answers! Only one suggestion doesn't work for me; inserting the #305; (it looks like an HTML code not ConTeXt code!?) in my source file. Well, I prefer to use \dotlessi and \i, and don't like #305 or \char0131, because I'm not very good at remembering number codes! As Mojca already pointed out, I meant typing the character directly. I'm using a web mail interface which unfortunately replaces the character with this strange entity. Thomas ___ 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] two problems with natural tables
Am 10.04.2011 um 18:40 schrieb Florian Wobbe: Hi, 1) I tried the following minimal example from http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html \placetable[split]{Test} {\bTABLE[split=yes] \dorecurse{60}{ \bTR \bTD hello \eTD \eTR } \eTABLE} with the current context versions which works fine. However, if I insert the code in a big project with many setups it fails with the attached error message. So there are setups which cause this error. Unfortunately I couldn't figure out what causes the problem. The error comes from the \floatcaptionattribute and \destinationattribute commands. \destinationattribute expects a number as argument (which is stored in the \currentfloatattribute macro) but with a split float it gets a empty argument. A split float sets \usesamefloatnumber to true and there \currentfloatattribute is \empty. \long\def\docompletefloat#1#2#3#4#5% #1:floatclass #2:reference #3:optionlist #4:caption #5:box number {\presetfloatvariables{#1}{#3}{#2}{#5}% check this one \bgroup % prepare structure data % % \dofloatcomponent[\c!name=#1,\c!reference=#2,\c!bookmark=,\c!title={#4}][]% ifnofloatnumber ifnofloatcaption \tracefloatnumber{#1}% % \ifconditional\usesamefloatnumber \globallet\currentfloatnumber \previousfloatnumber \globallet\currentfloatattribute \empty \globallet\currentfloatsynchronize\relax \else … As simple fix is to check for a split float when the attribute is set: \setupinteraction[state=start] % original defintion from strc-flt.mkiv % %\def\floatcaptionattribute % {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else % attr \destinationattribute \currentfloatattribute % \fi \fi \fi} % patched definition with check for split float \def\floatcaptionattribute {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else \ifinsidesplitfloat \else attr \destinationattribute \currentfloatattribute \fi \fi \fi \fi} \starttext \placetable[split]{Caption} {\bTABLE\dorecurse{60}{\bTR\bTD text\eTD\eTR}\eTABLE} \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] How to produce a dotless i with ConTeXt?
Am 18.04.2011 um 19:00 schrieb John Haltiwanger: LuaTeX has total unicode representation in terms of content (are unicode characters possible for macro declarations? this is unclear at this point but clearly useful..) Yes but they need catcode 11. \definehead[Überschrift][section] \starttext \section{Section} \Überschrift{Überschrift} \stoptext BTW: MkIV has also a persian interface where you can write \فصل for \chapter. 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] Displaying text on a page in several steps
I want to have several points on a page, but have them displayed one after the other. For example, the complete page is: MY POINTS 1. The first point 2. The second point 3. The third point 4. The fourth point Initially you see: MY POINTS 1. The first point After giving space you see: MY POINTS 1. The first point 2. The second point When giving again space, you see: MY POINTS 1. The first point 2. The second point 3. The third point And another space gives: MY POINTS 1. The first point 2. The second point 3. The third point 4. The fourth point Is this possible? -- Cecil Westerhof ___ 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] two problems with natural tables
On 18-4-2011 7:16, Wolfgang Schuster wrote: \def\floatcaptionattribute {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else \ifinsidesplitfloat \else attr \destinationattribute \currentfloatattribute \fi \fi \fi \fi} ok, patched - 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] OT: drawing graphs: Asymptote, Gnuplot, MetaFun, …
Dear ConTeXt folks, I need to plot some random walks similar to [1], but for example I need to emphasize certain sections of the plot and put labels and notes in there. Could you recommend a tool to easily accomplish that goal with easily. I guess it can be done with any of those as seen by the demos [2][3]. I only have little experience using Gnuplot and I have never used Asymptote or MetaFun. These three seem to be well integrated with ConTeXt and I guess in the end I could just create the image files and include these in to my ConTeXt source. The only downside of Asymptote I found so far is, that there is no mailing list. Thanks in advance, Paul [1] https://secure.wikimedia.org/wikipedia/en/wiki/File:Random_Walk_example.svg [2] http://asymptote.sourceforge.net/gallery/2D graphs/index.html [3] http://gnuplot.info/screenshots/index.html#demos 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] Displaying text on a page in several steps
On 18-4-2011 9:11, Cecil Westerhof wrote: I want to have several points on a page, but have them displayed one after the other. For example, the complete page is: MY POINTS 1. The first point 2. The second point 3. The third point 4. The fourth point Initially you see: MY POINTS 1. The first point After giving space you see: MY POINTS 1. The first point 2. The second point When giving again space, you see: MY POINTS 1. The first point 2. The second point 3. The third point And another space gives: MY POINTS 1. The first point 2. The second point 3. The third point 4. The fourth point Is this possible? see s-pre-6*.* - 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] OT: drawing graphs: Asymptote, Gnuplot, MetaFun, …
On Mon 18 Apr 2011, Paul Menzel wrote: I only have little experience using Gnuplot and I have never used Asymptote or MetaFun. These three seem to be well integrated with ConTeXt and I guess in the end I could just create the image files and include these in to my ConTeXt source. If you don't mind using external figures, I personally would recommend matplotlib (as used to create the example you linked to) -- in which case you already have an example script for your graph :-). The annotation and labelling facilities are extensive (see http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html ) and there is ample documentation. I used to be a happy Gnuplot user, but I find that with matplotlib the easy things are just as easy, the hard things are easier, and some of the impossible things become possible. I did give MetaFun a try before turning to matplotlib, but I found it quite difficult to work with. That's strictly related to my personal requirements and taste though -- there are many satisfied MetaFun users on this list (and thus good support) and of course it is very well integrated with ConTeXt. Asymptote looks nice but I've never tried it. I think there have been some issues with ConTeXt integration in the past (see http://thread.gmane.org/gmane.comp.tex.context/54389 ) but am unsure of the current state. Hope this helps, Pont ___ 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] OT: drawing graphs: Asymptote, Gnuplot, MetaFun, …
On Mon, Apr 18, 2011 at 22:20, Paul Menzel wrote: Dear ConTeXt folks, I need to plot some random walks similar to [1], but for example I need to emphasize certain sections of the plot and put labels and notes in there. Could you recommend a tool to easily accomplish that goal with easily. I guess it can be done with any of those as seen by the demos [2][3]. I only have little experience using Gnuplot and I have never used Asymptote or MetaFun. These three seem to be well integrated with ConTeXt and I guess in the end I could just create the image files and include these in to my ConTeXt source. The only downside of Asymptote I found so far is, that there is no mailing list. Below you have an example done in metapost/metafun (which integrates well with ConTeXt). The downside of metapost is that you have to do all the labels and axis drawing more or less manually, while gnuplot will take care of drawing axes and properly adjusting the range etc. On the other hand metapost might be quite powerful for geometrically complex graphics. If you use gnuplot, you might need to precompute the points for the random walk (it supports random numbers, but I'm not sure if you can calculate sums), while metapost can do some reasonable calculations on the fly. For 2D graphics asymptote doesn't bring you much. Yet another alternative is TikZ and pgfplots (similar to metapost, more library functions ready to draw all kinds of graphics, but less powerful math engine that in metapost). \setupcolors [state=start] \starttext \startMPpage save wx, wy; wx = 15cm; wy = 10cm; draw unitsquare shifted (0,-0.5) xyscaled (wx,wy); save val; numeric val; save tmp; numeric tmp; save p; path p; save c; color c[]; c[1] = red; c[2] = .5[red,yellow]; c[3] = .6green; c[4] = blue; c[5] = .4white; vardef newval = val := val + floor(uniformdeviate(2))*2-1; (val) enddef; for n=1 upto 5: val := 0; draw (0,0) for i=0 upto 100: -- (0.01*i*wx,0.025*newval*wy) endfor withcolor c[n]; endfor for i=0 step 20 until 100: label.bot(decimal(i), (0.01*i*wx,-.5*wy)); endfor; for i=-20 step 5 until 20: label.lft(decimal(i), (0,0.025*i*wy)); endfor; \stopMPpage \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] Google Chart URL
\asciimode can be overkill because it makes also “%” a normal character, better you define a command which change the catcodes. \def\googlechart {\begingroup \setcatcodetable\vrbcatcodes \dodoubleempty\dogooglechart} \def\dogooglechart[#1][#2]% {\endgroup \externalfigure[#1][method=png,#2]} \starttext \googlechart[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello|World] \stoptext Wolfgang Thanks, that looks really nice, but somehow it doesn't work with my url: http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5 and I can't really figure out why ... Adam ___ 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] rules with different thickness
Hi I stumbled upon this while making a table with rules, where I wanted to have a particular row highlighted with a thicker border: http://www.mail-archive.com/ntg-context@ntg.nl/msg33678.html Since this was posted more then two years ago, I just wanted to know if anything changed on this front? Having r|l|t|b-offsets I thought I could use the same for rulethickness, but according to this, not yet. The metapost workaround works still fine, so for now I'm using that, just want to know what's the status on this. Adam ___ 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] Google Chart URL
Am 19.04.2011 um 03:05 schrieb Reviczky, Adam: Thanks, that looks really nice, but somehow it doesn't work with my url: http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5 and I can't really figure out why ... Do you have “\enabledirectives[schemes.cleanmethod=md5]” in your preamble? Here is a complete example which works for me: \enabledirectives[schemes.cleanmethod=md5] \def\googlechart {\begingroup \setcatcodetable\vrbcatcodes \dodoubleempty\dogooglechart} \def\dogooglechart[#1][#2]% {\endgroup \externalfigure[#1][method=png,#2]} \starttext \googlechart[http://chart.apis.google.com/chart?chs=350x220cht=p3chd=s:G99pchdl=2|1|1|6|2|0|52|52|2|2|1|1|2|2|2|2|2|1|1|2|2|1|1|1|2|1|1chdlp=bchp=0.1chl=fsharp|gettext|gettext-base|Others%20%2824%29chma=95,95chtt=Launchpad+Statistics+for+%7Ereviczky+-+ppachts=676767,13.5][factor=max] \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] rules with different thickness
Am 19.04.2011 um 03:18 schrieb Reviczky, Adam: Hi I stumbled upon this while making a table with rules, where I wanted to have a particular row highlighted with a thicker border: http://www.mail-archive.com/ntg-context@ntg.nl/msg33678.html Since this was posted more then two years ago, I just wanted to know if anything changed on this front? Having r|l|t|b-offsets I thought I could use the same for rulethickness, but according to this, not yet. No, there is only one value for all four borders. The metapost workaround works still fine, so for now I'm using that, just want to know what's the status on this. It’s the same as in the past, use MetaPost but there are better ways to change values of certain borders: \startuseMPgraphic{tableborders} draw leftboundary OverlayBox withpen pensquare scaled \frameddimension{leftrulethickness} ; draw rightboundary OverlayBox withpen pensquare scaled \frameddimension{rightrulethickness} ; draw topboundaryOverlayBox withpen pensquare scaled \frameddimension{toprulethickness}; draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness} ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[tableborders][\useMPgraphic{tableborders}] \setupTABLE [ background=tableborders, leftrulethickness=\framedparameter{rulethickness}, rightrulethickness=\framedparameter{rulethickness}, toprulethickness=\framedparameter{rulethickness}, bottomrulethickness=\framedparameter{rulethickness}] \starttext \bTABLE\bTR \bTD One \eTD \bTD[toprulethickness=3pt] Two \eTD \bTD[rightrulethickness=2pt] Three \eTD \eTR \eTABLE \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 ___