Re: [NTG-context] Problem with fonts
Mohamed Bana wrote: i just updated the minimals and I can no longer typeset, even though $ mtxrun --script fonts --list shows the font ! LuaTeX error Are you running luatex 0.31 ? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] texexec ignores file order
On Mon, 8 Dec 2008, Ben Barrowes wrote: exexec --pdfarrange --result=yujo_insurance.pdf yujo_insurance1.pdf yujo_insurance2.pdf yujo_insurance3.pdf yujo_insurance4.pdf yujo_insurance5.pdf yujo_insurance6.pdf yujo_insurance7.pdf yujo_insurance8.pdf yujo_insurance9.pdf yujo_insurance10.pdf yujo_insurance11.pdf yujo_insurance12.pdf After upgrading recently, I found that texexec no longer preserves the order of files passed to it. When I concatenate files with texexec, I often have more than 10 files I want to pass to texexec names filename1.pdf, filename2.pdf, ... filename12.pdf, etc. In the past, the following has worked to concatenate these in the correct order: texexec --pdfarrange --result=filename.pdf `ls -a -v filename*.pdf` Now, even if I pass filename10.pdf after filename2.pdf on the command line, texexec ingores this and puts filename10.pdf before filename2.pdf in the resulting concatenated file. Is there a fix for this, or is there a better way to concatenate pdf files? If you just want to concat files, you can use pdftk (http://www.accesspdf.com/pdftk/) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] texexec ignores file order
exexec --pdfarrange --result=yujo_insurance.pdf yujo_insurance1.pdf yujo_insurance2.pdf yujo_insurance3.pdf yujo_insurance4.pdf yujo_insurance5.pdf yujo_insurance6.pdf yujo_insurance7.pdf yujo_insurance8.pdf yujo_insurance9.pdf yujo_insurance10.pdf yujo_insurance11.pdf yujo_insurance12.pdf After upgrading recently, I found that texexec no longer preserves the order of files passed to it. When I concatenate files with texexec, I often have more than 10 files I want to pass to texexec names filename1.pdf, filename2.pdf, ... filename12.pdf, etc. In the past, the following has worked to concatenate these in the correct order: texexec --pdfarrange --result=filename.pdf `ls -a -v filename*.pdf` Now, even if I pass filename10.pdf after filename2.pdf on the command line, texexec ingores this and puts filename10.pdf before filename2.pdf in the resulting concatenated file. Is there a fix for this, or is there a better way to concatenate pdf files? bb ___ 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] Problem with fonts
i just updated the minimals and I can no longer typeset, even though $ mtxrun --script fonts --list shows the font ! LuaTeX error ...mals/tex/texmf-context/tex/context/base/luat-log.lua:75: bad argument #2 to 'format' (string expected, got table) stack traceback: [C]: in function 'format' ...mals/tex/texmf-context/tex/context/base/luat-log.lua:75: in function 'report' ...mals/tex/texmf-context/tex/context/base/font-otf.lua:1431: in function 'after' ...mals/tex/texmf-context/tex/context/base/font-otf.lua:895: in function 'load' ...mals/tex/texmf-context/tex/context/base/font-otf.lua:1845: in function 'otf_to_tfm' ...mals/tex/texmf-context/tex/context/base/font-otf.lua:2066: in function 'read_from_open_type' ...mals/tex/texmf-context/tex/context/base/font-def.lua:333: in function <...mals/tex/texmf-context/tex/context/base/font-def.lua:315> (tail call): ? ...mals/tex/texmf-context/tex/context/base/font-def.lua:250: in function 'read' ...mals/tex/texmf-context/tex/context/base/font-def.lua:645: in function 'read' ...mals/tex/texmf-context/tex/context/base/font-def.lua:752: in function 'command_2' :1: in main chunk. \lowleveldefinefont ...s ", "\@@fontfallbacks " )} \edef \somefontspec {at \s... \xxdododefinefont ...efont {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.148 \setupbodyfont[mainface,13pt] %should be 12pt, use 12.5pt for minion a... ? %%% test.tex %%% % engine=luatex \enableregime [utf-8] \def\sc{\setfontfeature{smallcaps}} \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definefontfeature [oldstyle][default] [protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes] \definefontfeature [smallcaps][default] [protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes] \usetypescript [serif] [hanging] [pure] \setupalign [hanging] \setfontfeature{oldstyle} \usetypescriptfile[type-folio] \definetypeface[mainface][rm][serif][warnockpro] [default] [features=default] \definetypeface[mainface][ss][sans][myriadpro] [default] [features=default] \definetypeface [mainface] [mm] [math] [palatino] [default] [encoding=texnansi] \setupbodyfont[mainface,13pt] \starttext {\tfa HELLO} {\tfb WORLD} \stoptext %%% type-folio.tex %%% \starttypescript [serif] [minionpro] \definefontsynonym [MinionPro-Regular][name:minionproregular] \definefontsynonym [MinionPro-Bold] [name:minionprobold] \definefontsynonym [MinionPro-Italic] [name:minionproit] \definefontsynonym [MinionPro-BoldItalic] [name:minionproboldit] \stoptypescript \starttypescript [serif] [minionpro] \definefontsynonym [Serif] [MinionPro-Regular] [features=default] \definefontsynonym [SerifBold] [MinionPro-Bold] [features=default] \definefontsynonym [SerifItalic] [MinionPro-Italic] [features=default] \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] [features=default] % \definefontsynonym [SerifSlanted] [SerifItalic] [features=default] \definefontsynonym [SerifCaps] [Serif] [features=smallcaps] \stoptypescript \starttypescript [sans] [myriadpro] \setups[font:fallback:sans] % \definefontsynonym [MyriadPro-Regular][name:MyriadPro-Regular] [features=default] % \definefontsynonym [MyriadPro-Bold] [name:MyriadPro-Bold] [features=default] % \definefontsynonym [MyriadPro-Italic] [name:MyriadPro-It] [features=default] % \definefontsynonym [MyriadPro-BoldItalic] [name:MyriadPro-BoldIt] [features=default] \definefontsynonym [MyriadPro-Regular][name:myriadproregular] \definefontsynonym [MyriadPro-Bold] [name:myriadprobold] \definefontsynonym [MyriadPro-Italic] [name:myriadproit] \definefontsynonym [MyriadPro-BoldItalic] [name:myriadproboldit] \stoptypescript \starttypescript [sans] [myriadpro] \definefontsynonym [Sans] [MyriadPro-Regular] [features=historic] \definefontsynonym [SansBold] [MyriadPro-Bold] [features=historic] \definefontsynonym [SansItalic] [MyriadPro-Italic] [features=historic] \definefontsynonym [SansBoldItalic] [MyriadPro-BoldItalic] [features=historic] \definefontsynonym [SansCaps] [Sans] [features=latin-smallcaps] \stoptypescript \starttypescript [serif]
Re: [NTG-context] Experience on writing a thesis with MKIV
On Tue, 9 Dec 2008, Mohamed Bana wrote: No the citations aren't working. This is really strange. It is working at my end with the latest version of t-bib. Can you send me your log and pdf file. Am I the only one who thinks ConTeXt needs a extensive set of regression tests? No. We have discussed this extensively in the past. There is also a context-test svn repository with a script that can automatically check if the pdf output changed with different version. However, it has been dormat for about a year now. For more info see http://wiki.contextgarden.net/Test and add more tests. Adiyta, you shouldn't have hard-coded: ./frontmatter.tex:\startcolor[darkred]\titlefont \hskip 1.5em Chapters \stopcolor} Yeah, I know. This was just a quick change, so I did not bother with elegance. The "proper" way of doing it would be to define a titlecolor and use that. Changing L191 env-thesis.tex, has no effect, such as: \setuplist [chapter][color=darkblue] \setuplist [Title] [color=darkblue] "Chapters" still comes out as darkred. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Experience on writing a thesis with MKIV
No the citations aren't working. Am I the only one who thinks ConTeXt needs a extensive set of regression tests? Adiyta, you shouldn't have hard-coded: ./frontmatter.tex:\startcolor[darkred]\titlefont \hskip 1.5em Chapters \stopcolor} Changing L191 env-thesis.tex, has no effect, such as: \setuplist [chapter][color=darkblue] \setuplist [Title] [color=darkblue] "Chapters" still comes out as darkred. Aditya Mahajan wrote: Hi Mohamed, On Mon, 8 Dec 2008, Mohamed Bana wrote: Hi Aditya, Thanks for getting back to me. I did a fresh checkout and tried to compile, I uncommented out these lines from the beginning of macros.tex. L3 \setupcolors[state=start] ... L16 \setupcite [interaction=start, compress=no,color=] %darkgreen] L276-278 in env-thesis.tex \setupinteraction[state=start,style=,color=] \setupinteraction[focus=standard] It's still the same; I followed the same steps. Downloaded the files from http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.tar.gz unzipped them, removed t-bib.tex from the current directory, made the changes indicated by you above, and did "context thesis". Everything compiles files (there is one warning about Delicious-Bold.otf). Version: ConTeXt ver: 2008.11.30 14:39 MKIV fmt: 2008.12.1 int: english/english And have you seen this error; ! LuaTeX error ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: attempt to call field 'process' (a nil value) stack traceback: ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: in function 'process' ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:125: in function 'process' :1: in main chunk. \mkloadsortedlist ...xlua {joblists.process('#1')} \getvalue {\s!reset #1}\eg... \doplacelistofsynonyms ... ]\mkloadsortedlist {#1} \endgroup \ifutilitydone \... l.162 \placelistofabbreviations An error like this usually means that luatex or mtxrun is old. I am using context version version: 2008.11.10 21:40 (hmmm... that is after a fresh update from the minimals, which is strange) and LuaTeX, Version snapshot-0.31.0-2008120715. I do not know if something broke in a newer version of context, but for that I will first need to figure out why my minimals are not being updated. Since I was at it, I redid the local change in t-bib so that I can have citations of different colors. Also changed a few other macros, to work well with colors (I had stopped playing with colors a while back ...). I am uploading the changed files and the typeset pdf file at http://pantheon.yale.edu/~am894/temp/ Try to download and compile this and see if it works. In the mean time I will investigate why minimals aren't being updated on my machine. 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 : 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] Sorting bug in context-alpha (was: Experience on writing a thesis with MKIV)
On Mon, 8 Dec 2008, Aditya Mahajan wrote: Try to download and compile this and see if it works. In the mean time I will investigate why minimals aren't being updated on my machine. Context minimals are fine. I did not notice before that context-beta was last updated on 2008.11.10. That is almost a month!!! I updated to the latest alpha and there is a bug. If I comment \placeabbreviations in frontmatter.tex, then the entire document compiles fine. On Mon, 8 Dec 2008, Mohamed Bana wrote: ConTeXt ver: 2008.11.30 14:39 MKIV fmt: 2008.12.1 int: english/english And have you seen this error; ! LuaTeX error ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: attempt to call field 'process' (a nil value) stack traceback: ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: in function 'process' ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:125: in function 'process' :1: in main chunk. \mkloadsortedlist ...xlua {joblists.process('#1')} \getvalue {\s!reset #1}\eg... \doplacelistofsynonyms ... ]\mkloadsortedlist {#1} \endgroup \ifutilitydone \... l.162 \placelistofabbreviations Hans, there is a bug in the sorting code. Minimal example: % \abbreviation {ABC} {Alpha Beta Company} \starttext \placelistofabbreviations We use \abc. \stoptext %= context version: 2008.12.01 10:25 LuaTeX, Version snapshot-0.31.0-2008120715, build unknown This gives the error that Mohamed reported above. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] questions on ctxtools and line break.
On Mon, Dec 8, 2008 at 7:32 AM, Dalyoung Jeong wrote: > Dear Mojca, Yue, and Hans, > > Thank you for the help. > I updated ConTeXt and LuaTeX using rsync to the foler .../texlive/ > 2008/../texmf-local. > > "texmfstart texexec --make (--xtx) --all" run smoothly, but luatools > still has a cnf error. Did you update the scripts in binaries as well? (Unless you updated ConTeXt from TL repository, it will keep the old mtxrun in binaries, and that one doesn't work at all.) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Experience on writing a thesis with MKIV
Hi Mohamed, On Mon, 8 Dec 2008, Mohamed Bana wrote: Hi Aditya, Thanks for getting back to me. I did a fresh checkout and tried to compile, I uncommented out these lines from the beginning of macros.tex. L3 \setupcolors[state=start] ... L16 \setupcite [interaction=start, compress=no,color=] %darkgreen] L276-278 in env-thesis.tex \setupinteraction[state=start,style=,color=] \setupinteraction[focus=standard] It's still the same; I followed the same steps. Downloaded the files from http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.tar.gz unzipped them, removed t-bib.tex from the current directory, made the changes indicated by you above, and did "context thesis". Everything compiles files (there is one warning about Delicious-Bold.otf). Version: ConTeXt ver: 2008.11.30 14:39 MKIV fmt: 2008.12.1 int: english/english And have you seen this error; ! LuaTeX error ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: attempt to call field 'process' (a nil value) stack traceback: ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: in function 'process' ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:125: in function 'process' :1: in main chunk. \mkloadsortedlist ...xlua {joblists.process('#1')} \getvalue {\s!reset #1}\eg... \doplacelistofsynonyms ... ]\mkloadsortedlist {#1} \endgroup \ifutilitydone \... l.162 \placelistofabbreviations An error like this usually means that luatex or mtxrun is old. I am using context version version: 2008.11.10 21:40 (hmmm... that is after a fresh update from the minimals, which is strange) and LuaTeX, Version snapshot-0.31.0-2008120715. I do not know if something broke in a newer version of context, but for that I will first need to figure out why my minimals are not being updated. Since I was at it, I redid the local change in t-bib so that I can have citations of different colors. Also changed a few other macros, to work well with colors (I had stopped playing with colors a while back ...). I am uploading the changed files and the typeset pdf file at http://pantheon.yale.edu/~am894/temp/ Try to download and compile this and see if it works. In the mean time I will investigate why minimals aren't being updated on my machine. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Experience on writing a thesis with MKIV
Hi Aditya, Thanks for getting back to me. I did a fresh checkout and tried to compile, I uncommented out these lines from the beginning of macros.tex. L3 \setupcolors[state=start] ... L16 \setupcite [interaction=start, compress=no,color=] %darkgreen] L276-278 in env-thesis.tex \setupinteraction[state=start,style=,color=] \setupinteraction[focus=standard] It's still the same; Multi-agent systems can be classified as teams and games on the basis of the ob- jective of the agents. In teams all agents have the same objective; in games, each agent has its own objective. Historically, games were first studied in the seminal work of and were later developed as a subfield of mathematical economics called game theory (Aumann and Hart, , , ). Teams were first studied in mathematical economics by and , and later in control systems by , , , , and others. Version: ConTeXt ver: 2008.11.30 14:39 MKIV fmt: 2008.12.1 int: english/english And have you seen this error; ! LuaTeX error ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: attempt to call field 'process' (a nil value) stack traceback: ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:71: in function 'process' ...nimals/tex/texmf-local/tex/context/base/core-syn.lua:125: in function 'process' :1: in main chunk. \mkloadsortedlist ...xlua {joblists.process('#1')} \getvalue {\s!reset #1}\eg... \doplacelistofsynonyms ... ]\mkloadsortedlist {#1} \endgroup \ifutilitydone \... l.162 \placelistofabbreviations Aditya Mahajan wrote: Hi Mohamed, On Sun, 7 Dec 2008, Mohamed Bana wrote: Hi Aditya, Any news on bib module - t-bib.tex? Sorry for not replying to your earlier message. If enable the colouring in cite commands in macros.tex I get; \setupcite [interaction=start, compress=no,color=darkgreen] The current bib module does not support changing the color of links. The color=darkgreen was a local change that I did in my copy of t-bib. So, color=darkgreen should just be silently ignored. However, compress=no does affect the output of the \cite command but I do not understand why it changes things like like Aumann and Hart (...) instead of (Aumann and Hard, ... ). Can you try to create a minimal example just using the bib module specific setups? Aditya Teams and games Multi-agent systems can be classified as teams and games on the basis of the ob- jective of the agents. In teams all agents have the same objective; in games, each agent has its own objective. Historically, games were first studied in the seminal work of and were later developed as a subfield of mathematical economics called game theory (Aumann and Hart, , , ). Teams were first studied in mathematical economics by and , and later in control systems by , , , , and others Instead of; Teams and games Multi-agent systems can be classified as teams and games on the basis of the ob- jective of the agents. In teams all agents have the same objective; in games, each agent has its own objective. Historically, games were first studied in the seminal work of von Neumann and Morgenstern () and were later developed as a sub- field of mathematical economics called game theory (Aumann and Hart, , , ). Teams were first studied in mathematical economics by Radner () and Marschak and Radner (), and later in control systems by Witsenhausen (a, ), Ho et al. (), Ho (), and others. Obviously I had to move t-bib.tex from the current directory to even get the it compile. Thanks Mohamed Aditya Mahajan wrote: * Bibliography. For a large part, the bib module was very easy. In the end, there were a few glitches with the formatting of the bibliography (too title space between entries) which I had to manually correct. (Look for \help inside the bbl file). The bbl file sorted authors with multiple entries incorrectly. If I had authors with four publications in a year, say 2000, the came out as 2000d, 2000c, 2000b, 2000a. I wanted 2000a, 2000b, 2000c, and 2000d, so in the end I just edited the bbl file by hand. There was also problem with maybe year. If I had 2000a and 2000b in the bib file, but only referred to 2000b in the thesis, the year came out as 2000b rather than 2000. For this also, I edited the bbl file by hand. Overall, ConTeXt made writing the thesis fairly easy. I mean the typesetting part of it. For those who are wondering, ConTeXt does not help with the content of the thesis :-) I would like to thank Hans and Taco for providing ConTeXt and everyone on the mailing list for answering my various questions. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! mail
Re: [NTG-context] modernized and augmented m-r.tex
2008/12/8 Mojca Miklavec <[EMAIL PROTECTED]>: > On Mon, Dec 8, 2008 at 12:59 PM, Johan Sandblom wrote: >> >> One further improvement would be to collect the R snippets and run >> them all at once. That would significantly reduce processing time >> since the R startup is on the order of a few seconds. However, that is >> beyond my knowledge of ConTeXt. > > More philosophical question than a question of implementation. > > If you want to generate some images with R than you can do that in one > run anyway (you need to include those images with several > \externalfigure commands anyway). If you want several ls() statements > that print out something: how are you going to know which output > belongs to which script? Yes it is interesting doing it this way, the latex people do it the other way around: they run a mixed R/LaTeX file through an R function that puts evaluated R code instead, run this file through LaTex and voila. But if there is no requirement for elegance I am sure there are ways to do it this way as well, some trickery with comments perhaps or searching for the next input. Rather a lot of work to get either of them going though ... Johan > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > -- Johan Sandblom, MD PhD m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell ___ 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] questions on ctxtools and line break.
Dalyoung Jeong wrote: The rules of line break for Korean is simple in saying. We don't need any hyphenation inside word, so if it is longer than the \textwidth, just make a line break at that position. There may be a little adjustment to make it right flush. For the details of the line breaking system for Korean, I'll talked to the people in KTUG. Some experts in KTUG will answer how to do that. For ConTeXt, there is a font-kor.tex(by nomos) file which enable to use Korean in ConTeXt. So they know what and how to do. I hope that we find a good solution which is also good for the implementation in MKIV. ok, i'll wait for the details and a test file Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] anyway to treat placefigure as a frame?
Yue Wang wrote: Hi, Hans: Is there some command to treat figure (both the caption and graphic) as a frame? setupfloats only deside what the graphics side should be like. I want to add a background to the caption+graphic. currently not - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \recurselevel in a table
Bart C. Wise wrote: I'm trying to get the \recurselevel in a table; however, every time it's called, the number returned is zero. How do I get the recurselevel? \starttext \bTABLE \bTR \dorecurse{3}{\bTD Cell: \recurselevel\eTD} \eTR \bTR \dorecurse{3}{\expanded{\bTD Cell: \recurselevel\eTD}} \eTR \eTABLE \stoptext Bart ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] modernized and augmented m-r.tex
On Mon, Dec 8, 2008 at 12:59 PM, Johan Sandblom wrote: > > One further improvement would be to collect the R snippets and run > them all at once. That would significantly reduce processing time > since the R startup is on the order of a few seconds. However, that is > beyond my knowledge of ConTeXt. More philosophical question than a question of implementation. If you want to generate some images with R than you can do that in one run anyway (you need to include those images with several \externalfigure commands anyway). If you want several ls() statements that print out something: how are you going to know which output belongs to which script? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \recurselevel in a table
I'm trying to get the \recurselevel in a table; however, every time it's called, the number returned is zero. How do I get the recurselevel? \starttext \bTABLE \bTR \dorecurse{3}{\bTD Cell: \recurselevel\eTD} \eTR \eTABLE \stoptext Bart ___ 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] report: non-stretchable spaces after periods
In a message some time ago, Wolfgang suggested that \def\ {\thinspace} would serve to get non-expanding or non-stretchable spaces after periods that occur within sentences and in bibliographies. When I discovered that, while this worked well in limited contexts, in a lengthy bibliography which relied on the period as the main form of punctuation it lead quickly to numerous line-breaking problems. So Wolfgang has now has kindly proposed \def\ {\hskip.1666em\relax} since \hskip is a TeX primitve and mentioned in every (plain) TeX manual. And I gratefully confirm that this works very well. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Sorting references
Le 08 décembre à 14:14:35 Taco Hoekwater <[EMAIL PROTECTED]> écrit notamment: | Jean Magnan de Bornier wrote: | > Hi all, | > Using the bib module, I want my references to be sorted alphabetically; > | That example was ok, but the bbl by default left in the same order as | the bib database. You need > | \setupbibtex[database=,sort=author] > Thanks a lot! Regards, -- Jean ___ 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] anyway to treat placefigure as a frame?
Hi, Hans: Is there some command to treat figure (both the caption and graphic) as a frame? setupfloats only deside what the graphics side should be like. I want to add a background to the caption+graphic. Yue Wang ___ 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] Sorting references
Jean Magnan de Bornier wrote: > Hi all, > Using the bib module, I want my references to be sorted alphabetically; That example was ok, but the bbl by default left in the same order as the bib database. You need \setupbibtex[database=,sort=author] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Sorting references
Hi all, Using the bib module, I want my references to be sorted alphabetically; if I understood correctly the doc: \setuppublications[alternative=apa-fr,sorttype=bbl,criterium=cite] Then the alphabetical order is taken from the bibtex *keys*, and it doesn't always follows true alphabetical order... :-( And it seems that with bbl the whole bbl content is necessarily written in references. How can I do to have only cited material included in references? TIA, -- Jean ___ 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] question about rulethickness
Hi all, It looks like rulethickness can only be applied to all 4 sides of a cell all at once, or is there a way to specify the thickness of left|right|top|bottom? As the example shows I get a thicker frame around the 2 rows, but I want to use the normal frame thickness inside the cells. \starttext \setupTABLE[r][1,2][rulethickness=1pt] \bTABLE \bTR\bTD[nc=3] long text \eTD\eTR \bTR\bTD text \eTD\bTD text \eTD\bTD text \eTD\eTR \bTR\bTD even \eTD\bTD more \eTD\bTD text \eTD\eTR \eTABLE \stoptext Thanks, Jelle ___ 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] modernized and augmented m-r.tex
The ConTeXt module for interaction with the statistical programming language R currently does not work with MKIV since buffers are not saved to file. The included file fixes this by calling \savebuffer on the buffer in case \ctxlua is defined (a trick gleaned from a discussion on the LilyPond module a while back). Also, all calls to R used to include a rather annoying proc.time() statement at the end, and a modified R call has fixed this. PATH must contain R or R.exe on Windoze. Should 'texmfstart' still be used for the R calls? A third modification involves being able to call \startRnoecho (which only echoes R output in the ConTeXt file) in addition to \startR (which echoes both input and output) and \startRhidden (which echoes nothing, useful for generating graphics) One further improvement would be to collect the R snippets and run them all at once. That would significantly reduce processing time since the R startup is on the order of a few seconds. However, that is beyond my knowledge of ConTeXt. Regards, Johan -- Johan Sandblom, MD PhD m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell m-r.tex Description: TeX document ___ 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] Dangling lines.
Bart C. Wise wrote: > > Now the only problem I have is I have no idea what \endgraf does. I've > searched the web and I'm having a difficult time getting a search term > that will point me to the information. Will you give me a brief > explanation or point me where to look \endgraf is just an alias for \par. There are some places where \par is prohibited by TeX's parser but in such cases \endgraf is still allowed. The prohibition helps to catch runaway definitions (because an empty line is equal to a \par commnad). 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dangling lines.
On Monday 08 December 2008 03:40:55 am Taco Hoekwater wrote: > Bart C. Wise wrote: > > Is there a way to tell ConTeXt to treat the author's signature (the > > dangling line) as part of the previous paragraph? > > If \nobreak didn't work, then your paragraph wasn't ended yet, > and you need an extra empty line or an \endgra. Try this: > > \definestartstop[AuthorNote] > [before={\bgroup \startnarrower\switchtobodyfont[10pt]}, >after={\endgraf\nobreak\vskip-0.2ex\nobreak Author > \stopnarrower \egroup \blank \noindentation}] > Excellent! That works! Now the only problem I have is I have no idea what \endgraf does. I've searched the web and I'm having a difficult time getting a search term that will point me to the information. Will you give me a brief explanation or point me where to look Thanks, Bart ___ 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] backward-incompatible behavior of Palatino and modern
Sanjoy Mahajan wrote: > > Commenting out the "\setupbodyfont [palatino,11pt]" line makes the two > versions identical. But the original example uses Palatino text, so I > cannot do that for the long-term solution. IIRC, we changed or added the rscale= option for the ss typeface, this is probably the cause (new font size is 1.075 times the old size) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dangling lines.
Bart C. Wise wrote: > > Is there a way to tell ConTeXt to treat the author's signature (the > dangling line) as part of the previous paragraph? If \nobreak didn't work, then your paragraph wasn't ended yet, and you need an extra empty line or an \endgra. Try this: \definestartstop[AuthorNote] [before={\bgroup \startnarrower\switchtobodyfont[10pt]}, after={\endgraf\nobreak\vskip-0.2ex\nobreak Author \stopnarrower \egroup \blank \noindentation}] 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Dangling lines.
On Sunday 07 December 2008 03:56:11 am Taco Hoekwater wrote: > Bart C. Wise wrote: > > I created an Author's note (code below). It is designed to print out a > > note, skip a line, and then follow with the Author's signature. The > > problem I'm having is that ConTeXt will break the page just before the > > author's signature leaving it dangling on the next page. If I use a > > \vbox, that has problems when the notes need to go more than the current > > page. How do I fix the code below? > > > > \definestartstop[AuthorNote][ > > > > before={\bgroup > > \startnarrower > > \switchtobodyfont[10pt] > > }, > > after={% > > \vskip-0.2ex > > You can try adding \nobreak commands before and after the \vskip > command. > I added those, but it had no effect. I also tried replacing \vskip with \blank and that had no effect either (I didn't think it would). Other thoughts? Is there a way to tell ConTeXt to treat the author's signature (the dangling line) as part of the previous paragraph? Bart ___ 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] How to get the total page number at startup in luatex?
On Mon, Dec 8, 2008 at 5:47 PM, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: > On Mon, Dec 8, 2008 at 10:33 AM, Zhichu Chen <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I've met a weird thing, I can't get \totalnumberofpages in the preamble. >> But it used to work. >> >> A simple test file is >> ++ >> \dorecurse{\totalnumberofpages}{\setvalue{test::\recurselevel}{:\recurselevel:}} >> \def\test{\getvalue{test::\pagenumber}} >> \starttext >> \input knuth >> \page[yes] >> \input knuth >> \page[yes] >> This should be \quotation{:\pagenumber:}, but it's \quotation{\test} >> \stoptext >> >> >> Any suggestions about how to do that? I wanna define each page a macro. > > Define your macros *after* \starttext. Nice, though it makes some trouble that I should use \appendtoks for a module. Thanks. > > 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 > ___ > -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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] How to get the total page number at startup in luatex?
On Mon, Dec 8, 2008 at 10:33 AM, Zhichu Chen <[EMAIL PROTECTED]> wrote: > Hi, > > I've met a weird thing, I can't get \totalnumberofpages in the preamble. > But it used to work. > > A simple test file is > ++ > \dorecurse{\totalnumberofpages}{\setvalue{test::\recurselevel}{:\recurselevel:}} > \def\test{\getvalue{test::\pagenumber}} > \starttext > \input knuth > \page[yes] > \input knuth > \page[yes] > This should be \quotation{:\pagenumber:}, but it's \quotation{\test} > \stoptext > > > Any suggestions about how to do that? I wanna define each page a macro. Define your macros *after* \starttext. 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 ___
[NTG-context] How to get the total page number at startup in luatex?
Hi, I've met a weird thing, I can't get \totalnumberofpages in the preamble. But it used to work. A simple test file is ++ \dorecurse{\totalnumberofpages}{\setvalue{test::\recurselevel}{:\recurselevel:}} \def\test{\getvalue{test::\pagenumber}} \starttext \input knuth \page[yes] \input knuth \page[yes] This should be \quotation{:\pagenumber:}, but it's \quotation{\test} \stoptext Any suggestions about how to do that? I wanna define each page a macro. -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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] calling a function with complex parameters
Michail Vidiassov wrote: > Dear All, > > I need to fill a lua table with data, and some values may be tables. > How to supply that data from ConTeXt? > The most straightforward way is to make user fill a string with lua code > of table initiaiser and then use "loadstring". That is probably what I would do. But if that was too error-prone, I would most likely write a small syntax of my own and parse it with lpeg or use an xml-based format. Personally, I find api-based data interfaces clumsy and at least as error prone as syntax-based ones. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___