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

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

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 option

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

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

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 o

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[] … \stopannotation) which can > be accessed with \getannotation[]. It doesn't work for me: \usemodule[annotation] \defineannotation [

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'

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

[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: \inlin

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 A

[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 “x”

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 y

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: Digit

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

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,

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

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

[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 texmf-modules/tex/context/third/

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

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

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' >mymodu

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

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 lo

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 pro

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 >

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

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 runni

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 y

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 _

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

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 su

[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 figure'

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 Descrip

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

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

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: Digita

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] Alternative width of figures in different documents (problem with modes?)

2013-02-05 Thread Marco Patzer
On 2013–02–05 Jaroslav Hajtmar wrote: > I would like use modes alternative to change of image dimensions in > different documents (presentation or print version). > Compilation in ConTeXt TeXLive 2012 version will compile without > error, but without visual effect. Compilation with the standalone

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: > \setdataset[data]

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. T

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

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 ann

[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

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; >

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. Th

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"

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.mkdir"graphics"} \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. M

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 “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. >

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 > \startcombination

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. http://thread.gmane.org/gmane.comp.tex.context/795

[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

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 file.

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

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 Des

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 a

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, colo

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

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 > Th

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

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] [left=\simplealignedbox{1em}{flushr

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 contextga

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

[NTG-context] Bibliography fails in latest beta

2013-03-05 Thread Marco Patzer
Hi, the following produces [[error 2]]. This used to work before. \setupbibtex [database=sample] \starttext \cite[hh2010a] \placepublications \stoptext From the log: publications> loading database from test.bbl (test.bbl) publications> warning: unknown cite argument hh2010a on line

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 Des

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 wit

<    1   2   3   4   5   6   7   8   >