[NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread pol stra







Dear all,

I tried to compile the first example of the simpleslide module’s documentation, 
but it doesn’t work:
! Undefined control sequence.

system   tex  error on line 9 in file test-simple.tex: Undefined 
control sequence ...

 1 \usemodule[simpleslides]
 2 [style=BigNumber]
 3 \setupTitle
 4 [ title={Title of the presentation},
 5 author={Name of authors},
 6 date={Date of presentation},
 7 ]
 8 \starttext
 9   \placeTitle
10 \SlideTitle {The first slide}
11 Write whatever you want.
12 \SlideTitle {The second slide}
13 Continue writing.
14 \stoptext
15 

argument \??vars 
   :simpleslides:title:
\dousestylehashparameter #1#2-\ifcsname #1
   #2\endcsname \expandafter \douses...
\dostartattributes ...estylehashparameter {#1}{#2}
  \dousecolorhashparameter {...
\placeTitle ...pleslides:title:}\c!style \c!color 
  \simpleslidestitlecomponen...
l.9 \placeTitle
   
? 
! Undefined control sequence.

Thanks (I hope I’m not too unpolite)

  

test-simple.log
Description: Binary data
___
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] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan

On Wed, 4 Jan 2012, pol stra wrote:


I tried to compile the first example of the simpleslide module’s documentation, 
but it doesn’t work:


The recent cleanup in the MkIV has broken parts of the simpleslides 
module. As a quick hack, you can put the attached file in your current 
directory.


Thomas and I have been thinking of (again) rewriting the presentation 
module to make it modular. The current version of this module is at


http://bitbucket.org/adityam/complexslides

It currently has only one style (that I am using at present). There is no 
documentation at present, but the following shows the current interface.


\usemodule[complexslides][colorscheme=..., fontscheme=..., extras=]

\starttext

\setvariables
   [talk]
   [title=...,
shorttitle=...,
author=,
shortauthor=...,
institute=...,
location=...,
   ]

\startsection[title=]
...
\stopsection

...
\stoptext


Aditya%D \module
%D   [  file=simpleslides-s-default,
%Dversion=2009.03.30
%D  title=\CONTEXT\ Style File,
%D   subtitle=Presentation Module simpleslides --- Default style setup,
%D author=Thomas A. Schmitz \ Aditya Mahajan,
%D   date=\currentdate,
%D  copyright={Aditya Mahajan and Thomas A. Schmitz}]
%C
%C Copyright 2007 Aditya Mahajan and Thomas A. Schmitz
%C This file may be distributed under the GNU General Public License v. 2.0.

\writestatus{simpleslides}{loading default style setup}

\startmodule[simpleslides-s-default]

\unprotect

%D This module is the first sub-module that is loaded by
%D \filename{simpleslides}.  This sets up the style macros for the module. We
%D choose a rather plain style as the default; separate style sub-modules
%D redefine some internal macros to achieve fancier effects.


%D We start with the page layout. S6 has the ratio of a usual computer screen.

\setuppapersize[S6][S6]

%D We do not want page numbers, but we sometimes want to use the page numbering
%D mechanism, so we make sure pages are counted, but the numbers are not
%D displayed. 

\setuppagenumbering[location=]

%D As for the page layout: most of the numbers have been reached by
%D trial and error; I have just taken what seemed to produce the best output.

\setuplayout [width=middle,
  margin=0.6cm,
  height=middle, 
  header=0.15cm, 
  footer=1.35cm, 
  footerdistance=0.5cm,
  topspace=0.5cm, 
  backspace=1cm,
  location=singlesided]


%D We define some other layouts which can be used to change the layout of
%D specific kinds of pages. This module defines three kinds of pages:
%D horizontal, vertical, and title, and we allow the possibility of changing the
%D layout of all three page styles.

\definelayout [simpleslides:layout:horizontal]
\definelayout [simpleslides:layout:vertical]
\definelayout [simpleslides:layout:title]
\definelayout [simpleslides:layout:page]

\setuplayout  [simpleslides:layout:page]
  [topspace=0cm,
   header=0cm,
   footer=0cm,
   bottomspace=0cm,
   backspace=0cm,
   cutspace=0cm,
   width=middle,
   height=middle]

%D We want colored presentations

\setupcolors[state=start]

%D And colored typesetting for \TEX\ code.

\definetype[typeTEX][option=color]

%D Presentations have relatively dense lines, we do not care about underfull
%D lines, but allow emergency stretch.

\setuptolerance[\v!verytolerant,\v!stretch] 

%D We use combinations for placing vertical pictures and text side by side, and
%D we want a distance of 3em between both.

\setupcombinations[distance=0.9cm]

%D Next we define some dimensions that are used as nominal values by other
%D macros and the user.

\define\NormalHeight{.830\textheight}
\define\NormalWidth {.476\textwidth}
\define\PictureFrameHeight  {.830\textheight}
\define\PictureFrameWidth   {.476\textwidth}

%D As we said before, the presentation consists of three kinds of pages: title,
%D horizontal, and vertical. Each page can have a different background; we can
%D switch to a specific background using
%D \starttyping
%D \setupPageBackground[horizontal]
%D \stoptyping

\def\setupPageBackground%
   {\dosingleargument\dosetupPageBackground}

\def\dosetupPageBackground[#1]%
  {\setups{simpleslides:background:#1}}

%D The backgrounds in all the styles are very similar. So, we define overlays to
%D capture the different features of the backgrounds, and then simply define the
%D overlays in different styles.

\defineoverlay[simpleslides:background:horizontal]
\defineoverlay[simpleslides:background:title]
\defineoverlay[simpleslides:background:vertical]
\defineoverlay[simpleslides:background:ornament]
\defineoverlay[simpleslides:background:page]

\defineoverlay[simpleslides:background:highlight]
  [\useMPgraphic{simpleslides:MP:highlight}]%

\definelayer[simpleslides:layer:slidetitle]

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Hans Hagen

On 4-1-2012 10:34, pol stra wrote:


Dear all,

I tried to compile the first example of the simpleslide module’s documentation, 
but it doesn’t work:
! Undefined control sequence.



! Undefined control sequence.

Thanks (I hope I’m not too unpolite)


The simple slide module uses an experimental version of what we call the 
command handler. It is a slightly slower but more flexible way to deal 
with parameters (in practice it's often faster as associated code gets 
updated). Anyhow, the slide module has to be adapted to the latest 
variant which uses a higher level of abstraction.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___