Re: [NTG-context] alignment of figures

2005-10-25 Thread Hans Hagen Test

Taco Hoekwater wrote:



I placed the pdf file of one unfinished chapter on 
www.ogbasel.ch/book.html http://www.ogbasel.ch/book.html (3.5 MB). 
Note that Fig. 3.12 happens to be the way I want it. Why this 
particular figure chose to behave I don't know, putting nothing after 
\placefigure[] and most options [left,right,inner etc.) don't make a 
difference.



Interesting looking document. :-)



indeed! btw, did you consider a chapter head that used the margin as 
well? i.e.


- move the chapter number to the outer margin
- make it much bigger, maybe dark gray (or red since you use red)
- add a bit more space after the chapter header

that way it stands out better

how do you make the chemical pictures?

Hans

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


Re: [NTG-context] Continuous chapter numbering

2005-10-25 Thread Hans Hagen Test

Matthias Weber wrote:

When I read emails from Hans like this one, I get very suspicious  
that he has
a time machine to go backward a few months in time and add a feature  
so that it is already

there when it is being requested ---


well think of this: we really needed those feature some time ago, but 
never had time to document them at that moment; there is quite some 
nasty stuff in there, esp with regards to sectioning


Hans

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


Re: [NTG-context] spreadsheet

2005-10-25 Thread Hans Hagen Test

Jilani Khaldi wrote:




wait till pdfluatex is out -)



Does it have to do with the Lua language, or lua in middle has an 
other meaning?


the language

http://www.pragma-ade.com/general/manuals/luatex.pdf

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


Re: [NTG-context] margin kerning problem

2005-10-25 Thread Hans Hagen Test

Alan Bowen wrote:


To answer my own question:
To get margin kerning in the footnotes/endnotes as well as in the  
body text, put

\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]
before the fonts are installed.



indeed; this has to do with the fact that pdftex (tex) has some nasty 
global font assignments and optimizations hard coded


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


Re: [NTG-context] alignment of figures

2005-10-24 Thread Hans Hagen Test

� wrote:


Dear list members,

Sorry to insist. I have figures extending the width of the text  
(which is 14cm). I want them to be aligned with the the textblock at  
the inside, sticking out into the outer margin (which is 2.5cm). I  
tried all the commands I could find or think of, but nothing worked  
(most of them did'nt affect the actual position, i.e. the picture  
extending textwidth on both sides to the same extent).


I would appreciate an answer by somebody who knows, even if it is to  
tell me that it can't be done. Thanks a lot, J�rg.


see details.pdf manual

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


Re: [NTG-context] xml and context

2005-10-24 Thread Hans Hagen Test

Wolfgang Zillig wrote:


Hello,

I'am starting with a PhD and I'm thinking about using xml/mathml and
context. I'm a bit confused with all the different ways to combine xml
and context, native xml, fo, xslt, texml, docbook, ...
What is the most promising way to do this?
 


i'd go fo rnative xml + content mathml (most control over layout)

it's not that hard to map xml onto context and you can always apply xslt 
transformations to get other variants; for nice looking output, forget 
about xml-fo; it's not meant for that



Is it possible to use mechanisms like bibtex when going that way?



taco knows ...

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


Re: [NTG-context] interaction between header texts and typing environments

2005-10-24 Thread Hans Hagen Test

Marko � wrote:


I'm trying to have header texts on every page. There are also some
long typing environments in the document. It seems that when the page
breaks within the typing environment processing the header texts leads
to an error.
 

weird indeed has to do with catcodes and verbatim; for the moment use 
\setnormalcatcodes


\startsetups heading
\starttable[|w(.8\textwidth)l|w(.15\textwidth)l|]
\HL
\VL \VL page \pagenumber\ of \totalnumberofpages \VL\FR
\VL \VL \VL \LR
\HL
\stoptable
\stopsetups

\starttext

\setupheadertexts[\setnormalcatcodes\setups{heading}]

.

\stoptext

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


Re: [NTG-context] interaction between header texts and typing environments

2005-10-24 Thread Hans Hagen Test

Marko � wrote:


I'm trying to have header texts on every page. There are also some
long typing environments in the document. It seems that when the page
breaks within the typing environment processing the header texts leads
to an error.

If I put a \ifprocessingverbatim\else  \fi around the table in the
header text, I do not get the error. So I should turn off the typing
environment temporarily to get the header text out. How should I do
that? \stoptyping ... \starttyping do not do it.
 

my guess is that the following should work ok (this current code is 
quite old and dates from previous century)


\unprotect

\bgroup

\catcode`\|=\@@active
\catcode`\=\@@active

\gdef\pushouterbarandquote
 {\ifForgetTableBarAndQuote
\ifnum\catcode`\|=\@@active
   \let\outertablebar|%
\else
   \let\outertablebar\relax
\fi
\ifnum\catcode`\=\@@active
  \let\outertablequote%
\else
  \let\outertablequote\relax
\fi
  \fi}

\gdef\popouterbarandquote
 {\ifForgetTableBarAndQuote
\ifx\outertablebar  \relax\else\let|\outertablebar  \fi
\ifx\outertablequote\relax\else\let\outertablequote\fi
  \else
\redefinetablebarandquote
  \fi}

\egroup

\protect

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


Re: [NTG-context] strange (?) exporting from pdf

2005-10-24 Thread Hans Hagen Test

Henning Hraban Ramm wrote:

I'm not a XML guru (never tried XML with ConTeXt), but I guess if  
you use a XML format like DocBook (or even OpenOffice's) there'd  be 
a ready-to-use way for RTF.


Thanks a lot, I was in fact investigating OO.



If you make up something useful from OpenDocumentFormat (or OOo's old  
format), please share it � I guess an OOo to ConTeXt converter would  
help some people.


actually i've done some of that some time ago in an experimental 
project; doable as long asin oo one does not mess round too much with 
tabs (not that well structured xml)


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


Re: [NTG-context] Getting icelandic letters (eth and thorn) to work.

2005-10-24 Thread Hans Hagen Test

Olivier wrote:


There are not in the official distrib yet, but the TeXlive based
packages available at http://www.tug.org/texlive/Debian/ are very great
and up to date.  In particular they provide

This is pdfeTeX, Version 3.141592-1.30.2-2.2 (Web2C 7.5.5)
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004

Instructions for install at http://www.tug.org/texlive/debian.html
 

indeed, the debian tex maintainers are quite actively participating in 
tex live packaging,


Hans

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


Re: [NTG-context] Continuous chapter numbering

2005-10-24 Thread Hans Hagen Test

Randall Skelton wrote:



Is there a way to have the chapter numbers be continuous rather than 
resetting at the beginning of each product?  I have already disabled 
product numbers in a setupheader command but I'm stumped at how to 
make the chapter numbers continuous.  I've tried playing with 
incrementnumber=file but I'm not sure this appropraite... any hints 
here would be greatly appreciated.


\setuphead[chapter][resetnumber=no]

\starttext
   \chapter{test}
   \section{foo}
   \section{bar}
   \chapter{test}
   \section{foo}
   \section{bar}
\stoptext

should work with part as well

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


Re: [NTG-context] Interactive things and exact placement of graphics

2005-10-24 Thread Hans Hagen Test

Jessica Holle wrote:


Hi,

I have some questions again. :-)
I want to draw a figure with metafun and place this on an exact
place like x=3cm,y=4cm. This figure  will be build of some figures
which I draw with Metafun. In which way I do this? Whith layers? How
should it looks like? Get some small layer with only one figure
together in a big layer?

And when I've build this graphic I want to put text into it and the
whole graphic should be interactive. I want to lay a hyperlink over
this to the web or another page in my document. Is this possible and
in which way?
 



\definelayer[blabla][width=4cm,height=8cm]

\setlayer[blabla][preset=lefttop,x=1cm,y=2cm]{your graphic}

etc etc

grep a bit for layers in the context/base tree

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


Re: [NTG-context] font scaling in typescripts

2005-10-24 Thread Hans Hagen Test

Thomas A. Schmitz wrote:

This may be a bug, or I may be missing something... I have defined a  
typescript for my Adobe Garamond, and I want Courier as the monotype  
font accompanying it. Since Courier is a bit too big compared to  
Garamond, I want to scale it down, so I have this line in my  
typescript (yes, I have adapted my own Courier, I have given up on  
all the changes in names etc. in the latest teTeX releases):


  \definefontsynonym [Courier] [texnansi-Courier sa  0.9]  
[encoding=texnansi]


This works almost perfectly; Courier is scaled exactly like I want  
it. There's one small problem: the first occurrence of monotype in  
the document will print sa 0.9 at 12.0pt just before the passage in  
monotype. This happens only once in the document, but it doesn't look  
very nice. Bug or feature?


scaling is not defined at that lvel, but with 
\definefont[somename][Courier sa 0.9] cum suis; what you're looking for 
is 'rscale':


\definetypeface . [encoding=texnansi,rscale=0.9]

grep for rscale in the base directory; there are some example 
combinations defined


Hans

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


Re: [NTG-context] MathML: Please ignore mo#x02061;/mo

2005-10-24 Thread Hans Hagen Test

Christopher Creutzig wrote:


Salvete,

I just started to think about using ConTeXt on XML input files, so I've
got a question which should be easy to answer:  My MathML source
generates presentation code which includes mo#x02061;/mo between a
function symbol and its arguments.  I get a black rectangle for that;
I'd like ConTeXt to ignore this character, where do I define it as
�nothing�?
 



in the related unic-* files (these are occasionally extended with new 
entries -)


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


Re: [NTG-context] saving cell content in macro

2005-10-24 Thread Hans Hagen Test

� wrote:


Hello,
how could I save the cell of a table in a macro?
I tried the following, but it does not work:

\starttext

\def\StartScanning#1\StopScanning{\def\MyValue{#1}}

\starttable[|b{\StartScanning}la{\StopScanning}|l|]
\NC 123 \NC 456 \NC\AR
\stoptable

Test: \MyValue

\stoptext

TIA for any help, Peter
 

teh a/b keys are too tricky for this (preamble mess), so maybe do 
something:


\starttext

\def\GC#1 {#1\gdef\MyValue{#1}}

\starttable[|l|l|]
\GC 123 \NC 456 \NC\AR
\stoptable

Test: \MyValue

\stoptext

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


Re: [NTG-context] spreadsheet

2005-10-24 Thread Hans Hagen Test

� wrote:


Hello,

I would like to do some spreadsheet like calculations with ConTeXt. Before
using the same package, I've used once upon a time with LaTeX (realcalc), I
would like to know, if there are already some macros for calculations in
ConTeXt, or if you could recommend some method, how to do that.
 


wait till pdfluatex is out -)

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


[NTG-context] mails

2005-10-21 Thread Hans Hagen Test

Hi,

I'm a bit slow in reading / answering mails this week because of a 
change of the internal mail server (imap etc) and related mail box 
conversions. Sorry.


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


Re: Antwort: Re: [NTG-context] distance with \godown

2005-10-21 Thread Hans Hagen Test

Jessica Holle wrote:


Yes this works. Thx,
But I've testet it with godown=0pt
When I say this is to much distance between the kastens and
comment \godown=0pt out there is the same strange thing.
When I comment it on all my pages out there is a bigger distance
between the first and second kasten.
Why?
Why only on this point?
Where does it comes from?
How can I disable this?

Hope you have an answer to this :-)
 



\godown takes an [argument] and is not an assignment so maybe there is 
some covered-by-button typeset '0pt' interfering


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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Hans Hagen Test

Alan Bowen wrote:

I have been adapting some of my old Plain TeX macros to ConTeXt,  
using hints and suggestions from the ConTeXt wiki. What I have thus  
far works exactly as desired in the body text, but fails in the  
footnotes. I have appended some encoded text that shows the problem.  
Note the poor line-spacing and (unwanted) indentation in the first  
line of the quotation in the footnote: this quotation should look the  
same as the one in the body text.


I realize that I could fix this simply by inserting a \noindent in  
the footnote, for instance. But I am trying to reduce the amount of  
thinking an coder has to do, and so would really like to define the  
startextract..\stopextract environment more effectively.


don't use \godown, use \blank since it is  more clever in accumulating 
cq. handling vertical spaces; also,


 \defineblank[footnotedistance][.1pc]

and then using

 \blank[footnotedistance]

makes the thing configurable (one can redefine the spacing outside the 
macro)


Hans



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


Re: [NTG-context] long quotation problem

2005-10-21 Thread Hans Hagen Test

Willi Egger wrote:


Hi Alan,

I tried your code. I made the extract to be typeset in red.- Indeed a 
poor spacing.
I withdrew the \godown[0.10pc]. The result looked fine to me. Then I 
replaced the \godown by \blank[halfline], the result was again o.k.
Finally the \godown[0.10pc] was replaced with \godown[12pt] and the 
result looks o.k. to me. - So may be that there is a problem with your 
unit pc.


indeed such small units start interfering with depth and interlinespacing

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