[NTG-context] strange index behaviour with entries inside separatedlist

2013-04-12 Thread WolfgangZ

Hello,
I get wrong list entries when using my register entries inside separate 
lists. Example case included, even if it is a bit longer. For 
explanation, I have two lists, the correct index is in section 1.2 in 
the attached example and printed on page 3 (see test.pdf). The one that 
causes trouble is set in section 1.3 (green table) and printed on page 
5. There the index links to page 4 instead of page 1, on which the entry 
is placed.


The example gets more strange, as the wrong index entries only occurs if 
there is no regular text below the table in section 1.3. For testing you 
can uncomment line 70 in file test.tex.


I hope anyone can help to explain that functionality.
Best regards
Wolfgang



test.pdf
Description: application/as400attachment
\setupinteraction[state=start]
\usemodule[database]%
\mainlanguage[de] % for hyphenation
\setupbodyfont[sans,10pt]
\setuppagenumbering[alternative=doublesided] %sets doublesided print
\setuplayout[topspace=14.5mm,header=12mm,backspace=22.5mm,footer=12.6mm,height=258.2mm,
 footerdistance=4.3mm, 
rightmargin=41.05mm,headerdistance=0mm,leftmargin=6.3mm,width=131.7mm,location=doublesided,grid=yes,doublesided=yes]
% colors
\setupcolors[state=start,rgb=yes]

\startsetups[MyTable]
\switchtobodyfont[8pt]
\setupTABLE[frame=off,background=color,backgroundcolor=red]
\setupTABLE[column][1][width=44.25mm,align=right]%,style=bf
\setupTABLE[column][2][width=broad,align=right]
\stopsetups

\defineseparatedlist
  [MyTable]
  [separator=tab,
   left=\bTD,right=\eTD,
   first=\bTR,last=\eTR,
   before=\bTABLE,after=\eTABLE,
   setups=MyTable]
   
\startsetups[MyTableWrong]
\switchtobodyfont[8pt]
\setupTABLE[frame=off,background=color,backgroundcolor=green]
\setupTABLE[column][1][width=15.0mm,align=right]%,style=bf
\setupTABLE[column][2][width=broad,align=right]
\setupTABLE[column][3][width=17.0mm,align=right]
\setupTABLE[column][4][width=17.0mm,align=right]
\setupTABLE[column][5][width=25.0mm,align=right]
\stopsetups

\defineseparatedlist
  [MyTableWrong]
  [separator=tab,
   left=\bTD,right=\eTD,
   first=\bTR,last=\eTR,
   before=\bTABLE,after=\eTABLE,
   setups=MyTableWrong]

\defineregister[Correctliste][style=slanted,pagestyle=bold,indicator=no]
\setupregister[Correctliste][coupling=yes]
 \def\Listright#1{\Correctliste{#1}{#1}}

\defineregister[Wrongliste][style=slanted,pagestyle=bold,indicator=no]
\setupregister[Wrongliste][coupling=yes]
 \def\Listwrong#1{\Wrongliste{#1}{#1}}

 
 
\chapter{F3\\ asdf asdf asdf asdf}

\section{Section}
\language[DE]
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf

asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf 
asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf
\section{Liste Right}
\Listright{Fux}; \Listright{Zha} 
These entries get correct page references.

\section{Liste Wrong}
\startMyTableWrong
V001\Listwrong{ListEntry1}  09.12.2005  01.01.3000  text
V002\Listwrong{Listentry2}  01.01.2004  01.01.3000  text
\stopMyTableWrong

% These entries are wrong, only in case that there is no further text line 
below. For testing, uncomment this line. 

\section{Details}
 
\startMyTable
Anm:ABC
Andatum:5/10/1994
Anummer:08/545,845
Pub:
Pubnummer:  
Ert:12/23/1997
Ertnummer:  5,700,527
\stopMyTable

\startMyTable
Anm:LL
Andatum:5/10/1994
Annummer:   2303
Pub:3/6/1996
Pubnummer:  0699257
Ert:1/8/1997
Ertnummer:  257B1
\stopMyTable


\chapter{Index: Correct}
\placeregister[Correctliste]
  
\chapter{Index: Wrong}
\placeregister[Wrongliste]
___
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] strange index behaviour with entries inside separatedlist

2013-04-12 Thread WolfgangZ

Am 12.04.2013 10:29, schrieb Wolfgang Schuster:


Am 12.04.2013 um 08:10 schrieb WolfgangZ wol...@gmx.net:


Hello,
I get wrong list entries when using my register entries inside separate lists. 
Example case included, even if it is a bit longer. For explanation, I have two 
lists, the correct index is in section 1.2 in the attached example and printed 
on page 3 (see test.pdf). The one that causes trouble is set in section 1.3 
(green table) and printed on page 5. There the index links to page 4 instead of 
page 1, on which the entry is placed.

The example gets more strange, as the wrong index entries only occurs if there 
is no regular text below the table in section 1.3. For testing you can 
uncomment line 70 in file test.tex.


Put the text before the index entry in your definition in \Listwrong the output 
is correct:

   \define[1]\Listwrong{#1\Wrongliste{#1}}

Wolfgang


Great, this solves the problem! Is it possible to explain the reason for 
the behavior of context to the order of the text entry and the command?


Many thanks for the quick reply.
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
___


[NTG-context] Problem with local installation - MKIV- register

2013-04-01 Thread WolfgangZ

Hello,
I have a problem with a using a register in my local installation 
(MKIV). The minimal example works on contextgarden.


The example:
\defineregister[Erf][Erflist]
\starttext
\chapter{F53667}
Hello world!
\Erf{Bla} Fool
\page
\placeregister[Erf]
\stoptext


The error I get:
mtx-context | run 1: luatex 
--fmt=D:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en 
--jobname=test1
 
--lua=D:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776f
b1556f32e/formats/luatex/cont-en.lui --no-parse-first-line 
--c:currentrun=1 --c
:fulljobname=./test1.tex --c:input=./test1.tex --c:kindofrun=1 
--c:maxnofrun

s=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.77.0-2013033008 (rev 4622)
 \write18 enabled.
(D:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.03.29 01:03 MKIV  fmt: 2013.4.2  int: english/english

system   'cont-new.mkiv' loaded
(D:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   files  jobname 'test1', input 'test1', result 'test1'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(test1.tex{D:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown library 'loc'
{D:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{D:/context/tex/texmf/fonts
/map/dvips/lm/lm-rm.map}
fonts'fallback modern rm 12pt' is loaded
structuresectioning  chapter @ level 2 : 0.1 - F53667
backend  xmp  using file 
'D:/context/tex/texmf-context/tex/context/bas

e/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
! Missing number, treated as zero.
log
system   tex  error on line 8 in file test1.tex: Missing 
number, treat

ed as zero ...


to be read again

\strc_registers_place ...\registerparameter \c!n 
  \plusone 
\startcolumns [\c...

\syst_helpers_double_empty_one_spaced ...1[{#2}][]

to be read again
\stoptext
l.8 \stoptext

?


Any help is welcome.
Best regards
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
___


[NTG-context] setuphead and newline

2012-10-25 Thread WolfgangZ

Hello,
I'm trying to insert a newline between the number and the head text 
(chaper). Where do I have to put the \crlf ?


It sohould look like:

1
This is the chapter text


Many thanks in advance
WolfgangZ


___
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] off topic: page numbering question

2009-03-14 Thread WolfgangZ

Hi,

my question is not directly related to context, so please excuse.

In my document I have even before the abstract the summary in 2 
languages. Then the TOC (table of contents), then list of symbols which 
is followed by the introduction.


But where do I start with page number 1?
 - at the very beginning?
 - at the TOC (earlier pages get then numbered I, II, III, ...
 - at the introduction?

A last question, is it common to add the two summaries in the TOC or to 
start with the list of symbols?


Or are there no rules at all and I can do it as I like?

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


[NTG-context] also install problems (luatex)

2007-08-10 Thread WolfgangZ

Hi,

I also don't manage to install luatex. I've downloaded the mswincontext 
and unzipped it to c:\context

1. I run setuptex
2. texexec --make --all --luatex
(no output on the command line)
3. luatools --generate
the output is attached below
4. luatools --ini --compile --verbose cont-en
the logfile is attached as well

when I now try to compile a file texexec --verbose --luatex 
demo-tex.tex gives no output to the command line and also no pdf.


What do I miss? Any help is welcome.

Wolfgang





output of luatools --generate:

LuaTools | loading C:/context/tex/texmf-local/web2c/texmf.cnf
LuaTools | preparing configuration in 
c:/temp/temp/luatex-cache/context/a713a4d4

d29da09b61573facbe2412d6/trees/7dbf38777f3ccb5b0aa565d63d610cba.tma
LuaTools | saving configuration in 
c:/temp/temp/luatex-cache/context/a713a4d4d29

da09b61573facbe2412d6/trees/7dbf38777f3ccb5b0aa565d63d610cba.tma
LuaTools | compiling configuration to 
c:/temp/temp/luatex-cache/context/a713a4d4

d29da09b61573facbe2412d6/trees/7dbf38777f3ccb5b0aa565d63d610cba.tmc
LuaTools | locating list of C:/context/tex/texmf-mswin
LuaTools | locating list of C:/context/tex/texmf-project
LuaTools | locating list of C:/context/tex/texmf-fonts
LuaTools | locating list of C:/context/tex/texmf-local
LuaTools | locating list of C:/context/tex/texmf-extra
LuaTools | locating list of C:/context/tex/texmf
LuaTools | scanning path C:/context/tex/texmf-fonts
LuaTools | 532 files found on 45 directories
LuaTools | scanning path C:/context/tex/texmf-local
LuaTools | 1475 files found on 138 directories
LuaTools | scanning path C:/context/tex/texmf-extra
LuaTools | 19 files found on 17 directories
LuaTools | scanning path C:/context/tex/texmf
LuaTools | 5167 files found on 197 directories
LuaTools | preparing files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/2158914af1375d1927bd588f60e574a9.tma
LuaTools | saving files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b615

73facbe2412d6/trees/2158914af1375d1927bd588f60e574a9.tma
LuaTools | compiling files to 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/2158914af1375d1927bd588f60e574a9.tmc
LuaTools | preparing files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/fdf3b5ef3615ec0d3748717b3083bf70.tma
LuaTools | saving files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b615

73facbe2412d6/trees/fdf3b5ef3615ec0d3748717b3083bf70.tma
LuaTools | compiling files to 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/fdf3b5ef3615ec0d3748717b3083bf70.tmc
LuaTools | preparing files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/5034ac9f9b8a3a15480b7c504459c7b2.tma
LuaTools | saving files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b615

73facbe2412d6/trees/5034ac9f9b8a3a15480b7c504459c7b2.tma
LuaTools | compiling files to 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/5034ac9f9b8a3a15480b7c504459c7b2.tmc
LuaTools | preparing files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/b3d332474d5e937802e53719e5cfa153.tma
LuaTools | saving files in 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b615

73facbe2412d6/trees/b3d332474d5e937802e53719e5cfa153.tma
LuaTools | compiling files to 
c:/temp/temp/luatex-cache/context/a713a4d4d29da09b

61573facbe2412d6/trees/b3d332474d5e937802e53719e5cfa153.tmc
LuaTools |
LuaTools | runtime: 1.792 seconds
This is luaTeX, Version 3.141592-beta-0.10.1-2007080810 (Web2C 7.5.6) (INITEX)  
9 AUG 2007 11:00
**C:/context/tex/texmf-local/tex/context/base/cont-en.tex \dump
(C:/context/tex/texmf-local/tex/context/base/cont-en.tex 
(C:/context/tex/texmf-local/tex/context/base/context.tex 
(C:/context/tex/texmf-local/tex/context/base/syst-pln.tex
\maxdimen=\dimen10
\hideskip=\skip10
\centering=\skip11
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\interdisplaylinepenalty=\count23
\interfootnotelinepenalty=\count24
\bigskipamount=\skip13
\medskipamount=\skip14
\smallskipamount=\skip15
\normalbaselineskip=\skip16
\normallineskip=\skip17
\normallineskiplimit=\dimen13
\jot=\dimen14
\mscount=\count25
\tabs=\box11
\tabsyet=\box12
\tabsdone=\box13
) (C:/context/tex/texmf-local/tex/context/base/syst-prm.tex) 
(C:/context/tex/texmf-local/tex/context/base/luat-env.tex) 
(C:/context/tex/texmf-local/tex/context/base/luat-lib.tex) 
(C:/context/tex/texmf-local/tex/context/base/syst-cat.tex 
(C:/context/tex/texmf-local/tex/context/base/syst-cat.mkiv)) 
(C:/context/tex/texmf-local/tex/context/base/syst-etx.tex) 
(C:/context/tex/texmf-local/tex/context/base/syst-pdt.tex) 
(C:/context/tex/texmf-local/tex/context/base/syst-omg.tex) 
(C:/context/tex/texmf-local/tex/context/base/syst-xtx.tex) 
(C:/context/tex/texmf-local/tex/context/base/syst-mtx.tex) 
(C:/context/tex/texmf-local/tex/context/base/syst-gen.tex
loading : Context System Macros / General
) 

Re: [NTG-context] how to use a \framed for a hyperlink

2007-07-16 Thread WolfgangZ
Wolfgang Schuster schrieb:
 2007/7/15, WolfgangZ [EMAIL PROTECTED]:
 Hello,

 how can I use a the background of a framed for a hyperlink? I wan't to
 achive that the area (of a colored box) is handled as link.

 Many thanks
 Wolfgang
 
 \setupinteraction[state=start]
 
 \defineoverlay[knuthref][\overlaybutton{sec:knuth}]
 
 \starttext
 
 \section[sec:knuth]{Knuth}
 
 \input knuth
 
 \page
 
 \button{Knuth}[sec:knuth]
 
 \button[width=4cm,height=2cm]{Knuth}[sec:knuth]
 
 \framed[width=4cm,height=2cm,background=knuthref]{Knuth}
 
 \stoptext
 
 Wolfgang

Hello Wolfgang

your example inspired me to searche a bit more and I found a solution 
for what I wanted to achive:

\setupinteraction[state=start]

\useURL[ntg-www] [http://www.ntg.nl]


\starttext

\gotobox{\framed[width=4cm,height=4cm]{gotobox}}[URL(ntg-www)]

\stoptext


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


[NTG-context] additional blank line in starttyping environment

2007-07-15 Thread WolfgangZ
Hi,

I get an extra blank line at the beginning of the starttyping 
environment. How do I get rid of it?
See the huge space top of the line BYTEORDER M:

\setupcolors[state=start]

\starttext
\startbuffer[1arc]
\starttyping
BYTEORDER M
LAYOUT BIL
NROWS 3601
NCOLS 3601
NBANDS 1
NBITS 16
BANDROWBYTES 7202
TOTALROWBYTES 7202
BANDGAPBYTES 0
NODATA -32768
ULXMAP $ULXMAP
ULYMAP $ULYMAP
XDIM 0.000278
YDIM 0.000278
\stoptyping
\stopbuffer


\framed[width=6cm,frame=off,align=flushleft,background=color,backgroundcolor=red]{\getbuffer[1arc]}
\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] how to use a \framed for a hyperlink

2007-07-15 Thread WolfgangZ
Hello,

how can I use a the background of a framed for a hyperlink? I wan't to 
achive that the area (of a colored box) is handled as link.

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


Re: [NTG-context] additional blank line in starttyping environment

2007-07-15 Thread WolfgangZ
Peter Münster schrieb:
 On Sun, 15 Jul 2007, WolfgangZ wrote:
 
 I get an extra blank line at the beginning of the starttyping 
 environment. How do I get rid of it?
 
 The cause of the problem seems to be the align=flushleft.
 Workaround: \vskip-\lineheight
 
 Minimal example, showing the problem and the workaround:
 
 \setupcolors[state=start]
 \setuptyping[before=,after=]
 \startbuffer
 BYTEORDER M
 \stopbuffer
 \starttext
 \framed[background=color,backgroundcolor=red]{\typebuffer}
 \framed[align=flushleft,background=color,backgroundcolor=red]{\typebuffer}
 \framed[align=flushleft,background=color,backgroundcolor=red]{%
   \vskip-\lineheight\typebuffer}
 \stoptext
 
 Cheers, Peter
 

It seemd that I needed align=flushleft to get the lines of the buffer 
correctly and not without any line break at all.

Many thanks for your help
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___