Re: [NTG-context] Trademark symbols

2013-02-07 Thread Marco Patzer
On 2013–02–07 Devendra Ghate wrote: How do I get Trademark (TM) and Registered Trademark (encircled R) in ConTeXt? There are several options: - \fontchar{registered} (current font) - ® (current font) - \getnamedglyphdirect {modern} {registered}(any font)

Re: [NTG-context] \startnarrower and ToC

2013-02-07 Thread Marco Patzer
On 2013–02–07 Markus Finke wrote: \startnarrower doesn’t work for the left margin in lists. What is wrong in my minimal example? I did not check why it doesn't work. But to add a left margin you can use: \setuplist [margin=3cm] Marco signature.asc Description: Digital signature

Re: [NTG-context] [***SPAM***] Re: \startnarrower and ToC

2013-02-07 Thread Marco Patzer
Yes, it’s possible to fix it on this way. But what is the right conversion of 1*left in mm/em? left, middle and right depend on the font size: left=1.5\emwidth right=1.5\emwidth which means for your example: \setuplist [margin=7.5em] Marco signature.asc Description: Digital

[NTG-context] Search path for external figures changed

2013-02-07 Thread Marco Patzer
Hi, recently there was a discussion about search paths for external figures. Now I noticed that the search path is much stricter than it used to be and by default only local images are found. Is it intended that images are not searched in the texmf tree unless explicitly told to do so? Example:

Re: [NTG-context] Big double quotes

2013-02-11 Thread Marco Patzer
On 2013–02–11 Devendra Ghate wrote: I am trying to reproduce as closely as possible the large double quotes in the attached file. Here are two solutions, one uses the delimitedtext mechanism. The quotation marks are not printed within the quoted text, though. The second solution using the

[NTG-context] Failing MPruns

2013-02-13 Thread Marco Patzer
Hi, The following used to work: \startMPrun{foo} beginfig(1); fill fullcircle scaled 1cm; endfig; \stopMPrun \starttext \externalfigure [mprun:foo.1] [width=4cm] \stoptext now I get: ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/grph-inc.lua:690: bad argument #1 to

Re: [NTG-context] Search path for external figures changed

2013-02-13 Thread Marco Patzer
On 2013–02–08 Hans Hagen wrote: default: texmftree local : relative to source global : path list these can be combined How to include MP graphics sitting in a dedicated directory, e.g. “graphs”? %% file: graphs/foo.mp beginfig(1); fill unitsquare scaled 2cm withcolor red; endfig; %%

[NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-13 Thread Marco Patzer
Hi, I know that MPinclusions are included only once and MPinitializations are included once for each graphic. But how do MPextensions fit in? How can I define variables or definitions that are local to a particular MP instance? Marco signature.asc Description: Digital signature

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-13 Thread Marco Patzer
On 2013–02–14 Hans Hagen wrote: I know that MPinclusions are included only once and MPinitializations are included once for each graphic. But how do MPextensions fit in? How can I define variables or definitions that are local to a particular MP instance? by defining a new instance I

Re: [NTG-context] Failing MPruns

2013-02-14 Thread Marco Patzer
On 2013–02–14 Keith J. Schultz wrote: with your example below I noticed that the red circle is not quite in the graphic. it seems to be clip on the right! It's fine on my machine, or maybe I just don't see it. Marco signature.asc Description: Digital signature

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Marco Patzer
On 2013–02–14 Marco Patzer wrote: Now I can use “n” in all MP instances (unless switched off for the particular instance). I'd like to define some variables only visible in instance “foo”. Something like \startMPinitializations [foo] numeric n; n=4cm; \stopMPinitializations What

Re: [NTG-context] Search path for external figures changed

2013-02-14 Thread Marco Patzer
On 2013–02–14 Willi Egger wrote: i think that ou have to specify the path completely \setupexternalfigures[directory={/Users/willi/Documents/BOEDE/Logos}] That does not work for me, does this work on you machine? Even if it would work, mandating an absolute path is wrong in my opinion. This

Re: [NTG-context] MPinclusions, MPextensions, MPinitializations and MPinstances

2013-02-14 Thread Marco Patzer
On 2013–02–14 Alan BRASLAU wrote: So that extensions=yes|no and initializations=yes|no controls the use of MPextensions and MPinitializations. It seems that extensions is intended for all instances (when enabled). From what I can see, extensions are read once, initializations each, and

Re: [NTG-context] Search path for external figures changed

2013-02-15 Thread Marco Patzer
On 2013–02–15 Hans Hagen wrote: location={global,local} It still doesn't work for me. Here is a complete example: \startbuffer [foo] beginfig(1); fill unitsquare scaled 2cm withcolor red; endfig; \stopbuffer \luacode{lfs.mkdirgraphics} \savebuffer [list=foo, file=graphics/foo.mp,

Re: [NTG-context] Find too long sentences

2013-02-15 Thread Marco Patzer
On 2013–02–15 H. Özoguz wrote: working on a book with many too long sentences, I got the following idea/question: Is it possible to recognize the length of a sentence, and to let context show in the pdf, if there is a too long sentence. This sounds more like a job for the text editor. Many

Re: [NTG-context] Find too long sentences

2013-02-15 Thread Marco Patzer
On 2013–02–15 H. Özoguz wrote: Which text editor can do that, find too long sentences? None, since no editor knows by default what “too long” is. But a few editors (at least vim and I assume emacs as well) have an idea of what a sentence is. Both are scriptable, which means you can tell them

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-15 Thread Marco Patzer
On 2013–02–15 Mikael P. Sundqvist wrote: with the (almost minimal) example below, I reduced your minimal example slightly further: \startuseMPgraphic{figram} StartPage; fill Field[Text][Text]; StopPage; \stopuseMPgraphic \starttext \useMPgraphic{figram} %% using the graphic a second

Re: [NTG-context] Find too long sentences

2013-02-15 Thread Marco Patzer
On 2013–02–15 Marco Patzer wrote: In vim pressing “vis” (visualise inner sentence) marks the current sentence, then pressing “gCtrl-g” yields: Selected 2 of 4 lines; 14 of 50 words; 82 of 296 bytes That means current sentence is 82 bytes long. The rest is up to you. Pick a language you

Re: [NTG-context] Vertical alignment in combinations?

2013-02-16 Thread Marco Patzer
On 2013–02–15 Mari Voipio wrote: Today I feel like a total ConTeXt dummy... As long as it's only today you're much better off than me ;) The problem: I have 3*1 combination where the end graphics are the same size, but the middle graphic is much shorter. With a standard

Re: [NTG-context] # sign in footnotes impossible ?

2013-02-16 Thread Marco Patzer
On 2013–02–15 thomas wrote: how can i put a normal # sign (as part of a \type{} environment) in a footnote ? Until now i got or \# or nothing. Please look at the attached example and log-output. It works for \type if you use \asciimode but \starttyping fails even with \asciimode.

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-18 Thread Marco Patzer
On 2013–02–18 Mikael P. Sundqvist wrote: Thank you Marco for giving a better example. I thought that uniqueMPgraphic meant it was redrawn everytime while useMPgraphic meant it was done once and then gave the same result everytime used.

[NTG-context] gnuplot module broken

2013-02-18 Thread Marco Patzer
Hi Mojca et al. todays beta broke the gnuplot module. This is probably due to the changes in the MP inclusion mechanism. \usemodule [gnuplot] \starttext \stoptext Marco signature.asc Description: Digital signature

[NTG-context] Spurious line when indenting with tabs using database module

2013-02-19 Thread Marco Patzer
Hi, I get an extra line when I use tabs for indentation, indenting with spaces works fine. Example: \usemodule [database] \defineseparatedlist [CSV] [before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD] \starttext %% indentation with spaces works \startCSV

Re: [NTG-context] HTML output

2013-02-19 Thread Marco Patzer
On 2013–02–19 Troy Henderson wrote: I would like to convert my ConTeXt document to both PDF and plain HTML. My suggestion: Use markdown (or reST) with pandoc. I need plain HTML output (i.e., not XML or XHTML) because my institution's web based management software allows me to copy/paste

Re: [NTG-context] Quick slide templates

2013-02-20 Thread Marco Patzer
On 2013–02–19 Kumar Appaiah wrote: I am making a presentation that involves some simple animations. The way I make those animations is by: 1. Stopping page numbering. 2. Flipping through the same slide repeated, but with img0, img1, img2 etc. 3. Start page numbering. The problem with my

Re: [NTG-context] [***SPAM***] Question about current ConTeXt with XeTeX

2013-02-22 Thread Marco Patzer
On 2013–02–22 hwit...@gmail.com wrote: I use the ConTeXt which comes in TEXLIVE 2012, which I assume uses Mark IV. Does that mean that I can not use this version of ConTeXt with XeteX which also comes packaged in TEXLIVE? You can use MkII with XeTeX as follows: context --xetex

[NTG-context] Specifying MP instance for MPpage

2013-02-23 Thread Marco Patzer
Hi, how to specify a particular MP instance for a MPpage? \defineMPinstance [myinstance] [metafun] [textcolor=green] \starttext \startMPpage draw textext(Foo) scaled 1cm; \stopMPpage \stoptext Marco signature.asc Description: Digital signature

Re: [NTG-context] Specifying MP instance for MPpage

2013-02-24 Thread Marco Patzer
On 2013–02–24 Hans Hagen wrote: You can add this to cont-new.mkiv: […] and then do: […] \startMPpage[instance=myinstance,offset=1cm] Thanks Hans for adding this! Marco signature.asc Description: Digital signature

Re: [NTG-context] default parameter in \definefont

2013-02-26 Thread Marco Patzer
On 2013–02–26 john Culleton wrote: files but they exist in /usr/share/fonts/OTF. The run completes but other fonts and sizes are used for the title page. Solved my problem the ugly way. I moved the fonts to the directory where I was compiling the document. Added otf suffix to the

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-26 Thread Marco Patzer
On 2013–02–26 Hans Hagen wrote: Hans, is this a bug? Has something changed? I don't know .. no example I provided an example in http://www.ntg.nl/pipermail/ntg-context/2013/071552.html However, it seems to be fixed in a recent beta. At least it works for me. Marco signature.asc

Re: [NTG-context] recalculate background on every page with \uniqueMPgraphic?

2013-02-26 Thread Marco Patzer
Hi Mikael, your original example works for me with a current beta if you replace uniqueMPgraphic with useMPgraphic. Marco signature.asc Description: Digital signature ___ If your question is of interest to others

Re: [NTG-context] A trouble with setupbodyfontenvironment

2013-02-28 Thread Marco Patzer
On 2013–02–28 Alasdair McAndrew wrote: So I've come back to using ConTeXt after a year away from it Welcome back :) \setupbodyfontenvironment[default][em={\slanted\color[red]}] \setupbodyfontenvironment [default] [em=slantedred] \definehighlight [slantedred] [style=slanted,

Re: [NTG-context] A trouble with setupbodyfontenvironment

2013-02-28 Thread Marco Patzer
On 2013–03–01 Alasdair McAndrew wrote: Do I have to include a special module here? No. I tested some versions between 2011.11.29 23:11 and 2013.02.26 00:17 and it worked for me. Which version are you using? \definehighlight is nothing which was recent added. \setupbodyfontenvironment

Re: [NTG-context] Arranging framed text without gaps

2013-02-28 Thread Marco Patzer
On 2013–02–28 Matthias Weber wrote: -- without gaps between horizontal rows -- with text centered in the frames also in MkIV? See Adityas answer for how to fix your current code. -- achieve the desired layout (exact dimensions, frames, no gaps) the right way, There is no “right” way.

Re: [NTG-context] A trouble with setupbodyfontenvironment

2013-03-01 Thread Marco Patzer
On 2013–03–01 Alasdair McAndrew wrote: Arrgh: more problems. I've downloaded and installed context standalone (version 2013.02.26 00:17). Now when I run context I get an error (for the first time ever) when it reaches a chapter heading: l.1 ...[ch:this]{My first chapter} ? h The lua

Re: [NTG-context] To update or not to update - that is the question...

2013-03-02 Thread Marco Patzer
On 2013–03–02 Marcin Borkowski wrote: Is it possible to find the official ConTeXt repo somewhere, There is no official repo. But you can use git://gitorious.org/context/context.git Marco signature.asc Description: Digital signature

Re: [NTG-context] text overlayed

2013-03-04 Thread Marco Patzer
On 2013–03–04 Roland Thiers wrote: I'm learning a little bit of metapost language, using metafun manual. I made some background for a title (surely the code is awful, thanks for suggestions of improvement) but it's static, i'd like to adapt it to the widthof the text. I don't know if it is

Re: [NTG-context] itemize

2013-03-04 Thread Marco Patzer
On 2013–03–04 Meer, H. van der wrote: How does one forces the item nubers to the right. The goal is have the units above each other and not above the tens: Here's an ugly solution using a box. Maybe there's a more clean solution. \setupitemgroup [itemize]

Re: [NTG-context] itemize

2013-03-04 Thread Marco Patzer
On 2013–03–04 Meer, H. van der wrote: A lucky guess did me look into the code. Whereas I got no results with [align=] it turns out that [itemalign=flushright] does the trick. Spares you the ugly solution. That's indeed much better :) Maybe someone more apt to do things in the contextgarden,

[NTG-context] Understanding \lesshyphens

2013-03-04 Thread Marco Patzer
Hi, how is \lesshyphens supposed to work? According to the source it's supposed to increment the current value of lefthyphenmin and righthyphenmin. But apparently I'm mistaken, it has no effect whatsoever. Can someone enlighten me? \setuplayout [width=3cm] %% \setuplanguage [lefthyphenmin=3] %%

Re: [NTG-context] Bibliography fails in latest beta

2013-03-06 Thread Marco Patzer
On 2013–03–06 Hans Hagen wrote: i get in the pdf: [1] Hagen, H. (2010b). The font name mess. MAPS, 40, 2-8. I updated the distribution and now it works fine. Either it's fixed now or it was never broken and I messed something up yesterday. Sorry for the noise. Marco signature.asc

Re: [NTG-context] \simplealignedbox (was: itemize)

2013-03-07 Thread Marco Patzer
On 2013–03–07 Procházka Lukáš Ing. - Pontex s. r. o. wrote: kind request - \simplealignedbox is not known to me - could anyone familar add some info to wiki? It's a simple wrapper around \hbox with a fixed width and the possibility to align the content either to the left, right or centred

Re: [NTG-context] \usemodule not working in latest beta

2013-03-07 Thread Marco Patzer
On 2013–03–07 Mica Semrick wrote: Upon updating to the latest beta last night, the document wouldn't compile. It looked like it wasn't reading up the \usemodule[title] at all, because it was giving me an undefined control sequence error on the first macro defined in t-title.tex (\doctitle{my

Re: [NTG-context] [***SPAM***] File access for sourc, graphic, and pictures

2013-03-08 Thread Marco Patzer
On 2013–03–08 hwit...@gmail.com wrote: I am just learning ConTeXt, so please bare with me. In all of the documentation that I've read so far, it shows the names of imported photographs, graphs, blocks, etc as a simple filename without any filename extensions or pathnames. Avoid hard coded

[NTG-context] Reusing MP graphics

2013-03-11 Thread Marco Patzer
Hi, I have two questions concerning MP graphics. What's going on here? The “abcdefghi” text is not displayed in the second graphic and the “A” is stretched to match the size of the first graphic. Can someone explain why this happens and if this is expected? \startreusableMPgraphic{foo} draw

Re: [NTG-context] Separation of delimited text symbol

2013-03-12 Thread Marco Patzer
On 2013–03–08 Wolfgang Schuster wrote: The following change in typo-del.mkiv prevents the line break. […] Thanks Wolfgang for the code and thanks to Hans for incorporating this into the core. Marco signature.asc Description: Digital signature

Re: [NTG-context] reStructuredText module

2013-03-14 Thread Marco Patzer
On 2013–03–14 Philipp Gesang wrote: I’ve been using \start...\stop as a synonym for grouping for ages but never realized it could take an argument. You're not alone :) Marco signature.asc Description: Digital signature

[NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
Hi, I am looking for a way to assign the value of a TeX macro to an MP variable. However, this only works the first time, then the value is not updated any longer. Example: \startMPdefinitions size = \somesize ; \stopMPdefinitions \startuseMPgraphic{alpha} fill unitcircle scaled size;

Re: [NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
On 2013–03–16 Thomas A. Schmitz wrote: I'm not quite sure if this is what you're looking for, but here is an example how you could do this with \MPvars: \def\Circlediameter{15mm} \def\setupCircle#1[#2]% {\getparameters[Circle][diameter=15mm,#2]} \setupMPvariables [mycircle]

Re: [NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
On 2013–03–16 Thomas A. Schmitz wrote: \setupMPvariables [mycircle] [diameter=\Circlediameter, ] MPvariables are local to a particular MP graphic. I need a way to set the variables global to all MPgraphics of that MP instance. Marco signature.asc Description: Digital signature

Re: [NTG-context] TeX macro to MP variable

2013-03-16 Thread Marco Patzer
On 2013–03–16 Wolfgang Schuster wrote: http://www.ntg.nl/pipermail/ntg-context/2013/071538.html Well, I played with all possible environments, but there is no environment local to a particular MP instance which is re-read on every MP graphic. The only usable environment in this case is

Re: [NTG-context] TeX macro to MP variable

2013-03-17 Thread Marco Patzer
On 2013–03–16 Aditya Mahajan wrote: See the visualcounter module for an alternative way to pass values from TeX to MP. I see, you create an initialisation graphic and include it where necessary. And it's local to the MP instance. Thanks for the pointer. Marco signature.asc Description:

Re: [NTG-context] TeX macro to MP variable

2013-03-17 Thread Marco Patzer
On 2013–03–16 Hans Hagen wrote: Is there a better way? grep for \includeMPgraphic Well, I know \includeMPgraphic but the combination of \includeMPgraphic and \MPvar is very creative, indeed. But it's a little tricky to find out what code actually gets included. Obviously there are plenty of

Re: [NTG-context] To update or not to update - that is the question...

2013-03-18 Thread Marco Patzer
On 2013–03–17 Jonathan Barchi wrote: Just curious, does this repo stay up to date the the official updates from garden? I assume that's the goal of the repo, but there is no guarantee that it does. I've been using (basically) the scripts suggested on the minimals wiki page to update when

Re: [NTG-context] problem with t-gnuplot.tex

2013-03-21 Thread Marco Patzer
On 2013–03–21 JIN Xiao-Yong wrote: Using the new beta from context-minimal […] This happens with context running on a file generated by gnuplot 4.6.1. I have been using context in the texlive 2012 without any problem. The gnuplot module is broken at the moment. I posted a workaround

Re: [NTG-context] man pages for ConTeXt: looking for volunteers

2013-03-21 Thread Marco Patzer
On 2013–03–21 Mojca Miklavec wrote: In preparation of this year's TeX Live release, it would be nice to also revise man pages a bit. Hans just implemented auto-conversion of help into man pages for the lua scripts. So the options are described as they should be, but if there are any

Re: [NTG-context] chapter titles

2013-03-21 Thread Marco Patzer
On 2013–03–21 H. van der Meer wrote: I would like to put something directly after each chapter number, like so: Chapter 5 add something everytime Title of Chapter Is there an option for this? \setuphead? \setupheader? which parameter? http://article.gmane.org/gmane.comp.tex.context/77262

[NTG-context] Framed: Individual background offsets

2013-03-23 Thread Marco Patzer
Hi, how can I set individual offsets for the background, similar to loffset, roffset, etc.? \defineframedtext [foo] [frame=off, offset=none, backgroundoffset=1cm, %% backgroundloffset=1cm, %% there is no backgroundloffset background=screen] \starttext %% backgroundoffset is

[NTG-context] [***SPAM***] Re: Framed: Individual background offsets

2013-03-23 Thread Marco Patzer
On 2013–03–23 Wolfgang Schuster wrote: […] \startuseMPgraphic{framed:background} fill unitsquare xyscaled(OverlayWidth,OverlayHeight) leftenlarged 1cm withcolor \MPcolor{lightgray}; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic […] How about making this configurable? It

Re: [NTG-context] userpagenumber

2013-03-26 Thread Marco Patzer
On 2013–03–26 Thomas A. Schmitz wrote: shouldn't this work? \setupuserpagenumber[number=34] I don't know if that's the recommended way, but I set the page number as follows: \setcounter [userpage] [34] Marco signature.asc Description: Digital signature

[NTG-context] Rebuilding font cache fails

2013-03-26 Thread Marco Patzer
Hi, rebuilding the font cache fails in the latest beta. I didn't check the last few beta, though. mtxrun --script fonts --reload ..beta/tex/texmf-context/scripts/context/lua/mtx-fonts.lua:173: attempt to index global 'arguments' (a nil value) Marco signature.asc Description: Digital

Re: [NTG-context] userpagenumber

2013-03-27 Thread Marco Patzer
On 2013–03–27 Hans Hagen wrote: (in fact, setting up doublesided should be in setuplayout but i'll keep that one) Perhaps both locations could be supported for some time. \setuppagenumbering is indeed an awkward place to set up the layout. Marco signature.asc Description: Digital signature

[NTG-context] List of bugs and quirks

2013-03-27 Thread Marco Patzer
Hi Hans, maybe after the current is made (which happens sometime within the next two weeks) best make sure that we have no serious bugs (experimental features apart) I think it's better to start a new thread for this issue. I maintain a small list of bugs and quirks which I would like to

Re: [NTG-context] List of bugs and quirks

2013-03-27 Thread Marco Patzer
On 2013–03–27 Hans Hagen wrote: A potentially incompatible change It's already the second time you warn me about this. Should I be concerned? ... upto you and wolfgang to check it Actually I used a patched version for months in several projects without issues. I replaced the kern with an

Re: [NTG-context] Attach source to pdf

2013-03-28 Thread Marco Patzer
On 2013–03–28 pol stra wrote: Is there a way to automatically attach the source file to the produced pdf? \setupinteraction [state=start] \starttext \attachment[file=attachfile.tex, title=Some file, author=Me] \stoptext signature.asc Description: Digital signature

Re: [NTG-context] manual

2013-04-03 Thread Marco Patzer
On 2013–04–03 Meer H. van der wrote: The latest downloaded ConTeXt manual to be found on my system is: ConTeXt reference manual Hans Hagen, Taco Hoekwater June 1,2011 Is there a more recent one? October 18, 2012: http://wiki.contextgarden.net/Manual_being_revised Marco

[NTG-context] Latest beta breaks LuajitTeX

2013-04-03 Thread Marco Patzer
Hi, the latest beta throws: mtx-context | redirect texlua - luajittex: luajittex --luaonly /tmp/luajitbug/newbeta/tex/texmf-linux-64/bin/mtxrun --script context --jit t --redirected/tmp/luajitbug/newbeta/tex/texmf-linux-64/bin/mtxrun:15230: attempt to index field 'searchers' (a nil value)

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-03 Thread Marco Patzer
On 2013–04–03 luigi scarso wrote: Hans is working on a new beta that (among other things) That's good news. will fix the issue, in the meanwhile you can try to comment the offending line . Not necessary, I'll wait for the new beta. Marco signature.asc Description: Digital signature

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-04 Thread Marco Patzer
On 2013–04–03 Hans Hagen wrote: On 4/3/2013 12:46 PM, Marco Patzer wrote: Hi, the latest beta throws: mtx-context | redirect texlua - luajittex: luajittex --luaonly /tmp/luajitbug/newbeta/tex/texmf-linux-64/bin/mtxrun --script context --jit t --redirected/tmp/luajitbug/newbeta

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-04 Thread Marco Patzer
On 2013–04–04 Hans Hagen wrote: Indeed, LuajitTeX works, but you broke MkII. The format generation already fails: … (/tmp/mkiitest/tex/texmf/metapost/base/string.mp (/tmp/mkiitest/tex/texmf-context/metapost/context/base/mp-func.mpii) ) ) (end occurred when else on line 5 was

Re: [NTG-context] Latest beta breaks LuajitTeX

2013-04-04 Thread Marco Patzer
On 2013–04–04 Marco Patzer wrote: On 2013–04–04 Hans Hagen wrote: Indeed, LuajitTeX works, but you broke MkII. The format generation already fails: … (/tmp/mkiitest/tex/texmf/metapost/base/string.mp (/tmp/mkiitest/tex/texmf-context/metapost/context/base/mp-func.mpii

Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Marco Patzer
On 2013–04–09 Xenia wrote: \startmarkdown Right Left Center Default --- -- -- --- 12 121212 123 123 123 123 1 1 1 1 Table: Demonstration of simple table syntax.

Re: [NTG-context] New user of ConTeXt

2013-04-10 Thread Marco Patzer
On 2013–04–10 Tristan Lorino wrote: I'm beginning with ConTeXt. You probably compiled your document with texexec. That means you are using an old, but still supported, version of ConTeXt called MkII. You can make you life easier if you use the newer version MkIV instead. Just compile with

[NTG-context] SVG with \externalfigure and http:// handler

2013-04-11 Thread Marco Patzer
Hi, Including local SVG graphics works, so does including remote PNGs. Remote SVGs are not displayed, however. Example: \starttext \externalfigure[http://www.gnu.org/graphics/gnu2.svg] \stoptext Is this not supported or am I missing a required option? Marco signature.asc Description:

Re: [NTG-context] float combinations

2013-04-13 Thread Marco Patzer
On 2013–04–13 Alan BRASLAU wrote: A cow is shown in \in{figure} [fig:scenery]a. A cow is shown in \in{figure}{a}[fig:scenery] The above example raises the following (low priority) feature suggestion: How about some way of automatically numbering/labeling combinations just like item lists?

Re: [NTG-context] float combinations

2013-04-13 Thread Marco Patzer
On 2013–04–13 Robert Blackstone wrote: (I tried your liitle code snippet but ConText would not have it.) He's missing a closing bracket on the \externalfigure[mill] line. Here's a complete example: \setupexternalfigures [location=default] \defineitemgroup [subfigure] [lefttext=, stopper=]

[NTG-context] Read output of external command

2013-04-14 Thread Marco Patzer
Hi, I need to read the standard output of an external command. This is what I came up with: \starttext \startluacode f = io.popen ls context(f:read *a) \stopluacode \stoptext It works with luajittex, plain lua5.1 and lua5.2, but it fails with a current luatex: ! LuaTeX error

Re: [NTG-context] float combinations

2013-04-14 Thread Marco Patzer
On 2013–04–14 Alan BRASLAU wrote: Two problems, though: 1. I tried label= in \setupcaption to suppress Figure . This does not work, and looking at the source I do not see how to do this... \setuplabeltext [figureitem=] Marco signature.asc Description: Digital signature

Re: [NTG-context] Joinedup itemization with margin

2013-04-15 Thread Marco Patzer
On 2013–04–15 H. Özoguz wrote: \startitemize[joinedup, margin=1em] \startitemize[joinedup][margin=1em] Options and key-value pairs cannot be mixed in ConTeXt. Marco signature.asc Description: Digital signature

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Marco Patzer
On 2013–04–15 Tim Li wrote: Could you tell me what's the options of these two commands that haven't been updated on the wiki? The file strc-not.mkvi is quite well documented. @Hans: The module documentation fails to build for this module. mtxrun --script modules --process $(mtxrun

Re: [NTG-context] the difference between \def and \define

2013-04-15 Thread Marco Patzer
On 2013–04–15 Tim Li wrote: What's the difference between \def and \define? \define is basically the same as \unexpanded\def. It uses a slightly different syntax for specifying optional arguments: \define[3]\foo{First: #1, Second: #2, Third: #3} \unexpanded\def\foo#1#2#3{First: #1, Second:

Re: [NTG-context] the difference between \def and \define

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: I don't think named parameters are possible with \define, but maybe I'm mistaken. just use suffix .mkvi or put % macros=mkvi at the top of your file That's how to enable named parameters for \def. I was talking about \define. The arguments are provided as a

Re: [NTG-context] options of \setupnotation and \setupnote

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: @Hans: The module documentation fails to build for this module. mtxrun --script modules --process $(mtxrun core-sys.mkiv) mtxrun --script modules --process auto:core-sys.mkiv Thanks, I didn't know that one. weird ... works here Sorry, copy-paste error

Re: [NTG-context] combinations

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: As follow up on the combinations tread I made this: … A relative simple extension but probably useful. How about making the first bracket pair optional if key-value options are passed? This would allow for the following syntax: \starttext %% works: %%

Re: [NTG-context] vskip in lines

2013-04-15 Thread Marco Patzer
On 2013–04–15 H. Özoguz wrote: With \vskip-0.9cm one can relocate 0.9cm. If one uses grid-setting, it would be easier to give the dimension in lines, like \vskip-2*line – but this gives an error, how to do that correctly? \vskip-\lineheight Marco signature.asc Description: Digital

Re: [NTG-context] Zoom to a box when clicking

2013-04-15 Thread Marco Patzer
On 2013–04–15 Hans Hagen wrote: Two observations: context auto:s-pre-17.mkiv does not generate the pdf file, because I guess, inputfilename is not s-pre-17.mkiv. indeed, you can try --global in such cases: context --global s-pre-17.mkiv This works on my machine: context

[NTG-context] \frac broken in current beta

2013-04-16 Thread Marco Patzer
Hi, \starttext \math{\frac12} \stoptext gives ! LuaTeX error [string \directlua ]:1: attempt to call field 'math_frac' (a n il value) stack traceback: [string \directlua ]:1: in main chunk. Marco signature.asc Description: Digital signature

Re: [NTG-context] the difference between \def and \define

2013-04-16 Thread Marco Patzer
On 2013–04–16 Hans Hagen wrote: Marco tries to do something like \define[3]\Test{#one#two#three} which doesn’t work. hm, ok, do \define is not mkvi then ... too messy to catch that one too No need to bother with that. I was just pointing out the differences between \def and \define

Re: [NTG-context] the difference between \def and \define

2013-04-16 Thread Marco Patzer
On 2013–04–16 Thomas A. Schmitz wrote: I'm not lobbying for define to have something similar, I just want to point out that it would be in the spirit of convergence between ConTeXt and Lua. It certainly isn't an urgent need, but having \define[one,two,three] wouldn't be absurd, now would

Re: [NTG-context] how to clear the header and footer in some page?

2013-04-16 Thread Marco Patzer
On 2013–04–16 Tim Li wrote: I have set the header and footer in the setup area, so it will occur in every page unless clearing them. In some pages, for example, the page of dedication that the header and footer shouldn't occur there, how can I clear them in pages like this ? It would be

Re: [NTG-context] beta

2013-04-16 Thread Marco Patzer
On 2013–04–16 Hans Hagen wrote: - frac fixed Thanks. - fixed more restrictive tex file lookup in run context s-pre-17.mkiv still works on my machine. I'm fine with that, just want to let you know, it might not be the intended behaviour. Marco signature.asc Description: Digital

Re: [NTG-context] [***SPAM***] No line break in figure-captions

2013-04-17 Thread Marco Patzer
On 2013–04–16 H. Özoguz wrote: How to prevent line break in figure captions? \setupcaption [figure] [width=\textwidth, align=middle] Marco signature.asc Description: Digital signature ___ If your

Re: [NTG-context] Detecting reference-errors

2013-04-17 Thread Marco Patzer
On 2013–04–17 H. Özoguz wrote: With \at[ref] one can get the pagenumber of a reference. If this reference is not there (maybe in another file, not included at that moment) there is no error given, but two question marks ??. That is of course useful, but what if I WANT an error? Because that

Re: [NTG-context] [***SPAM***] Footnotes indented, but with same distance between text and number

2013-04-17 Thread Marco Patzer
On 2013–04–17 H. Özoguz wrote: How to get the default results with indentation? headalign=left Marco signature.asc Description: Digital signature ___ If your question is of interest to others as well, please

[NTG-context] LuaTeX error in \showboxes

2013-04-17 Thread Marco Patzer
Hi, the following example results in a LuaTeX error: \showboxes \starttext \dorecurse{30}{\footnote{foo}} \stoptext ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't assign a glue_spec node to a prev field stack traceback: [C]: in function

Re: [NTG-context] LuaTeX error in \showboxes

2013-04-17 Thread Marco Patzer
On 2013–04–17 Hans Hagen wrote: ! LuaTeX error ...ext-beta/tex/texmf-context/tex/context/base/trac-vis.lua:524: You can't assign a glue_spec node to a prev field weird error ... a gluespec in a running list (i can intercept it but still) You broke LuajitTeX: context --jit b7r.tex

Re: [NTG-context] Underlay a text with color

2013-04-18 Thread Marco Patzer
On 2013–04–18 H. Özoguz wrote: how to underlay a text (or simply one word) with a (grey) colored rectangle, just to highlight – like if I had marked it by hand with a grey marker-pen? \definetextbackground [marker] [background=color, backgroundcolor=yellow, frame=off] \starttext

Re: [NTG-context] [***SPAM***] Underlay a text with color

2013-04-18 Thread Marco Patzer
On 2013–04–18 H. Özoguz wrote: Thanks Marco, but I was not precise enough: I want this underlied gray in the header for the chapter-marking. The direct attempt below fails: \definetextbackground [marker] [background=color, backgroundcolor=gray, frame=off] \setupheadertexts[][

Re: [NTG-context] gnuplot module broken

2013-04-19 Thread Marco Patzer
On 2013–04–19 Mojca Miklavec wrote: Dear Hans, please consider the following example in MKII: \setupcolors[state=start] \starttext \startMPextensions a := \abc; color b; b := \MPcolor{currentcolor}; \stopMPextensions \startuseMPgraphic{bla} fill fullcircle scaled a withcolor

Re: [NTG-context] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Marco Patzer
On 2013–04–19 Alan BRASLAU wrote: \bTD\numexpr\currentTABLErow\minusone\relax\dTD \bTD\the\numexpr\currentTABLErow-1\relax\eTD Marco signature.asc Description: Digital signature ___ If your question is

<    1   2   3   4   5   6   7   8   >