[NTG-context] New STIX font version

2011-10-07 Thread Tobias Burnus

Hi all,

you might be interested in hearing that there is a new there is a new 
version of the STIX fonts (since 1h ago) - or rather a beta version: 
1.1.0-beta1. See: 
http://sourceforge.net/projects/stixfonts/files/STIXv1.1.0-beta1.zip/download


The beta period will remain open until December 1, 2011. - Thus, one 
has still 5 months time to comment on the bugs. (Or are that two moths? 
With STIX ETA one never knows ...)


As reminder: STIX fonts 
(http://en.wikipedia.org/wiki/STIX_Fonts_project) are a large collection 
of Times-like math fonts, created by several publishing houses in a 
rather slow process. A year ago, 1.0 was relased and now with 1.1b1 is 
finally released. Seemingly, one can now use it directly such that one 
does not need the XITS fonts anymore. (Cf. http://typophile.com/node/71171)


From the release notes:

What is new in this release?
The original Version 1.0 STIX was packaged as 29 distinct font files. 
Version 1.1.0-­‐beta1 provides the same set of
glyphs packaged as a set of 4 text fonts and 1 symbol font. This new 
packaging will facilitate the use of the font on more
desktop applications, and will specifically allow the symbol font to be 
used in recent versions of the Microsoft Word Equation Editor.


In addition, an update was made to address compatibility issues between 
the font set and the Windows PostScript driver.


Besides those changes, some a (very) few glyphs have been added and some 
smaller changes have been done.


Tobias
___
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] [OT] xkcd Knuth

2010-11-08 Thread Tobias Burnus

On 11/08/2010 01:07 PM, Martin Schröder wrote:

2010/11/8 Mojca Miklavecmojca.miklavec.li...@gmail.com:

http://www.xkcd.com/816/


Don't miss the tool tip to the comic! (Put the mouse pointer over the 
image and wait a second or so - then the browser should should show a 
tool tip.)



Nice. :-)
But Don doesn't write checks in US$ anymore. :-)


I think if one really insists, one can also get real cash (I shall do 
my best to find a suitable way to send money to anyone who really 
prefers legal tender). Cf. 
http://sunburn.stanford.edu/~knuth/news08.html and 
http://en.wikipedia.org/wiki/Knuth_reward_check


Tobias
___
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] ConTeXt name/branding

2010-04-27 Thread Tobias Burnus
On 04/27/2010 10:48 AM, Mojca Miklavec wrote:
 On Tue, Apr 27, 2010 at 10:27, Patrick Gundlach wrote:
   
 Hi Scott,

 that's a good idea, we should rename it to 'latex 3'. That name is still 
 free and it would fill the expectations of almost all TeX users out there.
 
 +1
   
I think you err. LaTeX 3 is already taken
(http://www.latex-project.org/latex3.html) - how about LaTeX IV?

Tobias
___
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] ConTeXt minimals: Issue with file.iswritable and 'Cg'

2009-11-04 Thread Tobias Burnus
I use contextgarden.net/minimals/ and the following problems showed up
after an update.

a) file.iswritable(cachepath)  failed. The directory is writable for the
user but not for others. I have not debugged why it failed. Affected
file: tex/texmf-linux/bin/luatools

b) bin/mtxrun failed at line 5013: Somehow my lua(tex) did not digest
the Cg:
protocol = Cg(V(letters),protocol) * P(://) +
Cg(Cc(nil),protocol),

tex/texmf-linux-64/bin/mtxrun:5013: attempt to call local 'Cg' (a nil value)

Any ideas? (I removed the readable check as work around and changed the
Cg to P as quick work around.)

Tobias

PS: I use Fedora 6, which is the dated but centrally installed Linux here.
___
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] ConTeXt minimals: Issue with file.iswritable and 'Cg'

2009-11-04 Thread Tobias Burnus
On 11/04/2009 10:44 AM, Taco Hoekwater wrote:
 Tobias Burnus wrote:
   
 I use contextgarden.net/minimals/ and the following problems showed up
 after an update.
 
 Neither problem happens here, so I suspect that your 'texlua' is still
 an older version (didn't get updated somehow). What does 'texlua
 --version' output?
   

Good point: context/tex/texmf-linux/bin/luatex missed an executable bit
-- and surprisingly there is a /usr/local/TeX/bin/i386-linux/texlua
build 915, created on 20071128T092554Z, which gets picked up instead.

The problem is that running
  sh first-setup.sh --extras=t-letter,t-mathsets,t-bib
causes an rsync, which removes the executable bit and thus
./bin/mtx-update.lua --update fails again.

Could someone fix the executable bit at
rsync://contextgarden.net/minimals//bin/* ?

Thanks for the suggestion to check the texlua version.

Tobias
___
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] PDF/X-1A

2009-02-24 Thread Tobias Burnus
Antoine Junod wrote:
 Okay I did it but it is still not accepted by my printer (with no
 other details than 'not pdf/x-a1...').
You could also try to use Ghostscript with PDF/X3 option, cf.
http://pages.cs.wisc.edu/~ghost/doc/cvs/Ps2pdf.htm#PDFX

Example command is:

gs -dPDFX -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor
-sDEVICE=pdfwrite -sOutputFile=out-x3.pdf PDFX_def.ps input.ps

If I understood it correctly, one can also replace input.ps by
input.pdf.

(Note: Completely untested.)

Tobias
___
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] Context using LuaTeX - distribution packaging question

2008-10-30 Thread Tobias Burnus
Hans,

Hans Hagen wrote:
 what files are looked for depends also on env settings; but anyhow, at 
 some point mkiv/luatex might drop the cnf file
   
I think some kind of cnf file will still be necessary to tell TeX where
to look for files, though with reasonable defaults, the file would only
be created (by the user) if needed.


 /etc/texmf:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c
 
 hm, where is that set? hard coded in the binary?
   
Yes, though the exact value depends on the distribution. In openSUSE, if
I found the correct variable, it is

WEB2C = 
${TEXMFHOME}/web2c;${TEXMFSYSCONFIG}/web2c;${TEXMFSYSVAR}/web2c;$TEXMF/web2c  


How about keeping the current searching algorithm (of the luatools.lua
you have sent me) plus look additionally in $HOME/texmf/web2c/ ? I think
this is the only reasonable other place. The $HOME/texmf should have
higher precedence to allow the user to overwrite the system defaults.
(That seems to be in line with all teTeX/TeX Live distributions on
Linux, which I know.)

(Another possibility would be to access the stored strings in texlua
and use that search path; I don't know whether this is possible.)

Tobias


PS:
Peter Münster wrote:
 Would KPSE find texmfcnf.lua in $HOME/texmf/web2c ?
 From one of your previous messages, I understand that it would *not* find
 it.
   
It does - I messed up the web2c string search in the luatex binary;
there are two strings. The right one seems to be:

~/texmf/web2c:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c

___
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] Context using LuaTeX - distribution packaging question

2008-10-29 Thread Tobias Burnus
Hello,

for openSUSE there are now beta TeX Live 2008 packages available
(http://download.opensuse.org/repositories/Publishing/). [By Werner
Fink, who does also the normal openSUSE packages.]

The question is how the ConTeXt with LuaTeX should be best handled. By
default, there is no luatex-cache and no (luatex) format.

Of cause a user can do:

  export TEXMFCNF=/usr/share/texmf/web2c
  # export TEXMFCACHE=somewhere
  luatools --generate --verbose
  luatools --ini --compile cont-en

but in principle I would expect that the distribution does this already,
which saves the TEXMFCACHE per user and makes texexec --lua working
without requiring to run first all the other commands.


Questions:

a) Is the TEXMFCNF environment variable necessary or can this also be
read by a config file, which is overwritten by the environment variable?
Which scripts/executables make use of that environemt variable?

b) Is is possible -- as with kpsewhich -- to have a global cache for the
format + global directories - and local directories which have then a
higher precedence? I mean like: A global directory cache incl. the
format files plus if the user creates a $HOME/texmf tree a user
$TEXMFCACHE which contains the hashes of the user directory but such
that luatex still finds the formats in the global directory?

Tobias
___
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] Context using LuaTeX - distribution packaging question

2008-10-29 Thread Tobias Burnus
Tobias Burnus wrote:
 a) Is the TEXMFCNF environment variable necessary or can this also be
 read by a config file, which is overwritten by the environment variable?
 Which scripts/executables make use of that environemt variable?
   
I just saw that this might be possible in theory, but it fails due to
the missing symbolic link resolving:

if input.env(instance,'TEXMFCNF') ==  then
local ownpath = environment.ownpath() or .

ownpath is here /usr/bin and obvious finding texmf by moving up in
that path does not work. In

function environment.ownpath()

one need to add in

if lfs.isfile(b...exe) or lfs.isfile(b) then
ownpath = p
break

some check whether b is a symbolic link and if it is, one follows the
symbolic link until one finds the real binary; then one can use that
path for ownpath. I tried to find some Lua routine which does so, but I
couldn't find one ad hoc.  (I have also the vague feeling that the
algorithm fails for /some/directory/which/is/not/in/PATH/luatools.)

I tried lfs.symlinkattributes() (whose mode should be link) plus
posix.readlink, but I failed to get this work. (lfs.symlinkattributes
and posix are not found.)

Tobias
___
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] Context using LuaTeX - distribution packaging question

2008-10-29 Thread Tobias Burnus
Hans Hagen wrote:
 i remember that there has been some discussion about this following link 
   issue but i forgot what was the outcome

 do you test the latest binaries or the already outdated texlive ones?
   

That was TeX Live, though I don't know whether it is the SVN version or
something else. However, I compared TeX Live's luatools.lua with the one
of the latest cont-tmf.zip and they are identical.

Tobias
___
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] Context using LuaTeX - distribution packaging question

2008-10-29 Thread Tobias Burnus
Hi Hans,

Hans Hagen wrote:
 i remember that there has been some discussion about this following link 
   issue but i forgot what was the outcome
   

Can you incorporate the following patch in your cont-tmf.zip? It should
work with most Linux systems and it should not harm on other systems.

Tobias

--- /dev/shm/luatools.lua   2008-10-29 12:46:21.261006248 +0100
+++ luatools.lua2008-10-29 15:56:04.0 +0100
@@ -3053,9 +3053,16 @@
 if not lfs.isdir(file.join(ownroot,texmf)) then
 ownroot = input.normalize_name(file.join(ownpath,..))
 if not lfs.isdir(file.join(ownroot,texmf)) then
-input.verbose = true
-input.report(error, unable to identify cnf 
file)
-return
+-- On Linux installations, the file might be under 
$PREFIX/bin
+-- while the texmf tree is under 
$PREFIX/share/texmf
+if string.gmatch(ownpath, /bin$) then
+ownroot = 
input.normalize_name(file.join(ownpath,../share))
+end
+if not lfs.isdir(file.join(ownroot,texmf)) then
+   input.verbose = true
+   input.report(error, unable to identify cnf 
file)
+   return
+end
 end
 end
 local texmfcnf = 
file.join(ownroot,texmf-local/web2c,filename) -- for minimals and myself


___
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] Context using LuaTeX - distribution packaging question

2008-10-29 Thread Tobias Burnus
Hi Hans,

Hans Hagen wrote:
 you use an old luatools / luat-inp.lua;
I updated now luat-inp.lua from the latest experimental cont-tmf.zip,
however, that does not help.

a) luatools.lua does not use luat-inp.lua (and luatools.lua is up to
date in TeX Live) Thus updating does not help. (Besides, without the
texmfcnf file, luatools.lua cannot use any other file as one cannot
search for it.)

b) Following UNIX symbolic links does not seem to work under Linux. I
played around with luat-inp.lua and it does not work.

c) Werner asks: Why is the KPSE library not used? I have to agree - KPSE
uses the compile-time defaults for the path and thus should provide the
correct default TEXMFCNF directory. Afterwards, I'm fine using a
non-KPSE method. How about using KPSE as backup method if it doesn't
find a config file otherwise?


For luatex itself (contrary to luatools) there is no problem as
luatex uses the compile-time path and finds the texmfcnf file.


Back to (b): The symbolic links support in luat-inp.lua seems only to
work if your directory is a symbolic link but not if the file is a
symbolic link, e.g. foo/bin - /usr/local/bar-bin then for
foo/bin/file doing chdir(foo/bin) makes sense as then currentdir()
prints /usr/local/bar-bin but this does not work for /usr/bin/luatools
- ../share/texmf//luatools.lua as the chdir(/usr/bin) makes no
difference.

One really needs posix.readlink support, which is not in my texlua.
Or, alternative 2, if path ends in bin, try ../share/texmf as my old
patch does. Or one indeed uses KPSE:
kpse.set_program_name('luatex')
local kpse_result1 = kpse.find_file(input.luaname,'cnf',true)
local kpse_result2 = kpse.find_file(input.cnfname,'cnf')

I'm also open for other suggestions.

Tobias
___
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] Context using LuaTeX - distribution packaging question

2008-10-29 Thread Tobias Burnus
Tobias Burnus wrote:
 c) Werner asks: Why is the KPSE library not used?
   
I have a scenario which fails with the current mechanism - even if
following the sym links worked. Assume that a user only puts a texmf.cnf
under $HOME/texmf/web2c/texmf.cnf. That file will be used by luatex,
pdftex etc. but luatools will still resolve
/usr/share/texmf/.../luatools.lua if it follows $SELF.

Thus I'm in growingly in favour of using KPSE (just) for finding
texmf.cnf and texmfcnf.lua; for all other purposes including
seaching files whatever other method can be used.

Tobias
___
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] Context using LuaTeX - distribution packaging question

2008-10-29 Thread Tobias Burnus
Hi Hans,

Hans Hagen wrote:
 luat-inp.lua is merged into luatools in order to make in 'stand-alone'
   
OK, I missed that.

By the way, unless I screwed up completely, the new luatools you have
sent me work:

LuaTools | variable SELFAUTOLOC set to /usr/bin
LuaTools | variable SELFAUTODIR set to /usr
LuaTools | variable SELFAUTOPARENT set to /
LuaTools | variable TEXMFCNF set to
{$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,.local,}/web2c}
LuaTools | skipping configuration for /usr/share/texmf/web2c from
/home/tob/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5/trees/e027248d6557d124c703335e8a95ecd5

The symbolic links are not resolved, but
$SELFAUTODIR/share/texmf/web2c/ is the correct directory.


 b) Following UNIX symbolic links does not seem to work under Linux. I
 played around with luat-inp.lua and it does not work.
 
 hm, maybe taco knows ..
   
I think there is no way round but posix.readlink. However, it might be
not needed as the new, just sent luatools works.


 c) Werner asks: Why is the KPSE library not used?
 

 several reasons:
   
I agree about the KPSE shortcomings, however, just for finding
texmf.cnf KPSE should be good enough. (OK, finding texmfcnf.lua does
not seem to work well as the lua extension means that web2c is not
searched.)

 For luatex itself (contrary to luatools) there is no problem as
 luatex uses the compile-time path and finds the texmfcnf file.
 
 hm, but since luatools is ran using texlus (which is luatex) the same 
 should apply
   

I think the algorithm used to find the texmf.cnf file is different and
thus a different file is found. Your algorithm never checks
$HOME/texmf/web2c where a user could have put his file. For pdftex
$HOME/texmf/web2c has a higher precedence than /usr/share/texmf/web2c. I
assume that the same thing is true for luatex. In any case the luatex
binary contains the following string:

/etc/texmf:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c

Using KPSE the same string seems to be used to check for the config
file. But luatools uses a completely different method. As long as the
user does not have its own texmf.cnf there is no problem. (Should be the
case most of the time.) However, as soon as (s)he has, luatex and
luatools access different files!


 - make sure that luatools is run by texlua and not by lua itself
   
That seems to be the case - my lua does not know about lfs and that
works with texlua.


 - don't use a stub, just rename luatools.lua to luatools and mtxrun.lua 
 to mtxrun (so, no texmfstart like extra stubs which would slow down 
 things considerably)
   
That is done differently: luatools.lua remains like that, but
/usr/bin/luatools is a symbolic link to luatools.lua.

Tobias
___
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] UTF-8 and Sigma

2008-10-13 Thread Tobias Burnus
Hello,

using

\enableregime[utf]
\starttext
Σ, σ or ς?
\stoptext

with pdftex prints Σ, σ or σ? (but the latter should be a \varsigma
and not a \sigma). And with LuaTeX the result is even Σ, or ?, i.e.
the small sigmas disappear completely.

Can this be fixed, even though the proper way would be to use a
different font?

Tobias

___
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] modules for TeX Live 2008

2008-07-04 Thread Tobias Burnus
Hi,

Mojca Miklavec wrote:
 Which modules are needed for TeX Live 2008?
   
Talking about modules: Can the current m-bib be included in cont-tmf and 
thus in TeX Live? I recently updated cont-tmf and had then to update 
m-bib to get bibtex correctly working again.

Another side question: What is with 
http://modules.contextgarden.net/nath ? Clicking the directory link. all 
ConTeXt modules are shown, but I *cannot find* that module. I find two 
files - but only if I click on the CTAN link.

Tobias

___
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] Last attempt: numbered margin notes in ConTeXt?

2008-06-05 Thread Tobias Burnus
Hi Joachim,

Joachim Kreimer-de Fries wrote:
 bla bla bla \mnote[foo]{xxx} bla bla bla
 
 Has the [foo] after the first \mnote any relevance and which?
   
Preremark: Usually, in ConTeXt, text in curly braces is printed and in 
brackets is not.

In this case, \mnote{xxx} and \mnote[foo]{xxx} print the same, but you 
defined a label foo, which you can access later like in See in my 
margin note 1 on page 22.

 in \in {note} [foo]
 
 in my pdf-output this appears as :

 in note 2
Well, this is exactly the purpose, if you want to refer to a previous 
margin note, you can access it again. \in[foo] prints the margin-note 
number. And \in{note}[foo] prefixes it with the word note. If you 
have an setup interactivity, you can click on note 2 and jump to the note.

It might well be that you do not need that feature, but sometimes it 
might becomes handy.

Tobias
___
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] \front/backmatter etc. and page number

2008-05-02 Thread Tobias Burnus
Hello,

I use frontmatter with roman and bodymatter with arabic numerals. The 
problem is that the last (nonempty verso) page of the frontmatter 
already gets the header and the page number of the bodymatter. Any idea?

Tobias


\setuppagenumbering[alternative=doublesided, location={footer,right}]
\setupsectionblock[frontpart][page=]
\setupsectionblock[bodypart][page=]
\setupsectionblock[backpart][page=]
\setupsectionblock[appendixpart][page=]

\startfrontmatter
   \setuppagenumbering[conversion=romannumerals]
   \setuppagenumber[number=1,state=start]
 \chapter{something}
...
%  --- Last page gets already page number 1 and the headings 
(Chapter:) of the bodymatter.

\stopfrontmatter

\startbodymatter
   \setupheadertexts

[][{\start\setupselector[header][n=1]\getmarking[sectionnumber]~\getmarking[section]\stop}]
[{\start\setupselector[header][n=1]Chapter 
\getmarking[chapternumber]: \getmarking[chapter]\stop}][]
   \setuppagenumbering[conversion=numbers]
   \setuppagenumber[number=1,state=start] % Bad workaround: number=0
   \setuphead[chapter][number=yes]

\chapter{something else}
___
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] Line break and \in{....}[] command; bookmarks

2008-05-01 Thread Tobias Burnus
Hi all,

I use
   \definereferenceformat[insection][text=Section]
however, sometimes the item is that long that
   Section
  5.5 ..
looks much nicer than a 5.5 sticking out of the margin. Is there a 
possibility to allow a line break between the text and the number?

Secondly, I want to use acroread's bookmarks. But I have two problems:

a) I failed to create a bookmark for the title page. What is the best 
way to do so? Currently, I use:
\startmakeup[standard][doublesided=no,page=right]
...
\stopmakeup


b) Somehow the bookmark list goes wrong. I have:
\placebookmarks[chapterEP,chapter,section,subsection]
where chapterEP is a specially designed version of \chapter but should 
be on the same level. First, everything goes nice, but then a chapterEP 
becomes a descendant of another chapterEP. I have no idea how I can 
reduce the problem to a small example or how to fix it. Any idea?

...
chapterEP
  section
 subsection
 subsection
  section
 subsection
 subsection
chapterEP
  section
  section
chapterEP
  section
  chapterEP --- Wrong!
 section
 section
  chapterEP (still wrong level)
 section
 section
 chapterEP -- Another wrong level)
 chapterEP (still wrong level)
  chapterEP (still wrong level, but one less)
  chapterEP (still wrong level)
chapterEP -- OK again
chapterEP

Tobias
___
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] Indention problem after formula

2008-04-20 Thread Tobias Burnus
Hi all,

how does one get an indention after a formula? The last paragraph shall 
be indented, but it is not. Any idea?

Tobias

\setupindenting[yes,1em,first]
\starttext
We start with a formula,
\placeformula
\startformula
a^2+b^2=c^2,
\stopformula
\noindent which was found by a Greek; it can also be written as
\placeformula
\startformula
a^2+b^2-c^2 = 0.
\stopformula

\indent Here, a new paragraph shall begin -- indented!
\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] t-bib and interactivity for url= and doi=

2008-04-17 Thread Tobias Burnus
Tobias Burnus wrote:
  Taco Hoekwater wrote:
 I can fix that pretty easily, but a small real-life testfile will be 
 helpful, also for the DOI problem.  
 See attached TeX file.
Here is it again. Any idea? (Sorry for the length, but 
\setuppublicationlayout and \startpublication make it a bit lengthy.) 
See typset text in the TeX file (very bottom of this mail) about how the 
issues; I verified with ConTeXt Live (pdfeTeX and LuaTeX) that it is not 
a local problem.

Thanks,

Tobias

%

\usemodule[bib]
\setupinteraction[state=start]
\setupurl[style=,urlspace=yes]
\chardef\urlhyphenmethod=1 % Hyphenate very agressively (=1), use =0 for default

\setuppublications[alternative=aps,interaction=start]
\setuppublications[numbering=yes,refcommand=num]

\setuppublicationlist[
width=3in,
authoretallimit=40,
editoretallimit=40,
artauthoretallimit=40,
interaction=start]

\unprotect
\setuppublicationlayout[article]{%
   \insertartauthors{}{ }{\insertthekey{}{ }{}}%
   \insertarttitle
{\unskip, \bgroup\it }%
{\/\egroup }{}%
   \insertjournal{\unskip, \bgroup }{\egroup}
{}% \insertcrossref{In }{}{}}%
   \insertvolume
{  \bgroup \bf }
{\egroup %\insertissue{(}{)}{}%
 \insertfirstpage{, }{}{}}
{\insertfirstpage{ }{}{}}%
   \insertpubyear{ (}{). }{\unskip.}%
   \insertdoi{ DOI: }{.}{}%
   \insertbiburl{ }{.}{}%
   \insertNote{ }{.}{}%
   \insertcomment{}{.}{}%
}
\protect

\startpublication[k=Almbladh1985,t=article,
a={{Almbladh},{von Barth}},y=1985,o={10.1103/PhysRevB.31.3231},
n=21,s=AvB85]
\artauthor[]{C.-O.}[C.-O.]{}{Almbladh}
\artauthor[]{U.}[U.]{von}{Barth}
\pubyear{1985}
\arttitle{Exact results for the charge and spin densities, exchange-correlation
  potentials, and density-functional eigenvalues}
\journal{Physical Review B}
\volume{31}
\issue{6}
\pages{3231-3244}
\doi{10.1103/PhysRevB.31.3231}
\stoppublication


\starttext
Let's cite it \cite[Almbladh1985]. The following should write
\quote{DOI:10.1103/PhysRevB.31.3231}, but it is prefixed by
\quote{http://dx.doi.org/}:
\cite[alternative=doi,left={DOI:},right=][Almbladh1985]

But my actual problem is \dots

\subsection{References}
\dots that the following DOI link does not work:

\placepublications[criterium=chapter]
\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] t-bib and interactivity for url= and doi=

2008-04-12 Thread Tobias Burnus

Taco Hoekwater wrote:

Tobias Burnus wrote:
  
in principle, I expect that with the following setup I should be able to 
click on a DOI or on a URL, however, somehow they do not seem to be 
interactive 


It turns out that only \cite[url] is interactive in the current
version of the module. I can fix that pretty easily, but a small
real-life testfile will be helpful, also for the DOI problem.
  

See attached TeX file.

Tobias


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


Re: [NTG-context] t-bib and interactivity for url= and doi=

2008-04-12 Thread Tobias Burnus
Tobias Burnus wrote:
 in principle, I expect that with the following setup I should be able 
 to click on a DOI or on a URL, however, somehow they do not seem to be 
 interactive
Another item one could make interactive is the ISBN number; contrary to 
the DOI and the URL there is no true canonical place, however, WorldCat 
(as used below) is in my opinion a sensible choice. (WorldCat is 
operated by OCLC, in which 60,000 libraries from 112 countries are members.)

\def\gotoISBN#1{\useURL[bibfoo1][#1]%
   \useURL[foo2][http://www.worldcat.org/search?q=kw:#1]%
   \goto{\url[foo1]}[url(foo2)]}


Tobias
___
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] t-bib: URL and '%'; spacing between number and text

2008-04-12 Thread Tobias Burnus
Taco Hoekwater wrote:
 I'll try to work out something that does not need to grab
 all of its argument, so that this hack can be removed again.
   
I have a problem with your fix. As I just found out, with that fix, not 
only the % in the bib/bbl are printed (as intended), but also the % in 
the TeX file, i.e. all the sections I commented out now appear - 
prefixed by a %.

Tobias


PS: Your fix was:

% start fix
\unprotect
\def\dousepublications#1%
  {\doonlyonce
 {#1.\f!bibextension}
 {\readfile{#1.\f!bibextension}
 {\catcode`\%=12
  \showmessage\m!bib{4}{#1.\f!bibextension}}
 {\showmessage\m!bib{2}{#1.\f!bibextension
\protect
% end fix
___
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] t-bib and interactivity for url= and doi=

2008-04-11 Thread Tobias Burnus
Hi,

in principle, I expect that with the following setup I should be able to 
click on a DOI or on a URL, however, somehow they do not seem to be 
interactive - and the DOI does not seem to be hyphenated agressively as 
it sometimes extends beyond the page margin. Any idea?

I use the following settings (without \startenvironment etc.)

\setupinteraction[state=start]
\usemodule[bib]
\setuppublications[alternative=aps]
\setuppublicationlist[interaction=start]

\chardef\urlhyphenmethod=1 % Hyphenate very agressively (=1), use =0 for 
default

\unprotect
\setuppublicationlayout[article]{%
[...]
   \insertdoi{ DOI: }{.}{}%
   \insertbiburl{ }{.}{}%
}
\unprotect


Tobias
___
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] t-bib: URL and '%'; spacing between number and text

2008-04-04 Thread Tobias Burnus

Taco Hoekwater wrote:

Does this fix I wrote (back in September) actually work?

% start fix
\unprotect
\def\dousepublications#1%
  {\doonlyonce
 {#1.\f!bibextension}
 {\readfile{#1.\f!bibextension}
 {\catcode`\%=12
  \showmessage\m!bib{4}{#1.\f!bibextension}}
 {\showmessage\m!bib{2}{#1.\f!bibextension
\protect
% end fix

It does not seem to work here :-(
  url = {{foo}}
becomes now {foo} instead of foo but the % causes still a TeX 
error and the \% is printed as \%.


The attached test case uses \% but replacing it by \% causes TeX errors. 
(publication block as found in the bbl file.)



Not too hard, if you don't mind editting the bib / bbl a bit;
making it truly automatic and still configurable would be hard.
Example attached.
It does not seem to work here. I get Is cited at .  (This is with the 
latest cont-tmf.tex and pdfetex of TeX Live 2007 as distributed by 
openSUSE.)


Do I have an too old pdfeTeX version or do I need to do something else 
than just TeXing the file?



Thanks,

Tobias


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


Re: [NTG-context] t-bib: URL and '%'; spacing between number and text

2008-04-04 Thread Tobias Burnus

Taco Hoekwater wrote:

It does not seem to work here :-(


It redefines the bbl loader, so inlined \startpublication blocks
will not work. It should work if your publications are in the bbl
file.
  


OK. That works for my minimal example, though I have to postprocess the 
*.bbl file as BibTeX converts longline into


long%
line

which of cause gives the wrong result here. I use perl for this, which 
seems to work just fine and has, as I believe, no side effects:


$line =~ s/%\n//sg;


However, it fails with my big file (see attachment for a reduced 
example). If I simply include the file without using \environment etc., 
it works. Any idea?




Not too hard, if you don't mind editting the bib / bbl a bit;
making it truly automatic and still configurable would be hard.
Example attached.
  

Now it works well. Thanks.


* * *

I have another tricky question related to t-bib: I want to use in the 
text references of the type [1-2], [3] and at the end of each chapter I 
do a \placepublication[criterium=chapter], however, at the very end I 
want to have a full authorlist ordered by authoryears (with the page 
numbers). Well, I failed to switch to authornames -- I always get a 
numbered list at the end.


Tobias


test2b.tex
Description: TeX document


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


Re: [NTG-context] How to make an epigragh?

2008-04-03 Thread Tobias Burnus
[EMAIL PROTECTED] wrote:
 I want to do an epigraph (a small quotation with an identationation  
 of, say, 6 or more cm)  the beginning of a chapter: How I can I do it?  
 (sorry but didn't understand it from the manuals.
   
I did it in my theses like described in 
http://wiki.contextgarden.net/Extended_description
Hope it helps.

Tobias
___
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] t-bib: URL and '%'; spacing between number and text

2008-04-03 Thread Tobias Burnus
Hello Taco,

Taco Hoekwater wrote:
 Tobias Burnus wrote:
   
 The problem is: If I do not escape the % signs, I get a TeX error. If I 
 escape them with \%, both the link and the printed text show the 
 backslash. What is the proper way of doing it?
 
 Yikes. There is no 'proper way' afaik, sorry.
 I am busy catching up right now, so I have no time to delve into this
 for the next few days. You will probably have to remind me (end of the 
 week?)
   
OK: * Ping * ;-)

 * * *

I saw in a book some quite interesting author index. It consisted of the 
references followed by the page number(s):

Lastname, A. and B. Smith, My Journal, 44, 1234 (2020).33, 47, 77

How difficult would it to get it with t-bib? The page numbers would be 
simply the pages where the reference was \cite[]ed.

 * * *

For those, who do not yet know it and are interested: TUG is 
participating in Google Summer of Code, for which the (extended) 
application deadline is next Monday. See also 
http://www.tug.org/gsoc/ideas.html (There are some nice ConTeXt and 
LuaTeX projects listed.)   Taco of cause know more about this ;-)
(While I know more about GCC [and especially gfortran], which had a slow 
start but now 19 fair to excellent applications.)

Tobias
___
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] Applelaserwriter 360 - Any suggestion for good replacement?

2008-03-27 Thread Tobias Burnus
Hans Hagen wrote:
 if i had to decide now, i'd also look into 
 ink jet printers since they're getting fast too and i may decide to go 
 for an xerox.com phaser-8860 (solid ink) since toner often looks like crap
   
We have a Phaser 8400DP here and I find the output not as sharp (text) 
as with our b/w HP LaserJets. (I sometimes see some dotted ghost lines 
at some places; I don't know where they come from.) Additionally, I 
think it uses a lot of solid ink when turned on. This might be not a 
problem for the office where it is always on (like here, including 
during the night), but for home that would be not the right thing. ;-)  
Otherwise, I find the solid ink (which reminds me on wax crayon) quite 
nice to handle, it works quite well with also more complicated files and 
the colors look quite nice.

Tobias
___
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] t-bib: URL and '%'; spacing between number and text

2008-03-26 Thread Tobias Burnus
Hi all,

I have a .bib file which contains

@article{foo,
  url = {http:///a%bb%cc.html}

i.e. an URL with % sign. I want to typeset it in the references using:

\def\gotoURL#1{\useURL[foo][#1]\goto{\url[foo]}[url(foo)]}

\unprotect
\setuppublicationlayout[article]{%
...
   \insertbiburl{ }{.}{}%

The problem is: If I do not escape the % signs, I get a TeX error. If I 
escape them with \%, both the link and the printed text show the 
backslash. What is the proper way of doing it?


Another problem is that I have in the reference list, the space between 
] and the author name in
 [123]Author
is too small (they overlap). Is there an easy possibility to make the 
spacing automatically right or does one need to tweek it manually?

Tobias


___
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] \useattachment: Embedding files in PDFs

2008-01-04 Thread Tobias Burnus
Hi all,

I can use \useattachment to embed/attach files in a PDF file. I can use:

\useattachment[whatever][title][newname][test.tex]
\attachment[whatever]

This creates an attachment with the description title and the name
test.tex. However, how can I set the author/subject? (Shown in tool
tip of the annotation symbol; it is shown above the description;
actually subject is enough for me.)

Additionally, I miss the file size and possibly the modification date
for the attachments; they are often handy to have.

Is is possible to associate an embedded file stream with the document
itself without creating an annotation symbol as with \attachment in
ConTeXt? (The PDF spec allows this; cf. e.g. 3.10.3 in the PDF spec and
http://www.microtype.com/showcase/EmbedFiles.pdf for an example PDF file.)

Tobias
___
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] TeX Live 2008: LuaTeX?

2007-12-17 Thread Tobias Burnus
Taco Hoekwater wrote:
 Context on texlive is updated once a year. It is a somewhat elaborate
 process because texlive wants some stuff removed from the distribution
 and quite some other stuff has to be relocated. I prefer not to do
 that except when it is absolutely necessary.
   
As long as the update does not miss the deadline I am fine with having
one update per year. Thanks!

 There definately be a luatex executable included as well, but it will
 be more for the benefit of having texlua as a scripting engine, than
 for proper typesetting.
   
Why? Because TeXLive is setup such that ConTeXt still uses pdfetex and
because luatex is beta -- or because some files are missing?

Tobias
___
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] TeX Live 2008: LuaTeX?

2007-12-14 Thread Tobias Burnus
Hi all,

does anyone know whether LuaTeX will be part of TeX Live 2008?

If I browse the SVN correctly, it currently contains a 1 year old
ConTeXt, checked in by Taco, and no LuaTeX.

It would be great if at least an up-to-date ConTeXt and possible LuaTeX
could be included. (Esp. since several Linux distributions have their
TeX based on TeX Live and are reluctant to create extra packages.)

Tobias
___
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] mkiv update

2007-08-20 Thread Tobias Burnus
Hans Hagen wrote:
 I uploaded a new version (no minimals yet). There are also new binaries 
 (or will be later today) that fix a couple of font issues.
   
This version does not seem to fix the problem that

\currentdate [y,-,mm,-,dd]

gives an error (at least with pdfetex); Peter Münster could reproduce it
too (I don't know with which TeX engine).

Tobias

___
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] t-bib - publicationlist space between [111] and items // luatex // error for \currentdate [y, -, mm, -, dd]

2007-08-17 Thread Tobias Burnus
Hello,

I use \setuppublications[numbering=yes,refcommand=num] and have more
than 99 references. Thus in the reference list the ] of [111]
overlaps with the entry behind.

I tried \setuppublicationlist with samplesize= and with
distance=/width=, but this did not help.

Any idea how to solve this (best would be of cause automatically).

 * * *

I'm now trying to get LuaTeX running with a TeXLive2007 system and the
current cont-tmf.zip.

I did:
- Compiled luatex and installed luatex
- Created symbolic link from texluac to luatex
- Set TEXMFCNF=dir to the directory which contains texmf.cnf

Questions and problems:

a) Where do I find mtxrun ? I found ./scripts/context/lua/mtxrun.lua, but
   lua ./scripts/context/lua/mtxrun.lua
gives the error message:

lua: ./scripts/context/lua/mtxrun.lua:3949: attempt to index global
'lua' (a nil value)

The line is:
if lua.bytecode then -- from 0 upwards


b) If I run:
   texmfstart texexec --make --lua
the metafun.mem is nicely generated but cont-* is not:
LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT
LuaTools | loading /home/tob/texmf/texmf.cnf
LuaTools | preparing configuration in /home/tob/luatex-cache/
[...]
LuaTools | runtime: 0.29 seconds
TeXExec | using tex engine luatex
TeXExec | using tex format path /home/tob/texmf/web2c/luatex
TeXExec | generating tex format cont-en
Error in lua file loading: ?:0: attempt to index global 'instance' (a
nil value)
[...]
LuaTools | running command: luatex --ini --lua=cont-en.luc
/home/tob/texmf/tex/context/base/cont-en.tex \dump
LuaTools |
LuaTools | runtime: 0.3 seconds
TeXExec | generating tex format cont-nl
Error in lua file loading: ?:0: attempt to index global 'instance' (a
nil value)


Which seems to be the same error as in (a).

  * * *

Since the update of cont-tmf.zip, I get an error (pdfetex) for:

\currentdate [y,-,mm,-,dd]
\bye

! Missing number, treated as zero.
to be read again
   {
\convertnumber ... \s!default \fi \fi \endcsname {
  \number #2}

Any idea what goes wrong here?

Tobias
___
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] MetaPost question

2007-06-28 Thread Tobias Burnus
Hello,

I try to print a periodic table in MP+TeX, but I get the following error
if I uncomment the % lines; I fail to see my error. Is there any trick
to debug this?

The error is:

! mpx file ended unexpectedly.
l.3186 - line number depends on which line is outcommented

Thanks,

Tobias



periodaux.tex
Description: TeX document

% Run as: TEX='texmfstart texexec --dvi --batch --once' mpost
input mp-tool ; % some initializations and auxiliary macros
input mp-spec ;

verbatimtex \enableregime[utf] etex;
verbatimtex \input periodaux etex;

def element(expr y, x, Sym, Z, M, name, altname, conf) =
  draw thelabel.rt (Z, (x-1mm,-y+15mm));
  draw thelabel.lft (Sym, (x+14.9mm,-y+15.3mm));
  draw thelabel.bot (name, (x+6.75mm,-y+13mm));
  draw thelabel.bot (altname, (x+6.75mm,-y+10.9mm));
  draw thelabel.bot (M, (x+6.75mm,-y+8.8mm));
  draw thelabel.bot (conf, (x+6.75mm,-y+6.7mm));
  draw (x+0,-y+0)--(x+15mm,-y+0mm)--(x+15mm,-y+18mm)--(x+0mm,-y+18mm)--cycle;
enddef;


dx=15mm;
dy=18mm;

beginfig(1)
draw thelabel.bot (btex \tfa Periodic Table  etex, (8.5*dx,0*dy));
element(1*dy,  1*dx, (btex \pSym{H} etex), (btex \pZ{1} etex),
(btex \pM{1.00794} etex), (btex \pName{Hydrogen} etex),
(btex \pAltName{Wasserstoff} etex), (btex \pConf{$1s$} etex));
element(1*dy, 18*dx, (btex \pSym{He} etex), (btex \pZ{2} etex),
(btex \pM{4.002602} etex), (btex \pName{Helium} etex),
(btex \pAltName{Helium} etex), (btex \pConf{$1s^2$} etex));
element(2*dy,  1*dx, (btex \pSym{Li} etex), (btex \pZ{3} etex),
(btex \pM{5.3917} etex), (btex \pName{Lithium} etex),
(btex \pAltName{Lithium} etex), (btex \pConf{$1s^22s$} etex));
element(2*dy,  2*dx, (btex \pSym{Be} etex), (btex \pZ{4} etex),
(btex \pM{9.3227} etex), (btex \pName{Beryllium} etex),
(btex \pAltName{Beryllium} etex), (btex \pConf{$1s^22s^2$} etex));
element(2*dy, 13*dx, (btex \pSym{B} etex), (btex \pZ{5} etex),
(btex \pM{10.811} etex), (btex \pName{Boron} etex),
(btex \pAltName{Bor} etex), (btex \pConf{$1s^22s^22p$} etex));
element(2*dy, 14*dx, (btex \pSym{C} etex), (btex \pZ{6} etex),
(btex \pM{12.0107} etex), (btex \pName{Carbon} etex),
(btex \pAltName{Kohlenstoff} etex), (btex \pConf{$1s^22s^22p^2$} etex));
element(2*dy, 15*dx, (btex \pSym{N} etex), (btex \pZ{7} etex),
(btex \pM{14.0067} etex), (btex \pName{Nitrogen} etex),
(btex \pAltName{Stickstoff} etex), (btex \pConf{$1s^22s^22p^3$} etex));
element(2*dy, 16*dx, (btex \pSym{O} etex), (btex \pZ{8} etex),
(btex \pM{15.9994} etex), (btex \pName{Oxygen} etex),
(btex \pAltName{Sauerstoff} etex), (btex \pConf{$1s^22s^22p^4$} etex));
element(2*dy, 17*dx, (btex \pSym{F} etex), (btex \pZ{9} etex),
(btex \pM{18.9984032} etex), (btex \pName{Fluorine} etex),
(btex \pAltName{Fluor} etex), (btex \pConf{$1s^22s^22p^5$} etex));
element(2*dy, 18*dx, (btex \pSym{Ne} etex), (btex \pZ{10} etex),
(btex \pM{20.1797} etex), (btex \pName{Neon} etex),
(btex \pAltName{Neon} etex), (btex \pConf{$1s^22s^22p^6$} etex));
element(3*dy,  1*dx, (btex \pSym{Na} etex), (btex \pZ{11} etex),
(btex \pM{22.989770} etex), (btex \pName{Sodium} etex),
(btex \pAltName{Natrium} etex), (btex \pConf{[Ne]$3s$} etex));
element(3*dy,  2*dx, (btex \pSym{Mg} etex), (btex \pZ{12} etex),
(btex \pM{24.3050} etex), (btex \pName{Magnesium} etex),
(btex \pAltName{Magnesium} etex), (btex \pConf{[Ne]$3s^2$} etex));
element(3*dy, 13*dx, (btex \pSym{Al} etex), (btex \pZ{13} etex),
(btex \pM{26.981538} etex), (btex \pName{Aluminium} etex),
(btex \pAltName{Aluminium} etex), (btex \pConf{[Ne]$3s^23p$} etex));
element(3*dy, 14*dx, (btex \pSym{Si} etex), (btex \pZ{14} etex),
(btex \pM{28.0855} etex), (btex \pName{Silicon} etex),
(btex \pAltName{Silizium} etex), (btex \pConf{[Ne]$3s^23p^2$} etex));
element(3*dy, 15*dx, (btex \pSym{P} etex), (btex \pZ{15} etex),
(btex \pM{30.973761} etex), (btex \pName{Phosphorus} etex),
(btex \pAltName{Phosphor} etex), (btex \pConf{[Ne]$3s^23p^3$} etex));
element(3*dy, 16*dx, (btex \pSym{S} etex), (btex \pZ{16} etex),
(btex \pM{32.065} etex), (btex \pName{Sulfur} etex),
(btex \pAltName{Schwefel} etex), (btex \pConf{[Ne]$3s^23p^4$} etex));
element(3*dy, 17*dx, (btex \pSym{Cl} etex), (btex \pZ{17} etex),
(btex \pM{35.453} etex), (btex \pName{Chlorine} etex),
(btex \pAltName{Chlor} etex), (btex \pConf{[Ne]$3s^23p^5$} etex));
element(3*dy, 18*dx, (btex \pSym{Ar} etex), (btex \pZ{18} etex),
(btex \pM{39.948} etex), (btex \pName{Argon} etex),
(btex \pAltName{Argon} etex), (btex \pConf{[Ne]$3s^23p^6$} etex));
element(4*dy,  1*dx, (btex \pSym{K} etex), (btex \pZ{19} etex),
(btex \pM{} etex), (btex \pName{Potassium} etex),
(btex \pAltName{Kalium} etex), (btex \pConf{[Ar]$4s$} etex));
element(4*dy,  2*dx, (btex \pSym{Ca} etex), (btex \pZ{20} etex),
(btex \pM{} 

[NTG-context] Chinese, cyrillic questions

2007-06-21 Thread Tobias Burnus
Hello all,

I have a document which which is predominately English, but contains
(currently) also 8 Chinese characters and 2 Cyrillic words (in the
Acknowledgement section).

First, regarding Chinese:
I use:
  \enableregime[utf]
  \useencoding[cyr]
  \usemodule[chinese]
  \mainlanguage[uk]
  \language[uk]

I would expect having mainlanguage != chinese would turn all
enummerations to arabic numbers. However, I still have -, =, etc. in the
table of contents, in enumberation etc. Is there a simple command to
turn this off?

Secondly, regarding Cyrillic:

Currently, I follow loosely wiki.contextgarden.net and use
  \useencoding[cyr]
  \definetypeface [russian]
[rm] [serif] [computer-modern] [default] [encoding=t2a]
  \def\RuText#1{{\switchtobodyfont[russian]#1}}

On my system (TeXLive 2007 as provided by SUSE) bitmap fonts are used as
the seemingly needed cm-super fonts are not included; the system,
however, has cmcyr type 1 fonts. As true ignoramus regarding fonts in
TeX and the dozens of Cyrillic encodings, I failed to use them instead.

Tobias
http://www.dict.cc/englisch-deutsch/ignoramus.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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [metapost] shading text

2007-05-08 Thread Tobias Burnus
Hi Stephan,

Stephan Hennig wrote:
 Could someone with an older version of Ghostscript please check if
 pstoedit/Ghostscript hang with the attached example?  That would make it
 easier for me deciding where to send the bug report to.
   
 mpost outline
 perl makempy.pl outline
 

$ mpost outline
This is MetaPost, Version 0.993 (Web2C 7.5.6)
...
1 output file written: outline.1
Transcript written on outline.log.
$ makempy outline
...
 MakeMPY 1.1 - MetaFun / PRAGMA ADE 2000-2004
...
pstoedit: version 3.44 / DLL interface 108 (build May  4 2007 - release
build - g++ 4.1.3 20070413 (prerelease) (SUSE Linux)) : Copyright (C)
1993 - 2006 Wolfgang Glunz
   processed texts : 1
 produced file : outline.mpy

This is with Ghostscript 8.15.3 on an openSUSE 10.3alpha3 system (i.e.
TeXLive 2007).

Tobias
___
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] embedded fonts

2007-05-04 Thread Tobias Burnus
Hi Jörg,

Jörg Hagmann wrote:
 I have a possibly off-topic and certainly naive question. But  
 unfortunately it's urgent, and a systematic search would take too long:
 I just finished a 84 page document and sent it to the printer. They  
 say the fonts are not embedded. Is there a switch that allows me to  
 do that? If not, what else can I do?
   
In principle pdftex should embed all fonts (actually only the subset of
used glyphs). The only case when this does not happen is for the
standard postscript fonts (Times, Helvetica, Courier, Symbol), which are
by default not embedded.

(Adobe used to include them with Acrobat Reader; now it does not with
the nice result that Helvetica is used on Postscript printers, Arial
on Windows [screen/non-postscript printers], etc.)

For teTex/TeX Live (Unix):
http://www.daniel-lemire.com/blog/archives/2005/08/29/getting-pdflatex-to-embed-all-fonts/
|pdftexDownloadBase14 true

This will use on several computers no Times/Helvetica but the URW+
clones of these.


Generally, the behaviour depends on the .map file. I have:

/usr/share/texmf/fonts/map/pdftex/updmap/pdftex.map

Depending of the ||pdftexDownloadBase14 setting, I have either:

hv Helvetica TeXnANSIEncoding ReEncodeFont texnansi.enc

This uses Helvetica as it comes with the PDF renderer. Or:

hv NimbusSanL-Regu TeXnANSIEncoding ReEncodeFont texnansi.enc uhvr8a.pfb

This uses the Hevetica clone Nimbus Sans L which is contained in the
file uhvr8a.pfb.



Hope it helped. If not: What TeX distribution do you use under which
operating system?
Which fonts are you using?
What does Adobe Reader tell you?
(On my system: File|Document Properties...|Fonts
shows the fonts used by the document. It contains
for instance:
  a CMBX10 (Embedded Subset)
  TT Arial (Embedded Subset)
)


Tobias|

___
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] embedded fonts

2007-05-04 Thread Tobias Burnus
Hi,

[embedded fonts]

I forgot to mention one thing which is easily overlooked: Your EPS (or
PDF) figures also need to have the fonts embedded. If you use metapost,
TeX does so; otherwise you need to instruct the program which creates
the EPS/PDF to embed the fonts.

Tobias
___
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] Wrong SRA3 papersize ?

2007-05-03 Thread Tobias Burnus
Peter Rolf schrieb:
 luigi scarso wrote:
   
 In page-lay.tex
 \definepapersize [SRA3]  [\c!width=320mm,\c!height=450mm]
 maybe is wrong.
 It should be
 \definepapersize [SRA3]  [\c!width=450mm,\c!height=320mm]
 
I have found both versions on the net, but as RA* and SRA* are only
scaled versions of the A* papers (5% and 15% larger), I think the
definition should match the one of A*.

As A3 is portrait,
   \definepapersize [A3]  [\c!width=297mm,\c!height=420mm]
I would also expect RA and SRA to be portrait as well and not landscape,
ConTeXt has
  \definepapersize [RA3]  [\c!width=305mm,\c!height=430mm]
  \definepapersize [SRA3]  [\c!width=320mm,\c!height=450mm]

From that point of view, the definition is correct.

Tobias
___
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] \title and \subject parameters.

2007-05-02 Thread Tobias Burnus
John R. Culleton schrieb:
 I want the above cited entities to be done in sans serif and bold. The 
 manual shows \setuphead choices such as textstyle=boldslanted but 
 not my particular selection.
   
I don't know whether it is the best way to do so, but how about:

\setuphead[title][textstyle=\ss\bf]

Tobias
___
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] MetaPost question

2007-05-02 Thread Tobias Burnus
Hi,

I want to define a macro in MetaPost which does:

def myfunc (expr x,y)(text t) =
  draw thelabel.rt (btex You passed \quotation{t} etex, (x,y));

where t in btex ... text is replaced by the argument. How to do so?

Tobias
___
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] Rotating multiple-page spanning tabulate

2007-04-30 Thread Tobias Burnus
Hi,

I have a tabulate which spans multiple pages and is broader than
\textwidth, but slightly smaller than \textheight. I therefore want to
print it 90 degrees rotated, but it still should span several pages and
the headertexts should remain at the old place. Any idea how to do this?

If this is not possible, what is the best way to temporarily switch to
landscape?

Tobias

___
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] active urls in bibliographies

2007-04-24 Thread Tobias Burnus
Hi Sanjoy,

Sanjoy Mahajan wrote:
 I tried to force an active hyperlink to be part of a bibliography entry.
 If the bibliography style file for that entry type uses it, maybe it
 will work.  But I wanted to put it in the 'note' field so that I could
 add it to most entries.  e.g.

 @Book{HPL:2000,
   editor = {John D. Barnsford and Ann L. Brown and Rodney R. Cocking},
   title =  {How people learn: Brain, mind, experience, and school.},
   publisher =  {National Academy Press},
   year =   2000,
   address ={Washington, DC},
   edition ={expanded},
   note =   {http://www.nap.edu}
 }
   
Well, I use
   url = {http://www.nap.edu}
and have in my local environment something like:

%copied from bibl-a*.tex
\setuppublicationlayout[article]{% in your case book
[...]
   \insertdoi{ doi:}{.}{}%
   \insertbiburl{ }{.}{}% --- added
[...]
}

In addition, you need to patch t-bib.tex. I have the following changes
in mine which should be also (in some form) in the next release of
Taco's module:

--- /usr/share/texmf/tex/context/bib/t-bib.tex  2006-12-08 12:46:44.0 
+0100
+++ /system/home/tob/texmf/tex/context/bib/t-bib.tex2007-04-19 
13:42:17.0 +0200
@@ -497,10 +497,15 @@

 \processcommacommand[\bibcommandlist]\simplebibdef

+\def\insertdoi#1#2#3%
+ {{\bibdoifelse{\@@[EMAIL PROTECTED]
+[EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
+ #1\expanded{\gotoDOI{\@@[EMAIL PROTECTED]
+
 \def\insertbiburl#1#2#3%
-{{\bibdoifelse{\@@[EMAIL PROTECTED]
-   [EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
-[EMAIL PROTECTED]@EA{\ascii}#2}{#3}}}
+ {{\bibdoifelse{\@@[EMAIL PROTECTED]
+[EMAIL PROTECTED]@EA{\@@[EMAIL PROTECTED]
+ #1\expanded{\gotoURL{\@@[EMAIL PROTECTED]

 \def\insertmonth#1#2#3%
   {\bibdoifelse{\@@[EMAIL PROTECTED]
@@ -641,7 +646,7 @@
\ifnum \numexpr\scratchcounter-1\relax#2\relax
   \getvalue{\??pv data#1}##1%
   \ifnum \scratchcounter=#2\relax
- \ifnum\etallimitcounter\commalistsize 
\bibalternative{#1etaltext}\fi
+ \ifnum\etallimitcounter\commalistsize\relax 
\bibalternative{#1etaltext}\fi
   \else \ifnum\numexpr\scratchcounter+1 = #2\relax
  \ifnum \commalistsize  \plustwo  \bibalternative\c!finalnamesep
  \else\bibalternative\c!lastnamesep \fi
@@ -1636,7 +1641,9 @@

 \def\gotoDOI#1#2%
   {\ifbibinteractionelse
- 
{\useURL[bibfoo#1][http://dx.doi.org/#2]\goto{\url[bibfoo#1]}[url(bibfoo#1)]}
+ {\useURL[bibfooDoi#1][#2]%
+  \useURL[bibfoo#1][http://dx.doi.org/#2]%
+  \goto{\url[bibfooDoi#1]}[url(bibfoo#1)]}
  {\hyphenatedurl{#2}}}

 \def\bibdoiref[#1]%

___
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] \hyphenateurl and publication list: No breaking of the URL

2007-04-19 Thread Tobias Burnus
Hello,

I have the problem that the DOI is not hyphenated and sticks into the
margin.
Interestingly, the biburl is hyphenated.

With my patch for t-bib (sent half a day ago), I get hypherlinks for DOI
and biburl, but in that case also the biburl does not get hyphenated
(nor does the DOI).

Any idea what goes wrong here?

Tobias



%Example:

\usemodule[bib]
\setuppublications[alternative=aps]

\setuppapersize[A5][A5]

\setupcolors[state=start]
\setupinteraction[state=start]

\startpublication[k=Bocquet96,t=article,
a={{Bocquet},{}},y=1996,o={10.1103/PhysRevB.53.1161},
n=92,s=BMM{\etalchar{+}}96,u={http://link.aps.org/abstract/PRB/v53/p1161}]
\artauthor[]{A.~E.}[A.~E.]{}{Bocquet}
\pubyear{1996}
\journal{Phys. Rev. B}
\volume{53}
\issue{3}
\pages{1161--1170}
\biburl{http://link.aps.org/abstract/PRB/v53/p1161}
\doi{10.1103/PhysRevB.53.1161}
\stoppublication

\unprotect
\setuppublicationlayout[article]{%
   \insertartauthors{}{ }{\insertthekey{}{ }{}}%
   \insertarttitle
{\unskip, \bgroup\it }%
{\/\egroup }{}%
   \insertjournal{\unskip, \bgroup }{\egroup}
{}% \insertcrossref{In }{}{}}%
   \insertvolume
{  \bgroup \bf }
{\egroup %\insertissue{(}{)}{}%
 \insertfirstpage{, }{}{}}
{\insertfirstpage{ }{}{}}%
   \insertpubyear{ (}{). }{\unskip.}%
   \insertbiburl{ }{.}{}%
   \insertdoi{ doi:}{.}{}%
   \insertNote{ }{.}{}%
   \insertcomment{}{.}{}%
}
\protect

\starttext

\cite[doi][Bocquet96]  /
\cite[url][Bocquet96]

\subject{References}
\placepublications[criterium=all]
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Side caption in floats

2007-04-18 Thread Tobias Burnus
Hi,

Tobias Burnus wrote:
 I want to a normal caption next to a float:

 ##
 ##
 ## Fig. 1: Some object desc.
 ## in this caption.
   

I found it: \setupcaptions[location={low,right}]
(I was wrongly looking at \placefigure.)

But there is a buglet: texshow only lists location= top bottom none
high low middle and misses left/right.


Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setupurl and urlalternative

2007-04-18 Thread Tobias Burnus
Hi,

what does actually the urlalternative option of \setupurl do?

If I run the following example, I don't see any difference!

Tobias

 \useURL
   [test]
   
[sentence_sentence%sentence#sentence~sentence/sentence//sentence:sentence.sentence]

 \startlinecorrection
 \hbox to \hsize
   {\hss\en
\setupreferencing[urlalternative=both]%
\vbox{\hsize.25cm\hbox{\bf both}\prewordbreak\url[test]}%
\hss
\setupreferencing[urlalternative=before]%
\vbox{\hsize.25cm\hbox{\bf before}\prewordbreak\url[test]}%
\hss
\setupreferencing[urlalternative=after]%
\vbox{\hsize.25cm\hbox{\bf after}\prewordbreak\url[test]}%
\hss
\setupreferencing[urlalternative=none]%
\vbox{\hsize.25cm\hbox{\bf none}\prewordbreak\url[test]}%
\hss}
 \stoplinecorrection
\bye


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Pagesize papersize: Writing jobname/date outside page area

2007-04-17 Thread Tobias Burnus
Hello,

I have pagesize  papersize and use crop marks. What I actually miss is
the possibility to put text (Project name, date/time) outside the page.
Currently, ConTeXt only prints there the colour bars, the page numbers
and the crop marks.

Example:
http://glossary.ippaper.com/default.asp?req=glossary/term/1972catitemid=

As a work around I currently misuse the footer, but I'm afraid that I
will forget to remove it for the final version.


(Just for curiosity and nothing I need: Does ConTeXt also support
register marks?)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Side caption in floats

2007-04-17 Thread Tobias Burnus
Hello,

I want to a normal caption next to a float:

##
##
## Fig. 1: Some object desc.
## in this caption.

where the text should be bottom aligned unless the text is much longer:

## Fig. 2: Some textual
## description to a rather
   small figure.


Using \startfiguretext[], I get something similar, but without Fig 1.
And \placefigure[] does not seem to offer this option either.

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Pagesize papersize: Writing jobname/date outside page area

2007-04-17 Thread Tobias Burnus
Thomas A. Schmitz wrote:
 I'm not sure if this is what you're looking for, but I wrote a module  
 for my own use that has similar features.
   
That is exactly what I was looking for.
(For colour registering marks, one would have to print the marks in all
colours (usually CMYK and/or spot colours). But as I was only curious
about register marks and I print only in black and white, I don't mind.)

Thanks Thomas,

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib + local global citations

2007-04-17 Thread Tobias Burnus
Hello,

I use bibl-aps which has references of the form [1]. I want to have a
global bib index (\placepublications[criterium=all]), but in two
sections I want to have a local bib index
(\placepublications[criterium=section]) too.

The numbers should not be reseted in between. Currently, I get:

\chapter{somewhere}
[1]...[45]

\chapter
\section{local 1}
[1]...[30] % -- should be 46-76
\placepublication[criterium=section]
   [1]...[76] % -- should be 46-76

\placepublications[criterium=all]
   [1]...[76]

Any idea how to do this?

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bibtex: et al. and missing spacing before et

2007-04-16 Thread Tobias Burnus
Hello,

if I tex the following example, I get:
Hu{\it et al.} without space between Hu and et.

Any idea why this happens? This is with:
- context version: 2007.01.12 15:56 (openSUSE's TeXLive)
- ver: 2007.03.19 11:20 MKII  fmt: 2007.4.2 (updated teTeX)
- Live ConTeXt  on the garden.

bibl-aps.tex contains:
\c!authoretaltext={ {\it et al.\/}},
\c!editoretaltext={ {\it  et al.\/}},
\c!artauthoretaltext={ {\it et al.\/}}]

Tobias

\usemodule[bib]
\setupinteraction[state=start]
\setuppublications[alternative=aps]

\startpublication[k=Hu2000,t=article,
a={{Hu},{}},y=2000,o={10.1103/PhysRevB.61.5262},
n=53,s=HvLG{\etalchar{+}}00]
\artauthor[]{Z.}[Z.]{}{Hu}
\artauthor[]{H.}[H.]{von}{Lips}
\artauthor[]{M.~S.}[M.~S.]{}{Golden}
\artauthor[]{J.}[J.]{}{Fink}
\artauthor[]{G.}[G.]{}{Kaindl}
\artauthor[]{F.~M.~F.}[F.~M.~F.]{de}{Groot}
\artauthor[]{S.}[S.]{}{Ebbinghaus}
\artauthor[]{A.}[A.]{}{Reller}
\pubyear{2000}
\journal{Physical Review B}
\volume{61}
\pages{5262-5266}
\stoppublication

\starttext
\cite[Hu2000]
\section{References}
\placepublications
\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texexec.pl vs. .rb

2007-04-05 Thread Tobias Burnus
Hi,

the following command works with the PERL but not with the RUBY version.
Is this option obsolete or simply not yet implemented:

(texmfstart) texexec --pdfarrange --paper=a5a4 --print=up test.pdf

texexec: works
texmfstart texexec:

! Missing number, treated as zero.
to be read again
   a
\@@ppoffset -a
   5a4
\calculatepaperoffsets ...lue {\??pp #1\c!offset }
  \divide \scratchdimen
\arr...
argument ...dth }\fi \calculatepaperoffsets {A4}
  \xdef \papersize {A4}
\firstofoneargument #1-#1

\next1 #1,-\docommand {#1}
   \doprocesscommaitem
...
l.3 \setuplayout


Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] m-bib question: URL, DOI

2007-04-02 Thread Tobias Burnus
Hello,

I have a question regarding URLs and DOIs.

I would expect that the attached example file would produce hyperlinks
for the DOI and URL, but ConTeXt does not.

Using \cite[doi] also produces the wrong output. For doi =
10.1103/PhysRevLett.45.566 I would expect
  10.1103/PhysRevLett.45.566
and not:
   http://dx.doi.org/10.1103/PhysRevLett.45.566
as output. In the reference list, the output is ok, but is no hyperlink.
Whether \cite[doi][] should link to the item in the
\completepublications list or to the webpage dx.doi.org and whether the
link target should depend on \setupcite[interaction=start|stop], is not
clear, both options have its merits.

In addition, what is the way to insert # in URLs? If I don't protect
them, I get a TeX error, if I use \# the backslash is printed, too.

Tobias


test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] m-bib question: URL, DOI

2007-04-02 Thread Tobias Burnus
Hi Taco,

Taco Hoekwater wrote:
 Tobias Burnus wrote:
   
 [...]
 Somebody should tell me explicitly what to do and what not to do.
 (the interaction code for dois and urls, that I added after a
 request, I thought I had implemented exactly as requested).
   

Assuming \setupinteraction[state=start], \insertbiburl should produce a
hyperlink
e.g.
\biburl{http://link.aps.org/abstract/PRL/v45/p566##bar}
should become something like the following:
\gotoURL{http://link.aps.org/abstract/PRL/v45/p566##bar}

* * *

\insertdoi should also produce a hyperlink
e.g.
\doi{10.1103/PhysRevLett.45.566}
should become something like:
\def\gotoDOI#1#2%
{\useURL[bibfoo#1][http://dx.doi.org/#2]
\useURL[bibfoodoi#1][#2]
\goto{\url[bibfoodoi#1]}[url(bibfoo#1)]}
\gotoDOI{myRef}{10.1103/PhysRevLett.45.566}

* * *

\cite[doi][myRef] should not print http://dx.doi.org/; on the
screen/paper but only the DOI itself (if hyperlinked, the link should of
cause contain http://dx.doi.org/;)


* * *

What \setupcite[interaction=start|stop] does should be documented in the
manual

* * *

For \cite[url|doi][myRef] three behaviours are useful:
(a) No hyperlink
(b) Jumping to the associated publicationlist item
(c) Going to the associated webpage (url target or dx.doi.org server)

Which option should should be used with
\setupinteraction[state=start]
\setupcite[interaction=start|stop]
is unclear to me.

For interaction=stop, (c) seems to be most useful for me, others
probably prefer option (a) in this case.


Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \chemical{} + \title{}

2007-03-20 Thread Tobias Burnus
Hi,

I'd like to typeset a chemical compound in a \chapter. However, when I
try so, all elements are shown in italics.

Example:
---
\usemodule[chemic]
\title{Chemical \chemical{La_{1-x}Ca_xCoO_3}}
Chemical \chemical{La_{1-x}Ca_xCoO_3}
\end
---

Any ideas? (In principle, the x in the subscripts should be italic,
but I can use \it for this; as long as titles and non-titles are treated
alike, I'm happy.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \chemical{} + \title{}

2007-03-20 Thread Tobias Burnus
Hi,

Mojca Miklavec wrote:
 On 3/20/07, Tobias Burnus wrote:
   
 I'd like to typeset a chemical compound in a \chapter. However, when I
 try so, all elements are shown in italics.

 Example:
 ---
 \usemodule[chemic]
 \title{Chemical \chemical{La_{1-x}Ca_xCoO_3}}
 Chemical \chemical{La_{1-x}Ca_xCoO_3}
 \end
 ---
 
 You can check the ideas on http://wiki.contextgarden.net/Chemistry.
 reference: 
 http://archive.contextgarden.net/message/20060628.174414.91c8b353.en.html
   
This is indeed a possibility. But I still regard it as bug that PPCHTeX
uses italic in the title. (The title itself is *not* italic, I'm also
not asking that the font/style should follow the surrounding text,
though a \setupchemical option which toggles this would be great.)

(Using \molecule as defined in the wiki is an alternative; your problem
was different as you wanted the symbol to follow the style of the
surrounding text. This would work as well here, but is actually the
solution for a different problem.)

Tobias,
who will now use \molecule{}.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Debian/texlive/context: Segfault in mpost

2006-11-08 Thread Tobias Burnus
Hi,

Norbert Preining wrote:
 On Mit, 08 Nov 2006, Johan Sandblom wrote:
   
 [EMAIL PROTECTED]:~$ locate metafun.mem
 /etc/texmf/web2c/metafun.mem
 /var/lib/texmf/web2c/metafun.mem
 
 The mem file in /etc/texmf/web2c seems VERY FISHY!!! Please remove it.
 Probably metapost loads a wrong metafun.mem file.
   
Not necessarily. One might actually be a symbolic link to the other.
Try the following to check this
  ls -l /etc/texmf/web2c/metafun.mem /var/lib/texmf/web2c/metafun.mem
and just to make sure also:
 ls -ld /etc/texmf/web2c /var/lib/texmf/web2c

The file used by TeX can actually found using:
   kpsewhich metafun.mem
and gives here:
  /var/lib/texmf/web2c/metafun.mem

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Layer Question

2006-09-28 Thread Tobias Burnus
Hello,

I would like to add  a text to a poster, which I load as PDF.

The following works nice, except that the layer of the PDF is above the
layer block thus the text gets overdrawn.

How can I change that order?

Tobias

\setuppapersize[A0,landscape][A0,landscape]
\setupbodyfont[26pt]
\setuplayout[backspace=0cm,width=fit,height=fit,margin=0cm,topspace=0cm,header=0cm,footer=0pt]
\definelayer[block][width=85mm,height=54mm]

\setupbackgrounds[page][background=block]

\starttext
  \startstandardmakeup
\combinepages[poster.pdf][nx=1,ny=1]
\setlayer[block][x=10cm,y=10cm]{\copyright 2006}
  \stopstandardmakeup
\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \startfiguretext question

2006-08-18 Thread Tobias Burnus
Hello,

I'd like to use \startfiguretext together with \startcolumnset. If I
outcomment \startcolumnset, it works ok, otherwise the figure is no
longer left aligned and there is a big gap between the figure and the text.

Any idea?

Tobias


\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=gray]
\definecolumnset[poster][n=2]
\setupcolumnset[poster][each][background=color,backgroundcolor=white]

\showframe
\starttext
\startcolumnset[poster]

\startfiguretext[left][]{none}
{\externalfigure[foo][width=2.5cm]}{str}
\stopfiguretext

\stopcolumnset
\stoptext

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \startfiguretext question

2006-08-17 Thread Tobias Burnus
Hello,

I'd like to use \startfiguretext together with \startcolumnset. If I
outcomment \startcolumnset, it works ok, otherwise the figure is no
longer left aligned and there is a big gap between the figure and the text.

Any idea?

Tobias


\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=gray]
\definecolumnset[poster][n=2]
\setupcolumnset[poster][each][background=color,backgroundcolor=white]

\showframe
\starttext
\startcolumnset[poster]

\startfiguretext[left][]{none}
{\externalfigure[foo][width=2.5cm]}{str}
\stopfiguretext

\stopcolumnset
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] spanish user

2006-08-11 Thread Tobias Burnus
Hello,

Horacio Suarez wrote:
 Now, I need help in this:
 In latex, I use this command:
 \renewcommand{\contentsname}{Índice}
 \renewcommand{\chapter}{Capitulo}

 to obtain the names of the parts of the book in spanish. I only need
 in spanish Bobliography and Índice (Content).

 How can I obtain the same in Context?
Hmm, in principle you should have already got Índice, at least if you
used \mainlanguage[es].

For chapter, try:  \setuplabeltext[es] [chapter=Capitulo ] % with space.

By the way at http://wiki.contextgarden.net/ one finds several useful tips.

If you don't know them, the Beginner's manual,
http://www.pragma-ade.com/general/manuals/mp-cb-en.pdf , and
The manual, http://www.pragma-ade.com/general/manuals/cont-enp.pdf ,
are worthwhile to read.

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] m-bib module

2006-08-09 Thread Tobias Burnus
Hi,

 I have the same problem with the latest ConTeXt (ver:2006.08.08 21:51,
 fmt: 2006.8.8).  The following example produces (Pound, 1959) as the
 citation in the text rather than giving (Pound and Rebka, 1959).

 If I
 use \cite[author][Pound-Rebka:1959] to make sure the style is
 'author', then I get (Pound) in the text, with no year.  Probably I'm
 doing something silly?
   
Try 'authoryear' or 'authoryears' if you want to have both, the author
and the year.

Could you try
   \setupcite[authoryears][authoretallimit=2]
   \setupcite[authoryear][authoretallimit=2]
maybe it works. (I still have an older ConTeXt and no time to test.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] compiling project files

2006-08-09 Thread Tobias Burnus
Hi Derek,

Derek Schmidt wrote:
 When I texexec it, it runs but only produces and empty table of contents with 
 the word Contents at the top. It won't list the chapters, forget about 
 actually printing their content.
   
I have only three ideas:

(a)  The data is not available. The mechanism is a follows:
1. TeX is run and chapter names with pagenumbers etc. are saved into
jobname.tui.
2. TeXutil is run and sorts some entries in *.tui and writes *.tuo
3. TeX is run again, reads .tuo and uses that data to produce the table
of contents etc. (and produces a new .tui)
As this changes the page numbers (for longer table of contents), TeXutil
and TeX are re-run again.
In principle TeXExec should do this automatically. Do you have a *.tuo file?

(b) The data is available via .tuo but somehow \completecontent only
writes the sections below the Content chapter, which is empty.
Try:  \completecontent[criterium=all]
this instructs it to print the table of content for all chapters (which
is actually the default).

(c) Something is broken (whatever, the installation, ConTeXt/TeXexec, my
ability to find the cause of problems etc.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] formula block with align and pagebreak

2006-07-18 Thread Tobias Burnus
Hello,

I have often longer equations of the type

\startformula\startalign
  A = b c
  B = c d
  E = g h
\intertext{Some intermediate text}
  F = h j
  G = k l
\stopformula\stopalign

I would like to keep the alignment (per page), however I also would like
to have automatic page breaks inbetween. I can split it manually into
two \startformula\startalign ... \stopformula\stopalign blocks, but this
I would have to adapt any time I change something, which changes the
text length, before that block.

Any idea?

Additional question: Does anyone know why in the example the Gauss'
law starts not at the top of the page but roughly two line further down?

Tobias

PS: I attached an example.


test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-18 Thread Tobias Burnus
Hi Taco,

Taco Hoekwater schrieb:
 Your bugs are a bit bizarre.
Fully granted. And (at least with today's t-bib) I cannot reproduce them
anymore ...

 My next upload (momentarily) will support:
\setupcite[author][authoretallimit=1,
   otherstext=]
   
Thanks! It now works as wanted :-)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-17 Thread Tobias Burnus
Hello Taco et al.,

Taco Hoekwater wrote:
 After a fairly long list of betas, I have just uploaded a new
 release of the bibliographic module to contextgarden.net
   
I have two observations and one question.

If I use interactivity,
  \cite[year][myRef]
links to the \placepublications[criterium=all] list.
However, if I use  \cite[authoryear][myRef], it does not.

\cite[doi][Slater1954] shows something like
[Slater195410.1103/PhysRev.94.1498]
rather than 10.1103/PhysRev.94.1498

Has anyone an idea what goes wrong here:
   \def\onlinecite[#1]{\cite[left=,right=][#1]}
[...]
   \onlinecite[myRef] % does not work, shows []
Logfile: publications : warning: cite argument myRef unknown on 109

However, using \cite[left=,right=][myRef]  directly works.

Tobias

PS: This is with ConTeXt 2006.07.14 12:08 and t-bib 2006.07.14
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] New bib module release (2006.07.13)

2006-07-17 Thread Tobias Burnus
Hi Taco,

Taco Hoekwater wrote:
 This one is a case of NIY: If you really need interactivity, use
\setupcite[authoryear][compress=no]
 for now.
That is fine with me, (I think) I won't have one author with several
years thus compression is not important in this case.

 \cite[doi][Slater1954] shows something like
  [Slater195410.1103/PhysRev.94.1498]
  rather than 10.1103/PhysRev.94.1498
Ups, this is seemingly a bug in my environment file (which I recycled
from 2004). One definition clashes with t-bib.tex's gotoDOI. But there
is nontheless a bug (see below).

 Has anyone an idea what goes wrong here:
\def\onlinecite[#1]{\cite[left=,right=][#1]}
 [...]
\onlinecite[myRef] % does not work, shows []
 Logfile: publications : warning: cite argument myRef unknown on 109
 
Hmm, I don't know why, but this part works now :-/
I should definitely better test.

However, I still have some problems (see attached testcase):

\setuppublications[alternative=apa]

\cite[author][Slater1954] % produces ()

\cite[year][Slater1954] % produces ()

\cite[...][Slater1954]  with ... key, serial, page and type produces
[] (some might be ok, though)

\cite[doi][Slater1954] % produces [  http://dx.doi.org//1498];
with superfluous space and DOI-URL not DOI.
Expected: shows 10.1103/Phys not http://; ...
(The superfluous space disappears when using
\setupinteraction[state=start].)

And using \setuppublications[alternative=aps], I find:

Looks in principle ok, except for the same [doi] as above.

-

I have another feature with for \cite[author*][...]: I'd like to limit
the displayed name to the family name of the first author. Currently, I
have:   (Firstauthor and Lastauthor,1954) or (Firstauthor et al.,2005),
however to save space I'd like to have only (Firstauthor,2005). I see
andtext, otherstext, but miss the authoretallimit, which I would set to one.

Frankly, I have never seen references of the form (Several authors,
year); I do know, however, references of the form several authors
(year). Does APA really uses several authors for authoryear? The name
suggest not, only for authorsyear I would expect it.

If you default to one author for authoryear and author, I'd not mind
to have a authors beside author.

Tobias


mytest.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] feature request: texexec with exit code 0

2006-06-20 Thread Tobias Burnus
Hello,

Peter Münster schrieb:
 could texexec --nonstopmode file please exit with exit code  0, if there
 is an error (such as undefined control sequence)?
   
In similar vain: Could texexec stop after a non-successful TeX run?
Currently, there are several runs even if the first run was not successful.

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] feature request: texexec with exit code 0

2006-06-20 Thread Tobias Burnus
Hello,

Hans Hagen wrote:
 � wrote:
   
 Hello,

 could texexec --nonstopmode file please exit with exit code  0, if there
 is an error (such as undefined control sequence)?
 
 well, if you figure out the codes -)
 i always have problems with finding the right exit codes (not that consistent 
 between script languages and os's) 
   
Under Unix it is classically zero == no error, not zero == error. Which
non-zero number is returned is application dependent.

The POSIX standard 2001 (Single Unix Standard v3; (c) Open Group) writes
in its Shell  Utilities section:

The EXIT STATUS section describes the values the utility shall return
to the calling program, or shell, and the conditions that cause these
values to be returned. Usually, utilities return zero for successful
completion and values greater than zero for various error conditions. If
specific numeric values are listed in this section, the system shall use
those values for the errors described. In some cases, status values are
listed more loosely, such as 0. A strictly conforming application shall
not rely on any specific value in the range shown and shall be prepared
to receive any value in the range.


According to the ISO C99  standard, the default exit code is also 0:

If the return type of the main function is a type compatible with int,
a return from the
initial call to the main function is equivalent to calling the exit
function with the value
returned by the main function as its argument;[...] reaching the } that
terminates the
main function returns a value of 0.

I do not know what DOS programs are doing, though.

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bibliography: Cite by author with (co)author index and page number

2006-06-19 Thread Tobias Burnus
Hello,

I saw the following nice feature in a book, which I also like to use for
a longer work. The author uses a cite by author style (Sharma, 1979) and
in the citation index:

   Nobody, N. B. and N. N. Nonomens, J. Improper Sci. 12, 199 (2007). 5
   Nonomens, N. N., See Sharma, R. R; Nobody, N. B.
   Sharma R.R and N. N. Nonomens, Phys. Rev. B19, 2813 (1979).  320,
323, 330

where the last numbers are the pages on which one has cited the item.
That way one automatically creates an index of persons, one cites.

One could even link the page numbers to the referrering page.


Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Math: Matrix question

2006-06-15 Thread Tobias Burnus
Hello,

maybe someone has an idea how to typeset the following

c d
 a [E F]
 b [G H]

Where EFGH is a matrix surrounded by ( ) and with a b c d I want to
label the columns and rows.
I especially struggle with aligning c and d and having the parenteses.

Any ideas are highly welcome.

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Math: Matrix question

2006-06-15 Thread Tobias Burnus
Otared Kavian schrieb:
 Hi Tobias,

 Probably it is possible to do want with mathalign stuff developped in  
 ConTeXt, but the following gives a reasonable result (using only  
 Plain TeX commands...):
   
Well, this was the work-around I used, however, if I replace E by
, then the alignment gets lost.
(I worked around with \,\\quad\qquad etc., but this is not so nice.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart texexec --pdf --pages=1:2 = empty PDF

2006-05-23 Thread Tobias Burnus
Hello,

Tobias Burnus schrieb:
 I freshly switched to the ruby script and have now a problem:
texmfstart texexec --pdf --pages=1:2
 produces: No pages of output.
texmfstart texexec --pdf
 however, works: Output written on tmp_.pdf (3 pages, 103204 bytes)
   
I do not know what that option does. It seems to do something, but not
the right thing.
Actually, looking at texexec.rb I get the impression that --pages= is
not supported. One finds there
-
# so far for compatibility
@@extrastringvars = [
'pages', 'background', 'backspace', 'topspace', 'boxtype', 'tempdir',
-

Could the --pages option made to work in texexec.rb? In texexec.pl I
find the following. I probably should learn ruby [and python for that
matter] ...

Tobias

if ($Pages)  {
if ( lc $Pages eq odd ) {
print OPT \\chardef\\whichpagetoshipout=1\n;
} elsif ( lc $Pages eq even ) {
print OPT \\chardef\\whichpagetoshipout=2\n;
} else {
my @Pages = split( /\,/, $Pages );
$Pages = '';
foreach my $page (@Pages) {
if ( $page =~ /\:/ ) {
my ( $from, $to ) = split( /\:/, $page );
foreach ( my $i = $from ; $i = $to ; $i++ ) {
$Pages .= $i . ',';
}
} else {
$Pages .= $page . ',';
}
}
chop $Pages;
print OPT \\def\\pagestoshipout\{$Pages\}\n;
}
}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texmfstart texexec --pdf --pages=1:2 = empty PDF

2006-05-18 Thread Tobias Burnus
Hello,

I freshly switched to the ruby script and have now a problem:
   texmfstart texexec --pdf --pages=1:2
produces: No pages of output.
   texmfstart texexec --pdf
however, works: Output written on tmp_.pdf (3 pages, 103204 bytes)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Repeating tabulate head/tail on every page

2006-05-15 Thread Tobias Burnus
Hello,

Hans Hagen schrieb:
 \setuptabulate[header=repeat] may work
Hmm, it does somehow, but very strangely:
See http://www.physik.fu-berlin.de/~tburnus/tmp/energy-tabulate.pdf
and http://www.physik.fu-berlin.de/~tburnus/tmp/energy-tabulate.tex

Without repeat it looks ok:
=page 1===

Header
 % \HL of head
some lines
  % some \HL
.
===page 2 
..
===page 3
.
-- % \HL of tail


However, If I use repeat:

=page 1===

Header
 %  extra vertical spacing
 % \HL of head
some lines
 %  extra spacing
 %  extra HL
 % some \HL of the tabulate body
.
.%  No \HL of tail
===page 2 
 % \HL of head
Header
..   %  NO \HL of head
..
 % \HL of tail (ok)
===page 3

Header
 %  extra spacing
 % \HL of head
.
 %  extra spacing
 % \HL of tail (ok)

* * *

In addition I still don't understand why \tables starts on the second page,
TeX source:
  http://www.physik.fu-berlin.de/~tburnus/tmp/energy.tex

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Custom \unknownreference and \dummyreference; plus custom unknownreference in m-bib

2006-05-12 Thread Tobias Burnus
Hi hans, hi Taco, hello all,

I used the following in my thesis (2 years ago) to make sure I won't
miss a unresolved reference:
---
\def\unknownreference{~\clap{\blackrule[width=1.5ex,height=1.5ex,depth=0.3ex]%
  \kern-0.3ex$\blacktriangleright$}%
  \normalunknownreference}
\def\dummyreference{$\blacksquare$}
---
which produced for unresolvable references:  #myRef#  or  ##.

This does not work anymore. I only get #myRef. How should one do it
nowadays?

* * *

In m-bib, actually not \unknownreference (or \dummyreference) but a
simple '??' is used (not even bold.
It would be great if this could be changed. (search for {??} and '
??\else'.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Repeating tabulate head/tail on every page

2006-05-12 Thread Tobias Burnus
Hello,

I have a long tabulate which spans several pages.

I use:

\starttabulatehead
\HL
\NC  Energy  \NC Temp. \NC Magn. \NC Wavenumb. \NC Wavelength \NC Freq. 
\NC Energy \NC  Energy \NC\NR
\HL
\stoptabulatehead

\starttabulatetail
\HL
\stoptabulatetail

but this only shows the head/tail of the table at the very beginning and
very end of the table.
(Every row spans only a single line.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] m-bib and \onlinecite

2006-05-09 Thread Tobias Burnus
Hello,

what is the recommended way to get the following:

   as is written in Ref.~4.

Using Ref.~\cite[four] gives Ref. [4] with the superfluous brackets.
(\cite[ref] should remain unmodified, ie with brackets, as this is
mostly used in texts [1-5,7].)

APS' revtex offers \onlinecite (Ref.~\onlinecite{four}) to obtain the
reference number without the brackets.

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] m-bib and \onlinecite

2006-05-09 Thread Tobias Burnus
Hi Taco,

Taco Hoekwater schrieb:
\def\onlinecite#1{\cite[left=,right=][#1]}
 But are you sure the macro should not be called \inlinecite ?
   
I'm not sure how it should be called, however, in APS' RevTeX it is
called \onlinecite (as the number is not a superscript but on the line).
(Thanks for the reminder to use \cite[left=...][]. I was thinking only
of \setupcite[num][left=...]; now wikified)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt 2006.04.27 released

2006-04-27 Thread Tobias Burnus
Hello,

Taco Hoekwater schrieb:
 The most important news items are (I guess)
 * the addition of some modules to cont-ext.zip:
- t-construction-plan
- t-degrade
- t-french
   
t-french: Looking at
http://dl.contextgarden.net/modules/t-french/doc/context/third/t-french/t-french.pdf
shouldn't the
   \enableregime[utf]
be moved to the bottom (mode = demo)? Otherwise one always enforces UTF,
which one may not want.

t-degrade: Shouldn't one use texutil instead of epstopdf? They should be
able to to the same, but texutil
is in fact installed on ConTeXt systems, epstopdf may not.

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \useURL and URL with spaces

2006-03-31 Thread Tobias Burnus
Hello,

I have an URL with spaces (foo.cgi?opt=my options with spaces). The
URL link is ok (\goto[url(...)]), but the typeset URL (\url[...])
misses all the spaces.

This is with 2006.03.23 09:57.

Any idea how to fix this?

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \useURL and URL with spaces

2006-03-31 Thread Tobias Burnus
Hello,

Hans Hagen schrieb:
 I have an URL with spaces (foo.cgi?opt=my options with spaces). The
 URL link is ok (\goto[url(...)]), but the typeset URL (\url[...])
 misses all the spaces.
 This is with 2006.03.23 09:57.
 Any idea how to fix this?  
 
 can you make a small example file? 
   
Yes. Attached. It works ok, if you click on the link. But if you copy 
paste the link  or read and type the link, you miss the spaces.

Expected (for first case test):
   http://t.org/my test case.html
Got:
 http://t.org/mytestcase.html;
thus all spaces got eaten up. (In additon I have a space in front of the
URL.)


Tobias


test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \typefile problem

2006-03-24 Thread Tobias Burnus
Hello,

I have: ConTeXt  ver: 2006.03.23 09:57  fmt: 2006.3.23  int: english 
mes: english

and get this cryptic error message. I'm positiv that it used to work
with an older version.

Any ideas?

---
(./texexec.tuo) (/system/home/tob/texmf/tex/context/base/pdfr-ec.tex)
! Missing number, treated as zero.
to be read again
   f
\currenttyping -f
  ile
\checkverbatimfileline ...enumber \currenttyping
  \c!start \else \ifnum
\ver...

\presetnormalverbatimline ...\doflushverbatimline
  \global \chardef
\verbatim...

\readline ...line \else \presetnormalverbatimline
  \fi \fi \fi \fi
\handlever...

\processfileverbatim ...expandafter \readline \fi
  \closein
\verbatiminput \e...
...
l.39 \typefile{/dev/shm/tmp_0.9.xtls}
-

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] chinese with utf in context

2006-02-07 Thread Tobias Burnus
Hi Lutz,

Lutz Haseloff schrieb:
 The symbols from the range FF (f.i. FF0C: FULLWITH COMMA,
   
Try the following (untested): Add the line
  \defineunicodecommand 255 {\lookaheaduchar}
to unic-cjk.tex. (Maybe you need to regenerate the format file.)

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] chinese with utf in context

2006-02-07 Thread Tobias Burnus
Hans Hagen schrieb:
 Lutz Haseloff wrote:
   
 I added:

 \defineunicodecommand 255 {\lookaheaduchar}
 \defineunicodecommand 32 {\lookaheaduchar}
 \defineunicodecommand 37 {\lookaheaduchar}
 \defineunicodecommand 38 {\lookaheaduchar}

 to unic-cjk.tex and all works now as expected.  
 
 why these numbers?
   

255 = U+FF are the so-called Fullwidth Latin Characters
(http://www.unicode.org/charts/PDF/UFF00.pdf)
they are A B C etc. but having the width of a Chinese character
(roughly A , B , C ). Since they look rather ugly in non-CJK texts
and they have to match the width of the Chinese characters in the font,
they are only in CJK fonts.

32 = U+20 are general punctuation. I don't see a reason for those.
http://www.unicode.org/charts/PDF/U2000.pdf

37 = U+25 are box drawing characters - no idea why those should be
included. http://www.unicode.org/charts/PDF/U2500.pdf

38 = U+26 are miscanllaneous symbols - no idea why those should be
included. http://www.unicode.org/charts/PDF/U2600.pdf

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt IRC ?

2006-01-27 Thread Tobias Burnus
Hello,

Hraban wrote:
 That remembers me to update my old links...
 I don't know if that channel ever was active, someone announced it a
long while ago...

Well, depends what you mean by active.
There is no discussion in the channel, but there are usually one or two
[me ;)] in the channel.
Since yesterday we are three.

Hans wrote:
 i have no idea what a irc is, but the link fails to open in firefox

You need the ChatZilla plugin, then it will open in firefox:
http://www.hacksrus.com/~ginda/chatzilla/
(Click on install 0.9.70 in the bottom right)

With IRC or Internet Relay Chat you join a so-called channel on a
server; every line one types is instantly visible to the others in the
channel and vice versa, which makes question-answer discussion quite fast.

Sample image:
http://www.hacksrus.com/~ginda/chatzilla/screenshots/jsirc-light-20010321.png

Wikpedia entry: http://en.wikipedia.org/wiki/IRC (or in Dutch:
http://nl.wikipedia.org/wiki/Internet_Relay_Chat )

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-23 Thread Tobias Burnus
Hello,

Hans Hagen schrieb:
 \WORD

Hmm, using
  \WORD{Hell\odiaeresis\udiaeresis\ssharp}
it works, but if I replace the symbolic names by UTF-8 characters:
  \WORD{Hö}
I get:
! Undefined control sequence.
\unicodechar ...harnumber #1\futurelet \nextglyph
  \dounicodechar
\douppercase ...rstoftwoarguments \edef \ascii {#1
  }\edef \ascii
{\expandafte...

\WORD ...ORD \firstofoneargument \douppercase {#1}
  \egroup
l.6 \WORD{Hö}

 *  *  *

I also have troubles with PDF bookmarks/outlines and UTF-8 characters.
They are converted into unichar
If I use F\udiaeresis r then I get the Für. Any ideas?

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] setupheadertexts + kap/uppercase

2006-01-21 Thread Tobias Burnus
Hello,

I think I have a expand problem.

I want to have
 
\setupheadertexts[pagenumber][{\getmarking[chapter][current]}][section][pagenumber]
with the chapter in \uppercase/\kaps. The problem is that
adding a \uppercase or  \kap before the {\getmarking} ends up with
nothing and all my attemps with expand* ended up with either the same
result or with a TeX error message.

Using \setupheader[style=kap] (or =cap) does not work - as TeX bails out:
! Undefined control sequence.
\p!doifinstringelse ...ifinstringelse #2#1}@@\war

Any idea how to solve this?

Tobias

PS: I just saw that I asked the same question two years ago (15 January
2004):
http://www.mail-archive.com/ntg-context@ntg.nl/msg02175.html
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setupindenting \chapter indention

2006-01-21 Thread Tobias Burnus
Hello,

I want to have:

aa
aa
   bbb
b

That is: The second paragraph being indented. I tried:
--cut---
\setupindenting[next,yes,big]

\starttext
fajkhfkldjglfd

FJHDLKSGJLKDS
\stoptext
--knip--

but both paragraphs as not indented.

 * * *

In addition, I have the problem that
--
\chapter{foo}
bar
--
is printed as
|  1 foo
|bar
i.e. the 1 foo starts too far at the right

* * *

The first problem I also see using http://live.contextgarden.net/, the
other not. (My ConTeXt is newer though, 2006.01.16 18:35).

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] setupheadertexts + kap/uppercase

2006-01-21 Thread Tobias Burnus
Hello,

Sebastian Rooks schrieb:
 Did you try with a \fetchmark[chapter][first] as explained on the wiki ?
 http://wiki.contextgarden.net/Headers_and_Footers , section 2 Using
 capitals

That indeed worked. (I looked at ConTeXtgarden, but I seemingly missed
the right keyword in my search :-( shame on me.)

Anyway, \uppercase have some problems. I get with
---
\enableregime[utf]
\setupheadertexts[][{\expanded{\uppercase{\fetchmark[chapter][first]}}}]

\starttext
\chapter{Einführung} % EINFÜHRUNG
\uppercase{ÄÖÜäöüß} % should be ÄÖÜÄÖÜSS
\stoptext
---

ÄÖÜÄÖüß (üß should be ÜSS) and in the header I get EINFßHRUNG.

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Reg. fonts and math

2006-01-14 Thread Tobias Burnus

Hello,


%D \startbuffer
%D \placeformula \startformula \startalign
%D \NC  a \NC \eq  b \NR[+]
%D \NC  c \NC \neq d \NR
%D \NC\NC \neq f \NR[for:hans]
%D \NC\NC \geq g \NR[for:whoelse][a]
%D \NC\NC \leq h \NR[for:whomore][b]
%D \NC\NC \neq i \NR
%D \stopalign \stopformula
%D \stopbuffer

Can this be enhanced to allow more than one alignment points?
For instance
f(x)   = x²+b²  = g(x)  (1)
h(x,y) = x²-5y² = g_2(x,y)  (2)
should be aligned at the each =, currently - using \equalign(no) or 
\startalign - one can only align at one.


Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Spacing problem (mixing Chinese with Latin characters)

2006-01-09 Thread Tobias Burnus

Hello,

if I type [chinese] the output is [chinesespace]. (Example 
attached.)
I addition I observed that chinese; will have a line break like 
chinesenew line; which looks quite ugly.
(The ; and [] are half-width Characters, i.e. the normal Latin 
characters and not those which are as wide as a Chinese character.


Question: In the transliterization of Chinese the characters
\definecharacter acaron   {\buildtextaccent\textcaron a} % U+01CE
\definecharacter icaron   {\buildtextaccent\textcaron 
\dotlessi} % Unicode U+01D0

\definecharacter ocaron   {\buildtextaccent\textcaron o} % U+01D2
\definecharacter ucaron   {\buildtextaccent\textcaron u} % U+01D4
appear which are in the unicode block Latin Extended B. Should/Could 
they be added?

http://www.unicode.org/charts/PDF/U0180.pdf

Tobias


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] present for mojca

2006-01-04 Thread Tobias Burnus

Hi,

Hans Hagen wrote:

see attached file for usage
%D   [   file=m-gnuplot,
  


This does not work here, the produced .gpd file looks like:
---
^Mset title trigonometry^Mset terminal postscript
set output gpl-gnuplot-1.ps
^Mplot sin(x)
end
---
^M stands for \r (Carridge, decimal 13, hex 0d, oct 015).

I frankly don't understand why one does not get a \n (linefeed, decimal 
10/0A/012) or a ;\n for that matter [\def\par{;\rawcharacter{10}}].


Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Tobias Burnus

Hello,

some remarks/errors of the current UTF-8 Chinese support in ConTeXt 
2005.12.19:

(For (a) to (c) see also attached file.)

a) unic-chi.tex: This contains the unicode vectors for which a Chinese 
font will be used; currently it only covers

\dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}}
but this it misses the U+FFxx characters (fullwidth latin characters, 
e.g. '?' which is as wide as a Chinese character)

= solution: Add
\defineunicodecommand 255 {\uchar}

b) Labels: lang-chi.tex contains:
\setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}]
\startencoding[uni-c]
\definecommand cnencodedfigure {\uchar{86}{254}}
but if I use (with UTF-8) \placefigure{}{} the figure character is not 
shown; however if I setup this directly, i.e.

\setuplabeltext[cn][figure={\uchar{86}{254}}]
, the character is shown just fine.

c) Doing font switching using \SimKaiTi seems to convert back to GBK, 
can we have Unicode by default (at least when UTF-8 encoding is used)?


Examples for (a) to (c) see attachment (UTF-8 encoded).

* * *

Wish for the native speakers: Please translate
- Graphics/Illustration and Intermezzo(s)

Question to native speakers:
- \c!date={\v!month,\ ,\v!day,{,\ },\v!year},
Is this really the default? Or should this be
year年month月day日?

* * *

Another questions:
a) How to typset from top-to-bottom right-to-left using column(sets)?
b) How to change the numberformat used?

Tobias


zh-test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Tobias Burnus

Hello,

Hans Hagen wrote:

b) How to change the numberformat used?
eh ... wang lei should know ... i have to look into it (chinese 
supports multiple number formats)

I think I found it (it is a bit burried in font-chi.tex):
\startitemize[c] (or cn) gives the normal Chinese number, cc the 
capitalized, ec the normal Chinese number with one-character 
alternatives for 20 and 30 and ac the Arabic style of numbering.


(For those who'd like to have a how to on using Chinese with UTF-8, I 
updated http://wiki.contextgarden.net/Chinese )


Attached you find the traditional characters (as used in Taiwan, 
Hongkong [possibly decreasing], and in China before 1955); one should 
provide some method to switch between those and the simplified ones 
defined; maybe an option for \setupchinese?


Tobias


tra-chi.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Tobias Burnus

Hi,

Xiao Jianfeng wrote:

 It should be year年month月day日.
I somehow failed to to get the following working; I'm actually too tired 
(3 a.m) to follow the macro expansion in

-   \c!date={\v!month,\ ,\v!day,{,\ },\v!year},
+   
\c!date={\v!year,{\cnencoding\cnyear},\v!month,{\cnencoding\cnmonth},\v!year,{\cnencoding\cnday}},


In any case the year/month/day characters in unicode/gbk/big5 are:
@@ -110,0 +111,3 @@
+  \definecommand cnyear{\uchar{94}{116}}
+  \definecommand cnmonth   {\uchar{103}{8}}
+  \definecommand cnday {\uchar{101}{229}}
@@ -158,0 +162,3 @@
+  \definecommand cnyear{\uchar{196}{234}}
+  \definecommand cnmonth   {\uchar{212}{194}}
+  \definecommand cnday {\uchar{200}{213}}
@@ -204,0 +211,3 @@
+  \definecommand cnyear{\uchar{166}{126}}
+  \definecommand cnmonth   {\uchar{164}{235}}
+  \definecommand cnday {\uchar{164}{233}}

Tobias

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Tables --- what is current recommendation?

2005-12-18 Thread Tobias Burnus

Hi,

David Arnold wrote:
I'm wondering. If one is starting anew with Context, what would users  
recommend as the best choice of table environment?
I think it really depends on the type of table you need. For something 
with a simple layout like vocabulary or address lists I would use 
tabulate, for complex layouts with columns/rows spanning several cells I 
would use the HTML-like TABLE.
table(s) falls in somewhere inbetween - more flexible than tabulate but 
less than TABLE. (I think one should go rather for tabulate/TABLE than 
for table(s), but others may disagree.)


For line tables the sourcefile already tells that it provides a 
mechanism for typesetting very large tables spanning many pages 
horizontally and vertically, which is experimental, undocumented. 
(Only) if you have a table which spans _horizontal_ several pages you 
should have a look.


Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >