Re: [NTG-context] simple bibliography and dots after section numbering
I think what are you looking for is possible with bib module. Look at the 3.1 section Default and explicit citations http://dl.contextgarden.net/modules/bibmod-doc-2009.11.04.zip http://wiki.contextgarden.net/Bibliography On Fri, May 7, 2010 at 1:52 AM, rogu...@googlemail.com wrote: rogu...@googlemail.com (2010-05-05 05:12): 2. I would like to use something like this for bibliography: http://wiki.contextgarden.net/Simple_Bibliography#Another_Approach but adapting it seems too hard for me. Perhaps someone could help? A very crude example: --- People are writing about this \cite[ref1], (\cite[ref2] - page 25). \startbibliography \bibitem[ref1] This is the first reference. \bibitem[Daniel, 2004][ref2] This is the second reference. \stopbibliography --- should be rendered as: --- People are writing about this [1], (Daniel, 2004 - page 25) 1. This is the first reference. 2. This is the second reference. --- That is, I want an environment and 2 commands: \startbibliography \cite [key] \bibitem [label_replacing_\cite[key]_but_not_the_item_number] [key] A bump to my initial question to add that I am using MKIV and a question: would this be hard to implement for a total ConTeXt newcommer? What should he use? TeX / Lua? Would ConTeXt commands be enough? -- -- Rogutės Sparnuotos ___ 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] problem with package.path
On Thu, May 06 2010, Hans Hagen wrote: \startbuffer[test] bla = nil \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) \stopluacode \stoptext dofile ../mytest.lua Bad example... mytest.lua is a module, so it must be loaded with require: \startbuffer[test] module(...) \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) -- dofile(../mytest.lua) -- this does not work \stopluacode \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] Running standalone metapost file omits spaces between btex and etex
I found that the following example \starttext \startuseMPgraphic{test} draw btex some text with space etex; \stopuseMPgraphic \useMPgraphic{test} \stoptext can generate the text between btex and etex correct no matter I use MKII or MKIV. But, when I running the following example beginfig(0); draw btex some text with space etex; endfig; end with the command line: $ mpost --mem=metafun test.mp or $ texexec --mptex test.mp It dose generate output. But the output omits all the spaces between btex and etex, with the resulting string to be sometextwithspace. So, the question is how to get the correct results when running standalong metapost file with btex-etex strings. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] language specifics (was: Re: mistake in lang-cjk.mkiv)
On Thu, May 06 2010, Hans Hagen wrote: in mkiv we don't have (want) language specifics ... why do yoi need them? Hello Hans, What is now the right mechanism, to trigger some setting when a specific language is activated and cancel this same setting, when this language is deactivated? Example: when entering French language, I want to execute \setcharacterspacing[frenchpunctuation] and when leaving French I want to execute \setcharacterspacing[reset]. (today the file http://dl.contextgarden.net/modules/t-french/tex/context/third/french/t-french.tex is broken, because I don't know how to do it right... :( Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] problem with package.path
On 7-5-2010 9:15, Peter Münster wrote: On Thu, May 06 2010, Hans Hagen wrote: \startbuffer[test] bla = nil \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) \stopluacode \stoptext dofile ../mytest.lua Bad example... mytest.lua is a module, so it must be loaded with require: \startbuffer[test] module(...) \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) -- dofile(../mytest.lua) -- this does not work \stopluacode \stoptext package.append_libpath(...) - 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] PPCHTEX with PSTricks option
On 7-5-2010 9:12, Alan BRASLAU wrote: ppchtex has been rewritten for conTeXt using luatex and line drawing has been considerably improved. However, I do not believe that this version will (ever) be adapted for use with LaTeX. Perhaps Hans can give you a better answer. indeed the mkiv reimplementation will not be backported to latex as it involved a combination of tex, lua and mp now and is integrated into the context kernel (we have math in the kernel so why not chemistry) I tried your example, with decent results (see test.pdf) with the latest texlive version of pdflatex. Yet trying the pstricks driver gives an error: ! Undefined control sequence. recently read \...@lor@t...@ps looks like a pstricks is not loadec completely i cannot test it here as pstricks with ppchtex in mkii does not work that well because i need to support latex and using the context pstricks layer would then complicat ethe code (in mkii we use metapost instead 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] problem with package.path
Peter Münster wrote: On Thu, May 06 2010, Hans Hagen wrote: \startbuffer[test] bla = nil \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) \stopluacode \stoptext dofile ../mytest.lua Bad example... mytest.lua is a module, so it must be loaded with require: You cannot always replace 'require' with 'dofile', and for this reason it is important that package.path actually works as explained in the lua manual. (escrito had similar problems, and other external lua modules will run into it as well). Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] problem with package.path
On 7-5-2010 10:52, Taco Hoekwater wrote: Peter Münster wrote: On Thu, May 06 2010, Hans Hagen wrote: \startbuffer[test] bla = nil \stopbuffer \savebuffer[test][../mytest.lua] \starttext \startluacode package.path = ../?.lua;; require(mytest) \stopluacode \stoptext dofile ../mytest.lua Bad example... mytest.lua is a module, so it must be loaded with require: You cannot always replace 'require' with 'dofile', and for this reason it is important that package.path actually works as explained in the lua manual. (escrito had similar problems, and other external lua modules will run into it as well). well, package path is supported (as is cpath) so it's more a question of why that paths fails .. maybe we need to explicitly assume ; instead of the platform separator (tests on my machine work ok as windows has ; as separator) you can test this with adding an explcit ; to libpaths = file.split_path(_path_,;) in data-lua.lua 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] language specifics
On 7-5-2010 9:25, Peter Münster wrote: On Thu, May 06 2010, Hans Hagen wrote: in mkiv we don't have (want) language specifics ... why do yoi need them? Hello Hans, What is now the right mechanism, to trigger some setting when a specific language is activated and cancel this same setting, when this language is deactivated? Example: when entering French language, I want to execute \setcharacterspacing[frenchpunctuation] and when leaving French I want to execute \setcharacterspacing[reset]. (today the file http://dl.contextgarden.net/modules/t-french/tex/context/third/french/t-french.tex is broken, because I don't know how to do it right... :( you can then probably just enable it as i cannot imagine a document which uses mixed typographical habits that still looks right anyway, there will be some mechanism but probably more at the level of the features itself (i.e. as part of setcharacterspacing) as there have to be ways to turn on/off specific language bound features. The mkii language specifics were mostly meant for encoding issues and those trigger points have disappeared as encodings are gone now. 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] sort-lan.lua nitpicks and sorting
On 2-5-2010 3:59, Philipp Gesang wrote: 1. In sort-lan.lua, line 101 should read «['r'] = r», and line 144 «['r'] = 26, -- r». i patched the file 2. Although I read the disclaimer about said file being “preliminary and incomplete” -- is there some rationale behind the range of integers for each language mapping? The mapping for English goes from 1 to 51, interleaving 2 integers for each letter (which is odd because it should start from index 3 with “a”, shouldn't it?), while the Czech one goes from 1 to 40 without skipping, Finnish and Austrian from 1 to 58. some old (ruby) code was used etc etc What about mapping them onto a larger but common scale that would alleviate multilingual sorting so that the alphabetical representation of the phoneme /a/ maps to the same value over different languages?† E.g. [a] = 3, -- in a Latin mapping, [α] = 3, -- in Greek mapping, [а] = 3, -- in a Russian mapping. hm, interesting ... feel free to reshuffle and provide patches † I know this is impractical for many writing systems and even within the set of Latin or Greek based alphabets it largely depends on a given purpose how much precision you need in sorting. indeed but we can have multiple variants and are not bound to specific conventions 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] PPCHTEX with PSTricks option
On Friday 07 May 2010 10:23:20 Hans Hagen wrote: On 7-5-2010 9:12, Alan BRASLAU wrote: ppchtex has been rewritten for conTeXt using luatex and line drawing has been considerably improved. However, I do not believe that this version will (ever) be adapted for use with LaTeX. Perhaps Hans can give you a better answer. indeed the mkiv reimplementation will not be backported to latex as it involved a combination of tex, lua and mp now and is integrated into the context kernel (we have math in the kernel so why not chemistry) I tried your example, with decent results (see test.pdf) with the latest texlive version of pdflatex. Yet trying the pstricks driver gives an error: ! Undefined control sequence. recently read \...@lor@t...@ps looks like a pstricks is not loadec completely i cannot test it here as pstricks with ppchtex in mkii does not work that well because i need to support latex and using the context pstricks layer would then complicat ethe code (in mkii we use metapost instead anyway) Hans Indeed, the problem is that I tried to run the pstricks option under pdflatex, which, of course, does not work! As I (almost) never use LaTeX anymore (and certainly never dvips) I had forgotten about this. I guess that I have become far too accustomed to ConTeXt and, in particular, mkiv. As to the original post, it yields acceptable results. The new ppchtex in mkiv core is an improvement and, as Hans confirms, will not be backported to laTeX. This could be one of many good reasons to switch from LaTeX to ConTeXt! Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mp clippath broken (mkiv)
Hi, the latest version (06-05-2010) has problems with mp clippath. Example is attached. Best wishes, Peter ps: Believe it or not, but all leftovers of cuts are recycled/reused here for other graphics. I hate squandering ;) \startMPclip{mpcliptest} clip currentpicture to unitcircle scaled 5cm; \stopMPclip \starttext \clip[mp=mpcliptest]{\blackrule[width=5cm,height=5cm]} \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] mp clippath broken (mkiv)
On 7-5-2010 1:24, Peter Rolf wrote: the latest version (06-05-2010) has problems with mp clippath. Example is attached. ok, will be fixed (bug was a side effect of an extension needed fpr a new presentation style) 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] PPCHTEX with PSTricks option
On 7-5-2010 8:12, Helge Kruse wrote: Am 07.05.2010 13:04, schrieb Alan BRASLAU: On Friday 07 May 2010 10:23:20 Hans Hagen wrote: On 7-5-2010 9:12, Alan BRASLAU wrote: indeed the mkiv reimplementation will not be backported to latex as it involved a combination of tex, lua and mp now and is integrated into the context kernel (we have math in the kernel so why not chemistry) So PPCHTEX is frozen for LaTeX? apart from bug fixes (and/or if someone submits more drawing definitions) in fact, as we move on to luatex, the context version for pdftex / xetex is frozen as well Indeed, the problem is that I tried to run the pstricks option under pdflatex, which, of course, does not work! The pictex output is not convincing, so I hoped the PSTricks output would gave better result. In general it works, but the diagonal bonds are too long. I Hoped that this could be fixed. if we kno wwhere the problem sits it will of course be solved, however as i don't run latex i cannot see what goes wrong Skimming the ppchtex.noc I found that metapost is one possible output driver. I also found a documentation for metapost. But I don't see how I can make PPCHTEX work with metapost in LaTeX. I even don't know if metapost can be used in LaTeX as in ConTeXt. in context mkii metapost support has been integrated for quite some time and in context mkiv it can be processed without noticing so there ppchtex uses even more metapost (which is why there are also some extras) As I (almost) never use LaTeX anymore (and certainly never dvips) I had forgotten about this. I guess that I have become far too accustomed to ConTeXt and, in particular, mkiv. As to the original post, it yields acceptable results. The new ppchtex in mkiv core is an improvement and, as Hans confirms, will not be backported to laTeX. This could be one of many good reasons to switch from LaTeX to ConTeXt! Well I am curious and I would evaluate ConTeXt. I think that http://www.pragma-ade.com/ will be a good starting point to do that. Unfortunately I did not found How to install ConTeXt. Can this be done by adding some packages in MiKTeX 2.8? Probably a silly question... best start with installing the so called minimals (from contextgarden.net) which will give you an independent tree that does not interfere with anything else btw, an easy test is: \starttext \startTEXpage ... some chemical ... \stopTEXpage \stoptext which will give you a graphic that you then can include in a latex doc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [OT] Web based LaTeX editor for Google Docs
http://code.google.com/p/latex-lab/ (someone needs to post some OT post every now and then when Luigi is busy) ___ 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] Web based LaTeX editor for Google Docs
On Fri, 7 May 2010, luigi scarso wrote: On Fri, May 7, 2010 at 10:49 PM, Martin Schröder mar...@oneiros.de wrote: 2010/5/7 Mojca Miklavec mojca.miklavec.li...@gmail.com: http://code.google.com/p/latex-lab/ Cool. I'm waiting for the ConTeXt version... :-) imho the garden is better and it can already process files stored on google docs http://randomdeterminism.wordpress.com/2010/02/26/reading-files-off-the-we/ 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 ___