Re: [NTG-context] Need help with \definetabulate
Marco, \definetabulate [alpha] [|l|l|l|] \setuptabulate [alpha] [bodyfont=small] This does not work for me quite the way I need it to. I am really just after defining the font-size, but I would like to leave the column setup to the user (I am building an environment and that I would like everyone in my team to use to ensure a consistent look-and-feel or all documents). So, ideally, I would like to do this: \definetabulate [alpha] \setuptabulate [alpha] [bodyfont=small] \starttext[|l|l|l|] \startalpha \NC first \NC second \NC third \NC\NR \stopalpha \stoptext ...but that does not seem to work. Any way I can achieve this? Feel free to add an example. It's a wiki! Sure. Will do, once I have this working. Thank you, Malte. Hi Malte I am trying to define two tabulate styles as follows: - \setuptabulate[split=yes, bodyfont=small] - \setuptabulate[split=yes] \definetabulate [alpha] [|l|l|l|] \setuptabulate [alpha] [bodyfont=small] \definetabulate [beta] [|l|l|] \setuptabulate [beta] [bodyfont=small, split=yes] \starttext \startalpha \NC first \NC second \NC third \NC\NR \stopalpha \startbeta \NC lorem \NC ipsum \NC\NR \stopbeta \stoptext ...such that I can just refer to them when I \starttabulate...\stoptabulate somewhere. To refer to a table, you place it as a float and use the `reference=tab:alphatable` key. Then in the text you refer to the table, see \in{table}[tab:alphatable]. I thought, the command \definetabulate would come in handy here, but I can't work it out and it appears the documentation on that command is pretty scarce. http://wiki.contextgarden.net/Command/definetabulate Feel free to add an example. It's a wiki! Marco ___ 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] Subscript Depth
Hi, How would I go about getting subscripts to stay at the same depth? An example of the problem I'm having is: \starttext % Notice the b's are not aligned $a_b' a_b$ \stoptext I'm only just learning ConTeXt and TeX, so I'm not sure what I'd need to change to fix this. Thanks, Nick ___ 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] Index and Publications suddenly remain empty??? [not solved yet]
On 14-10-2012 23:45, Sander Maijers wrote: II cannot test that, sadly. The setup for the ConTeXt beta seems to hang on this PC. mtx-update | run, rsync -rpztlv contextgarden.net::'minimals/current/misc/setuptex/' '/home/sander/software/installations/ConTeXt/beta/tex/.'receiving incremental file list sent 30 bytes received 99 bytes 258.00 bytes/sec total size is 8535 speedup is 66.16 mtx-update | updating mtxrun for linux-64: rsync -tgo --chmod=a+x '/home/sander/software/installations/ConTeXt/beta/tex/texmf-context/scripts/context/lua/mtxrun.lua' '/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin/mtxrun' mtx-update | run, rsync -tgo --chmod=a+x '/home/sander/software/installations/ConTeXt/beta/tex/texmf-context/scripts/context/lua/mtxrun.lua' '/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin/mtxrun' resolvers | tds | changing from root '/home/sander/software/installations/ConTeXt' to '/home/sander/software/installations/ConTeXt/beta/tex' resolvers | tds | prepending '/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin' to PATH resolvers | tds | setting TEXMFCNF to 'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf/web2c,selfautoparent:/../texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf/web2c}' resolvers | tds | mtx-update | run, mtxrun --tree=/home/sander/software/installations/ConTeXt/beta/tex --direct --resolve mktexlsr resolvers | tds | changing from root '/home/sander/software/installations/ConTeXt/beta/tex' to '/home/sander/software/installations/ConTeXt/beta/tex' resolvers | tds | prepending '/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin' to PATH resolvers | tds | setting TEXMFCNF to '/home/sander/texmf/web2c;{/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin/,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin/share/texmf-local/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin/share/texmf/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin/texmf-local/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/bin/texmf/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/share/texmf-local/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/share/texmf/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/texmf-local/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-linux-64/texmf/web2c,/home/sander/software/installations/ConTeXt/beta/tex/../texmf-local/we! b2c,/hom e/sander/software/installations/ConTeXt/beta/tex/,/home/sander/software/installations/ConTeXt/beta/tex/share/texmf-local/web2c,/home/sander/software/installations/ConTeXt/beta/tex/share/texmf/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf-local/web2c,/home/sander/software/installations/ConTeXt/beta/tex/texmf/web2c}' resolvers | tds | mtxrun | forcing cache reload resolvers | resolving | configuration files already identified resolvers | resolving | loading configuration file '/home/sander/software/installations/ConTeXt/beta/tex/texmf/web2c/texmfcnf.lua' resolvers | resolving | resolvers | resolving | locating list of '/home/sander/software//installations//ConTeXt/tex/texmf' (runtime) (tree:home/sander/software//installations//ConTeXt/tex/texmf) resolvers | methods | resolver: method=locators, how=uri, scheme=tree, argument=tree:home/sander/software//installations//ConTeXt/tex/texmf resolvers | trees | locator '/home/sander/software//installations//ConTeXt/tex/texmf' not found can you check that? is there such a tree? resolvers | resolving | resolvers | resolving | mtxrun | the resolver databases are not present or outdated mtxrun | mtxrun | executing: mktexlsr mtxrun | mtxrun |mktexlsr: : not a directory, skipping. = (HANG HERE), CTRL-C and after a while a similar hang, up to three times. The connection to the Internet is okay here, I tried many things to resolve this. When I tried the beta earlier, it did compile but there were some complaints about modules not being compiled due to a Lua problem (??? my vague remembrance). I also have these messages: mtxrun | unknown script 'context.lua' or 'mtx-context.lua' that looks suspicious i.e. the file database is not created My Lua version is
Re: [NTG-context] Using a search engine.
On Sun, Oct 14, 2012 at 9:19 PM, Andre Caldas wrote: Once, I've read about someone who, a long time ago, found it really difficult to look for pages related to LaTeX on the internet. He used to get a lot of fetish related pages!!! Since context is a very common word, I'd like to know from ConTeXt users... How do you look for ConTeXt stuff using search engines? On http://wiki.contextgarden.net/ there is a search box with three words below: Go, Search, Google. The last one will call google search on several predefined tex-specific pages. (The list of domains included in the search could be optimized. I just remembered that SX is probably not there since it didn't exist when the search was defined. If anyone is willing to help define the useful pages, help will be most welcome.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] m-graph.mkiv format bug
There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. (I have not been able to fix the code...) Alan Minimal example: \usemodule [graph] \starttext \startMPpage label(format(@g,1e-10),(0, 0)) ; label(format(@g,1e+10),(2cm,0)) ; label(format(@g,1e-12),(0, -.5cm)) ; label(format(@g,1e+12),(2cm,-.5cm)) ; \stopMPpage \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] m-graph.mkiv format bug
There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we never want to remove zeroes, this works: local function strip(s) -return \\times10^{..(s:gsub(%+*0*,))..} +return \\times10^{..(s:gsub(%+*,))..} end Note that if the exponent is zero the × 10^0 will be left out completely, in both the old and the new strip() function. This seems to be by design. Illustration of this behaviour: \usemodule[graph] \starttext \startMPpage label(format(@g,1e+0),(2cm,-1cm)) ; \stopMPpage \stoptext Cheers, Sietse On Mon, Oct 15, 2012 at 11:19 AM, Alan BRASLAU alan.bras...@cea.fr wrote: There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. (I have not been able to fix the code...) Alan Minimal example: \usemodule [graph] \starttext \startMPpage label(format(@g,1e-10),(0, 0)) ; label(format(@g,1e+10),(2cm,0)) ; label(format(@g,1e-12),(0, -.5cm)) ; label(format(@g,1e+12),(2cm,-.5cm)) ; \stopMPpage \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] m-graph.mkiv format bug
On Mon, 15 Oct 2012 12:08:30 +0200 Sietse Brouwer sbbrou...@gmail.com wrote: There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we never want to remove zeroes, this works: local function strip(s) -return \\times10^{..(s:gsub(%+*0*,))..} +return \\times10^{..(s:gsub(%+*,))..} end Note that if the exponent is zero the × 10^0 will be left out completely, in both the old and the new strip() function. This seems to be by design. Illustration of this behaviour: \usemodule[graph] \starttext \startMPpage label(format(@g,1e+0),(2cm,-1cm)) ; \stopMPpage \stoptext Thanks, this fixes it for now, but I believe that the strip is intended to remove leading zeros, as in label(format(@g,1e+08),(2cm,-1cm)) ; I suppose that the correct syntax must be something like the regex s/[+-]*0*\([1-9]\)/\1/ (not sure how to state this in lua gsub()...) 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 ___
Re: [NTG-context] Using a search engine.
Hello, Mojca wrote: On http://wiki.contextgarden.net/ there is a search box with three words below: Go, Search, Google. The last one will call google search on several predefined tex-specific pages. Not working for me ... it just displays 'loading'. Mojca wrote: The list of domains included in the search could be optimized. I use this Google search: search terms site:contextgarden.net OR site:tex.stackexchange.com OR site:ntg.nl OR site:pragma-ade.com OR contextgarden Shall we compile/expand this list of good sites in mail, and then fix the context wiki's search? `contextgarden` already catches Gmane and all the other mailing list archive mirrors, because that string is in the list's signature. My current search has the following search URL (%s is the search terms): http://www.google.com/search?q=%s+(site:contextgarden.net+OR+site:tex.stackexchange.com+OR+site:ntg.nl+OR+site:pragma-ade.com+OR+contextgarden)ie=utf-8sa=Searchcomplete=0nfpr=1 The flags complete=0nfpr=1 force Google not to autocorrect what you typed. (Very annoying when 'startcolumns' is interpreted as 'start columns'. Cheers, Sietse ___ 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] Numbering subformulas
Dear all, Dear Wolfgang, This is already in the core (str-mat.mkiv) but I found a typo in another macro in font-new.mkiv Thanks. That's indeed interesting. I still get an error. I have deleted everything and have updated to the most recent beta: 2012.10.06 15:31 MKIV fmt: 2012.10.15 If I replace the function \strc_formulas_handle_sub_numbering as described before, erveryting works nicely. Probably your fix has not yet been uploaded, yet. I just wanted to let you know. Maybe this clarifies something or indicates additional problems. Cheers, Andreas ___ 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] m-graph.mkiv format bug
On Mon, 15 Oct 2012 12:27:27 +0200 Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 15 Oct 2012 12:08:30 +0200 Sietse Brouwer sbbrou...@gmail.com wrote: There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we never want to remove zeroes, this works: local function strip(s) -return \\times10^{..(s:gsub(%+*0*,))..} +return \\times10^{..(s:gsub(%+*,))..} end Note that if the exponent is zero the × 10^0 will be left out completely, in both the old and the new strip() function. This seems to be by design. Illustration of this behaviour: \usemodule[graph] \starttext \startMPpage label(format(@g,1e+0),(2cm,-1cm)) ; \stopMPpage \stoptext Thanks, this fixes it for now, but I believe that the strip is intended to remove leading zeros, as in label(format(@g,1e+08),(2cm,-1cm)) ; I suppose that the correct syntax must be something like the regex s/[+-]*0*\([1-9]\)/\1/ (not sure how to state this in lua gsub()...) Figured it out (and we don't want to strip a leading minus sign): local function strip(s) return \\times10^{..(s:gsub(%+*0*([1-9]),%1))..} end 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 ___
Re: [NTG-context] m-graph.mkiv format bug
Alan wrote: Figured it out (and we don't want to strip a leading minus sign): local function strip(s) return \\times10^{..(s:gsub(%+*0*([1-9]),%1))..} end Better to anchor the pattern to the start of the string with `^` (and then the nonzerodigitmatching is no longer needed): gsub(^%+*0*, ) Otherwise, you'll get 805 -- 85. --Sietse On Mon, Oct 15, 2012 at 12:45 PM, Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 15 Oct 2012 12:27:27 +0200 Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 15 Oct 2012 12:08:30 +0200 Sietse Brouwer sbbrou...@gmail.com wrote: There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we never want to remove zeroes, this works: local function strip(s) -return \\times10^{..(s:gsub(%+*0*,))..} +return \\times10^{..(s:gsub(%+*,))..} end Note that if the exponent is zero the × 10^0 will be left out completely, in both the old and the new strip() function. This seems to be by design. Illustration of this behaviour: \usemodule[graph] \starttext \startMPpage label(format(@g,1e+0),(2cm,-1cm)) ; \stopMPpage \stoptext Thanks, this fixes it for now, but I believe that the strip is intended to remove leading zeros, as in label(format(@g,1e+08),(2cm,-1cm)) ; I suppose that the correct syntax must be something like the regex s/[+-]*0*\([1-9]\)/\1/ (not sure how to state this in lua gsub()...) Figured it out (and we don't want to strip a leading minus sign): local function strip(s) return \\times10^{..(s:gsub(%+*0*([1-9]),%1))..} end 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 ___
Re: [NTG-context] Numbering subformulas
Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv and made the formats anew, the subformulas are not numbered as expected. Probably we have to wait for a fix from Hans in an upcoming beta. @Wolfgang: can the typo you mention in font-new.mkiv be easily fixed? Best regards: OK On 15 oct. 2012, at 12:44, Andreas Mang m...@imt.uni-luebeck.de wrote: Dear all, Dear Wolfgang, This is already in the core (str-mat.mkiv) but I found a typo in another macro in font-new.mkiv Thanks. That's indeed interesting. I still get an error. I have deleted everything and have updated to the most recent beta: 2012.10.06 15:31 MKIV fmt: 2012.10.15 If I replace the function \strc_formulas_handle_sub_numbering as described before, erveryting works nicely. Probably your fix has not yet been uploaded, yet. I just wanted to let you know. Maybe this clarifies something or indicates additional problems. Cheers, Andreas ___ 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] m-graph.mkiv format bug
On Mon, 15 Oct 2012 13:03:40 +0200 Sietse Brouwer sbbrou...@gmail.com wrote: Alan wrote: Figured it out (and we don't want to strip a leading minus sign): local function strip(s) return \\times10^{..(s:gsub(%+*0*([1-9]),%1))..} end Better to anchor the pattern to the start of the string with `^` (and then the nonzerodigitmatching is no longer needed): gsub(^%+*0*, ) Otherwise, you'll get 805 -- 85. Thank you for the suggestion. Tried it, but this doesn't work, so I must be missing something... Of course, with MetaPost 2.0 we will certainly come across such a case with numbers like 1e805. :) 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 ___
Re: [NTG-context] Index and Publications suddenly remain empty??? [solved!]
On Mon, 15 Oct 2012 09:56:12 +0200 Hans Hagen pra...@wxs.nl wrote: On 14-10-2012 23:45, Sander Maijers wrote: II cannot test that, sadly. The setup for the ConTeXt beta seems to hang on this PC. (...) argument=tree:home/sander/software//installations//ConTeXt/tex/texmf resolvers | trees | locator '/home/sander/software//installations//ConTeXt/tex/texmf' not found can you check that? is there such a tree? resolvers | resolving | resolvers | resolving | mtxrun | the resolver databases are not present or outdated mtxrun | mtxrun | executing: mktexlsr mtxrun | mtxrun |mktexlsr: : not a directory, skipping. = (HANG HERE), CTRL-C and after a while a similar hang, up to three times. The connection to the Internet is okay here, I tried many things to resolve this. When I tried the beta earlier, it did compile but there were some complaints about modules not being compiled due to a Lua problem (??? my vague remembrance). I also have these messages: mtxrun | unknown script 'context.lua' or 'mtx-context.lua' that looks suspicious i.e. the file database is not created My Lua version is 5.1.5-2 mtxrun uses texlua and not lua Now, after a system restart it works. I am very happy to have the registers back in my document!! Thank you Wolfgang and Hans. As for the beta installation problem: It seems that the TEXMF environment variable was still pointing to the previous directory (now I use ./beta/), even though I changed it and sourced the shell profile. mtxrun or the updating script spawns new shells and does not inherit the environment from which the installer script was launched, or something like that. I hope that the \placeontopofoeachother bug will be resolved soon. For now I just removed that command from my document source files. 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] Subscript Depth
Hi Nick, As far as I can say from my own experience TeX, that is both plain TeX and ConTeXt, treat the subscripts differently according to whether there is also a superscript or not: please see the following examples: \starttext Compare $a_{b}'a_{b}$ and $a_{b}'a_{b}^{}$ \stoptext Best regards: OK On 15 oct. 2012, at 01:08, Nicholas Ulle nau...@ucdavis.edu wrote: Hi, How would I go about getting subscripts to stay at the same depth? An example of the problem I'm having is: \starttext % Notice the b's are not aligned $a_b' a_b$ \stoptext I'm only just learning ConTeXt and TeX, so I'm not sure what I'd need to change to fix this. Thanks, Nick ___ 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] Index and Publications suddenly remain empty??? [not solved yet]
On 14 oct. 2012, at 15:52, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: […] I don’t know if the bug was also in the stable but it’s in the beta version I use. You can use the following example to check for the bug: \starttext \placeontopofeachother{A}{B} \stoptext Hi I can confirm that the bug is present in recent betas, that is \placeontopofeachother is broken, but Context version 2011.11.29 works fine with your example. Best regards: OK___ 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] Index and Publications suddenly remain empty??? [not solved yet]
2012-10-15 Otared Kavian: On 14 oct. 2012, at 15:52, Wolfgang Schuster wolfgang.schus...@gmail.com wrote: […] I don’t know if the bug was also in the stable but it’s in the beta version I use. You can use the following example to check for the bug: \starttext \placeontopofeachother{A}{B} \stoptext Here is a fix (not thoroughly tested, though): pack-com.mkiv: - \def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeach_two \hbox} + \def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeachother_two\hbox} - \def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss\hss\cr\box0\cr\box2\cr}\egroup\egroup} + \def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss##\hss\cr\box0\cr\box2\cr}\egroup\egroup} Test: \unprotect \def\pack_topofeachother_one{\bgroup\setbox0\box\nextbox\dowithnextboxcs\pack_topofeachother_two\hbox} \def\pack_topofeachother_two{\setbox2\box\nextbox\halign{\hss##\hss\cr\box0\cr\box2\cr}\egroup\egroup} \protect \starttext \placeontopofeachother{alpha}{beta} \stoptext Marco ___ 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] Numbering subformulas
On 15-10-2012 13:45, Otared Kavian wrote: Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv and made the formats anew, the subformulas are not numbered as expected. Probably we have to wait for a fix from Hans in an upcoming beta. @Wolfgang: can the typo you mention in font-new.mkiv be easily fixed? it's in cont-new.mkiv and that one is loaded runtime so it can be fixed without remaking the format 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] Numbering subformulas
Am 15.10.2012 um 13:45 schrieb Otared Kavian ota...@gmail.com: Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv and made the formats anew, the subformulas are not numbered as expected. Probably we have to wait for a fix from Hans in an upcoming beta. @Wolfgang: can the typo you mention in font-new.mkiv be easily fixed? Yes and Hans wil fix it in the next beta but this doesn’t fix the problem with the wrong numbering because the problem for this lies somewhere else. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Parameter scale in copypages in latest beta
Hi, I was importing a PDF inside my document, but the scale parameter is now ignored. It's reproducible with any PDF with: \starttext \copypages[tt.pdf][scale=500] \stoptext Any idea ? Thanks Charles ___ 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] Parameter scale in copypages in latest beta
Am 15.10.2012 um 17:12 schrieb Charles c...@vejnar.org: Hi, I was importing a PDF inside my document, but the scale parameter is now ignored. It's reproducible with any PDF with: \starttext \copypages[tt.pdf][scale=500] \stoptext Any idea ? Can you try this: \starttext \copypages[…][][scale=500] \stoptext In MkIV \copypages has three arguments: - the first argument is the name of the file - with the second argument you can control the copy mechanism and - the third argument is passed down to \externalfigure which includes each page of the file in your document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Parameter scale in copypages in latest beta
Le 15/10/2012 17:22, Wolfgang Schuster a écrit : Am 15.10.2012 um 17:12 schrieb Charles c...@vejnar.org: Hi, I was importing a PDF inside my document, but the scale parameter is now ignored. It's reproducible with any PDF with: \starttext \copypages[tt.pdf][scale=500] \stoptext Any idea ? Can you try this: \starttext \copypages[…][][scale=500] \stoptext In MkIV \copypages has three arguments: - the first argument is the name of the file - with the second argument you can control the copy mechanism and - the third argument is passed down to \externalfigure which includes each page of the file in your document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ It worked. Thanks a lot ! Charles ___ 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] Parameter scale in copypages in latest beta
On 15-10-2012 17:25, Charles wrote: Le 15/10/2012 17:22, Wolfgang Schuster a écrit : Am 15.10.2012 um 17:12 schrieb Charles c...@vejnar.org: Hi, I was importing a PDF inside my document, but the scale parameter is now ignored. It's reproducible with any PDF with: \starttext \copypages[tt.pdf][scale=500] \stoptext Any idea ? Can you try this: \starttext \copypages[…][][scale=500] \stoptext In MkIV \copypages has three arguments: - the first argument is the name of the file - with the second argument you can control the copy mechanism and - the third argument is passed down to \externalfigure which includes each page of the file in your document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ It worked. Thanks a lot ! fyi: using three (optional) arguments is cleaner than mixing two (indepenent) sets of parameters into one 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] Subscript Depth
On 15-10-2012 01:08, Nicholas Ulle wrote: Hi, How would I go about getting subscripts to stay at the same depth? An example of the problem I'm having is: \starttext % Notice the b's are not aligned $a_b' a_b$ \stoptext I'm only just learning ConTeXt and TeX, so I'm not sure what I'd need to change to fix this. \starttext $a_b' a_b^{}$ \stoptext It's a feature of tex to treat single scripts differently. - 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] Numbering subformulas
On 15-10-2012 16:58, Wolfgang Schuster wrote: Am 15.10.2012 um 13:45 schrieb Otared Kavian ota...@gmail.com: Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv and made the formats anew, the subformulas are not numbered as expected. Probably we have to wait for a fix from Hans in an upcoming beta. @Wolfgang: can the typo you mention in font-new.mkiv be easily fixed? Yes and Hans wil fix it in the next beta but this doesn’t fix the problem with the wrong numbering because the problem for this lies somewhere else. let's first catch up on other reported issues (I can't find the bugged example 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] RFC: path relative to current file.
On 13-10-2012 03:34, Andre Caldas wrote: 3. Call function pop automatically, just like the push function is called automatically. kind of tricky as the file can already be loaded and closed and therefore you're back at the previous level 4. Avoid having to define \xproject, \xproduct, \xcomponent and \xenvironment. http://www.ntg.nl/pipermail/ntg-context/2012/069305.html just use \environment [somefilename] as a space delimited variant does not work well in \environment \somefilename - 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] RFC: path relative to current file.
On 13-10-2012 03:34, Andre Caldas wrote: Hello, list! A while ago, I raised a question about how to, in a tex, specify a file with a path relative to the currently being processed file. http://www.ntg.nl/pipermail/ntg-context/2012/069132.html http://www.ntg.nl/pipermail/ntg-context/2012/068902.html Even though the issue did not get much attention, I do believe it is the right thing to do. I wrote a module to implement a macro I called \pathrelativetome. My code is still a lot ugly. I don't know how to do many things in Lua, LuaTeX and ConTeXt. It can be found here: https://bitbucket.org/andrecaldas/math-video-classes/src/bade74046a6b/lib It would be REALLY NICE if the functionality of pathrelativetome was provided by ConTeXt. in file-job.lua add around the function 'process': local function toppath() local pathname = dirname(inputstack[#inputstack] or ) if pathname == then return . else return pathname end end resolvers.toppath = topath resolvers.prefixes.toppath = function(str) local fullname = cleanpath(joinpath(toppath(),str)) return fullname end local function process(what,name) local depth = #typestack local process -- name = resolvers.resolve(name) -- . keep code ... and somewhere at the top: local joinpath = file.join local cleanpath = resolvers.cleanpath Then you can something: \starttext \component toppath:/subpath/somefile.tex \stoptext All given that the top of the inputstack is still ok. If needed I can push/pop some relative code to start/stopcomponent alike code, in which case we will use a different prefix (no clue what name to use) 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] Lua in Ctx: require() fails? (solved)
On 8-10-2012 15:57, Procházka Lukáš Ing. - Pontex s. r. o. wrote: The intention is Ctx to find and load its original texmfcnf.lua and then to load my texmfcnf.lua which would modify only some elements (namely: the LUAINPUTS member). texmf-local\web2c I'd like to keep factory texmfcnf.lua settings as much as possible. - When I look into c:\ConTeXt\tex\texmf\web2c\texmfcnf.lua, I see many paths: - beginning with !!, - ending with //. What does mean this convention? this controls the filedatabase building and recurssion into subtrees - I found 2 config files: c:\ConTeXt\tex\texmf\web2c\texmf.cnf c:\ConTeXt\tex\texmf\web2c\texmfcnf.lua It seems that the latter is a Luaed form of the former. a bit more than that as we can have directives and such (and even have path tables) How are used both files? only the lua file is used Is the latter built from the former or vice versa? no, for texlive the latter is adapted a bit (few lines) 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] nil error in guess
On 13-10-2012 11:29, Meer, H. van der wrote: ! LuaTeX error ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:221: bad argument #1 to 'match' (string expected, got nil) stack traceback: [C]: in function 'match' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:221: in function 'guess' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:1145: in function ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:1143 (tail call): ? ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:767: in function 'locate' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:844: in function 'identifier' ...t-04/tex/texmf-context/tex/context/base/grph-inc.lua:862: in function 'identify' main ctx instance:1: in main chunk. The version used is: ConTeXt ver: 2012.10.06 15:31 MKIV fmt: 2012.10.13 int: english/english Is there a quick fix, or I get stuck at a bad moment. Thanks in advance. function figures.guess(filename) local f = io.open(filename,'rb') if f then local str = f:read(100) f:close() if str then for i=1,#magics do local pattern = magics[i] if pattern.pattern:match(str) then local format = pattern.format if trace_figures then report_inclusion(file %q has format %s,filename,format) end return format end end end end end One might wonder why str is nil. 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] RFC: path relative to current file.
It would be REALLY NICE if the functionality of pathrelativetome was provided by ConTeXt. in file-job.lua add around the function 'process': You make me really happy, Hans! :-) I will change file-job.lua on my system to test. I can do this only on Wednesday. local function toppath() [...] local pathname = dirname(inputstack[#inputstack] or ) I didn't check it in lua. But the unix command dirname returns . if given an empty string. That is, $ dirname '' . I don't know when inputstack could be empty... but maybe a warning should be issued, and the return value of toppath should be declared undefined. That is, it would be an error to call toppath if inputstack is empty. [...] resolvers.toppath = topath toppath? (double p) Then you can something: [...] \component toppath:/subpath/somefile.tex Nice. All given that the top of the inputstack is still ok. Maybe the code could have some sort of assertion to 1. check for stack underflow; and/or 2. check if the file somefile.tex exists in the directory being popped from the stack. Just for bug catching... If needed I can push/pop some relative code to start/stopcomponent alike code, in which case we will use a different prefix (no clue what name to use) I don't think it is needed, since the toppath mechanism is rather generic. Writing \component toppath:/subpath/somefile.tex is fine by me. Unless you think that start/stopcomponent should be deprecated (or, at least, discouraged) in favour of this new version. Maybe it would be nice to have a function that returns the value of inputstack[#inputstack]. But I don't know if it is useful... Thank you very very much for your time! André Caldas. ___ 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] RFC: path relative to current file.
On 15-10-2012 21:42, Andre Caldas wrote: I don't know when inputstack could be empty... but maybe a warning should be issued, and the return value of toppath should be declared undefined. That is, it would be an error to call toppath if inputstack is empty. you should test \component x.tex \component y.tex and see if when y is loaded we can still get the right path 1. check for stack underflow; and/or such things are dealt with 2. check if the file somefile.tex exists in the directory being popped from the stack. Just for bug catching... it all happens before a file is loaded so the normal reporting is applied 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] How to put a \placefigure with no caption?
Hi there, \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to put a \placefigure with no caption?
Am 15.10.2012 um 23:16 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Hi there, \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \placefigure[none,…]{}{…} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to put a \placefigure with no caption?
2012-10-15 Marcin Borkowski: Hi Marcin \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Marco ___ 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] RFC: path relative to current file.
2. check if the file somefile.tex exists in the directory being popped from the stack. Just for bug catching... it all happens before a file is loaded so the normal reporting is applied Actually, it is a bit annoying that \environment and \component do not report an error (or at least a warning message) when the file is not found. \usemodule at least issues a warning, but does not change the exit status code, so it is easy to miss the warning message. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to put a \placefigure with no caption?
Dnia 2012-10-15, o godz. 23:19:06 Wolfgang Schuster wolfgang.schus...@gmail.com napisał(a): Am 15.10.2012 um 23:16 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Hi there, \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \placefigure[none,…]{}{…} Wolfgang Thanks a lot! Added a clarification to the wiki. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to put a \placefigure with no caption?
Dnia 2012-10-15, o godz. 23:22:28 Marco Patzer home...@lavabit.com napisał(a): 2012-10-15 Marcin Borkowski: Hi Marcin \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Interesting. Is \startplacefigure[location=...] ... \stopplacefigure equivalent to \placefigure[...]{}{...}? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] How to get bolder and larger item symbol?
I'd like to have the number (and dot) in an itemize in boldface and larger (say, \bf\tfa). What do I do? \startitemize[n][symstyle=bold] didn't work. Why? TIA -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] RFC: path relative to current file.
2012-10-15 Aditya Mahajan: 2. check if the file somefile.tex exists in the directory being popped from the stack. Just for bug catching... it all happens before a file is loaded so the normal reporting is applied Actually, it is a bit annoying that \environment and \component do not report an error (or at least a warning message) when the file is not found. +1 Marco ___ 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] Context halting (or sub processes) and not completing
Platform: cygwin texlive 2012 (from texlive org) Test TeX file: -- /stoptext This is a pen /stoptext -- Result: - $ texexec -o pdf test.tex /usr/local/texlive/2012/texmf-dist/scripts/context/ruby/base/switch.rb:21: Use RbConfig instead of obsolete and deprecated Config. /usr/local/texlive/2012/texmf-dist/scripts/context/ruby/base/switch.rb:570:in `locateseries': undefined method `each' for o:String (NoMethodError) from /usr/local/texlive/2012/texmf-dist/scripts/context/ruby/base/switch.rb:397:in `block in expand' from /usr/local/texlive/2012/texmf-dist/scripts/context/ruby/base/switch.rb:392:in `each' from /usr/local/texlive/2012/texmf-dist/scripts/context/ruby/base/switch.rb:392:in `expand' from /usr/local/texlive/2012/texmf-dist/scripts/context/ruby/texexec.rb:789:in `main' --- I must have some sort of configuration or Ruby compatibility problem, but, I haven't any idea what it is or what to do about it. Can anyone help me out or give me some ideas. Thank you. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to get bolder and larger item symbol?
On Mon, 15 Oct 2012, Marcin Borkowski wrote: I'd like to have the number (and dot) in an itemize in boldface and larger (say, \bf\tfa). What do I do? \startitemize[n][symstyle=bold] didn't work. Why? \symstyle is for enteries defined using \sym. For the item symbol use the style key. \startitemize[n][style={\bfa}] Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to put a \placefigure with no caption?
Am 15.10.2012 um 23:34 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl: Dnia 2012-10-15, o godz. 23:22:28 Marco Patzer home...@lavabit.com napisał(a): 2012-10-15 Marcin Borkowski: Hi Marcin \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Interesting. Is \startplacefigure[location=...] ... \stopplacefigure equivalent to \placefigure[...]{}{…}? Yes. \placefigure[location][reference]{caption}{content} == \startplacefigure[location=location,reference=reference,title=title] % marking=…,bookmark=…,list=… content \stopplacefigure Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to put a \placefigure with no caption?
2012-10-15 Marcin Borkowski: \placefigure[here]{none}{image} seems to actually typeset none as a caption. What do I do if I want no caption (not even the Figure 1 thing, in fact)? \startplacefigure [location=none] \externalfigure [cow] \stopplacefigure Interesting. Is \startplacefigure[location=...] ... \stopplacefigure equivalent to \placefigure[...]{}{...}? Yes. \placefigure is the old syntax. \start…\stopplacefigure the new one. The new one uses a the key=value syntax also present in other MkIV commands. Compare: \startplacefigure [title=Lorem, reference=fig:lorem] … \stopplacefigure \startchapter [title=Lorem, reference=sec:lorem] … \stopchapter They are both supported, I personally stick to the new variant. I find the interface much more memorable. Marco ___ 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] Context halting (or sub processes) and not completing
On Mon, 15 Oct 2012, Hrothgar Boyce wrote: Platform: cygwin texlive 2012 (from texlive org) Test TeX file: -- /stoptext This is a pen /stoptext -- Result: - $ texexec -o pdf test.tex -o is not a valid option for texexec. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context halting (or sub processes) and not completing
Thank you for the help. I 'm sorry I didn't find that. On Mon, Oct 15, 2012 at 2:50 PM, Aditya Mahajan adit...@umich.edu wrote: On Mon, 15 Oct 2012, Hrothgar Boyce wrote: Platform: cygwin texlive 2012 (from texlive org) Test TeX file: -- /stoptext This is a pen /stoptext -- Result: - $ texexec -o pdf test.tex -o is not a valid option for texexec. 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 ___ ___ 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] Controlling vertical position of floats
Hi again, \placefigure[right,option]{caption}{figure} does different things with option being (a) empty, (b) high, (c) low. Could anyone explain to me the exact meaning of these three alternatives? Also, is it possible to manually fine-tune the vertical position, so that the figure seems optically aligned with the surrounding text? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] RFC: path relative to current file.
On 15-10-2012 23:27, Aditya Mahajan wrote: 2. check if the file somefile.tex exists in the directory being popped from the stack. Just for bug catching... it all happens before a file is loaded so the normal reporting is applied Actually, it is a bit annoying that \environment and \component do not report an error (or at least a warning message) when the file is not found. \usemodule at least issues a warning, but does not change the exit status code, so it is easy to miss the warning message. I've added a message system jobfiles unknown tex file what-a-mess no detail about the kind of file (could be done but needs way more helpers as all now share common one) 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] RFC: path relative to current file.
1. check for stack underflow; and/or such things are dealt with By assert, I mean: assert(inputstack[#inputstack], Input stack should never be empty when toppath() is called.) 2. check if the file somefile.tex exists in the directory being popped from the stack. Just for bug catching... it all happens before a file is loaded so the normal reporting is applied I meant an assert() inside toppath() and cleanpath(). But, as you said, this kind of assertion belongs to a test case. André Caldas. ___ 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] Vertical positioning of floats within itemize
It's me again! This doesn't quite work as expected (at least by me, that is;)): \starttext \startitemize \startitem \placefigure[right,high,none]{}{\framed[width=3cm,height=2cm]{!}} \input knuth \stopitem \stopitemize \stoptext (Namely, at the beginning of the \item there is something like a blank line.) If I move \placefigure before \startitem, it looks better, but this seems to be a nasty hack. Do you have any idea how to achieve this effect in a more elegant way? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University ___ 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] Mensaje privado (15 de diciembre)
horaciosua...@hotmail.com te ha enviado un mensaje privado.br font face=Helvetica,Amazone BT,Small Fonts color=white size=-1 Cristobal Mendoza Buenos Aires /font br a title=Jhoanna alt=ffbg60d1y51ka7s4fbb tqwfx42w3p32reupb3lj f1ep2st5lczqqs77gtkr id=r5bwuj3vo0wk8dd19ki yfmor3ywd15oy0z6muki href=jzc8m25yq021ad.ar7.me/?msj=5uf=horaciosua...@hotmail.comt=ntg-context@ntg.nln=ntg-context#64;ntg.nl id=YorkiMensaje Privado/a font face=Courier New,MS Sans Serif,Small Fonts color=white size=-6 Puesto que el hombre tiene una mente tímida, una mente subconsciente y un cuerpo, sabemos que él es triple en su naturaleza. Primero, él es mente o alcohol consciente; después, él es mente subconsciente o ley mental; y entonces, él es cuerpo. Los controles de mente conscientes el subconsciente; y en su vuelta, los controles subconscientes el cuerpo. /font ___ 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 ___