Re: [NTG-context] Titles break TikZ

2012-02-08 Thread Felix Ingram
On 7 February 2012 13:06, Philipp A. flying-sh...@web.de wrote: with some recent beta (sorry for vagueness), tikz stopped working after titles. (i use first-setup.sh to install: these are the betas, not something different, right?) I can confirm that this is similar to the problems I am

Re: [NTG-context] Titles break TikZ

2012-02-08 Thread Felix Ingram
On 8 February 2012 10:24, Hans Hagen pra...@wxs.nl wrote: On 8-2-2012 10:51, Felix Ingram wrote: On 7 February 2012 13:06, Philipp A.flying-sh...@web.de  wrote: with some recent beta (sorry for vagueness), tikz stopped working after titles. (i use first-setup.sh to install

Re: [NTG-context] Titles break TikZ

2012-02-08 Thread Felix Ingram
On 8 February 2012 13:50, Hans Hagen pra...@wxs.nl wrote: On 8-2-2012 12:16, Felix Ingram wrote: On 8 February 2012 10:24, Hans Hagenpra...@wxs.nl  wrote: On 8-2-2012 10:51, Felix Ingram wrote: On 7 February 2012 13:06, Philipp A.flying-sh...@web.de    wrote: with some recent beta (sorry

[NTG-context] Wandering floats

2012-01-23 Thread Felix Ingram
Hello all, I've noticed some strange behaviour with Tikz/PGF in floats. The following example should demonstrate it: \usemodule[tikz] \definefloat[newfloat][newfloats] \setupfloat[newfloat][ rightmargindistance=1cm, maxwidth=0.5cm, ] \startbuffer[myfloat]

Re: [NTG-context] Tikz module causes errors

2012-01-18 Thread Felix Ingram
Adding the \def\active{13} statement to the sources seems to fix things for the time being. All of my graphics appear to have shifted to the right by leftmarginwidth but I can correct for that. I believe that someone else had a similar issue (Daniel Edwards in a mail sent on 14 Jan 2012). Oh, and

Re: [NTG-context] Counters again

2012-01-18 Thread Felix Ingram
On 17 January 2012 18:10, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 17.01.2012 um 15:55 schrieb Felix Ingram: I'm now trying to use counters that will tally some values. The value of these could be zero, which the wiki states will be the default value. The following shows

[NTG-context] Counters again

2012-01-17 Thread Felix Ingram
Hello all, I'm now trying to use counters that will tally some values. The value of these could be zero, which the wiki states will be the default value. The following shows that nothing is displayed when the counter is 0. \definenumber[examplecounter] \setnumber[examplecounter]{1} \starttext

[NTG-context] Tikz module causes errors

2012-01-17 Thread Felix Ingram
I've just updated to the latest beta and the following will cause an error: \usemodule[tikz] \starttext Hello World \stoptext The error is: system tex error on line 129 in file example.tex: Undefined control sequence ... l.129 \catcode`\;=\active Obviously there is no line 129.

[NTG-context] Setting structureuservariable

2012-01-16 Thread Felix Ingram
Hello all, I've discovered the magic of structureuservariabl and have therefore converted all my headings to use the start/stop syntax. It's raised a few quick questions though: 1. Is \startchapter \stopchapter etc the proper way to do things from now on? Or is it really just up to the user? 2.

Re: [NTG-context] Setting structureuservariable

2012-01-16 Thread Felix Ingram
2. Is there a way to provide a default value for a structureuservariable? I'd like to set a reference number based on a global counter if the user doesn't supply their own. Currently not ... but I can add it. I'm assuming I could poke a value in using Lua. Would be nice to have but not a big

[NTG-context] Bug? Counters inherit chapter number

2012-01-16 Thread Felix Ingram
Hi all, This works as expected* (empty section title with 5 6 7 8 on the next line \definenumber[examplecounter] \setnumber[examplecounter]{5} \starttext \startsection \getnumber[examplecounter] \incrementnumber[examplecounter] \getnumber[examplecounter] \incrementnumber[examplecounter]

Re: [NTG-context] ntg-context Digest, Vol 91, Issue 66

2012-01-16 Thread Felix Ingram
By default the counter is reset with each new chapter, since you have chapters in your first example the counter is incremented but in your second example \startchapter sets the counter back to zero. To have a counter which isn?t reset you need ?way=bytext and to remove the chapter number

[NTG-context] \placelist summary alternative solution

2011-12-14 Thread Felix Ingram
I've ended up delving into the dark art that is Lua for this solution: \define[0]\SummaryTable{% \placetable[force, none]{}{% \setupTABLE[frame=off] \bTABLE \bTABLEhead \bTR\bTH Reference\eTH\bTH Title\eTH\bTH Page\eTH\eTR \eTABLEhead \bTABLEbody \startluacode for k, v in

[NTG-context] \placelist after \chapter

2011-12-12 Thread Felix Ingram
Hi all, I can't seem to get a list placed after a numbered heading. For example: \starttext \title{First one} \placelist[chapter] \chapter{Second one} \placelist[chapter] % This won't be placed \stoptext Is this something I should be able to do? The reason I ask is that I'm looking to generate

Re: [NTG-context] \placelist after \chapter

2011-12-12 Thread Felix Ingram
Thanks Wolfgang - that works as expected. I'm trying to create a table from the headings (as previously mentioned). Something like this: \setuplist[chapter][criterium=all,alternative=command,command=\MySummaryTable,before={\setupTABLE[frame=on]\bTABLE\bTABLEbody},after={\eTABLEbody\eTABLE}]

[NTG-context] setupheads

2011-12-07 Thread Felix Ingram
Hello all, I've not been able to find the right combination of commands to change my header style. I'd like to have bold, italic (or slanted), plus change the text size. I currently have the following: \setuphead[section][color=header_dark_blue, aligntitle=float]

[NTG-context] Tikz/pgf colour issue

2011-12-07 Thread Felix Ingram
I just upgraded to the latest beta in order to see if that would fix my header styling issue. Compiling gave me the following error: ! Argument of \pgfutil@context@parse@gray has an extra }. This is defined in: tex\texmf-modules\tex\generic\pgf\utilities\pgfutil-context.def If I change the code

Re: [NTG-context] Tikz/pgf colour issue

2011-12-07 Thread Felix Ingram
Further investigation suggests that this is a known issue of using \definecolor colours within a Tikz graphic that decided to manifest itself for the first time when I upgraded. The solution is to do: \unprotect \pgfutil@definecolor{colour_name}{rbg/cmyk/gray}{...colour values...} \protect for

Re: [NTG-context] caption labels

2011-09-24 Thread Felix Ingram
Am 23.09.2011 um 12:45 schrieb Felix Ingram: I'm defining a new float that I'd like to caption with its own label. Something like: \definefloat[picture][pictures] I'd then like the caption to read: Picture 1 - my caption text Picture 2 - etc At the moment I've used \setupcaption

[NTG-context] Caption label

2011-09-23 Thread Felix Ingram
I'm defining a new float that I'd like to caption with its own label. Something like: \definefloat[picture][pictures] I'd then like the caption to read: Picture 1 - my caption text Picture 2 - etc At the moment I've used \setupcaption[picture][way=bytext] to sort out the numbering but I cannot

Re: [NTG-context] ntg-context Digest, Vol 87, Issue 51

2011-09-23 Thread Felix Ingram
I'm defining a new float that I'd like to caption with its own label. Something like: \definefloat[picture][pictures] I'd then like the caption to read: Picture 1 - my caption text Picture 2 - etc At the moment I've used \setupcaption[picture][way=bytext] to sort out the

Re: [NTG-context] Verbatim in framed text

2011-09-22 Thread Felix Ingram
-- Forwarded message -- From: Wolfgang Schuster schuster.wolfg...@googlemail.com To: mailing list for ConTeXt users ntg-context@ntg.nl Date: Wed, 21 Sep 2011 13:09:42 +0200 Subject: Re: [NTG-context] Verbatim in framed text Am 20.09.2011 um 17:50 schrieb Felix Ingram: Some

[NTG-context] Captions

2011-09-22 Thread Felix Ingram
(apologies if you see this twice - posted from wrong account earlier) I'm defining a new float that I'd like to caption with its own label. Something like: \definefloat[picture][pictures] I'd then like the caption to read: Picture 1 - my caption text Picture 2 - etc At the moment I've used

[NTG-context] Verbatim in framed text

2011-09-20 Thread Felix Ingram
Some of my verbatim lines are overflowing the framed text box I'm putting them in. I see that I could define a pretty printer to handle this but I came up with the following: \starttext \startframedtext[middle][width=.8\textwidth] \startframedtext[left][frame=off, width=.6\textwidth]

[NTG-context] Tikz and \color

2011-09-19 Thread Felix Ingram
Hello all, I'm using Tikz to draw some fancy text boxes, but I've bumped into an annoying problem. If you run the example below then the body text will be rendered in red. If you remove the REMOVE ME text, then it will be rendered in black. I would expect the black version to be the correct

Re: [NTG-context] Tikz and \color

2011-09-19 Thread Felix Ingram
wrote: On 19-9-2011 13:10, Felix Ingram wrote: Hello all, I'm using Tikz to draw some fancy text boxes, but I've bumped into an annoying problem. If you run the example below then the body text will be rendered in red. If you remove the REMOVE ME text, then it will be rendered in black. I

[NTG-context] Miktex breaks install

2011-09-15 Thread Felix Ingram
In a fit of madness I installed Miktex and now my minimals install is borked (unknown script 'context.lua'...). Looking at the output it seems that Miktex has set a load of variables that Context is now using for itself. I suppose it would be nice to run side by side, but I guess I need to reset

Re: [NTG-context] Table headers and section titles

2011-09-15 Thread Felix Ingram
Some follow up notes in case anyone else is trying to do something similar On 13 September 2011 15:30, Felix Ingram f.ingram.li...@gmail.com wrote: I've had another stab at converting our Word template to Context. I've managed to draw some pretty shapes using MetaPost (and I'd like to add my

[NTG-context] Table headers and section titles

2011-09-13 Thread Felix Ingram
Hello all, I've had another stab at converting our Word template to Context. I've managed to draw some pretty shapes using MetaPost (and I'd like to add my +1 for getting some alpha channel support for linear_shade) and I got really close to getting my table headings working. I would like to

Re: [NTG-context] Gradient in table header

2011-04-01 Thread Felix Ingram
On 7 March 2011 20:11, Henning Hraban Ramm hra...@fiee.net wrote: Am 2011-03-07 um 10:24 schrieb Felix Ingram: Okay. I've heard of this Metapost thing. After further investigation it doesn't look as scary as I first thought. I can't seem to find anything saying that gradient fills

Re: [NTG-context] Gradient in table header

2011-03-07 Thread Felix Ingram
On 5 March 2011 21:36, Hans Hagen pra...@wxs.nl wrote: On 5-3-2011 6:27, luigi scarso wrote: On Sat, Mar 5, 2011 at 6:12 PM, Felix Ingramf.ingram.li...@gmail.com  wrote: Is such a thing possible? I'd like to have a gradient changing from blue to white across my table header, spanning all

[NTG-context] Gradient in table header

2011-03-05 Thread Felix Ingram
Is such a thing possible? I'd like to have a gradient changing from blue to white across my table header, spanning all columns. I'll probably be using the TABLE environment. Regards, Felix ___ If your question is

[NTG-context] Which table environment?

2011-01-10 Thread Felix Ingram
Hello all, I've been playing with the various table environments but I thought I'd seek advice as to which would be the best for my requirements. I need to be able to do the following: - Repeating header row with coloured background and text (I can get this working with TABLE but not tabulate).

[NTG-context] External figures in section headings

2011-01-09 Thread Felix Ingram
Hello all, I need to have an image as part of my section headings. I've read through an example in the It's in the details manual and came up with the following example: \definelayer[chapterstart][width=\paperwidth,height=\paperheight]

Re: [NTG-context] External figures in section headings

2011-01-09 Thread Felix Ingram
On 9 January 2011 20:39, luigi scarso luigi.sca...@gmail.com wrote: On Sun, Jan 9, 2011 at 5:33 PM, Felix Ingram f.ingram.li...@gmail.com wrote: Hello all, I need to have an image as part of my section headings. I've read through an example in the It's in the details manual and came up