[NTG-context] Undefined control sequence: setupresume

2014-04-02 Thread Bart Wise
I am unable to compile anything using the resume module from Wolfgang's
t-letter package.
I had to put a symlink from t-cor-03.tex - t-resume.tex

Here's the source:

\usemodule[resume][interface=moderncv,style=classic]
\starttext
Hello World!

\stoptext

Excerpts from the log file:

ConTeXt  ver: 2014.01.03 00:40 MKIV current

system   'cont-new.mkiv' loaded
(/home/bart/context/20140314-stable/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'test', input './test', result 'test'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/home/bart/tmp/test.tex
resolversmodules  'resume' is loaded
(/home/bart/texmf/tex/context/t-cor-03.tex
loading  Context User Module / Framework for Resumes
resolversmodules  'correspondence' is loaded
(/home/bart/texmf/tex/context/third/letter/base/t-correspondence.mkiv
loading  Context User Module / Correspondence
)
correspondence   loading 'resume' 'interface' 'moderncv.nri'
(/home/bart/texmf/tex/context/third/letter/interface/moderncv.nri
colors   'rgb' color space is supported
colors   'cmyk' color space is supported
correspondence   loading 'resume' 'style' 'classic.nrs'
(/home/bart/texmf/tex/context/third/letter/style/classic.nrs
! Undefined control sequence.

system   tex  error on line 191 in file
/home/bart/texmf/tex/context/third/letter/style/classic.nrs: Undefined
control sequence ...

181 \setupresumestyle
182   [\v!nextfoot]
183   [\v!layer]
184   [\c!preset=\v!left\v!bottom,
185\c!hoffset=\backspace,
186\c!voffset=2cm]
187
188 %D Default style for the user information
189
190 \setupresume[\v!quote] [\c!style=\v!italic,\c!color=resume:4]
191   \setupresume[\v!firstname] [\c!style=\c!tf\c!d,\c!color=resume:1]

I'm stumped.  I'm not sure which module setupresume is defined, unless
it's the t-resume.xml file.

What am I doing wrong?

Thanks,
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Latest beta not working.

2011-05-06 Thread Bart Wise
If I run context with no arguments, I get the following output (and
nothing else):

mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'


The file, mtx-context.lua does exis:

/home/bwise/context/20110505-beta-extras/tex/texmf-context/scripts/context/lua/mtx-context.lua



If I do an strace, it's looking for the following:

26155 open(./context.lua, O_RDONLY)   = -1 ENOENT (No such file or
directory)
26155
open(/home/bwise/context/20110505-beta-extras/tex/texmf-linux-64/bin/mtx-context.lua,
O_RDONLY) = -1 ENOENT (No such file or directory)
26155 stat(mtx-context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
directory)
26155 stat(mtx-context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
directory)
26155
open(/home/bwise/context/20110505-beta-extras/tex/texmf-linux-64/bin/mtx-context.lua,
O_RDONLY) = -1 ENOENT (No such file or directory)
26155 stat(context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
directory)
26155 stat(context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
directory)


So it's looking for the mtx-context.lua file in the
path: tex/texmf-linux-64/bin/mtx-context.lua
And it's really located in the
path: tex/texmf-context/scripts/context/lua/mtx-context.lua

Am I doing something wrong?

Thanks,
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Latest beta not working.

2011-05-06 Thread Bart Wise
Otared,

Thanks for the response.

I installed like I always do with the following two commands:
rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh --extras=all

I always do this in a new directory on a Linux system.

I'm purplexed.

Bart

On Fri, May 6, 2011 at 2:20 PM, Otared Kavian ota...@gmail.com wrote:

 Hi Bart,

 I checked with my latest installation of minimals and I don't encounter any
 problem (I am using Mac OS X 10.6.7).
 Did you install the latest beta with first-setup.sh? On what kind of
 platform?

 Best regards: OK

 On 6 mai 2011, at 22:12, Bart Wise wrote:

 If I run context with no arguments, I get the following output (and
 nothing else):

 mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'


 The file, mtx-context.lua does exis:


 /home/bwise/context/20110505-beta-extras/tex/texmf-context/scripts/context/lua/mtx-context.lua



 If I do an strace, it's looking for the following:

 26155 open(./context.lua, O_RDONLY)   = -1 ENOENT (No such file or
 directory)
 26155
 open(/home/bwise/context/20110505-beta-extras/tex/texmf-linux-64/bin/mtx-context.lua,
 O_RDONLY) = -1 ENOENT (No such file or directory)
 26155 stat(mtx-context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
 directory)
 26155 stat(mtx-context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
 directory)
 26155
 open(/home/bwise/context/20110505-beta-extras/tex/texmf-linux-64/bin/mtx-context.lua,
 O_RDONLY) = -1 ENOENT (No such file or directory)
 26155 stat(context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
 directory)
 26155 stat(context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or
 directory)


 So it's looking for the mtx-context.lua file in the
 path: tex/texmf-linux-64/bin/mtx-context.lua
 And it's really located in the
 path: tex/texmf-context/scripts/context/lua/mtx-context.lua

 Am I doing something wrong?

 Thanks,
 Bart

 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___


 %%
 Otared Kavian
 Département de Mathématiques
 Université de Versailles Saint-Quentin
 Bâtiment Fermat
 45 avenue des Etats Unis
 78035 Versailles cedex

 Téléphone: +33 1 39 25 46 42
 Secrétariat: +33 1 39 25 46 44
 Secrétariat: +33 1 39 25 46 46

 e-mail: otared.kav...@math.uvsq.fr






 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Latest beta not working.

2011-05-06 Thread Bart Wise
The mtxrun --generate work!

I don't know why I have to do it, but it does the trick.

Thanks to all!

On Fri, May 6, 2011 at 3:02 PM, Thomas Schmitz tschm...@uni-bonn.de wrote:

 On Fri, 6 May 2011 14:46:15 -0600
  Bart Wise bart.c.wise+cont...@gmail.com wrote:

 Otared,

 Thanks for the response.

 I installed like I always do with the following two commands:
 rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
 ./first-setup.sh --extras=all

 I always do this in a new directory on a Linux system.

 I'm purplexed.

 Bart


 Did you try and run

 mtxrun --generate

 manually? If this doesn't help: last week, I encountered a similar problem
 on linux-ppc. I was completely baffled because mtxrun always reported that
 it couldn't find anything. In the end, I discovered that the luatex binary
 was missing the execute bit. So check this as well.

 HTH

 Thomas

 PS: http://www.catb.org/jargon/html/T/top-post.html


 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Defining new head grid problem

2011-03-19 Thread Bart Wise
The code below prints out the word Text: in bold and then follows with the
text.  However, if I turn the grid on (as is coded below), the first line of
the paragraph is printed, followed by a blank line, followed by the
remaining text.  The blank line after the first line should not be there.
 If I don't use the grid, I don't get the extra blank line.

Is something broken (I'm using the latest beta), or am I doing something
wrong?

Thanks,
Bart


\setuplayout[grid=yes]

\definehead[paragraph][subsubsubject]
\setuphead[paragraph][
alternative=text,
style=bold]

\starttext
\paragraph{Text: } \input knuth
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Defining new head grid problem

2011-03-19 Thread Bart Wise
Wolfgang,

Works great.  Thanks!

Bart

On Sat, Mar 19, 2011 at 6:54 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 19.03.2011 um 12:57 schrieb Bart Wise:

  The code below prints out the word Text: in bold and then follows with
 the text.  However, if I turn the grid on (as is coded below), the first
 line of the paragraph is printed, followed by a blank line, followed by the
 remaining text.  The blank line after the first line should not be there.
  If I don't use the grid, I don't get the extra blank line.
 
  Is something broken (I'm using the latest beta), or am I doing something
 wrong?

 \setuplayout[grid=yes]

 \definehead[paragraph][subsubsubject]

 \setuphead
  [paragraph]
   [strut=no,
   textcommand=\groupedcommand{}{:},
alternative=text,
   style=bold]

 \starttext
 \paragraph{Text} \input knuth
 \stoptext

 Wolfgang



 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
I have used the latest ConTeXt to compile the code below, but the
\setupunderbar does not seem to function.  If I use an older version
(context: 2009.06.14) it works just fine.  Is there a bug, or am I doing
something wrong?

\setupcolors[state=start]
\setupunderbar[bottomoffset=2pt,rulethickness=12pt,rulecolor=red]

\starttext
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
Thanks!
On Mar 8, 2011 6:17 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 Am 08.03.2011 um 13:01 schrieb Bart Wise:

 I have used the latest ConTeXt to compile the code below, but the
\setupunderbar does not seem to function. If I use an older version
(context: 2009.06.14) it works just fine. Is there a bug, or am I doing
something wrong?

 Use \setupbar[underbar][...].

 Wolfgang



___
 If your question is of interest to others as well, please add an entry to
the Wiki!

 maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
On Tue, Mar 8, 2011 at 6:15 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 08.03.2011 um 13:01 schrieb Bart Wise:

  I have used the latest ConTeXt to compile the code below, but the
 \setupunderbar does not seem to function.  If I use an older version
 (context: 2009.06.14) it works just fine.  Is there a bug, or am I doing
 something wrong?

 Use \setupbar[underbar][...].

 Wolfgang


My version of context:
 mtx-context | current version: 2011.02.25 22:03

New code with Wolfgang's suggestion:

\setupcolors[state=start]
\setupbar[underbar][bottomoffset=2pt,rulethickness=12pt,rulecolor=red]


\starttext
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.
\stoptext


But now it complains that setupbar is not recognized:
Undefined control sequence...
 2 
 \setupbar[underbar][bottomoffset=2pt,rulethickness=12pt,rulecolor=red]

Am I still doing something wrong?
I looked through the code and it looks like the call is setupbars (with an
's'); however, that didn't work either.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupunderbar not working

2011-03-08 Thread Bart Wise
On Tue, Mar 8, 2011 at 9:38 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 09.03.2011 um 04:58 schrieb Bart Wise:

  I looked through the code and it looks like the call is setupbars (with
 an 's'); however, that didn't work either.

 You’re right, the name is \setupunderbars but you need also “offset” and
 “color” as keys.

 \setupunderbars
  [underbar]
  [offset=2pt,
   rulethickness=12pt,
   color=red]

 Wolfgang


So here's a sample of code that works:

\setupcolors[state=start]·
\setupbars[underbar][
offset=0.1,
rulethickness=0.2,
order=foreground,
color=red]

\starttext·
\switchtobodyfont[60pt]
This is an \underbar{underlined} word.·
\stoptext·

Thanks Wolfgang for your help!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Remove leading spaces

2009-02-05 Thread Bart Wise
On Thursday 05 February 2009 01:36:16 pm Wolfgang Schuster wrote:
 Am 05.02.2009 um 21:26 schrieb Bart C. Wise:
  When a function is called, I would like to remove any leading space.
  Then the function can control the spacing. If I don't remove spaces,
  it then makes a difference whether or not I have a space before the
  function is called.
 
  Is there a way to do this and not cause any side effects?

 You can use \removeunwantedpsaces to remove preceding spaces before
 your command and \ignorespaces to gobble spaces after your command.

 A faster version of your macro is:

 \def\MyFunction
{\dosingleempty\doMyFunction}

 \def\doMyFunction[#1]%
{\removeunwantedspaces\executeifdefined{myfunction:#1}
 {\getvalue{myfunction:default}}}

 \setvalue{myfunction:1}{\medspace dog }
 \setvalue{myfunction:2}{\medspace cat }
 \setvalue{myfunction:default}{\ldots}


Thanks Wolfgang for the answer!
And thanks for the coding hints, they are always appreciated!

Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Bart Wise
On Thursday 11 December 2008 08:10:38 am Ulrike Fischer wrote:
 Am Thu, 11 Dec 2008 07:21:56 -0700 schrieb Bart C. Wise:
  If I change the loop to be the following, I still get the same error:
 
  \def\myloop#1{%
\tempcnta=\the\startcnt%
\loop
  \advance \tempcnta by 1
  \if\tempcnta=#1\else \repeat\fi
  }

 No, the \repeat take the place of the \fi. Also you should always end
 numbers with a space or a \relax to avoid trouble due to tex trying to
 expand the following commands in search for more numbers.

 \newcount\startcnt
 \newcount\tempcnta

 \def\myloop#1{%
   \tempcnta=\the\startcnt\relax%
   \loop
 \the\tempcnta,
 \advance \tempcnta by 1
 \ifnum\tempcnta#1
   \repeat
 }

 \myloop{10}

Excellent.  Thanks Ulrike. This fixes the original problem!
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Centering an image in framed.

2008-12-03 Thread Bart Wise
On Wednesday 03 December 2008 12:35:43 am Hans Hagen wrote:
 Bart C. Wise wrote:
  I am using framed and externalfigure commands. I want to put a rule
  around the image; however, the image has space around all sides. It
  appears that the top, right, and left sides has the same gap. However,
  the bottom side has a huge (by comparison) gap. So I can't use a
  negative offset to fix the problem.

 strut=no

  How do I center the image  place a border?
 
  \framed[location=middle,height=fit,width=fit,rulethickness=1.0pt]{%
 
  \externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm]
 
  }

 \framed[strut=no,offset=2mm,rulethickness=1.0pt]{...}

 or just

 \externalfigure[image-01.png][maxwidth=3cm,maxheight=4cm,frame=on]

Thanks for your help! And extremely quick response.
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] startstandardmakeup and page numbering

2008-11-23 Thread Bart Wise
Works!

Thanks Hans.

Bart

On Saturday 22 November 2008 01:23:46 am Hans Hagen wrote:
 Bart C. Wise wrote:
  I use a standardmakeup to define a part page.  However, when I do so,
  the page counter does not get incremented.  Therefore, after every part,
  the page numbers are inaccurate.  Is there a way to keep the page counter
  incrementing on a standardmakeup?

 \startstandardmakeup[pagestate=start]


 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com

   | www.pragma-pod.nl

 -
 ___
 If your question is of interest to others as well, please add an
 entry to the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Rule in column sets

2008-03-05 Thread Bart Wise
Is there a way to get a rule between the columns of a column set?

Thanks,
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Rule in column sets

2008-03-05 Thread Bart Wise
It works! Thanks Wolfgang.

On Wednesday March 5 2008, Wolfgang Schuster wrote:
 \usemodule[visual]

 \definecolumnset[example][n=4,distance=5mm]

 \startuseMPgraphic{columnrule}
 path p ; p := unitsquare xyscaled (OverlayWidth+5mm,OverlayHeight) ;
 draw lrcorner p -- urcorner p ;
 setbounds currentpicture to p ;
 \stopuseMPgraphic

 \defineoverlay[columnrule][\useMPgraphic{columnrule}]

 \setupcolumnset[example][1,2,3][background=columnrule]

 \starttext

 \startcolumnset[example]
 \dorecurse{30}{\fakewords{50}{100}}
 \stopcolumnset

 \stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Background color spaning columns.

2008-03-03 Thread Bart Wise
I am trying change the background color of some text.  It works fine if I am 
using one column.  It also works fine if I am using multiple columns, but 
restricting my background color changes to only a single line of text in a 
column.  

However, if I have a section that I want to I change, and that section spans 
more than one line in a given column it does not work.  What happens is that 
the background starts to change where you have indicated; however, instead of 
stopping at the end of the column, the background color changes for the 
entire text.  See the subject entitled Problem 1 below for an example.  Is 
there a fix for this (and no, using a single column is not a solution.)

Problem #2 is the same thing only the background change starts in the first 
column and extends to the second.  In this case the output is even worse.  
It's difficult to describe, so run the code.

Solutions?

Thanks,
Bart

***
* Sample Code --- #1
***
\setupcolors[state=start]
\definetextbackground[highlight][
backgroundcolor=yellow,
frame=off,
location=text,
color=black]
\definestartstop[Highlight][
before={\starttextbackground[highlight]},
after=\stoptextbackground]

\starttext
\subject{Problem 1}
\startcolumns
It was a·
\starthighlight dark·
and stormy night;  the rain fell in torrents --- except at
occasional intervals, when it was checked by a·
violent\stoptextbackground~
gust of wind which swept
up the streets (for it is in London that our scene lies), rattling along the
housetops, and fiercely agitating the scanty flame of the lamps that struggled
against the darkness.
\stopcolumns

\subject{Problem 2}
\startcolumns
It was a dark and stormy night;  the rain fell in torrents --- except at
occasional intervals, when it was checked by a violent gust of wind which·
\starthighlight·
swept up the streets (for it is in London that our scene lies), rattling along
the housetops, and fiercely agitating the scanty flame
\stophighlight
of the lamps that struggled
against the darkness.
\stopcolumns

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] exploring register options

2008-02-13 Thread Bart Wise
Hraban,

I'm relatively new to ConTeXt, but I did stumble on a way to get right-aligned 
page numbers.

\def\MyIndexTextCmd#1{#1\hfill}
\setupregister[index][textcommand=\MyIndexTextCmd]

Bart

On Tuesday January 29 2008, Henning Hraban Ramm wrote:
 Can someone tell me, if the following options of \setupregister are
 supposed to have some effect (I couldn't see any):

 style (pagestyle and textstyle work)
 command (pagecommand and textcommand work)
 location
 (Just fixed the texshow description.)

 I didn't check those (also undocumented):

 expansion
 maxwidth
 unknownreference

 I wonder who needs alternative b or B: the indicator (index letter)
 just in front of the first word without any distance is just ugly IMO
 and decreases readability.
 Other styles (alternatives) would probably make more sense, like
 right-aligned (flushleft) page numbers - how can I do that?


 Greetlings from Lake Constance!
 Hraban
 ---
 http://www.fiee.net/texnique/
 http://wiki.contextgarden.net
 https://www.cacert.org (I'm an assurer)

 ___
 If your question is of interest to others as well, please add an
 entry to the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to not reset page numbers with a new part?

2008-02-12 Thread Bart Wise
Willi,

I tried that and it did do what I wanted.  My book has frontmatter and  
bodymatter.  The page numbering will start at 1 on the title page, displayed 
in roman numerals.  And then when the bodymatter is entered, the numbering 
should get reset to 1.  However, when I did a way=bytext, I could not reset 
the numbering to 1 when I was in the bodymatter section.

Any more hints?

Just for clarity sake,  here's some sample code of what I'm trying to do:

\enablemode[doublesided]

\setuppagenumbering[
location={footer,middle},
alternative=doublesided,
partnumber=no,
style=\em\tfx,
way=bytext]

\starttext

\startfrontmatter
\setuppagenumbering[conversion=romannumerals]

\startstandardmakeup[headerstate=none]
Half-Title Here
\stopstandardmakeup

\startstandardmakeup[doublesided=no]
Title Here
\stopstandardmakeup

\startstandardmakeup[page=no]
Copyright here
\stopstandardmakeup

\chapter{Preface}  \dorecurse{10}{\input tufte  }
\stopfrontmatter

\startbodymatter
\setuppagenumbering[conversion=]
\setuppagenumbering[number=1]

\part{Part One}
\chapter{first}  \dorecurse{10}{\input tufte  }
\chapter{second} \dorecurse{10}{\input davis  }
\part{Part Two}
\chapter{third}  \dorecurse{10}{\input zapf   }
\chapter{fourth} \dorecurse{10}{\input bryson }
\stopbodymatter

\stoptext


Bart

On Tuesday February 12 2008, Willi Egger wrote:
 Hi Bart,

 \setuppagenumbering[way=bytext]

 is your friend.

 Willi

 On Feb 12, 2008, at 6:35 PM, Bart Wise wrote:
  When I define a new part to my document (\part{Part One}), the page
  numbers
  always get reset to 0.  How do I prevent this?
 
  Thanks,
  Bart
  __
  _
  If your question is of interest to others as well, please add an
  entry to the Wiki!
 
  maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/
  ntg-context
  webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
  archive  : https://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net
  __
  _

 ___
 If your question is of interest to others as well, please add an
 entry to the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to not reset page numbers with a new part?

2008-02-12 Thread Bart Wise
When I define a new part to my document (\part{Part One}), the page numbers 
always get reset to 0.  How do I prevent this?  

Thanks,
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \noindent in startstop block is no t working on the text that follows the block

2008-02-08 Thread Bart Wise
Thanks Taco!

On Friday February 8 2008, Taco Hoekwater wrote:
 Bart C. Wise wrote:
  I defined a startstop block.  However, the text that follows the block I
  don't want to be indented.
 
  Code
 
  \definestartstop[Center][
  before={\startalignment[center]},
  after={\stopalignment\noindent}
  ]

 You want \noidentation (instead of \noindent).

 Best wishes,
 Taco
 ___
 If your question is of interest to others as well, please add an
 entry to the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Numbers in Tables

2008-01-29 Thread Bart Wise
The code below defines a number and then on each row, displays then increments 
the number.  The number is defined and reset to 0 before the table is 
declared.  However, when the number is displayed in the table, it's not zero 
as expected, but some other number (usually between 3 and 9).  The reset at 
reset point #1 does reset the number to 0, but it doesn't stay that way when 
the table is declared.  The only thing I have found to work, is to define a 
row and column and put the reset there (see reset point #2).  

I would like to declare and reset the number outside of the table definition, 
but it doesn't seem to work.  What am I doing wrong?


\definenumber[MyNum]

\starttext
\resetnumber[MyNum]  % reset point #1
\bTABLE
%  \bTR\bTD \resetnumber[MyNum] \eTD\eTR  % reset point #2
  \bTR\bTD \getnumber[MyNum]\incrementnumber[MyNum] \eTD\eTR
  \bTR\bTD \getnumber[MyNum]\incrementnumber[MyNum] \eTD\eTR
  \bTR\bTD \getnumber[MyNum]\incrementnumber[MyNum] \eTD\eTR
  \bTR\bTD \getnumber[MyNum]\incrementnumber[MyNum] \eTD\eTR
\eTABLE
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Datenumber

2007-11-29 Thread Bart Wise
On Thursday November 29 2007, Mojca Miklavec wrote:
 On Nov 27, 2007 5:49 PM, Bart Wise wrote:
  LaTeX has a package called datenumber.  It basically allows you to
  several things:
 
  1) convert a date into a number,

 What number? What's the input and what's the output?

First you set the date:
\setdatenumber{year}{month}{day}
Example: \setdatenumber{2007}{1}{5}

Internally, this sets a counter called datenumber.
You print the date with \datedate.

Then, to increment by a week, you would add 7 to the datenumber and set the 
date as follows:  
\addtocounter{datenumber}{7}
\setdatebynumber{\thedatenumber}

I made a function that increments the date:
\def\IncDate{%
  \addtocounter{datenumber}{7}%
  \setdatebynumber{\thedatenumber}%
}%

Then, I created a table with the first column entries as follows:
\datedate\IncDate
\datedate\IncDate
\datedate\IncDate
\datedate\IncDate
\datedate\IncDate
...

The output would be:
Friday, 5 January, 2007
Friday, 12 January, 2007
Friday, 19 January, 2007
Friday, 26 January, 2007
Friday, 2 February, 2007

This way I do not have to put in anything except the first date and dates for 
the whole year are calculated and printed for me.


  2) add and subtract from that
  number, in essence adding and subtracting days, and
 
  3) converting a date number into a date string.

 The manual mentions this example
 \date[d=17,m=11,y=2007][weekday,month,day,{, },year]

 or simply
 \date[y=2007,m=11,d=27]
 or
 \currentdate

As best as I can tell, this only sets the date.  I can see of no way to add a 
given number of days to calculate a new date.


  I use this package to create a yearly lesson
  schedule and various other similiar things.  However, I have spent a
  considerable amount of time trying to find the same functionality in
  ConTeXt with no avail. Is there a solution for this?

 There are quite some macros in tex/context/base/core-con.tex (
 core-con.mkii) devoted to that. I didn't play with substraction yet,
 but I bet there is some simple way to do it.

I looked through the source code of core-con.mkii, core-con.mkiv and 
core-con.tex.  I don't see the functionality I need already constructed.  I 
was hoping that an existing solution existed without the need for creating 
new code.


 Mojca


Thanks for you help.  If I overlooked something, let me know.
Bart
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Datenumber

2007-11-28 Thread Bart Wise
I have not looked for a LuaTeX-specific solution.  Since LuaTeX appears to be 
in beta, I feel the need to wait for it to become more stable before looking 
into a LuaTeX solution.

So, I'm still looking for a ConTeXt solution.

Bart

On Tuesday November 27 2007, Aditya Mahajan wrote:
 On Tue, 27 Nov 2007, Bart Wise wrote:
  LaTeX has a package called datenumber.  It basically allows you to
  several things: 1) convert a date into a number, 2) add and subtract from
  that number, in essence adding and subtracting days, and 3) converting a
  date number into a date string.  I use this package to create a yearly
  lesson schedule and various other similiar things.  However, I have spent
  a considerable amount of time trying to find the same functionality in
  ConTeXt with no avail.  Is there a solution for this?

 Have you looked at a lua solution using LuaTeX?

 Aditya
 ___
 If your question is of interest to others as well, please add an
 entry to the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
 http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Datenumber

2007-11-27 Thread Bart Wise
LaTeX has a package called datenumber.  It basically allows you to several 
things: 1) convert a date into a number, 2) add and subtract from that 
number, in essence adding and subtracting days, and 3) converting a date 
number into a date string.  I use this package to create a yearly lesson 
schedule and various other similiar things.  However, I have spent a 
considerable amount of time trying to find the same functionality in ConTeXt 
with no avail.  Is there a solution for this?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___