Re: [NTG-context] Bibtex change short key

2010-03-26 Thread Taco Hoekwater

Hubertus wrote:

Dear Taco,

I use the excellent BibTex module with this setup:
\setupbibtex[database=biblio,sort=author]
\setuppublications[alternative=apa,refcommand=short,sorttype=bbl,criterium=cited]
So if I have something like this
@ARTICLE{Akimoto2005,
author = {R. Akimoto and B. S. Li and K. Akita and T. Hasama},
...
}
in my *.bib file, the \cite[Akimoto2005] results in [ALAH05]. Is there a way
to
get only the first author with three letters and the year ([Aki05]) in the
citation?

Patch the generated .bbl file by hand. after its initial creation, it
will not be modified by context itself anymore.

May be I should have tried it first, before editting about 200 entries as you
suggested. As far as I can judge from the timestamp, at my system the bbl file 
is generatet every time I run texexec. Have I missed something?


Oh boy, I am sorry! My fault! The *correct* recipe is: run once, so the
bbl exists, then delete the \setupbibtex line from your source, then
edit the bbl, then recompile.

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

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


Re: [NTG-context] margin text

2010-03-26 Thread Robert Blackstone
Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso luigi.sca...@gmail.com wrote:

 blackstone.rob...@gmail.com wrote:
 What should I do to get the page in the middle of the paper so to
 speak, instead of shifted to the left, which happens with
 \setuplayout[location=middle]?? I tried specifying leftedgewidth but
 that does not change anything.
 hm, strange, try

 \setuppapersize[A4][A3]
 \setuplayout[location=middle,
             backspace=23mm,
             margin=15mm,margindistance=3mm,
             width=fit,
             ]
 \setupinmargin[left][align=left,foregroundcolor=red]
 \setupinmargin[right][align=right,foregroundcolor=blue]
 \showlayout
 \starttext
.
 --
 luigi

Thank you, Luigi.
This code gives a nice result with the page sitting neatly centered on
the paper.

However, when I increase the margin width to 25mm all gets shifted to
the left. Both margins get 25 width, the right margin stays within the
boundaries of the A4 paper, the left one is pushed outside. One would
have expected that with width=fit, the increase of marginwidth would
go at the expense of textwidth and that location=middle will still
dictate the overall position.
But no, it does not work that way apparently. Setting  margin=20mm is
about the limit. Even setting textwidth to a small size, for example
10 cm, does not work to keep the page inside the paper. The extra
white space all shows up at the right side as an enormously wide
rightedge while the left margin is still partly outside the paper. In
other words: location=middle does not work.
Strange indeed.

Is there anything that could be done about this?
And would it be possible to different margin width for the right and
left margin?

Thanks in advance for any advice.

Best regards,
Robert Blackstone
___
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] margin text

2010-03-26 Thread luigi scarso
On Fri, Mar 26, 2010 at 9:56 AM, Robert Blackstone
blackstone.rob...@gmail.com wrote:
 Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso luigi.sca...@gmail.com wrote:

 blackstone.rob...@gmail.com wrote:
 What should I do to get the page in the middle of the paper so to
 speak, instead of shifted to the left, which happens with
 \setuplayout[location=middle]?? I tried specifying leftedgewidth but
 that does not change anything.
 hm, strange, try

 \setuppapersize[A4][A3]
 \setuplayout[location=middle,
             backspace=23mm,
             margin=15mm,margindistance=3mm,
             width=fit,
             ]
 \setupinmargin[left][align=left,foregroundcolor=red]
 \setupinmargin[right][align=right,foregroundcolor=blue]
 \showlayout
 \starttext
 .
 --
 luigi

 Thank you, Luigi.
 This code gives a nice result with the page sitting neatly centered on
 the paper.

 However, when I increase the margin width to 25mm all gets shifted to
 the left. Both margins get 25 width, the right margin stays within the
 boundaries of the A4 paper, the left one is pushed outside. One would
 have expected that with width=fit, the increase of marginwidth would
 go at the expense of textwidth and that location=middle will still
 dictate the overall position.
 But no, it does not work that way apparently. Setting  margin=20mm is
 about the limit. Even setting textwidth to a small size, for example
 10 cm, does not work to keep the page inside the paper. The extra
 white space all shows up at the right side as an enormously wide
 rightedge while the left margin is still partly outside the paper. In
 other words: location=middle does not work.
 Strange indeed.
for expected behavior must be
backspace = margin + margindistance
Try
backspace=23mm,margin=21mm,margindistance=2mm,
backspace=23mm,margin=23mm,margindistance=0mm,
backspace=23mm,margin=18mm,margindistance=0mm,
backspace=23mm,margin=2mm,margindistance=21mm,


 Is there anything that could be done about this?
 And would it be possible to different margin width for the right and
 left margin?
yes there are right and left dimensions, but you should definitely
experiments with them

-- 
luigi
___
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] Compiling under Windows (Visual Studio 2008)

2010-03-26 Thread Mojca Miklavec
On Thu, Mar 25, 2010 at 23:14, Graham Douglas wrote:
 Hi

 I hope this message is not too off topic but I thought I would
 ask here first. I would very much like to (try...) to compile LuaTeX
 using Microsoft Visual Studio 2008. But I'm not sure if this is likely to be
 enormously complex and maybe too difficult (for me, anyway).

I would try to ask Akira Kakuto. He compiles the binaries for TeX Live
(and his own distribution w32tex) with Bus Number 1. But he has all
the needed files to compile with Visual Studio.

Christian Schenk also compiles on Visual Studio for MikTeX, but he
hasn't ported LuaTeX yet.

Mojca
___
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] margin text

2010-03-26 Thread Alain Delmotte

Hi!

Robert Blackstone a écrit :

Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso luigi.sca...@gmail.com wrote:

  

blackstone.rob...@gmail.com wrote:


What should I do to get the page in the middle of the paper so to
speak, instead of shifted to the left, which happens with
\setuplayout[location=middle]?? I tried specifying leftedgewidth but
that does not change anything.
  

hm, strange, try

\setuppapersize[A4][A3]
\setuplayout[location=middle,
backspace=23mm,
margin=15mm,margindistance=3mm,
width=fit,
]
\setupinmargin[left][align=left,foregroundcolor=red]
\setupinmargin[right][align=right,foregroundcolor=blue]
\showlayout
\starttext


.
  

--
luigi



Thank you, Luigi.
This code gives a nice result with the page sitting neatly centered on
the paper.

However, when I increase the margin width to 25mm all gets shifted to
the left. Both margins get 25 width, the right margin stays within the
boundaries of the A4 paper, the left one is pushed outside. One would
have expected that with width=fit, the increase of marginwidth would
go at the expense of textwidth and that location=middle will still
dictate the overall position.
But no, it does not work that way apparently. Setting  margin=20mm is
about the limit. Even setting textwidth to a small size, for example
10 cm, does not work to keep the page inside the paper. The extra
white space all shows up at the right side as an enormously wide
rightedge while the left margin is still partly outside the paper. In
other words: location=middle does not work.
Strange indeed.

Is there anything that could be done about this?
And would it be possible to different margin width for the right and
left margin?
  
When I tested some of the page layout possibilities I did read in * that 
the margin and the text are *not* at the same level, so the margins can 
be *under* the text.
This also means that changing the margin will not affect the text width, 
and so on.


Alain

see ConTeXt wiki Layout: http://wiki.contextgarden.net/Layout
and perhaps also ConTeXt the manual cont-enp.pdf

Thanks in advance for any advice.

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

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

  


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

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


Re: [NTG-context] Bibtex change short key

2010-03-26 Thread Hubertus
Dear Taco,
 Oh boy, I am sorry! My fault! The *correct* recipe is: run once, so the
 bbl exists, then delete the \setupbibtex line from your source, then
 edit the bbl, then recompile.
Thanks. This works now. I wrote a little python script now to save time and
thought maybe someone else might need it as well. It works for me but it was 
just a quick shot. There was not much time to think about all possibilities, 
and may be the regular expressions need to be modified. I first need to get this
thesis finished. So no guarantee.

All the best

Hubertus
#!/usr/bin/python
# -*- coding: utf-8 -*-

import re
import shutil

fileName= 'filename.bbl'# Change here the filename
fileNameOld = fileName + '-old' 
shutil.copyfile(fileName, fileNameOld)  # Make a copy of the file
f = open(fileNameOld)
out = open(fileName, 'w')

author  = re.compile('a={+( [^}]* ) }', re.VERBOSE) # Find author
author3 = re.compile('(\w{2,3})')   # Get the first 3 letters
year= re.compile('y=\d{2,} (\d{2,}\w?)', re.VERBOSE) # Get the year e.g. 09a
shortRe = re.compile('(s=)(.*)\]')  # Substitute the short key 
while True:
tmp = [] # Array where from \startpulication[...] ... is saved
line = f.readline()
# Look for the start of a new publication
if line.find('startpublication') = 0:
tmp.append(line)
# Go the end of that publication \startpulication[...]
while True:
a = f.readline()
tmp.append(a)
if a.find(']') = 0:
break
# Go through tmp to get the needed information
short = ''
for i in range(len(tmp)):
a = tmp[i]
if author.search(a):
short = ''
short = author3.findall(author.findall(a)[0])[0]
if year.search(a):
short += year.findall(a)[0]
if shortRe.search(a):
a = shortRe.sub(r'\1%s]', a) % short
out.write(a)
# If no entry in \startpulication[...] just write it again to the file
else:
out.write(line)

# reached end of file
if line == '':
break

f.close()
out.close()
___
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] Bibtex change short key

2010-03-26 Thread luigi scarso
On Fri, Mar 26, 2010 at 4:10 PM, Hubertus stonemon...@web.de wrote:
 Dear Taco,
 Oh boy, I am sorry! My fault! The *correct* recipe is: run once, so the
 bbl exists, then delete the \setupbibtex line from your source, then
 edit the bbl, then recompile.
 Thanks. This works now. I wrote a little python script now to save time and
 thought maybe someone else might need it as well.
It's better if it's in luatex .



-- 
luigi
___
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] 3D annotations

2010-03-26 Thread Hans Hagen

On 26-3-2010 6:53, Michail Vidiassov wrote:


lpdf-u3d.lua

if not stream then
local attr = pdfdictionary {
Type = pdfconstant(3D),
- Subtype = pdfconstant(U3D),
}
+ if string.upper(string.sub(foundname,-4))==.PRC then
+ attr.Subtype = pdfconstant(PRC)
+ else
+ attr.Subtype = pdfconstant(U3D)
+ end
local streamviews = checkedkey(streamparam, views, table)
if streamviews then
local list = pdfarray()

May be a more robust way is to read first 3 bytes of the model file, since
U3D or PRC signature is always there - that can be done instead of
relying on file name extension or only in case it it not u3d or prc.


more like:

local subtype, subdata = U3D, io.readdata(foundname) or 
if find(subdata,^PRC) then
subtype == PRC
elseif find(subdata,^U3D) then
subtype == U3D
elseif file.extname(foundname) == prc then
subtype == PRC
end


Also PRC annotations have to trigger setting PDF version to 1.7.3
(developer extensions dictionary mechanism).
It can be done per your advice directly

\doPDFaddtocatalog {
/Extensions
/ADBE
/BaseVersion /1.7
/ExtensionLevel 3
 
 
}

But what about an interface like \pdfmicroversion and
automatic pushing up of PDF version once PRC annontation happens?


i don't know that command and anyway want to get rid of all commands 
that start with \pdf


concerning versions ... peter rolf and i are working on detailed support 
for standards (also related to preflighting) and before i even want to 
look in some automated version handling we first need to get that bit 
done well



Also I try to remind you about pdfboolean problem in lpdf-ini.lua
(old code is not OK if b is false and default is true)

local function pdfboolean(b,default)
- if ((type(b) == boolean) and b) or default then
- return p_true
+ if type(b) ~= boolean then
+ if default then
+ return p_true
+ else
+ return p_false
+ end
else
- return p_false
+ if b then
+ return p_true
+ else
+ return p_false
+ end
end
end


i need to check it ... later (also for interferences)



PS. And a great palliative way to deal with 3D annotations is via
attaching a 3D PDF file made with LaTeX (by Asymptote, for example).


well, one can attach files as-is already (unless it's broken)


I can not deduce from existing sea of ConTeXt code the status of file
attachments support.


\attachment has been there for ages

actually, all kind of annotations hav ebeen supported as soon as they 
showed up in acrobat (mediademo is an exmaple of flash) but i gave up on 
implementing these things too early as in acrobat/pdf such new tricks 
normally needs a few versions to reach stability


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] URL setup

2010-03-26 Thread Vyatcheslav Yatskovsky

Hello,

\setupurl[color=blue] does not work in mkiv again.

Also, please look how I use \useURL and \goto to typeset the link. Is 
there a way do it less verbose?


Regards,
Vyatcheslav


%EXAMPLE=

\chapter{Modelling of Continuous-Time Dynamic Systems}

\setupinteraction[state=start]
\setupurl[color=blue]
\starttext
\subject{Introduction}

\useURL[aurl][http://en.wikipedia.org/wiki/Differential_algebraic_equation)] 
[] 
[\hyphenatedurl{http://en.wikipedia.org/wiki/Differential_algebraic_equation}] 



\from[aurl]

Our concern in this lecture is with exploring the modelling process of 
continuous-time dynamic systems (CTDS). The essential distinguishing 
feature of this category of system is the fact that a conceptual model 
can be formulated as a set of differential equations, possibly augmented 
with a set of algebraic 
equations\footnote{\goto{\hyphenatedurl{http://en.wikipedia.org/wiki/Differential_algebraic_equation}}[url(http://en.wikipedia.org/wiki/Differential_algebraic_equation)]}. 
For the
most part, such models emerge from a deductive process that has its 
basis in physical laws that are known to govern the behaviour we seek to

explore, that is, the behaviour of the SUI.

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

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


Re: [NTG-context] URL setup

2010-03-26 Thread Wolfgang Schuster

Am 26.03.10 17:59, schrieb Vyatcheslav Yatskovsky:

Hello,

\setupurl[color=blue] does not work in mkiv again.

Also, please look how I use \useURL and \goto to typeset the link. Is 
there a way do it less verbose?

http://wiki.contextgarden.net/url#Other_ways

\setupinteraction
  [state=start,
   color=red] % \goto and \from

\setupurl
  [color=orange] % \url

\useURL[149][http://xkcd.com/149/][][I prefer hot dogs.]
\useURL[224][http://xkcd.com/224/]

\starttext
\startlines
\goto{In Lua, array indices start from one.}[url(http://www.xkcd.com/163/)]
\from[149]
\url [224]
\stoplines
\stoptext

Wolfgang

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

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


Re: [NTG-context] margin text

2010-03-26 Thread Robert Blackstone
On Fri, Mar 26, 2010 at 12:00 PM,   luigi scarso luigi.sca...@gmail.com wrote:

 for expected behavior must be
 backspace = margin + margindistance
 Try
 backspace=23mm,margin=21mm,margindistance=2mm,
 backspace=23mm,margin=23mm,margindistance=0mm,
 backspace=23mm,margin=18mm,margindistance=0mm,
 backspace=23mm,margin=2mm,margindistance=21mm,

 luigi

and  Alain Delmotte espera...@swing.be wrote:

 When I tested some of the page layout possibilities I did read in * that
 the margin and the text are *not* at the same level, so the margins can
 be *under* the text.
 This also means that changing the margin will not affect the text width,
 and so on.

 Alain

Thank you Luigi and Alain,
This helped. This matter is clear to me now.

Best regards,
Robert Blackstone
___
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] pk-directory

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo,

how should the directory be named where a 600 dpi pk-font is searched 
for by luatex?

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

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


[NTG-context] Importing program text.

2010-03-26 Thread John Culleton


I want to import the text of several programs in my latest book. 
My requirements are:
1. Monospaced font.
2. Courier or similar typeface
3. Smaller than normal typeface (to avoid wraparound.) 

I have been fiddling with \typefile but I am having trouble accomplishing  
the above. 
-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com

---
-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com
___
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] pk-directory

2010-03-26 Thread Hans Hagen

On 26-3-2010 21:30, Wolfgang Werners-Lucchini wrote:

Hallo,

how should the directory be named where a 600 dpi pk-font is searched
for by luatex?


i'm not so sure if luatex does pk fonts (i havent't included pk fonts in 
15 years)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] pk-directory

2010-03-26 Thread Hartmut Henkel
On Fri, 26 Mar 2010, Hans Hagen wrote:
 On 26-3-2010 21:30, Wolfgang Werners-Lucchini wrote:
 
  how should the directory be named where a 600 dpi pk-font is
  searched for by luatex?

 i'm not so sure if luatex does pk fonts (i havent't included pk fonts
 in 15 years)

it does, with the default kpathsea paths, e. g.:

h...@hahepc1:~$ luatex xx
This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
(./xx.tex [1] )
/home/hahe/.texlive2009/texmf-var/fonts/pk/ljfour/public/cm/cm
r10.600pk
Output written on xx.pdf (1 page, 3242 bytes).
Transcript written on xx.log.

or

This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
(./xx.tex [1] )
/usr/local/texlive/2009/texmf-dist/fonts/pk/ljfour/public/cm/d
pi600/cmr10.pk
Output written on xx.pdf (1 page, 3242 bytes).
Transcript written on xx.log.

Regards, Hartmut
___
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] letter-module: reference

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang,

  I am trying to make a simple invoice with Wolfgangs letter-module
 and
  have some questions:
 
  I have the following reference in mind
 
  \setupletterstyle[reference][
  alternative=d,
  list={invoice,taxnumber,phone,date}]
 
  1) How can one position this horizontaly and verticaly?
 
 Manual: Section 9.3 and 9.7

This means, that one has to make a customized reference?

  2) How can I define additional keys like 'taxnumber'?
 
  I have found a key 'frombank' but it is to long for the ref-line and
 
 Manual: Chapter 5

Sorry, I must have tomatoes on my eyes but I can not find a command 
in this chapter which defines a new key. I found \setuplabeltext 
which sets the labeltext of a defined key and I found \setlettervalue 
which sets label and value at once.

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

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


Re: [NTG-context] pk-directory

2010-03-26 Thread Wolfgang Werners-Lucchini
On 26 Mar 2010 at 22:09, Hartmut Henkel wrote:
 On Fri, 26 Mar 2010, Hans Hagen wrote:
  On 26-3-2010 21:30, Wolfgang Werners-Lucchini wrote:
  
   how should the directory be named where a 600 dpi pk-font is
   searched for by luatex?
 
  i'm not so sure if luatex does pk fonts (i havent't included pk
 fonts
  in 15 years)
 
 it does, with the default kpathsea paths, e. g.:
 
 h...@hahepc1:~$ luatex xx
 This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
 (./xx.tex [1] )
 /home/hahe/.texlive2009/texmf-var/fonts/pk/ljfour/public/cm/cm
 r10.600pk
 Output written on xx.pdf (1 page, 3242 bytes).
 Transcript written on xx.log.
 
 or
 
 This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
 (./xx.tex [1] )
 /usr/local/texlive/2009/texmf-dist/fonts/pk/ljfour/public/cm/d
 pi600/cmr10.pk
 Output written on xx.pdf (1 page, 3242 bytes).
 Transcript written on xx.log.
 
 Regards, Hartmut

Hello Hartmut, hallo Hans,

I have tried both variants but nothing works.
I use the minimals under windows. 
What can I do (examine files, logs) to solve the problem?

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

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


[NTG-context] marginal note problems

2010-03-26 Thread Michael Saunders
I'm still trying to get marginal notes to work with columns.  I've
been experimenting with columnsets, but I still get the marginal notes
popping up on the wrong side of their column, and overprinting the
other column, not printing in the margin.

I thought that this though, would be an opportunity to attempt two
column text with three column footnotes (I'd read of other people in
the archive who found this impossible in the past).  I tried:

%columns
\definecolumnset[body][n=2,distance=20pt]
\definecolumnset[footnotes][n=3,distance=10pt]

%footnotes
\newcommand{\colprefoot}{\stopcolumnset\startcolumnset[footnotes]}
\newcommand{\colpostfoot}{\stopcolumnset\startcolumnset[body]}
\setupfootnotedefinition[location=serried,distance=0.5em]
\newcommand{\fnstyle}{\switchtobodyfont[12pt]\addff{su}}
\setupnote[footnote][numbercommand=\fnstyle,textcommand=\fnstyle\tfa,before=\colprefoot,after=\colpostfoot]

and variations on it, expecting to switch to three columns after the
balanced two column body and back again after the footnotes.  The
results were very disappointing:

-- The footnotes are still in two columns.
-- At least, they now flow from one column to the next, though neither
they nor the body columns are balanced.
-- The hrule separating them from the body is now always absent---but
one appears at the top of the very first page!

I'm beginning to think that columns with marginal notes and footnotes
in a different number of columns can't be done.




 If I have a two-column text with margins on either side, is there a
 way for \inmargin{} or something like it to place text in the margin
 next to the column where it occurs?  I haven't been able to avoid it
 overprinting the text in the opposite column.

 I tried using margin blocks but I couldn't get anywhere with them.  Even:

 \startmarginblock
 test
 \stopmarginblock

 produces no output.  And there is a new wrinkle:
 \setupinmargin[align=outer] ruins my footnotes.  It causes the
 footnote marks that occur before the notes themselves to appear one
 margin-length left of where they should be, even if the overprint
 text.

___
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] pk-directory

2010-03-26 Thread Hartmut Henkel
On Fri, 26 Mar 2010, Wolfgang Werners-Lucchini wrote:
 On 26 Mar 2010 at 22:09, Hartmut Henkel wrote:
  On Fri, 26 Mar 2010, Hans Hagen wrote:
   On 26-3-2010 21:30, Wolfgang Werners-Lucchini wrote:
   
how should the directory be named where a 600 dpi pk-font is
searched for by luatex?
  
   i'm not so sure if luatex does pk fonts (i havent't included pk
   fonts in 15 years)
 
  it does, with the default kpathsea paths, e. g.:
 
  This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
  (./xx.tex [1] )
  /home/hahe/.texlive2009/texmf-var/fonts/pk/ljfour/public/cm/cm
  r10.600pk
 
  This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
  (./xx.tex [1] )
  /usr/local/texlive/2009/texmf-dist/fonts/pk/ljfour/public/cm/d
  pi600/cmr10.pk

 I have tried both variants but nothing works. I use the minimals under
 windows. What can I do (examine files, logs) to solve the problem?

sorry, i can't help. (Plain) luatex (as of TeX Live) would work, but the
minimals seem not to contain plain luatex (which is a pity), and context
does some automatism which includes Type0C fonts instead of pk.

Regards, Hartmut
___
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] Interlinespace in headertexts

2010-03-26 Thread Willi Egger

Hi,

When setting up a headertext in a \vbox there is no interlinespacing.  
Placing the same text in a \vbox in the text area there is the  
default interlinespacing.

Is there a simple explanation for this behaviour?

Using LuaTeX, Version beta-0.50.0-2009122422, ConTeXt  ver:  
2010.03.02 12:34 MKIV


Minimal example attached.

Willli

test-vbox.pdf
Description: Adobe PDF document


test-vbox.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] URL setup

2010-03-26 Thread Vyatcheslav Yatskovsky

Hi Wolfgang

Nice, and your example works. But why mine does not??


\setupinteraction
   [state=start,
color=red] % \goto and \from

\setupurl
   [color=orange] % \url

\useURL[149][http://xkcd.com/149/][][I prefer hot dogs.]
\useURL[224][http://xkcd.com/224/]

\starttext
\startlines
\goto{In Lua, array indices start from one.}[url(http://www.xkcd.com/163/)]
\from[149]
\url [224]
\stoplines
\stoptext

Wolfgang



--
Best Regards,
Vyatcheslav Yatskovsky
___
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] letter: backaddress

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo,

'backaddress' is composed from 'fromname' and 'fromaddress',
but this is to long and must be shortend. How can I overwritte 
'backaddress'?

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

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


Re: [NTG-context] pk-directory

2010-03-26 Thread Taco Hoekwater

Wolfgang Werners-Lucchini wrote:

Hallo,

how should the directory be named where a 600 dpi pk-font is searched 
for by luatex?


Context mkiv does not support pk files (the luatex executable itself
does, but context mkiv overrules all search paths and does not support
searching for pk files).

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

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


Re: [NTG-context] Microtype in ConTeXt

2010-03-26 Thread Yan Zhou
Thanks for all your replies. They helps a lot.

As I can see now ConTeXt is indeed a far more advanced system than LaTeX. But I 
have one more query. Where can I find the documents. When following these 
replies and some other messages in the list, I find some commands not 
documented in the Manual or Reference Manual. In LaTeX, all commands are 
detailed documented in source2e.tex, in TeX, The TeXBook explains everything. 
So in ConTeXt, where can I find such detailed documents. I tried the documented 
source, but it is more like a PDF version or source with only a little 
documentation.



On Mar 25, 2010, at 10:42 PM, Hans Hagen wrote:

 On 25-3-2010 19:14, Wolfgang Schuster wrote:
 
 \setupcharacterkerning[kerncharacters][factor=\ctxlua{tex.write(#1/1000)}]%
 
 i'll add it but simply with
 
   \setupcharacterkerning[kerncharacters][factor=#1]%
 
 there is no reason to use a different model than we have now (also, these 
 1000 based values are old fashioned tex approaches that don't make much sense 
 nowadays)
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] letter: backaddress

2010-03-26 Thread Matija Šuklje
Dne sobota 27. marca 2010 ob 00:45:19 je Wolfgang Werners-Lucchini 
napisal(a):
 'backaddress' is composed from 'fromname' and 'fromaddress',
 but this is to long and must be shortend. How can I overwritte
 'backaddress'?

How about 'sender'?


Cheers,
Matija
-- 
 /\  Document Freedom Day- Osvobodi svoje dokumente
_\/` http://documentfreedom.org/ - 31. marec 2010
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.org
___
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] Interlinespace in headertexts

2010-03-26 Thread luigi scarso
On Fri, Mar 26, 2010 at 11:33 PM, Willi Egger w.eg...@boede.nl wrote:
 Hi,

 When setting up a headertext in a \vbox there is no interlinespacing.
 Placing the same text in a \vbox in the text area there is the default
 interlinespacing.
 Is there a simple explanation for this behaviour?
No I haven't, but when I find similar problems I reset interlienspace;
try
\def\Header{\setupinterlinespace%
\vbox{%
Willi\par
Maasstraat 2\par
5836 BB Sambeek}}

-- 
luigi
___
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] Microtype in ConTeXt

2010-03-26 Thread Wolfgang Schuster

Am 25.03.10 23:42, schrieb Hans Hagen:
there is no reason to use a different model than we have now (also, 
these 1000 based values are old fashioned tex approaches that don't 
make much sense nowadays)

ok, makes sense

when i set different values for certain words the last setting in a 
paragraph is used for each word, is this intended?


\starttext

text \kerncharacters[.2]{text} text \kerncharacters[1]{text} text

text \kerncharacters[1]{text} text \kerncharacters[.2]{text} text

\stoptext

Wolfgang



kerncharacters.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] letter: backaddress

2010-03-26 Thread Wolfgang Schuster

Am 27.03.10 00:45, schrieb Wolfgang Werners-Lucchini:

Hallo,

'backaddress' is composed from 'fromname' and 'fromaddress',
but this is to long and must be shortend. How can I overwritte
'backaddress'?
   

\setlettervalue{backaddress}{short address}

or

\startletter[backaddress=...] ... \stopletter

Wolfgang

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

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


Re: [NTG-context] URL setup

2010-03-26 Thread Wolfgang Schuster

Am 26.03.10 23:38, schrieb Vyatcheslav Yatskovsky:

Hi Wolfgang

Nice, and your example works. But why mine does not??

\setupinteraction
   [state=start,
color=red] % \goto and \from

\setupurl
   [color=orange] % \url

Can you see the comments?

Wolfgang

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

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