[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] 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

Re: [NTG-context] How to scale fonts?

2013-02-07 Thread Marco Patzer
On 2013–02–07 Devendra Ghate wrote: I want to use truly huge (40pt) fonts for chapter numbers. In my latex code, I used \newfont{\chapterNumber}{pplr9d scaled 7000} From the context manual, I thought that \definebodyfont [11pt] [rm] [ tfH=cmr12 scaled 7000] should do it. Though the

Re: [NTG-context] How to scale fonts?

2013-02-07 Thread Marco Patzer
On 2013–02–07 Devendra Ghate wrote: \definebodyfont [default] [tfH= cmr12 scaled 7000] still does not work and also wipes out definitions for \tfa \tfx etc. So {\tfa 1}{\tf 1}{\tfx 1} will just yield 111 You're totally right. My MWE is: […] \definefontsize [H]

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] local picture not found anymore

2013-02-05 Thread Marco Patzer
On 2013–02–05 Mojca Miklavec wrote: PS: I remember times when it used to be difficult to get \externalfigure[cow] working without an extra command. Now it's apparently vice versa ;) Funnily this is already a complete working minimal example: \externalfigure [example] This compiles with

Re: [NTG-context] deferred variable lookup in environment?

2013-02-05 Thread Marco Patzer
On 2013–02–05 Ingo Hohmann wrote: Is it possible to update fields in the datasetvariables table, or is it only possible to replace the whole table? I don't know of an interface allowing that without directly dealing with the Lua tables. Maybe you can use the tag for that:

Re: [NTG-context] External figures from other folders

2013-02-04 Thread Marco Patzer
On 2013–02–04 H. Özoguz wrote: But how to reference to the image, if it is in another folger. Say my context mainfile is in ...\projekt and the images are in \projekt\images, then how to reference correctly directly to the images in the subfolder images? \setupexternalfigures

Re: [NTG-context] Title over the image

2013-02-04 Thread Marco Patzer
On 2013–02–04 H. Özoguz wrote: \setupcaption [figure] [location=top] \starttext \startplacefigure [title=blub, reference=fig:demo, number=no] \externalfigure[example][width=11.2cm] \stopplacefigure \stoptext Marco signature.asc Description: Digital signature

[NTG-context] Inclusion of title module in ConTeXt

2013-02-04 Thread Marco Patzer
Hi Wolfgang et al. what do you think about uploading your title module to the modules repository? Or maybe it can even make it's way into the core. It's just a few lines, nonetheless it's very versatile and handy. Marco signature.asc Description: Digital signature

Re: [NTG-context] Inclusion of title module in ConTeXt

2013-02-04 Thread Marco Patzer
On 2013–02–04 Marco Patzer wrote: what do you think about uploading your title module to the modules repository? An answer doesn't necessarily need words ;) Thanks Wolfgang Marco signature.asc Description: Digital signature

[NTG-context] Processing MP graphics without interference

2013-02-01 Thread Marco Patzer
Hi, I have MetaPost graphics that are generated by an external program. Each graphic is an individual file and the code is enclosed by beginfig(1) … endfig; end The beginfig argument is always “1”, it does not increment. Including the graphics using MPrun fails, since the first

Re: [NTG-context] Placefigure without numbering

2013-02-01 Thread Marco Patzer
On 2013–02–01 H. Özoguz wrote: how to deactivate numbering for the following (empty) picture? \placefigure[here][fig:demo]{My description under the picture.}{} \startplacefigure [title=My description, reference=fig:demo, number=no] … \stopplacefigure Marco signature.asc Description:

Re: [NTG-context] Processing MP graphics without interference

2013-02-01 Thread Marco Patzer
On 2013–02–01 Aditya Mahajan wrote: (Untested), something like: let normalend=end; let end=relax; % Don't know the MP equiv. That works for the example and is quite elegant, but it fails on real data. I need to investigate why. Thanks for the quick answer. Marco signature.asc

Re: [NTG-context] deferred variable lookup in environment?

2013-02-01 Thread Marco Patzer
On 2013–02–02 Ingo Hohmann wrote: I'm trying to have the date in a layer in an environment. In the text using the environment, I want to be able to set the date. If the date is not set, the current date should be used, otherwise the set date. This is what I've tried, but it is always the

[NTG-context] Scale argument for copypages broken

2013-01-30 Thread Marco Patzer
Hi, the scale argument for \copypages does not work any more in a recent beta: \starttext \copypages [cow] [scale=100] \stoptext Marco signature.asc Description: Digital signature ___ If your question is of

Re: [NTG-context] Scale argument for copypages broken

2013-01-30 Thread Marco Patzer
On 2013–01–30 Wolfgang Schuster wrote: \copypages[cow][][scale=100] Hans explained this change a while ago. I found the thread. Thanks. Marco signature.asc Description: Digital signature ___ If your question

Re: [NTG-context] Possible inconsistency in the use of paragraphs in ConTeXt

2013-01-30 Thread Marco Patzer
On 2013–01–30 Keith J. Schultz wrote: First I would like to ask not to change messages' subject if you want to see another point. Changing subject breaks the normal links of threads, further it becomes very difficult to find a message embedded in another subject. For a new subject

Re: [NTG-context] Table of Contents Spacing

2013-01-29 Thread Marco Patzer
On 2013–01–29 Troy Henderson wrote: How do I change the vertical spacing between chapter/section list items in the Table of Contents? \setuplist [chapter] [before={\blank[5ex]}] \setuplist [section] [before={\blank[.6ex]}] Marco signature.asc Description: Digital signature

Re: [NTG-context] Cut-Space

2013-01-25 Thread Marco Patzer
On 2013–01–25 H. Özoguz wrote: How to add 3mm cut space (extra space) on all four edges? You did not make yourself clear what exactly you want and where to add the space. Here you find an (incomplete) overview of the page layout dimensions: http://tex.stackexchange.com/a/71069/5245 Marco

Re: [NTG-context] Some questions

2013-01-25 Thread Marco Patzer
On 2013–01–25 Alain Delmotte wrote: I think it is for mkII and I use mkIV and that there has been many changes in between. Indeed. - The example at the bottom of page 11 and page 12 gives me an error: ! Argument of \head has an extra }. \starttext \startitemize \starthead

Re: [NTG-context] Coming back to ConTeXt

2013-01-25 Thread Marco Patzer
On 2013–01–25 Alain Delmotte wrote: I decided to give another try to ConTeXt. I already did two years ago, I think, but I had problems mostly because of the lack of documentation for MkIV. Welcome back! I did not succeed to install a stand alone version. It should be as easy as running

Re: [NTG-context] setuphead command ! Argument of \xxx has an extra }.

2013-01-25 Thread Marco Patzer
On 2013–01–25 Jean-Philippe Rey wrote: \def\ChapterHead#1#2{#1 --- #2} \define[2]\ChapterHead{#1 --- #2} or \unexpanded\def\ChapterHead#1#2{#1 --- #2} Marco signature.asc Description: Digital signature ___ If

Re: [NTG-context] publication list: bounding box problems

2013-01-24 Thread Marco Patzer
On 2013–01–24 Andreas Mang wrote: I am fine tuning my doc. I have problems with the publication list, as some of the publications extend to the margin of my document. I have not been able to find a solution. This is probably a very common issue. I assume some of you had/have the same

Re: [NTG-context] ToC - dots distance

2013-01-24 Thread Marco Patzer
On 2013–01–23 Wolfgang Schuster wrote: Out of curiosity: Is possible to set up the new filler mechanism in a way to yield alternating dots like in the TeXbook? default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look:

Re: [NTG-context] Can Tikz external library be used in Context?

2013-01-24 Thread Marco Patzer
On 2013–01–24 Devendra Ghate wrote: \usemodule[tikz] \usetikzlibrary{external} Use brackets: \usetikzlibrary [external] \starttext A \stoptext This example works here with current version: 2013.01.24 16:47. Marco signature.asc Description: Digital signature

Re: [NTG-context] Can Tikz external library be used in Context?

2013-01-24 Thread Marco Patzer
On 2013–01–25 Devendra Ghate wrote: Just upgraded context installation( to 2013.01.24 16:47), corrected my MWE and I am still getting exactly the same error. You're right, it fails here, too. The message got lost in between all the tikz log output. On my machine I get: Package tikz: Error! I

Re: [NTG-context] Bug in reference to sections

2013-01-23 Thread Marco Patzer
On 2013–01–23 Hans Hagen wrote: IIRC this was a feature request a while ago, the macros to print ?? and !! are defined as I'm the one to blame! \def\dummyreference{{\tttf ??}} \def\wrongreference{{\tttf !!}} As there are indeed side effects I'll remove that options. I hope you mean

Re: [NTG-context] Prioritise TEXMFHOME

2013-01-23 Thread Marco Patzer
On 2013–01–22 Mojca Miklavec wrote: I don't know how to reproduce that even though I remember that I had problem if I set export TEXMFHOME=/path/with/trailing/slash/. I used the following setup to create a reproducible clean environment without interference of possibly set variables. curl -O

Re: [NTG-context] Prioritise TEXMFHOME

2013-01-23 Thread Marco Patzer
On 2013–01–23 Mojca Miklavec wrote: On Wed, Jan 23, 2013 at 11:26 AM, Marco Patzer wrote: I used the following setup to create a reproducible clean environment without interference of possibly set variables. echo '\sans' mymodules/t-gnuplot.tex You should put the file under

[NTG-context] Paragraph indentation after float

2013-01-23 Thread Marco Patzer
Hi, sometimes I get a paragraph indentation after a float and sometimes I don't. Example: \ctxlua{structures.lists.autoreorder = true} \setupindenting [yes, medium] \setupfloats[default=auto] \starttext \startchapter [title=Foo] \startplacefigure \externalfigure [cow] %% [height=21cm]

Re: [NTG-context] ToC - dots distance

2013-01-23 Thread Marco Patzer
On 2013–01–23 Wolfgang Schuster wrote: Out of curiosity: Is possible to set up the new filler mechanism in a way to yield alternating dots like in the TeXbook? default look: 1. First chapter ... 1 2. Second chapter ... 10 requested look: 1.

[NTG-context] Annotation module fails

2013-01-22 Thread Marco Patzer
Hi Wolfgang et al. The following example fails with (virtual://annotation.noname.1) ! Undefined control sequence. \usemodule [annotation] \defineannotation [foo] \starttext \startfoo Bar \stopfoo \stoptext current version: 2013.01.21 18:18 %D \module %D [ file=t-annotation, %D

Re: [NTG-context] Enable comments/highlighting in the output PDF

2013-01-22 Thread Marco Patzer
On 2013–01–23 Devendra Ghate wrote: Use Adobe Acrobat and add that option to the PDF. Best Martin _ Dear Martin, Thank you for the pointer. Adobe Reader 9 (which is the latest version available for linux) does not allow this. However, Adobe Reader X (on windows) allowed comments and

[NTG-context] Prioritise TEXMFHOME

2013-01-22 Thread Marco Patzer
Hi, can I somehow set up that files within TEXMFHOME are preferred to files found in the distribution? Or is there another variable which is more suitable than TEXMFHOME for this purpose? Marco signature.asc Description: Digital signature

Re: [NTG-context] Prioritise TEXMFHOME

2013-01-22 Thread Marco Patzer
On 2013–01–22 Mojca Miklavec wrote: Doesn't it already have the highest priority? I did assume that, but that's not the case. Take your t-gnuplot.tex module, for instance, make some changes and place it in $TEXMFHOME. ConTeXt still uses the old version found in

[NTG-context] Floats and footnotes don't obey focus=standard

2013-01-20 Thread Marco Patzer
Hi, PDF links to floats and footnotes change the zoom setting to fit height even though focus=standard is set. Links to chapters/sections behave as expected. Example: \setupinteraction [state=start,focus=standard] \starttext \in{figure}[foo] \startplacefigure [reference=foo] \stopplacefigure

Re: [NTG-context] Figure captions in margin

2013-01-20 Thread Marco Patzer
On 2013–01–20 Devendra Ghate wrote: I am using a layout with wide right margin. For floats that are \textwidth wide, I can place captions in the margin using**\setupcaption[location=rightmargin,high/low]. However, for figures that are (*\textwidth+\marginwidth+\margindistance*) wide, I

[NTG-context] \asciimode does not work with gnuplot module

2013-01-20 Thread Marco Patzer
Hi, When \asciimode is set some version info is printed instead of the graph. Example: \usemodule [gnuplot] \asciimode \starttext \startGNUPLOTscript [foo] plot sin(x) \stopGNUPLOTscript \useGNUPLOTgraphic [foo] \stoptext Marco signature.asc Description: Digital signature

Re: [NTG-context] Misbehaving flow charts

2013-01-19 Thread Marco Patzer
On 2013–01–19 Hans Hagen wrote: 0) \setupFLOWcharts [bodyfont=\bfx] does not work. because \bfx is not a bodyfont but a style switch You're right. I confused bodyfont with style, it works as expected. But this makes me wonder why bodyfont is used instead of style? Marco signature.asc

[NTG-context] Misbehaving flow charts

2013-01-17 Thread Marco Patzer
Hi, I have a few questions regarding flow charts. 1) Setting “offset=none” yields to “Missing number, treated as zero.” 2) “option=test” should display a grid according to the manual, but it doesn't. It only displays the anchors. 3) What does the maxwidth option do? 4) What are the options

Re: [NTG-context] Error: Missing number, treated as zero?

2013-01-17 Thread Marco Patzer
On 2013–01–17 H. Özoguz wrote: % ConTeXt LuaTeX \usemodule[annotation] \define[2]\AnnotationCommand {\startblockquote Remove the empty line: \define[2]\AnnotationCommand{%% \startblockquote Marco signature.asc Description: Digital signature

Re: [NTG-context] Misbehaving flow charts

2013-01-17 Thread Marco Patzer
On 2013–01–17 Marco Patzer wrote: I have a few questions regarding flow charts. One more issue: 0) \setupFLOWcharts [bodyfont=\bfx] does not work. Marco signature.asc Description: Digital signature ___ If your

Re: [NTG-context] mkiv: Charis SIL / SmallCaps

2013-01-17 Thread Marco Patzer
On 2013–01–17 Zenlima wrote: But for whatever reason I cannot get context to show the smallcaps. I tried an example out of this mailing list: \definefontfeature[smallcapitals] [smcp=yes] \definefontfeature[smallcapitals] [smcp=yes, script=latn] Marco signature.asc Description: Digital

[NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Marco Patzer
Hi, I need different settings for code in inline and block mode. See the following example: \usemodule [vim] \definetextbackground [C] [location=text] \definevimtyping [C] [syntax=c, before={\starttextbackground[C]}, after=\stoptextbackground, margin=2em] \starttext This is C:

Re: [NTG-context] Vim module - different settings for inline and block code

2013-01-16 Thread Marco Patzer
On 2013–01–16 Wolfgang Schuster wrote: \definevimytping [C] […, before={\ifhmode\startInlineBackground\else\startDisplayBackground\fi}, after={\ifhmode\stopInlineBackground\else\stopDisplayBackground\fi}, …] That's a good idea and it seems to work. You could also ask Aditya

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-13 Thread Marco Patzer
On 2013–01–13 Malte Stien wrote: One thing, though, it turns out the #pageno variable does not seem to work. I had to rename it to #1 to do the trick. Even #p did not work. Do those variables have to be numbers? http://wiki.contextgarden.net/MkVI Marco signature.asc Description: Digital

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Marco Patzer
On 2013–01–13 Malte Stien wrote: The trouble is that the page number is only a few millimetres wide and gets positioned on the inside edge of my outside margin. Hence, it does not end up close enough to the edge of the page. I guess, I would like to right-align it 4mm from the edge of a

Re: [NTG-context] Page Numbers on Outer Edge of Outer Margin

2013-01-12 Thread Marco Patzer
On 2013–01–12 Wolfgang Schuster wrote: When you’re in the header you can just use \doifoddpageelse to set different values for left/right pages, \signalrightpage is only necessary for text *in* the document. Thanks for the correction. I updated the wiki. Marco signature.asc Description:

Re: [NTG-context] Place an annotation before it is defined

2013-01-11 Thread Marco Patzer
On 2013–01–10 Wolfgang Schuster wrote: You can try the beta from my bitbucket site [0] which uses a two mechanism for named buffers (\startannotation[NAME] … \stopannotation) which can be accessed with \getannotation[NAME]. It doesn't work for me: \usemodule[annotation]

Re: [NTG-context] Place an annotation before it is defined

2013-01-11 Thread Marco Patzer
On 2013–01–11 Wolfgang Schuster wrote: Use \defineannotation[myannotation][method=buffer] to disable the output from \startmyannotation … \stopmyannotation. \starttext a \getannotation [foo] You need \getmyannotation[foo]. It works perfectly, though I don't have much to

Re: [NTG-context] Was: Opening external documents ... - Can ConTeXt reduce size of images?

2013-01-08 Thread Marco Patzer
On 2013–01–09 Hans Hagen wrote: the latest beta has this: % \enabletrackers[graphics.programs] \starttext \externalfigure[cow.pdf][conversion=stripped] \stoptext Nice feature, indeed. It might save a preprocessing step. We preprocess with -dProcessDSCComments=false otherwise

[NTG-context] Error markers for invalid section references

2013-01-07 Thread Marco Patzer
Hi, in the final stage of a document I always run a grep for ?? and on the document to find invalid references and missing bibliography entries. However, in documents that do not have a section number the references to the number are also wrong, they need to be references to the name

Re: [NTG-context] MetaPost Animations

2013-01-07 Thread Marco Patzer
On 2013–01–07 Troy Henderson wrote: http://www.tlhiv.org/animations There is one in particular that, I think, is quite impressive. It is an animation of a function f(x,y,t) where t is time. I love that one. Very impressive, indeed! Although my browser flickers for about 20s until it

[NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
Hi, what is the best solution to place the content of annotations before they are defined in the text? What comes to mind is writing the content into an external file and read it in the next run. But maybe I overcomplicate things (usually I do) and there's a simpler solution. Here's an example:

[NTG-context] Make annotations tolerant against empty lines

2013-01-07 Thread Marco Patzer
Hi, if the first line after an annotation start is empty, a new line is introduced. How can I make it tolerant so that the following both examples come out equal (Content and the annotation text on the same line)? \usemodule [annotation] \defineannotation [myannotation] \setupannotation

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
On 2013–01–07 Hans Hagen wrote: buffers (or blocks) Buffers apparently can't be used before the content is defined, but it works for blocks (I never used them). Test: \defineblock [bar] \starttext buf: \getbuffer[foo] BBB \startbuffer[foo] buf: AAA \stopbuffer \useblocks

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
On 2013–01–07 Wolfgang Schuster wrote: That’s not possible because the content is stored only in memory and is therefore only available after you put the environment in your document. What you can do is to set the content of the environment at the begin of the document and refer to it at

Re: [NTG-context] Error markers for invalid section references

2013-01-07 Thread Marco Patzer
On 2013–01–07 Hans Hagen wrote: The wrong \in[invalid] reference receives an easy to find error marker and an entry in the log file. The wrong entry \in[sec:bar] is hard to find. Is there a way to add ?? for those cases as well? I'll print an !! although it might become optional That's

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
On 2013–01–07 Wolfgang Schuster wrote: Blocks, in contrast to buffers, seem to be able to place content before it is defined. I did not check how they work, but since I didn't see any temporary files, the only possibility is to write the data to the tuc file, I assume. It is by any chance

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
On 2013–01–07 Jaroslav Hajtmar wrote: Last example is not working! I have installed last version of \defineblock[question] \defineblock[answer] \hideblocks[answer] \defineenumeration[question] \defineenumeration[answer] \starttext \chapter{Questions} % Show only the question

Re: [NTG-context] Wrong float numbering with default=top

2012-12-19 Thread Marco Patzer
On 2012–12–19 Hans Hagen wrote: this kind of messy stuff needs some time to get right (apart from messing up de code) you cna try to patch this in strc-ref.lua This seems to fix it. Thanks for the quick patch, Hans. Marco signature.asc Description: Digital signature

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Marco Patzer
On 2012–12–19 Troy Henderson wrote: In case anyone cares, here is the finished product which is a frame-by-frame animation of a hypocycloid. The following code will produce a 190 page PDF where each page is an individual frame of the animation. […] Very nice work, indeed. It reminds me of

Re: [NTG-context] Numerical Calculations

2012-12-19 Thread Marco Patzer
On 2012–12–19 Troy Henderson wrote: Very nice work, indeed. It reminds me of a drawing toy I had when I was a kid. Thanks a lot for sharing. Spirograph? http://en.wikipedia.org/wiki/Spirograph Exactly, that's it. Plenty of beautiful patterns with just small change in parameters.

[NTG-context] Whitespace and quotechar in database module

2012-12-18 Thread Marco Patzer
Hi, the following two database examples produce different output due to the white space between the field separator and the quotechar. \usemodule [database] \defineseparatedlist [CSV] [quotechar=, before={\starttabulate[|l|l|]}, after=\stoptabulate, first=\NC,last=\NR,

Re: [NTG-context] Wrong float numbering with default=top

2012-12-18 Thread Marco Patzer
On 2012–12–08 Marco Patzer wrote: Thanks. It does not break anything in the final document and all numbers are correct. Referring to the figures is messed up: \useMPlibrary [dum] \setupfloat [figure] [default=top] \ctxlua{structures.lists.autoreorder = true} \starttext \input knuth

Re: [NTG-context] New module: simplesteps.

2012-12-15 Thread Marco Patzer
On 2012–12–15 Sietse Brouwer wrote: But when I tried to write a minimal example, I couldn't get it to compile. %% begin example \grabbufferdata[mybuffer][thisisthestart][thisistheend] \thisisthestart My friend, you would not tell with such high zest To children ardent for some desparate

Re: [NTG-context] Wrong float numbering with default=top

2012-12-08 Thread Marco Patzer
On 2012–12–06 Hans Hagen wrote: New defined floats are still wrongly enumerated. Is there a workaround for this? adapted Thanks. It does not break anything in the final document and all numbers are correct. Marco

Re: [NTG-context] Doubled annotation content

2012-12-07 Thread Marco Patzer
On 2012–12–07 Wolfgang Schuster wrote: The argument for the command keys has to be a macro with two parameters, the first parameters contains the formatted header and the second argument the formatted content of the environment. That's how I used it in the past, but after an update I got an

Re: [NTG-context] drops module (draft)

2012-12-07 Thread Marco Patzer
On 2012–12–07 Peter Rolf wrote: Am 06.12.2012 19:35, schrieb Marco: On 2012–12–06 Aditya Mahajan wrote: I always thought that shadows were possible to do in PDF (after all TikZ does it using some type of PDF primitives). It is. I use MetaPost to draw the shadows using the shading

Re: [NTG-context] Doubled annotation content

2012-12-07 Thread Marco Patzer
On 2012–12–07 Wolfgang Schuster wrote: Commands need to be unexpandable because when you use the “command”. This is necessary because I check for a command and this needs \unexpanded\def to work. You can create a unexpandable command with \starttexdefintion by adding the unexpanded

Re: [NTG-context] Wrong float numbering with default=top

2012-12-06 Thread Marco Patzer
On 2012-12-04, Marco Patzer wrote: 2012-12-04 Hans Hagen: Hi Hans, As an experiment I've added some trickery. But keep in mind that messing with numbers is never 100% foolproof. So, for the moment you can say \ctxlua{structures.lists.autoreorder = true} till we're sure about what

Re: [NTG-context] MetaPost instance mechanism broken

2012-12-06 Thread Marco Patzer
On 2012–11–25 Marco Patzer wrote: in one of the last few betas the MetaPost instance mechanism broke. Did the interface change again? The following does not work on today's beta, only “alpha” and “gamma” are printed. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{alpha

[NTG-context] Doubled annotation content

2012-12-06 Thread Marco Patzer
In the following example the content of the annotation is printed twice. Bug? \usemodule [annotation] \defineannotation [myannotation] [alternative=command, command=\cmd] \def\cmd {\placeannotationcontent} \starttext \startmyannotation foo \stopmyannotation \stoptext Marco

Re: [NTG-context] Doubled annotation content

2012-12-06 Thread Marco Patzer
On 2012–12–06 Otared Kavian wrote: It seems that your command \cmd places again the content… That's not the case. Check this example: \usemodule [annotation] \defineannotation [first] [alternative=command, command=\cmdFirst] \defineannotation [second] [alternative=command,

[NTG-context] Wrong float numbering with default=top

2012-12-04 Thread Marco Patzer
Hi, The setting \setupfloat [figure] [default=top] not only places the figures at the top of the page, but also messes up the float numbering (the float placement is fine). In the following example “Figure 2” comes after “Figure 3”. How to fix that? \useMPlibrary [dum] \setupfloat

Re: [NTG-context] Wrong float numbering with default=top

2012-12-04 Thread Marco Patzer
2012-12-04 Hans Hagen: Hi Hans, As an experiment I've added some trickery. But keep in mind that messing with numbers is never 100% foolproof. So, for the moment you can say \ctxlua{structures.lists.autoreorder = true} till we're sure about what level of control is needed. Beta later

Re: [NTG-context] Underlined section

2012-11-30 Thread Marco Patzer
2012-11-30 H. Özoguz: How to define a new title - like section, but aligned in the center and underlined? So far I got: \definehead[mysection][section] \setuphead[mysection][alternative=middle] How to get the underlining in that? The following code is quite verbose, but it's the

Re: [NTG-context] Start\Stop with Wolfgangs Annotation Module

2012-11-30 Thread Marco Patzer
2012-11-30 H. Özoguz: Hi, Im using Wolfgangs annotation module and have defined an annotation: \defineannotation[bigquote] with some setups. Now \bigquote{...} works correctly. But I want for big annotations \startbigquote \stopbigquote, how to do that? First: Create a minimal

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-26 Thread Marco Patzer
2012-11-26 Sietse Brouwer: Since I don't use MetaPost, I don't think I'm the best person to document this. But I took this as an opportunity to create the command reference pages for a bunch of the \...MP... commands; perhaps one of you could add this info to the proper page(s)? Thanks. I

Re: [NTG-context] A problem with units

2012-11-25 Thread Marco Patzer
Hi Hans, since you are working on the \unit code at the moment, I want to remind you about an issue I reported a while ago. Any thoughts on that one? http://article.gmane.org/gmane.comp.tex.context/79275 Marco

[NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Marco Patzer
Hi, in one of the last few betas the MetaPost instance mechanism broke. \defineMPinstance [myinstance] [metafun] \startuseMPgraphic{mympgraphic} fill fullsquare scaled 1cm withcolor blue; \stopuseMPgraphic \starttext\null \useMPgraphic{myinstance::mympgraphic} \stoptext Marco

Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Marco Patzer
2012-11-25 Aditya Mahajan: I am still using the old 2012.11.16 version, but now you have to specify the instance in the \startuseMPgraphic as well (Hans had announced this on the mailing list a few weeks ago): I missed that. \startuseMPgraphic{instance::mygraphic} ... \stopuseMPgraphic

Re: [NTG-context] Equivalent of Includeonly?

2012-11-19 Thread Marco Patzer
2012-11-19 H. Özoguz: Is there an equivalent of the LaTeX \includeonly ? You can place individual chapters in components and use the mode mechanism: \startproduct * \startmodeset [alpha] {\component [alpha]} [beta] {\component [beta]} [gamma] {\component [gamma]}

[NTG-context] Wrong \unit spacing

2012-11-17 Thread Marco Patzer
Hi, the \unit command produces wrong spacing when only the unit is given without a value. Is there a way to improve the \unit command to not print this space? \starttext \starttabulate \NC wrong spacing \EQ (\unit{micro mol}) \NC\NR \NC spacing OK\EQ (µmol) \NC\NR \NC spacing

Re: [NTG-context] Changing the font in quotation

2012-11-16 Thread Marco Patzer
2012-11-16 H. Özoguz: I use \startquotation \stopquotation for longer quotations. I want to globally change the font in this quotations (f.e. to garamond or helvetica - my default is times new roman). How to make this? Quotations are defined as delimited text, see

Re: [NTG-context] Tolerance and Stretch versus Protrusion and Ugliness

2012-11-15 Thread Marco Patzer
2012-11-15 H. Özoguz: \setuptolerance[stretch] Are you sure, you want to use stretch? It will probably product ugly results. \tolerance 70 Why 70? I don't understand the use of stretch with such a strict tolerance. What about using \setuptolerance [tolerant] %% or verytolerant instead of

Re: [NTG-context] ntg-context Digest, Vol 101, Issue 31

2012-11-13 Thread Marco Patzer
2012-11-13 H. Özoguz: Advice for your next posts: Try to provide a meaningful subject line like “Enclosing quotations in guillemets” or “Emphasising quotations”. And configure your mail reader to include a “In-Reply-To” header to not break the thread with each post. I want the complete

Re: [NTG-context] How to display source in ConTeXt?

2012-11-13 Thread Marco Patzer
2012-11-13 yang.zhao: is there a good way to display source(such as C language) in ConTeXt? There is the vim module. It uses the editor vim to mark up the source with syntax highlighting code. However, it does only highlighting, not indentation. But it might be possible to hook in an

Re: [NTG-context] How to put a \placefigure with no caption?

2012-11-12 Thread Marco Patzer
2012-11-12 Andy Thomas: I guess, I do not understand the relation completely. Please compare the following -- startcode -- \starttext % \chapter{One} \input tufte \placefigure[margin,none]{}{Let's put some text of at least two lines.} \placefigure[none,margin]{}{Let's put some text

Re: [NTG-context] images and text stacked in the margin

2012-11-12 Thread Marco Patzer
2012-11-12 Andy Thomas: I am still struggling to achieve the page layout/look that I am trying to get. For an image of the desired page spread please look here: https://dl.dropbox.com/u/9089117/tufte-spread.png How about this: \useMPlibrary [dum] \setuplayout [width=10cm,

Re: [NTG-context] Macro in macro?

2012-11-12 Thread Marco Patzer
2012-11-12 H. Özoguz: but it returns the ending quotation mark in the wrong order. Why? You forgot the braces: Quote: \wr[{He said: \wrr[Hello!]}] And how to correct that? \setuplanguage [leftquotation=», rightquotation=«, leftquote=›, rightquote=‹] \starttext Quote:

Re: [NTG-context] ntg-context Digest, Vol 101, Issue 30

2012-11-12 Thread Marco Patzer
2012-11-12 H. Özoguz: And if I want to have in \quotation and \quote additionaly \emphasis, how to make that? To be clear (sorry for my english): \quotation{\emph{Quote}} \definehighlight [emph] [style=bolditalic] Quote: \quotation{He said: \quote{Hello \emph{World!}}} Marco

[NTG-context] Annotation module broken

2012-11-11 Thread Marco Patzer
Hi Wolfgang, the annotation module broke within the last few betas. \usemodule [annotation] \starttext \startannotation {Foo} Bar \stopannotation \stoptext Marco ___ If your question is of

<    1   2   3   4   5   6   7   8   >