Re: [NTG-context] finding out what font are available
the mtxrun file and the luatools file in the bin path are the same as the ones in the lua directory. I ran diff and got nothing. For instance: % *diff ~/context/tex/texmf-context/scripts/context/lua/luatools.lua ~/context/tex/texmf-linux/bin/luatools* I copied them anyways: *%cp mtxrun.lua ~/context/tex/texmf-linux/bin/mtxrun % cp luatools.lua ~/context/tex/texmf-linux/bin/luatools * and: *%which mtxrun* /home/ciro/context/tex/texmf-linux/bin/mtxrun * *then: * **%mtxrun --verbose --scripts mtx-fonts --list *MtxRun | variable SELFAUTOLOC set to /home/ciro/context/tex/texmf-linux/bin MtxRun | variable SELFAUTODIR set to /home/ciro/context/tex/texmf-linux MtxRun | variable SELFAUTOPARENT set to /home/ciro/context/tex MtxRun | variable TEXMFCNF set to /home/ciro/context/tex/texmf/web2c MtxRun | loading configuration file /home/ciro/context/tex/texmf/web2c/texmfcnf.lua MtxRun | loading configuration for /home/ciro/context/tex/texmf/web2c from /home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/2f8879b44d23456e76a2b13e4fc4fa9b MtxRun | locating list of /home/ciro/context/tex/texmf MtxRun | loading files for /home/ciro/context/tex/texmf from /home/ciro/context/tex/texmf-cache/luatex-cache/context/3e64d452a8a0bdcae257a98fc8ef76f6/trees/fef1be4e394a17a934e9d3021bf5aabc MtxRun | MtxRun | executing: luatex --luaonly mtx-fonts.lua --list MtxRun | mtx-fonts.lua:11: *attempt to index global 'resolvers' (a nil value)* Ciro On Sun, Jun 14, 2009 at 1:14 PM, Hans Hagen pra...@wxs.nl wrote: Ciro Soto wrote: I ran the selfupdate: /home/ciro/context/tex/texmf-linux/bin/mtxrun MtxRun | *unable to locate new script* ok, so that point in th edirection of a path problem I added script/context/lua to my path: better do a cp mtxrun.lua...binpath.../mtxrun cp luatools.lua ...binpath.../luatools (no suffix on unix) - 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] stand-alone ConTeXt
Yue Wang wrote: btw, if one uses mkiv, ruby is no longer needed unless one wants to run specific scripts that are not yet luafied; but then, installing ruby is no big deal anyway How about process the mkii document using lua script too? So eventually we can get rid of ruby and perl. for that i need to rewrite the index sorting in lua (plus a little bit of tui - tuo handling) now context script supports --pdftex and --xetex switch, but it still fall back to texexec and texutils ruby scripts. sure, time is limited 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] new structure code
Alan BRASLAU wrote: On Sunday 14 June 2009 20:23:50 Hans Hagen wrote: Alan BRASLAU wrote: Blindly using the following minimal example, I almost get the desired result, but the parts are unnumbered. \setuphead[part][sectionsegments=1:1] I am still fishing... and don't really get it... \setuphead[part][placehead=yes,sectionsegments=1:1,resetnumber=no] \setupstructureheads[sectionsegments=2:5] take a look at the end of strc-def.mkiv to get an idea resetting also happens with sets - 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] problem with \footnote and \FlushStep (MKIV)
Peter Münster wrote: Some weeks ago, this worked fine, but today: \usemodule[pre-stepwise] \setupinteraction[state=start] \starttext \chapter{Footnote appears too early} \StartSteps bla\FlushStep \footnote{footnote}\FlushStep bla\FlushStep \StopSteps footnotes are now flushed completely differently; in mkii (and previous mkiv) they were typeset directly and as such got the properties (like layers) kind of frozen; in mkiv we now store them in their original form which means that later on they can reflow in whatever way they want in the future i can consider storing some more more info (in this case layers) with the note but we need to be carefull with it; providing a quick solution has not my preference as it cripples the code - 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 ___
[NTG-context] mkiv structure
Hi, I was wondering ... the last time quite some nice small test samples were posted for testing the structure code maybe we can set up a repository with such test files (but someone needs to coordinate it) where they can end up after posting and fixing possible errors in the examples; we do need some ordering 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] [PATCH] Add begin_of_buffer and end_of_buffer hooks for lua pretty printers
Hi Hans, (no patch nor example of usage attached) *sigh*, attaching files is always hard :-) Anyway, I've attached it now, together with an exapmle prettyprinter that uses it. I've also slightly changed the patch since my last message. Now, begin_of_buffer and end_of_buffer are always called, even for single line \type's. I found that I had to do all kinds of magic to make things work for \type as well, so this seems cleaner. To be able to differentiate, the type of buffer ('single', 'buffer' or 'file') and the name of the buffer/file gets passed to begin/end_of_buffer, though my example prettyprinter does not use these yet. Before, \type directly called hooks.flush_line. I've added buffers.typesingle to be called instead, which calls begin_of_line, flush_line and end_of_line. To prevent confusing with \type, I've renamed buffers.type to buffers.typebuffer. Finally, I've added some comments to the hooks.* functions, to document when they are called. Is there any place where lua pretty printers are documented? The wiki seems to say only wait for lua, but not how to use them. If there isn't, I'll try to put something useful on the wiki. Gr. Matthijs Index: base/buff-ini.lua === --- base.orig/buff-ini.lua 2009-06-15 10:23:58.0 +0200 +++ base/buff-ini.lua 2009-06-15 10:44:03.0 +0200 @@ -120,7 +120,15 @@ return first, last, last - first + 1 end -function buffers.type(name) +-- Types a single line of text (used by \type) +function buffers.typesingle(text) +hooks.begin_of_buffer('single') +hooks.flush_line(text) +hooks.end_of_buffer('single') +end + +-- Types text from the named buffer (used by \typebuffer and \starttyping) +function buffers.typebuffer(name) local lines = data[name] local action = buffers.typeline if lines then @@ -129,9 +137,11 @@ end local line, n = 0, 0 local first, last, m = buffers.strip(lines) +hooks.begin_of_buffer('buffer', name) for i=first,last do n, line = action(lines[i], n, m, line) end +hooks.end_of_buffer('buffer', name) end end @@ -145,15 +155,18 @@ return str or end +-- Types text from the named file (used by \typefile) function buffers.typefile(name) -- still somewhat messy, since name can be be suffixless local str = buffers.loaddata(name) if str and str~= then local lines = str:splitlines() local line, n, action = 0, 0, buffers.typeline local first, last, m = buffers.strip(lines) +hooks.begin_of_buffer('file', name) for i=first,last do n, line = action(lines[i], n, m, line) end +hooks.end_of_buffer('file', name) end end @@ -301,23 +314,43 @@ -- calling routines, don't change +-- Called at the start of every piece of text that is prettyprinted. Type can +-- be: 'single', when only a single line is prettyprinted (e.g. \type), +-- 'buffer', when a buffer is prettyprinted (e.g. \typebuffer) or 'file', when +-- a file is prettyprinted (e.g. \typefile). +-- name is the name of the buffer or file, and empty for 'single'. The special +-- buffer name '_typing_' is used for \starttyping. +function hooks.begin_of_buffer(type, name) +(visualizers[buffers.currentvisualizer].begin_of_buffer or default.begin_of_buffer)(type, name) +end + +-- Called at the end of every piece of text that is prettyprinted. +function hooks.end_of_buffer(type, name) +(visualizers[buffers.currentvisualizer].end_of_buffer or default.end_of_buffer)(type, name) +end + +-- Called for every non-empty line function hooks.flush_line(str,nesting) str = gsub(str, *[\n\r]+ *, ) ; -- semi colon needed (visualizers[buffers.currentvisualizer].flush_line or default.flush_line)(str,nesting) end +-- Called at the start of every non-empty line (before flush_line) function hooks.begin_of_line(n) (visualizers[buffers.currentvisualizer].begin_of_line or default.begin_of_line)(n) end +-- Called at the end of every non-empty line (after flush_line) function hooks.end_of_line() (visualizers[buffers.currentvisualizer].end_of_line or default.end_of_line)() end +-- Called for every empty line function hooks.empty_line() (visualizers[buffers.currentvisualizer].empty_line or default.empty_line)() end +-- Called for every non-empty line. The result is passed to flush_line. function hooks.line(str) if visualizers.enabletab then str = string.tabtospace(str,visualizers.tablength) @@ -329,6 +362,12 @@ -- defaults +function default.begin_of_buffer(type, name) +end + +function default.end_of_buffer(type, name) +end + function default.begin_of_line(n) texsprint(ctxcatcodes, commands.begin_of_line_command,{,n,}) end Index: base/buff-ini.mkiv === --- base.orig/buff-ini.mkiv 2009-06-15
Re: [NTG-context] URLs: interaction, color/style, hyphenation
On Thu, 11 Jun 2009, Peter Münster wrote: Here a general test-file with all possibilities to print URLs, that I'm aware of: \setupinteraction[state=start] \useURL[myURL][http://url.com/index.html] \starttext \hsize1pt % hyphen introduced in url, no special color/style: \from[myURL] % same as \from, but \tt style: \url[myURL] % hyphenated without hyphens but no color/style/interaction: \hyphenatedurl{http://url.com/index.html} % interaction and color, but not hyphenated: \goto{http://url.com/index.html}[url(http://url.com/index.html)] \stoptext The best would be, to have a command that: - makes interactive links like \from[] - uses \tt style like \url[] - breaks URLs like \hyphenatedurl{} - uses color like \goto{}[] Just a hint: the \from command of version 2009.01.18 MKIV worked very well: - there was color - tt-style - interaction was ok - hyphenation as with \hyphenatedurl was also ok - possibility to add number-signs in url with \# 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] URLs: interaction, color/style, hyphenation
Peter Münster wrote: On Thu, 11 Jun 2009, Peter Münster wrote: Here a general test-file with all possibilities to print URLs, that I'm aware of: \setupinteraction[state=start] \useURL[myURL][http://url.com/index.html] \starttext \hsize1pt % hyphen introduced in url, no special color/style: \from[myURL] % same as \from, but \tt style: \url[myURL] % hyphenated without hyphens but no color/style/interaction: \hyphenatedurl{http://url.com/index.html} % interaction and color, but not hyphenated: \goto{http://url.com/index.html}[url(http://url.com/index.html)] \stoptext The best would be, to have a command that: - makes interactive links like \from[] - uses \tt style like \url[] - breaks URLs like \hyphenatedurl{} - uses color like \goto{}[] Just a hint: the \from command of version 2009.01.18 MKIV worked very well: - there was color - tt-style - interaction was ok - hyphenation as with \hyphenatedurl was also ok - possibility to add number-signs in url with \# all referencing code has been rewritten so as with structure it will take some time for it to reach the desired state; i'm currently rewriting all backend code - 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] stand-alone ConTeXt
the mswincontext zip always provided ruby and gs and as well as xmlproc and xsltproc it's just that now that we have the garden minimals i no longer make my own so making mswincontex makes less sense too What about make a mswinbonus.zip for the user who need them, like MacTeX shipped its gs/imagemagick... 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 ___
[NTG-context] problem with math and TeXgyre and MKIV
No math symbols? (see attached) Alan minimal example: \usetypescript[postscript] \setupbodyfont[postscript,rm,12pt] \starttext $A = \pi r^2$ \stoptext goo.pdf Description: Adobe PDF 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] stand-alone ConTeXt
Yue Wang wrote: the mswincontext zip always provided ruby and gs and as well as xmlproc and xsltproc it's just that now that we have the garden minimals i no longer make my own so making mswincontex makes less sense too What about make a mswinbonus.zip for the user who need them, like MacTeX shipped its gs/imagemagick... It depends if the Minimals are intended to be a complete TeX system or if they are meant to be a minimal system for ConTeXt, possibly complementing the utility programs from TeX Live. —Joel Salomon ___ 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] stand-alone ConTeXt
It depends if the Minimals are intended to be a complete TeX system or if they are meant to be a minimal system for ConTeXt, possibly complementing the utility programs from TeX Live. it is just context minimals' extra... minimals can still be a minimal system for ConTeXt. —Joel Salomon ___ 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] stand-alone ConTeXt
Yue Wang wrote: It depends if the Minimals are intended to be a complete TeX system or if they are meant to be a minimal system for ConTeXt, possibly complementing the utility programs from TeX Live. it is just context minimals' extra... minimals can still be a minimal system for ConTeXt. there will be a goodies option: --goodies=scite,texworks,xml,gs but not many more - 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] stand-alone ConTeXt
Am 15.06.2009 um 17:05 schrieb Hans Hagen: it is just context minimals' extra... minimals can still be a minimal system for ConTeXt. there will be a goodies option: --goodies=scite,texworks,xml,gs but not many more Is it also possible to change --extras=... to --modules=... (or keep extra for old times sake)? 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] Using a tikz package
I would like to use this package for drawing circuits: http://home.dei.polimi.it/mredaelli/circuitikz/index.html The examples are in Latex, but I imagine it could be used in ConTeXt since it's written using Tikz. How can I do that? The recomended instalation procedure at the website is to just uncompress everything in texmf-local directory, but that creates a 'latex' directory that I imagine ConTeXt won't use. Thanks, Maurício ___ 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] Using a tikz package
On Mon, Jun 15, 2009 at 20:35, Maurício wrote: I would like to use this package for drawing circuits: http://home.dei.polimi.it/mredaelli/circuitikz/index.html The examples are in Latex, but I imagine it could be used in ConTeXt since it's written using Tikz. How can I do that? The recomended instalation procedure at the website is to just uncompress everything in texmf-local directory, but that creates a 'latex' directory that I imagine ConTeXt won't use. Hello Maurício, You'll need to convince the author to make a generic package. I'm not sure if he's familiar with ConTeXt or not. The changes that are needed might be doable in reasonable amount of time (from my first impression there are not too many LaTeX-specific commands present), but the package won't work out of the box as it stands at the moment. 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] Part, chapter, section numbers typeset twice by e.g. \in{Chapter}[ch:foo]
Hi Hans, In the following test, \in{}[] typesets the correct part/chapter/section number, but doubled up as in Chapter 2.32.3 instead of Chapter 2.3. \starttext \placecontent \part[pt:foo_bar_baz]{Foo, Bar, Baz} \chapter[ch:foo]{Foo} \in{Chapter}[ch:baz1] \chapter[ch:bar]{Bar} \in{Section}[ch:foo] \chapter[ch:baz]{Baz} \in{Part}[pt:foo_bar_baz1] \part[pt:foo_bar_baz1]{Foo, Bar, Baz 1} \chapter[ch:foo1]{Foo 1} \chapter[ch:bar1]{Bar 1} \chapter[ch:baz1]{Baz 1} \stoptext I don't urgently need a fix or anything. I just wanted to get this on the queue. Kevin ___ 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] Symbol join of \ll and equal
En/na Xan ha escrit: Hi, I just want to know if there is a symbol that join \ll and = like \leq joins and =. If not, it's possible to make that symbol (that has in upper and - in bottom; like \leq but with two )? Thanks in advance, Xan. PS: In The not so short introduction to latex there is no such symbol. Maybe in ConTeXt Joel, Thanks a lot. I searched a symbol for f \symbol g iff for large x f(x) g(x). What's the most adequate symbol here? Thanks, Please, CCme. ___ 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] Re : Using a tikz package
If you convince him to do so, I would also be grateful since electrical circuits are the only missing piece for me to convert all the exercises for my students from LaTeX to ConTeXt! Regards, 2009/6/15, Mojca Miklavec mojca.miklavec.li...@gmail.com: On Mon, Jun 15, 2009 at 20:35, Maurício wrote: I would like to use this package for drawing circuits: http://home.dei.polimi.it/mredaelli/circuitikz/index.html The examples are in Latex, but I imagine it could be used in ConTeXt since it's written using Tikz. How can I do that? The recomended instalation procedure at the website is to just uncompress everything in texmf-local directory, but that creates a 'latex' directory that I imagine ConTeXt won't use. Hello Maurício, You'll need to convince the author to make a generic package. I'm not sure if he's familiar with ConTeXt or not. The changes that are needed might be doable in reasonable amount of time (from my first impression there are not too many LaTeX-specific commands present), but the package won't work out of the box as it stands at the moment. 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 ___ -- Flavien. Quantum objects are completely crazy but, at least, they are all crazy in the same way. R.P. Feynman. ___ 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] Using a tikz package
On Mon, Jun 15, 2009 at 20:58, Massimo Redaelli wrote: Dear Massimo, Thanks a lot for such a quick response. thanks for letting me know about this. I am certainly willing to fix it, but my knowledge of Context is null. My knowlegde of LaTeX equals that as well, so ... :) :) :) I'm putting this back to the mailing list since I should be studying instead of playing with TeX now ... Could you suggest to me a good starting point to find out differences and incompatibilities of Latex and Context? ConTeXt knows and respects 99% of plain TeX commands. So only LaTeX-specific ones will need to be fixed. I suggest to take a look at pgfplots or TikZ package itself to see how the differences are implemented. If you are ready to adapth the package to ConTeX, plain TeX support could be done at the same time for no extra cost, I guess. I suspect that almost all of your code works out of the box already anyway. These are the most obvious exceptions, but I didn't inspect closely enough, so there might be others: \NeedsTeXFormat - no equivalent in ConTeXt (and is not needed) \RequirePackage{name} - \usemodule[name] \RequirePackage{xstring} - no idea what it does; it might be that the functionality of this package will have to be adapted/implemented in ConTeXt or something else will have to be done \DeclareOption - it might be that this needs to be implemented in semi-low-level ConTeXt (you'll get help on this mailing list); maybe that's the most work, but once you have a single example you just copy-paste \ExecuteOptions \ProcessOptions \newcommand - in ConTeXt one would use the plain-TeX \def\commandname#1#2... \newenvironment{circuitikz}{ \begin{tikzpicture}}{\end{tikzpicture}} - \long\def\startcircuitikz#1\stoptikzcircuitikz{\starttikzpicture#1\stoptikzpicture} You can take a look at pgfplots for example. They put all the code to tex/generic/pgfplots and only a single file to tex/latex/pgfplots. The beginning of circuitikz.sty should go to tex/latex/circuitikz/circuitikz.sty, while the contents of that file and probably all other files should better have the ending tex and go to tex/generic/circuitikz/...(I don't know exact conventions of tikz).code.tex and you should create a file in tex/context/third/circuitikz/t-circuitikz.tex that starts approximately like this: % some nice header, but you may worry about that later \def\pgfcircversion{0.2.1} \writestatus{loading}{2009/04/17 The CircuiTikz circuit drawing package version \pgfcircversion} \startmodule[circuitikz] \unprotect % this sets the catcodes of @ and ! to letter (if needed) \usemodule[tikz] \usetikzlibrary[calc] \usepgflibrary[decorations.pathmorphing] % maybe some ConTeXt-specific initialisations % load all the generic file(s) that you need \input nameofyourfile.code.tex % define the environment \long\def\startcircuitikz#1\stopcircuitikz{\starttikzpicture#1\stoptikzpicture} \stopmodule \protect \doifnotmode{demo}{\endinput} % you may put some simple sample document below In order to test the package: % \usemodule[tikz] % maybe you don't need this if you load circuitikz already \usemodule[circuitikz][american] \starttext \startcircuitikz \stopcircuitikz \stoptext But I'm sure that the list will help you further with implementation details ... Mojca On Mon, 2009-06-15 at 20:48 +0200, Mojca Miklavec wrote: On Mon, Jun 15, 2009 at 20:35, Maurício wrote: I would like to use this package for drawing circuits: http://home.dei.polimi.it/mredaelli/circuitikz/index.html The examples are in Latex, but I imagine it could be used in ConTeXt since it's written using Tikz. How can I do that? The recomended instalation procedure at the website is to just uncompress everything in texmf-local directory, but that creates a 'latex' directory that I imagine ConTeXt won't use. Hello Maurício, You'll need to convince the author to make a generic package. I'm not sure if he's familiar with ConTeXt or not. The changes that are needed might be doable in reasonable amount of time (from my first impression there are not too many LaTeX-specific commands present), but the package won't work out of the box as it stands at the moment. 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] structure bugs: \nomarking
Hi, As we discussed, I'm submitting structure bugs as we move along to get this manuscript to the publisher. \nomarking fails: ! Undefined control sequence. \@@mklimittext -\@@kolimittext \doifelse #1#2-\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!!stringa \!... \splitsequence #1#2-\doifelse {#1}\v!no {#2}{\doifelse {#1}\v!yes {\languag... l.1 ...\nomarking {it extends way past the margin} \sectionheadmarkingtitle ...arks.title(#1,#2)} \fetchmark ...sname \??mk \??mk #3\endcsname {#1}} \fi \fi ... l.5 ? test file attached Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 test-marking.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] Pretty print SQL broken? Or am I doing something wrong?
On 11 Jun 2009, at 15:05, Hans Hagen wrote: Gerben Wierda wrote: Nobody has a solution for my problem with non-working colouration of code? the sql filter in mkii was not written by me ... So, who did? Or is there documentation on how this works so I can look at it myself? G ___ 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] Pretty print SQL broken? Or am I doing something wrong?
On 11 Jun 2009, at 14:22, Berend de Boer wrote: Gerben == Gerben Wierda gerben.wie...@rna.nl writes: Gerben For 'SQL' I assume I should use 'sql'. When I do that, Gerben exactly the same happens. I mean select instead of SELECT. Maakt geen verschil. Gerben ___ 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] Pretty print SQL broken? Or am I doing something wrong?
On 11 Jun 2009, at 14:22, Berend de Boer wrote: Gerben == Gerben Wierda gerben.wie...@rna.nl writes: Gerben For 'SQL' I assume I should use 'sql'. When I do that, Gerben exactly the same happens. I mean select instead of SELECT. Sorry, English: makes no difference. G ___ 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] --synctex switch available
Just a short notice ... The ConTeXt from version 2009-06-13 on (mkii only) provides the --synctex switch (that is equivalent to --synctex=1 call to engine). 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] \setupcaption stopper does not work in mkiv
hans, thank you so much! was finally able to solve my problem using your solution. :-) just one thing though, how do i produce Figure 1.1 or Figure 1-1? Thanks so much for bearing with me. I still have a lot to learn a lot about ConTeXt. :-) Cheers! :-) joel mendoza ___ 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 ___