[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] redefining paragraph breaks

2012-01-04 Thread Hans Hagen

On 3-1-2012 20:31, Chris Lott wrote:

I know I could do it manually, but that makes the source ugly, so is
there a way to redefine paragraph breaks so that instead of actual
breaks in the output they are kept as running text separate by a
paragraph symbol, e.g.:


only with a lot of side effects

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


[NTG-context] old and new

2012-01-04 Thread Steffen Wolfrum
Hi,

a happy 2012 to all of you!!!

Keeping up with the most recent version (2012.01.02) gives to much errors with 
my environment file...
So, as the last version that I installed via rsync was 14th october 2011, I 
tried to manually install an in-between version.
For example:

cd /Users/steffen/context
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
./first-setup.sh --context=2011.11.29 --extras=all

Unfortunately this context= flag doesn't work -- it gives 20120102 too.


Any ideas how to install a december 2012 version?

Steffen

---
Mac (10.6.8)
___
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] xml file inclusion

2012-01-04 Thread Hans van der Meer
I would like to include files with the following input xml-file

  root
file location=.. other_attributes/file
  /root

In the xmlsetup for file I thought to place a call to \xmlinclude:

\startxmlsetups xml:file
  \xmlinclude{#1}{.}{location}
\stopxmlsetups

But this does not work and I get the following error message:

! LuaTeX error ...-new/tex/texmf-context/tex/context/base/lxml-aux.lua:368: 
attempt to index field '__p__' (a nil value)
stack traceback:
...-new/tex/texmf-context/tex/context/base/lxml-aux.lua:368: in 
function 'include'
...-new/tex/texmf-context/tex/context/base/lxml-aux.lua:393: in 
function 'include'
...-new/tex/texmf-context/tex/context/base/lxml-tex.lua:430: in 
function 'include'
main ctx instance:1: in main chunk.

What am I doing wrong? This is how I interprete the manual text includes the 
file specified by attribute of the element located by lpath at node node.

Hans van der Meer



___
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] framedtext in itemize

2012-01-04 Thread Hans van der Meer
Why does framedtext extends to the right in \itemize? Shouldn't the width be 
reduced by the extend of the item-shift? Isn't that the idea behind the 
fit-parameter.

It wouldn't be a problem to calculate a reduced width, but how can I access the 
marginshift caused by the item?

A minimal example:

\starttext
\startitemize[a]
\item \startframedtext[offset=0pt,width=fit]\input tufte\stopframedtext
\item \input tufte
\stopitemize
\startframedtext[offset=0pt,width=fit]\input tufte\stopframedtext
\stoptext

Hans van der Meer



itemize-frame.pdf
Description: Adobe PDF document

___
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] framedtext in itemize

2012-01-04 Thread Wolfgang Schuster

Am 04.01.2012 um 16:25 schrieb Hans van der Meer:

 Why does framedtext extends to the right in \itemize? Shouldn't the width be 
 reduced by the extend of the item-shift? Isn't that the idea behind the 
 fit-parameter.
 
 It wouldn't be a problem to calculate a reduced width, but how can I access 
 the marginshift caused by the item?

Use “width=local”.

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
___


Re: [NTG-context] framedtext in itemize

2012-01-04 Thread Meer, H. van der
That is it! Thanks.

Hans van der Meer


On 4 jan. 2012, at 17:09, Wolfgang Schuster wrote:

 
 Am 04.01.2012 um 16:25 schrieb Hans van der Meer:
 
 Why does framedtext extends to the right in \itemize? Shouldn't the width be 
 reduced by the extend of the item-shift? Isn't that the idea behind the 
 fit-parameter.
 
 It wouldn't be a problem to calculate a reduced width, but how can I access 
 the marginshift caused by the item?
 
 Use “width=local”.
 
 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
___


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
___


Re: [NTG-context] xml file inclusion

2012-01-04 Thread Hans van der Meer
After a lot of experimenting I finally succeeded including a file with thw 
\xmlinclude macro. The next hurdle is how to extend the xml tree with its xml 
contents (if that is possibl, of course).

Thus the main file being:
  ?xml version=1.0 encoding=UTF-8?
  main .. /main
I would like to extend the tree starting with node main with subnodes coming 
from included xml-files:
  ?xml version=1.0 encoding=UTF-8?
  subtree../subtree
Then execute \xmlall on the subtree's.

Of course another route (I have already explored) is to call \xmlprocessfile 
for the subtree's. But then I found I cannot retrieve other elements from 
main while processing the independent subtree. And that is just what I aimed 
for.

I would appreciate your help.
Hans van der Meer

On 4 jan. 2012, at 14:23, Hans van der Meer wrote:

 I would like to include files with the following input xml-file
 
  root
file location=.. other_attributes/file
  /root
 
 In the xmlsetup for file I thought to place a call to \xmlinclude:
 
 \startxmlsetups xml:file
  \xmlinclude{#1}{.}{location}
 \stopxmlsetups
 

___
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] Italicized text trailing space too small

2012-01-04 Thread Kip Warner
Hey list,

Text that I {\it have italicized} trails too tight with the first
non-italicized word that is typeset next. I'm sure there is some ConTeXt
command that adjusts this that I am unfamiliar with.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Not wanted hidden spaces when you compress fonts

2012-01-04 Thread Jan Heinen

Hello,

if I compress a font, there are suddenly hidden spaces 
between words.
You can't see the spaces in the PDF, but when you copy the 
text from the PDF to an editor you can see the spaces.
And when you search for a word (with hidden spaces) in the 
PDF, the word can't be found.


This is the result when you copy the text from the PDF into 
an editor: The quick brow n fox jum ps over the lazy dog.

There is a space in brow n and one in jum ps.
When you search for brown in the PDF you get no result.

Here is an example:


\definefontfeature[cond][default][extend=0.8]
\usemodule[simplefonts]
\setmainfont[Allerlight][features=cond]

\starttext
The quick brown fox jumps over the lazy dog.
\stoptext


How to get rid of this hidden spaces?

Regards
Jannis

___
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] Italicized text trailing space too small

2012-01-04 Thread Aditya Mahajan

On Wed, 4 Jan 2012, Kip Warner wrote:


Text that I {\it have italicized} trails too tight with the first
non-italicized word that is typeset next. I'm sure there is some ConTeXt
command that adjusts this that I am unfamiliar with.


\italiccorrection or \/

Usage:

{\it text \italiccorrection}

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___