[NTG-context] comment support in pdf
Any way to make a pdf file support comment? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] script on attachment
I use \useattachment[auto][example_show][sample.data][./sample.data] \attachment[auto] to attach my sample data to pdf, but as this data need open by specific script. Are there any way to open the attached sample.data with my script when viewer click on it. or else I have to let them download the script and change the preference application to open it. BR Bill ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] movie in pdf example in wiki
I try the example to embedded video in wiki, but it doesn't work. \starttext \externalfigure[./file_server.mov][label=demo,width=4cm,height=4cm,preview=yes] \stoptext when i execute texexec test.tex it said TeXUtil | running texmfstart rlxtools --identify /home/weilai/pages/wiki/private/file_server.mov identify: no decode delegate for this image format `/home/weilai/pages/wiki/private/file_server.mov'. RlxTools | unable to identify /home/weilai/pages/wiki/private/file_server.mov TeXExec | runtime: 2.602059 any idea? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] movie in pdf example in wiki
Sorry, I should read the mail list first, now it work. On Tue, Apr 14, 2009 at 02:29:56PM +0800, Bill Long wrote: I try the example to embedded video in wiki, but it doesn't work. \starttext \externalfigure[./file_server.mov][label=demo,width=4cm,height=4cm,preview=yes] \stoptext when i execute texexec test.tex it said TeXUtil | running texmfstart rlxtools --identify /home/weilai/pages/wiki/private/file_server.mov identify: no decode delegate for this image format `/home/weilai/pages/wiki/private/file_server.mov'. RlxTools | unable to identify /home/weilai/pages/wiki/private/file_server.mov TeXExec | runtime: 2.602059 any idea? ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 卷318_13 【和黄门武相公诏还题石门洞】赵宗儒 益部恩辉降,同荣汉相还。韶芳满归路,轩骑出重关。 望日朝天阙,披云过蜀山。更题风雅韵,永绝翠岩间。 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [***SPAM***] Re: Table placement with forced width
I think the natural table works fine with your requirements. http://www.pragma-ade.com/general/manuals/enattab.pdf On Mon, Apr 13, 2009 at 01:31:09PM -0600, Design Department wrote: Hi all, I need a table that is 2/3 \pagewidth and placed against the right page margin. \SetTableToWidth{6in} \setuptables[split=repeat] \starttablehead \NC Description \NC Quantity \NC Units \NC Rate \NC Amount \NC \NR \HL \stoptablehead \starttabletail \NC \SL This ticket is not an invoice. Pay on receipt of invoice. \NC\FOUR \NC\NR \stoptabletail \placetable[right,5*line,split=repeat][tab:costs]{} \starttables[|l|c|c|c|r|] \NC 1 man unit \NC 4 \NC hr \NC 125.00 \NC 500.00 \NC \NR \NC Kilometre charges \NC 100 \NC km \NC .85 \NC 85.00 \NC \NR \NC Field Kit \NC 1 \NC day \NC 50.0 \NC 50.00 \NC \NR \HL \NC \bold{Total:} (all work performed on this ticket, before taxes) \NC\THREE \NC \$ 635.00 \NC \NR \stoptables The table flows into, and off the right margin area. What am I doing wrong? Also, \SetTableToWidth{.67\pagewidth} produces an error. Is there a way to specify a fraction of \pagewidth? Even though this example is short, the table may run to multiple pages and I need both headers and footers to repeat. I also need to eventually shade alternate row backgrounds. Is there a better table macro choice? -- 卷137_28 【送丘健至州敕放作时任下邽县】储光羲 太史登观台,天街耀旄头。大君忽霆震,诏爵冠军侯。 南必梁孙源,西将圉昆丘。河陇征击卒,虎符到我州。 朝集咸林城,师言乱啁啾。杀气变木德,凛凛如高秋。 元戎启神皇,庙堂发嘉谋。息兵业稼穑,归马复休牛。 和风开阴雪,大耀中天流。欢声殷河岳,涵荡非烟浮。 邦牧新下车,德礼彼甿讴。乾坤日交泰,吾亦遂优游。 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to use attachment file as a script argument
based on the example of use mplayer play the movie, I write down sthing like \defineprogram[sample.data][sample.data.sh] \goto{\externalfigure[sample.data][width=0.48\textwidth]}[program(sample.data{})] and the content of sample.data.sh is #!/bin/bash FILE=$(basename $0); gnome-terminal -e cat ${FILE/.sh/} it does work, but I wanna know if there are better way to make this. as this way has some obvious problem: 1. if I send this pdf file to other guy, the script won't execute, as it can't find out the sample.data file. same thing will happen if I move my sample.data to other directory. 2. it's take too much effort if I have lots of file to analysis, I have to write lots of file like sample.data1.sh, sample.data2.sh... with same content, soft link maybe a solution, but I hope there are more easy solution. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with module pre-05 (fuzzy): Missing number
check bellow, maybe doesn't define subject in the module. On Tue, Apr 14, 2009 at 08:32:18PM -0500, Héctor Palacios wrote: Hi context users ! I want to test the presentations modules of context, because are very nice. I am testing module pre-05 (fuzzy), i am using the code at the end of the archive: %% code example.tex -- \usemodule[pre-05] \starttext \TitlePage{Title Page\\pre-fuzzy} \Topics{Some Nice Quotes} \Topic{A Few} \startitemize \item Knuth \input knuth \item Tufte \input tufte \stopitemize \stoptext %% endcode - But this code not run: the command texexec example.tex says: %% ! Missing number, treated as zero. to be read again \endcsname \@@amvbox ... -\pagebackgroundvoffset +\endcsname \c!topoffset \relax \box \... argument ...ght\c!left }\interactionmenu [right] \getvalue {\??am right\c!r... \firstofoneargument #1-#1 \next2 #1,-\docommand {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.10 \Subject{Knuth} \input knuth ? h A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) %% I don'n know what is the problem because the example code is from the archive s-pre-05. Thanks in advance for your answers. Hector ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 卷539_22 【悼伤后赴东蜀辟至散关遇雪】李商隐 剑外从军远,无家与寄衣。散关三尺雪,回梦旧鸳机。 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pinyin in context
On Mon, Mar 16, 2009 at 09:23:50PM +0100, Wolfgang Schuster wrote: Am 16.03.2009 um 17:17 schrieb Bill Long: The pinyin has 5 kind of tone for one pronunciation. As it's hard to input, and in CJK 1,2,3,4 are use to represent the tone, (the fifth is no special tone mark). In the book for children, the pinyin always show above the Chinese like the picture I upload. A solution like can be easy integrated in a ruby command because you need only a command parameter for the ruby text, e.g. \setupruby[command=\pinyin] but you're looking for something like the translate module. In fact, 2 features I need, 1. the easy way to support PinYin, both input and the format, As I mentioned, I hope the pinyin can be placed over the Chinese character it represented automatically with some environment or so. 2. automatic convert/add pinyin to Chinese Character , now I use sed to make, but I still hope there are some more easy way. To make it show correctly is an good start, but if there are some tools to automatic add PinYin , it will be more attractive. In Chinese they do have the character which have multi pronunciation, but most of them only has single pronunciation, I can try to find out some dict to translate Chinese Character into PinYin if anyone can help integrate this convert tool into context. If you can provide such a list Hans can add the information to char- def.lua, for the moment you have to rely on my \pinyin command, I have now written a new version on a word macro I found. Wolfgang \startluacode function commands.pinyin(str) str = string.gsub(str,r1,1r) str = string.gsub(str,r2,2r) str = string.gsub(str,r3,3r) str = string.gsub(str,r4,4r) str = string.gsub(str,r5,5r) str = string.gsub(str,ng1,1ng) str = string.gsub(str,ng2,2ng) str = string.gsub(str,ng3,3ng) str = string.gsub(str,ng4,4ng) str = string.gsub(str,ng5,5ng) str = string.gsub(str,n1,1n) str = string.gsub(str,n2,2n) str = string.gsub(str,n3,3n) str = string.gsub(str,n4,4n) str = string.gsub(str,n1,5n) str = string.gsub(str,ai1,a1i) str = string.gsub(str,ai2,a2i) str = string.gsub(str,ai3,a3i) str = string.gsub(str,ai4,a4i) str = string.gsub(str,ai5,a5i) str = string.gsub(str,ei1,e1i) str = string.gsub(str,ei2,e2i) str = string.gsub(str,ei3,e3i) str = string.gsub(str,ei4,e4i) str = string.gsub(str,ei5,e5i) str = string.gsub(str,ao1,a1o) str = string.gsub(str,ao2,a2o) str = string.gsub(str,ao3,a3o) str = string.gsub(str,ao4,a4o) str = string.gsub(str,ao5,a5o) str = string.gsub(str,ou1,o1u) str = string.gsub(str,ou2,o2u) str = string.gsub(str,ou3,o3u) str = string.gsub(str,ou4,o4u) str = string.gsub(str,ou5,o5u) str = string.gsub(str,uu1,v1) str = string.gsub(str,uu2,v2) str = string.gsub(str,uu3,v3) str = string.gsub(str,uu4,v4) str = string.gsub(str,uu,ü) -- is this correct? it's correct, although this character maybe rarely/never been used with this tone. str = string.gsub(str,o1,ō) str = string.gsub(str,o2,ó) str = string.gsub(str,o3,ǒ) str = string.gsub(str,o4,ò) str = string.gsub(str,e1,ē) str = string.gsub(str,e2,é) str = string.gsub(str,e3,ě) str = string.gsub(str,e4,è) str = string.gsub(str,i1,ī) str = string.gsub(str,i2,í) str = string.gsub(str,i3,ǐ) str = string.gsub(str,i4,ì) str = string.gsub(str,u1,ū) str = string.gsub(str,u2,ú) str = string.gsub(str,u3,ǔ) str = string.gsub(str,u4,ù) str = string.gsub(str,v1,ǖ) str = string.gsub(str,v2,ǘ) str = string.gsub(str,v3,ǚ) str = string.gsub(str,v4,ǜ) str = string.gsub(str,a1,ā) str = string.gsub(str,a2,á) str = string.gsub(str,a3,ǎ) str = string.gsub(str,a4,à) tex.sprint(tex.ctxcatcodes,str) end \stopluacode \def\pinyin#1{\ctxlua{commands.pinyin([[#1]])}} \starttext \definedfont[name:arialunicodems*default] \pinyin{ni2hao3} \pinyin{huai4} \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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki
Re: [NTG-context] pinyin in context
The pinyin has 5 kind of tone for one pronunciation. As it's hard to input, and in CJK 1,2,3,4 are use to represent the tone, (the fifth is no special tone mark). In the book for children, the pinyin always show above the Chinese like the picture I upload. To make it show correctly is an good start, but if there are some tools to automatic add PinYin , it will be more attractive. In Chinese they do have the character which have multi pronunciation, but most of them only has single pronunciation, I can try to find out some dict to translate Chinese Character into PinYin if anyone can help integrate this convert tool into context. On Sun, Mar 15, 2009 at 06:20:34PM +0100, Wolfgang Schuster wrote: Am 15.03.2009 um 04:23 schrieb Bill Long: Dear Hans, Can you help check if you can implement a new feature of pinyin input in context? Is a lua based method a option for you? Here is a primitive converter, not perfect and could fail but it gives you a first impression, the missing 'ǎ' in the output is a font problem. \startluacode function commands.convertpinyin(text,number) local replaced local number = tonumber(number) if string.find(text,a) or string.find(text,e) then if number==1 then text = string.gsub(text,a,ā) text = string.gsub(text,e,ē) elseif number==2 then text = string.gsub(text,a,á) text = string.gsub(text,e,é) elseif number==3 then text = string.gsub(text,a,ǎ) text = string.gsub(text,e,ě) elseif number==4 then text = string.gsub(text,a,à) text = string.gsub(text,e,è) end replaced = false else replaced = true end while replaced do if number==1 then text = string.gsub(text,i,ī) text = string.gsub(text,o,ō) if string.find(text,o) then else text = string.gsub(text,u,ū) end text = string.gsub(text,v,ǖ) elseif number==2 then text = string.gsub(text,i,í) text = string.gsub(text,o,ó) if string.find(text,o) then else text = string.gsub(text,u,ú) end text = string.gsub(text,v,ǘ) elseif number==3 then text = string.gsub(text,o,ǒ) text = string.gsub(text,i,ǐ) if string.find(text,o) then else text = string.gsub(text,u,ǔ) end text = string.gsub(text,u,ǔ) text = string.gsub(text,v,ǚ) elseif number==4 then text = string.gsub(text,o,ò) text = string.gsub(text,i,ì) if string.find(text,o) then else text = string.gsub(text,u,ù) end text = string.gsub(text,v,ǜ) end replaced = false end tex.sprint(tex.ctxcatcodes,text) end local letter = lpeg.R(az) local number = lpeg.R(09) local pinyin = lpeg.C(letter^1) * lpeg.C(number^0) / commands.convertpinyin local parser = (pinyin)^0 function commands.pinyin(str) parser:match(str) end \stopluacode \def\pinyin#1{\ctxlua{commands.pinyin([[#1]])}} \starttext \pinyin{ni2hao3} \pinyin{huai4} \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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pinyin in context
Dear Hans, Can you help check if you can implement a new feature of pinyin input in context? I upload the effect I wanna get in bellow link ( what I provide last time seemed doesn't work), Please check. http://picasaweb.google.com/lh/sredir?uname=weilai.longtarget=ALBUMid=5313243080349643217authkey=Gv1sRgCJLO9v__gOPr_gEfeat=email Thanks in advance. On Wed, Mar 11, 2009 at 12:44:49PM +0800, Bill Long wrote: I input pinyin above Chinese character in bellow way: --- \documentclass{article} \usepackage[overlap, CJK]{ruby} \usepackage{pinyin} \usepackage{CJK} \begin{CJK*}{UTF8}{song} \begin{document} \renewcommand{\rubysep}{.3ex} \renewcommand{\rubysize}{.5} \ruby{静}{\jing4} \ruby{夜}{\ye4}\ruby{思}{\si1} \end{CJK*} \end{document} but it has poor line break, Does contex support pinyin ? and how to implement? Thanks. -- 卷206_55 【送王牧往吉州谒王使君叔】李嘉祐 细草绿汀洲,王孙耐薄游。年华初冠带,文体旧弓裘。 野渡花争发,春塘水乱流。使君怜小阮,应念倚门愁。 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pinyin in context
thanks. I upload the target I wanna got in http://rhce4u.googlepages.com/yourpage%27stitle. On Wed, Mar 11, 2009 at 01:08:05PM +0800, Yue Wang wrote: post the result you want to have here so context developers can help you. 2009/3/11 Bill Long longwei...@sohu.com: I input pinyin above Chinese character in bellow way: --- \documentclass{article} \usepackage[overlap, CJK]{ruby} \usepackage{pinyin} \usepackage{CJK} \begin{CJK*}{UTF8}{song} \begin{document} \renewcommand{\rubysep}{.3ex} \renewcommand{\rubysize}{.5} \ruby{静}{\jing4} \ruby{夜}{\ye4}\ruby{思}{\si1} \end{CJK*} \end{document} but it has poor line break, Does contex support pinyin ? and how to implement? Thanks. 常思峰顶叟,石窟土为床。日日先见日,烟霞多异香。 冥心同槁木,扫雪带微阳。终必相寻去,斯人不可忘。 ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 卷146_2 【燕歌行】陶翰 请君留楚调,听我吟燕歌。家在辽水头,边风意气多。 出身为汉将,正值戎未和。雪中凌天山,冰上渡交河。 大小百馀战,封侯竟蹉跎。归来灞陵下,故旧无相过。 雄剑委尘匣,空门垂雀罗。玉簪还赵女,宝瑟付齐娥。 昔日不为乐,时哉今奈何。 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] modife the style of taspresent
On Mon, Mar 09, 2009 at 10:53:08AM +0100, Thomas A. Schmitz wrote: On Mar 9, 2009, at 3:36 AM, Bill Long wrote: Thanks! The grammar is right, but it still can't work. I just can't make a photo as my background. Since I wrote that module... Your description is not very descriptive. What do you mean it can't work? Any error messages, what's going wrong? Moreover: taspresent was my first attempt at providing something; Aditya and I have now been working towards a better module called simpleslides. So if you're really thinking about doing presentations in ConTeXt, better get the git repository at http://github.com/adityam/simple-slides/tree/master . The module is functional; it's lacking documentation... I will take a try. 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] pinyin in context
I input pinyin above Chinese character in bellow way: --- \documentclass{article} \usepackage[overlap, CJK]{ruby} \usepackage{pinyin} \usepackage{CJK} \begin{CJK*}{UTF8}{song} \begin{document} \renewcommand{\rubysep}{.3ex} \renewcommand{\rubysize}{.5} \ruby{静}{\jing4} \ruby{夜}{\ye4}\ruby{思}{\si1} \end{CJK*} \end{document} but it has poor line break, Does contex support pinyin ? and how to implement? Thanks. -- 卷829_3 【怀香炉峰道人】贯休 常思峰顶叟,石窟土为床。日日先见日,烟霞多异香。 冥心同槁木,扫雪带微阳。终必相寻去,斯人不可忘。 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] modife the style of taspresent
Thanks! The grammar is right, but it still can't work. On Tue, Mar 03, 2009 at 11:27:53AM +0100, Wolfgang Schuster wrote: Am 03.03.2009 um 11:18 schrieb Bill Long: Dear All, anybody can help me on this problem? As most of the ppt file's background are graphics, but I don't know how to do it by modify the sytelefile. for example bellow style: I try to modify \defineoverlay [lecbackground] [\useMPgraphic{horizontal}] to something like \defineoverlay [lecbackground] [\externalfigure[figure]] [{\externalfigure[figure]}] but it doesn't work. any idea? I need for example a.png on right top. and b.png bottom. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- 卷672_51 【咸通中始闻褚河南归葬阳翟是岁上平徐方…成二十韵】唐彦谦 册府藏馀烈,皇纲正本朝。不听还笏谏,几覆缀旒祧。 咫尺言终直,怆惶道已消。泪心传位日,挥涕授遗朝。 飞燕潜来赵,黄龙岂见谯。既迷秦帝鹿,难问贾生雕。 穆卜缄縢秘,金根辙迹遥。北军那夺印,东海漫难桥。 罗织黄门讼,笙簧白骨销。炎方无信息,丹旐竟沦漂。 邂逅江鱼食,凄凉楚客招。文忠徒谥议,子卯但箫韶。 未见公侯复,寻伤嗣续凋。流年随水逝,高谊薄层霄。 柱石林公远,缣缃故国饶。奇踪天骥活,遗轴锦鸾翘。 近者淮夷戮,前年归马调。始闻移北葬,兼议荫山苗。 圣泽覃将溥,贞魂喜定飘。异时穷巷客,怀古漫成谣。 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] modife the style of taspresent
Dear All, anybody can help me on this problem? As most of the ppt file's background are graphics, but I don't know how to do it by modify the sytelefile. for example bellow style: - %D \module %D [ file=t-horizontalblue, %Dversion=2007.07.17, %D title=\CONTEXT\ Style File, %D subtitle=Presentation Module horizontalblue, %D author=Thomas A. Schmitz, %D date=\currentdate, %D copyright={Thomas A. Schmitz}] %C %C Copyright 2007 Thomas A. Schmitz. %C This file may be distributed under the GNU General Public License v. 2.0. %D This file provides the \quotation{horizontalblue} style for the presentation %D module. It is loaded at runtime. The look of this style was inspired by the %D \quotation{Copenhagen} theme of the \LaTeX\ {\tt beamer} package. \writestatus{loading}{module newstyle} \startmodule[newstyle] \unprotect %D The taspresentation module provides a skeleton into which different styles %D can be hooked. It uses a number of variables and macros which have to be set %D beforehand. Some parts are optional. We begin with the necessary definitions: %D We start colors: \setupcolors[state=start] %D These macros are used for placing figures/pictures: \define\NormalHeight{.97\textheight} \define\NormalWidth{.476\textwidth} \define\PictureFrameHeight{.97\textheight} \define\PictureFrameWidth{.476\textwidth} %D The page layout: \setuplayout [width=fit, margin=0cm, height=14.7cm, header=1.75cm, footer=1.2cm, topspace=1cm, backspace=1cm, location=singlesided] %D The macro for typesetting the Slidetitle; this is adapted from a sample %D document that Brooks Moses published on the wiki: \definelayer[slidetitle] [width=\paperwidth, height=\paperheight, x=10mm] \define[1]\Slidetitle{\page\setlayer[slidetitle]% {\framed[frame=off,width=\textwidth,height=2.2cm,offset=0pt,top=\vss,bottom=\vss]{\switchtobodyfont[\Titlesize]\color[c]{#1 %D The macro \tex{Maketitle} produces a default title page with the author, the %D title of the presentation, and the date. Using it is not mandatory. \define\Maketitle{% \titback \null \vfill \framed[frame=off,width=\textwidth,height=.75\textheight,top=\vss,bottom=\vss,align=middle]{\switchtobodyfont[\Titlesize]\color[c]{\bf \getvariable{taspresent}{title}}\switchtobodyfont[\Normalsize]\blank[line]\getvariable{taspresent}{author}\blank[2*line]\currentdate} \vfill \null} %D The following parts are optional; if you don't use backgrounds and are %D content with CONTEXT's default itemization, you don't have to set these %D macros. %D We define our colors: \definecolor [a][s=.95] \definecolor [b][r=.58,g=.58,b=.82] \definecolor [c][r=.2,g=.2,b=.73] \definecolor [Item] [r=.2,g=.2,b=.73] %D We let Metapost calculate the background: \startuniqueMPgraphic{vertical} StartPage ; pair zd[] ; path pb[] ; fill Page withcolor \MPcolor{a} ; z.d1 = ulcorner Page shifted (0,-5pt) ; z.d2 = urcorner Page shifted (0,-5pt) ; pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ; z.d3 = llcorner Page shifted (0,5pt) ; z.d4 = lrcorner Page shifted (0,5pt) ; pb[3] = llcorner Page -- z.d3 -- z.d4 -- lrcorner Page -- cycle ; pb[4] = pb[3] shifted (0,.75cm) ; fill pb[1] withcolor \MPcolor{b} ; fill pb[3] withcolor \MPcolor{b} ; fill pb[4] withcolor \MPcolor{b} ; StopPage ; \stopuniqueMPgraphic \startuniqueMPgraphic{horizontal} StartPage ; pair zd[] ; path pb[] ; z.d1 = ulcorner Page shifted (0,-5pt) ; z.d2 = urcorner Page shifted (0,-5pt) ; pb[1] = ulcorner Page -- z.d1 -- z.d2 -- urcorner Page -- cycle ; pb[2] = pb[1] shifted (0,-2cm) ; fill pb[2] withcolor \MPcolor{b} ; StopPage ; \stopuniqueMPgraphic %D We define these backgrounds as overlays: \defineoverlay [lecbackground] [\useMPgraphic{horizontal}] \defineoverlay [picbackground] [\useMPgraphic{vertical}] %D We define the footer \setupfooter[color=c,style={\switchtobodyfont[10pt]},strut=yes] \setupfootertexts[{\framed[frame=off,height=.45cm,width=\textwidth]{\getvariable{taspresent}{title}\hfill \pagenumber \ of \lastpage}}] %D These are shortcuts to switch backgrounds: \define\lecback{\setuplayout[header=1.75cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground,lecbackground,slidetitle}]} \define\titback{\setuplayout[header=1.75cm]\setupfooter[state=stop]\setupbackgrounds[page][background={picbackground,lecbackground}]} \define\picback{\setuplayout[header=0cm]\setupfooter[state=start]\setupbackgrounds[page][background={picbackground}]} \define\noback{\setupbackgrounds[page][background=nobackground]} %D We use combinations for placing vertical pictures and text side by side, and %D we want a distance of 1.1 cm between both. \setupcombinations[distance=1.1cm] %D The symbol for the first level of