Re: [NTG-context] Basic question on Unicode and ConTeXt

2005-07-20 Thread Mojca Miklavec
Christopher Creutzig wrote:
> Hans Hagen wrote:
> >> So why not mapping the characters to unicode first and defining the
> >> mapping from unicode to \TeXcommand only once? regi-* files (at least
> >> in the meaning they have now) could be prepared automatically by a
> >> script, less error-prone and without the need to say "Some more
> >> definitions will be added later."
> >>
> > you mean ...
> >
> > \defineactivetoken 123 {\uchar{...}{...}}
> >
> > it is an option but it's much slower and take much more memory
> 
>   I may be wrong, of course, but I think Mojca proposed something
> different (and something that should be really easy to implement):  Have
> the unicode vectors stored in a format easily parsed by an external ruby
> script and create the regi-* files from that, using the conversion
> tables provided by your operating system or iconv or wherever ruby gets
> them from.

Yes, I had something different in mind.

A1.) prepare the files to be used as a source of transformation from
"any" character set to utf and prepare a list of synonyms for
encodings

(example: a file that says that in ISO-8859-2, character 0xA3
represents an unicode character 0x0141 (lstroke): for every character,
for every Mac/Windows/iso/[...] encoding that we want to support)

A2.) write a script which automatically generates regi-* files from
those files, but regi-* files would contain only the mapping to
unicode number

(example:
\startregime[iso-8859-2]
...
\somecommandtomapacharactertounicode {163}{1}{65} % lstroke
...
\stopregime)

A3.) prepare a huge file with mapping from unicode numbers to ConTeXt commands

(example:
...
\somecommandtomapfromunicodetocontext {1}{65}{\lstroke}
...)

A4.) ... I don't mind what ConTeXt does with this \lstroke afterwards,
but it seems it is already clever enough to produce the (proper) glyph
at the end

What should ConTeXt do with that?
B1.) The file under A3 should be processed at the beginning. As it may
become really huge, exotic definitions should be only preloaded if
asked for (\usemodule[korean]), while there is probably no harm if
(accented) latin, greek, cyrillic and punctuation (TM, copyright, ..)
are preloaded by default

B2.) Once the \enableregime[iso-8859-2] or any other regime is
requested, the file with the corresponding regime definitions is
processed. However, as \somecommandtomapacharactertounicode
{163}{1}{65} is processed, the character '163' is not stored as
\uchar{1}{65}, but as \lstroke. '\somecommandtomapacharactertounicode'
would first take a look which ConTeXt command is saved under
\uchar{1}{65} and call the
\defineactivetoken 179 {\lstroke} as a result.

I don't know the details of the ConTeXt internal stuff, but I think
(hope) that it should be possible to do it this way. B1 (preloading
mapping from unicode to tex commands) is probably the only "hungry"
step in the whole story.

I think that it doesn't make any sense to ask the user to "\input
regi-whatever". \enableregime and some additional definitions should
be clever enough to find out which file to process in order to enable
the proper regime.

%

Christopher's idea is actually yet another alternative, which combines
the steps A2 and A3. If the mapping unicode->ConTeXt is in some
easy-to-parse format, there's actually no additional effort if the
script writes directly the ConTeXt commands instead of unicode numbers
into regi-* files, so that B2 has some less work to do. As long as it
is guaranteed that nobody will change these files manually, this is
OK. The only drawback is that if someone notices that "\textellipsis"
is more suitable than "\dots", the script has to be changed and the
files have to be generated once more. If the character is mapped to
(0x2026 HORIZONTAL ELLIPSIS) instead, only one line in the file with
unicode->ConTeXt mapping (A3) has to be changed.

If B2 cannot work as described, the Christopher's proposal would be
the only proper way to go.

%

I wanted to test \showcharacters on the live.contextgarden.net (as
Hans suggested that my map files are probably not OK), but it didn't
compile there. (I hope it's not because of my buggy contributions in
the last few days.)

Is there any tool or macro to visialize all the glyphs available in a
font? \showcharacters (if it works) shows only the glyphs that ConTeXt
is aware of. What about the rest?

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


[NTG-context] Re: some beta software (fontinstaller)

2005-07-20 Thread Patrick Gundlach
>
>>Any kind of feedback is welcome.
>>  
>>
> great. looks like adam and i have to start rethinking texfont now -) 

Not so fast: the lib cannot handle opentype fonts yet. And it will
take some thinking to integrate them smoothly (I'd expect).


Patrick

(Just implemented an afm writer - don't know if anybody will ever use
it)
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bug / feature portal

2005-07-20 Thread Stuart Jansen
On Thu, 2005-07-21 at 00:11 +0200, Hans Hagen wrote:
> in addition to the wiki there is now a portal for tracking bugs and 
> feature requests

I'm excited to have a bug tracker, but I didn't like the forums. In my
experience, forums and lists are competitor. Forums are more opaque than
lists. I don't want to monitor both. And I'm not sure the community is
large enough to really take advantage of a Web forum.

-- 
Stuart Jansen <[EMAIL PROTECTED]>
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: some beta software (fontinstaller)

2005-07-20 Thread Hans Hagen

Patrick Gundlach wrote:


Any kind of feedback is welcome.
 

great. looks like adam and i have to start rethinking texfont now -) 


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

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


[NTG-context] bug / feature portal

2005-07-20 Thread Hans Hagen

Hi,

in addition to the wiki there is now a portal for tracking bugs and 
feature requests


 http://context.literatesolutions.com/ 

this is *not* a replacement for the wiki, which is and will be the primary place for on-line user support etc etc. Although the portal is mainly meant for those involved in the development and therefore is moderated, it is open for anyone who wants to contribute in bug reports and feature requests. It's still somewhat experimental and we're trying to figure out the best way to deal with things like bugs (without too much overhead for the developers). In due time there will also be some additional resources for the purpose of history.  

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
-

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


Re: [NTG-context] Basic question on Unicode and ConTeXt

2005-07-20 Thread Christopher Creutzig

Hans Hagen wrote:


So why not mapping the characters to unicode first and defining the
mapping from unicode to \TeXcommand only once? regi-* files (at least
in the meaning they have now) could be prepared automatically by a
script, less error-prone and without the need to say "Some more
definitions will be added later."
 


you mean ...

\defineactivetoken 123 {\uchar{...}{...}}

it is an option but it's much slower and take much more memory


 I may be wrong, of course, but I think Mojca proposed something 
different (and something that should be really easy to implement):  Have 
the unicode vectors stored in a format easily parsed by an external ruby 
script and create the regi-* files from that, using the conversion 
tables provided by your operating system or iconv or wherever ruby gets 
them from.



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


Re: [NTG-context] [BUG] unic-032.tex 0x2026 HORIZONTAL ELLIPSIS definition wrong

2005-07-20 Thread Nikolai Weibull
Hans Hagen wrote:

> Nikolai Weibull wrote:

[HORIZONTAL ELLIPSIS definition wrong]

> i made it the equivalent of \unknown (better spacing than \dots)

Ah, so very, very true.

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Enumeration numbering broken

2005-07-20 Thread David Antos
On Wed, Jul 20, 2005 at 09:49:54PM +0200, Hans Hagen wrote:
> i found the cause ... (quick hack for your doc: set way=bychapter for 
> both); when i cleaned up the code i let numbers inherit in the wrong way 
> btw what exactly was you problem with inbetween? 

Hello,

no problem with inbetween; the inbetween setting was necessary just because
I used paragraph indents (and no vertical space) and I wanted the Theorems
to be

Theorem x.y
No indent is here

and not

Theorem x.y
   Paragraph indent here
looks really ugly

So my example was small, but not really minimal :-)

Thanks,
D.A.

-- 
Jim Hacker: "You are the Cabinet Secretary. You must insist that we get
papers circulated earlier."
Sir Humphrey: "Alas, there are grave problems about circulating papers
before they are written."
-- Yes, Prime Minister
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Not possible to redefine inbetween in \definedescription

2005-07-20 Thread Hans Hagen

Radhelorn wrote:


\getparameters[\??dd#1]
  
[\s!do\c!state=\v!stop,\s!do\c!command=\normal@@descriptionhandler,\c!level=,#2]% 

-   
\doifvalue{\??dd#1\c!location}\v!top{\doassign[\??dd#1][\c!inbetween=\blank]}% 


+   \doifvalue{\??dd#1\c!location}\v!top{%
+ 
\doifnotvalue{\??dd#1\c!inbetween}{\doassign[\??dd#1][\c!inbetween=\blank]}}% 



looks ok to me 

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
-

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


Re: [NTG-context] Enumeration numbering broken

2005-07-20 Thread Hans Hagen

David Antos wrote:


On Thu, Jul 14, 2005 at 11:11:42AM +0200, Taco Hoekwater wrote:
 


in the following example, I'm pretty sure that it should produce Lemmas and
Theorems numbered continuously (i.e., one common counter for both of them)
 


There has been a rather large set of changes to code core-des.tex
for the 2005.05.25 release, and that seems the likely cause of this
change. I do not understand this bit of ConTeXt good enough to come
up with a patch, sorry.
   



Hello,

yes, I've upgraded from an older release (something like 2005.01.xx) and it
worked before.

Hans, could you please have a look?
 

i found the cause ... (quick hack for your doc: set way=bychapter for both); when i cleaned up the code i let numbers inherit in the wrong way 

btw what exactly was you problem with inbetween? 

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
-

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


Re: [NTG-context] [BUG] unic-032.tex 0x2026 HORIZONTAL ELLIPSIS definition wrong

2005-07-20 Thread Hans Hagen

Nikolai Weibull wrote:


\textellipsis usually expands to \cdots and that's fine, but
\textellipsis shouldn't be used in unic-032.tex for 0x2026 HORIZONTAL
ELLIPSIS, as this codepoint is for a symbol of dots on the base-line,
not in the center.  I've posted about this previously, but got no
response.  Anyway, I've attached a patch that fixes the problem.  I
don't know if using \dots instead is the best solution, though, so
further discussion may be necessary?,
 


i made it the equivalent of \unknown (better spacing than \dots)

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
-

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


[NTG-context] context-doc inclusion in miktex

2005-07-20 Thread piskala upendran
hi all,

The miktex under windows XP does not include the
context-doc.cab files. It is not listed in the package
manager also.
Is it TDS problem?

can you help?


cheers,
upendran

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: some beta software (fontinstaller)

2005-07-20 Thread Patrick Gundlach
Hello again,

finally a follow-up. I have been working on my font installer for the
last few (insert your favourite time period here). It has come to a
state where it is actually usable. Although not very fancy yet. 

For those who don't know: it is a set of ruby libraries to create a
font installer as well as some example installers. It can handle a
single font (like afm2tfm) and a font family (like fontinst). 

Included in the distribution is a program called afm2tfm.rb. You might
guess that this is meant as a replacement for afm2tfm (comes with
dvips). It can do a bit more than afm2tfm, for example, it can also
handle truetype fonts and keep kerning and ligature information in the
tfm file.

Another program included is 'rfont', a simple installer for font
families (regular, bold, italic, ...). But for that program, I need
some help for implementing ConTeXt font support. LaTeX support is
already working (although very preliminary - I'd appreciate help
there, too).

Prerequisites:

* ruby 1.8  (I guess, I have not tested it with 1.6)
* pltotf, vptovf (come with your TeX distribution)
* ttf2afm (pdftex), if you want to install truetype fonts
* patience (not everything is bug free)
* subversion if you want to stay up to date and can't wait a few hours
  for the nightly snapshot.

This release is dedicated to Mojca and Nikolai (who have to wait for
the changes in texshow-web - I was just too busy with this)

> Here is the project page: https://foundry.supelec.fr/projects/rfil/
>
> and here is the 'home page' of the project:
> https://rfil.groups.foundry.supelec.fr/ (documentation in rdoc format)

There is also a mailinglist at that site. You can find it at the
project page.

Because the upload of the foundry server is not working for me at the
moment, I have put the current cvs snapshot at
. This will go away soon. You can
always downoad the nightly svn snapshot.


Any kind of feedback is welcome.

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] new current (was: new beta)

2005-07-20 Thread Taco Hoekwater


Hi all,

Some time after lunch, Hans has done another upload. That release has
date 2005.07.20, and, among other things, it fixes the \startlines
bug and the fatal errors in 2005.07.13

Greetings, Taco


I've made a wiki page for the also uploaded current 2005.07.13 version,
that does not contain the \startlines code, but does have most of the


eh .. i did fix startlines (actually i fixed the normalspace definition) 
but this fix doe snot show up in the startlines code itself



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


Re: [NTG-context] footnote within \startlines \stoplines

2005-07-20 Thread Charles Doherty
On 19 Jul 2005, at 14:58, Hans Hagen wrote:or, in page-lin.tex, fix:  \installspacehandler \v!off  {\normalspaces   \let\obeyedspace\normalspace   \let\ =\normalspace}  Thanks Hans,Charlie Doherty *** Charles Doherty, Early Irish History, School of History, John Henry Newman Building, University College Dublin, Belfield, Dublin 4  Tel: +353 1 716 8381  ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] how to use Times Roman font

2005-07-20 Thread Hans Hagen

Sytse Knypstra wrote:

On 2005-03-20 and 2005-03-21 there was a thread on this list about 
using the Times Roman font under the CONTEXT distribution for Windows.


I'm running into similar problems (also with the Bookman and Lucida 
bright fonts) and I am curious whether the problem was solved and how.


probably a map file problem (make sure that your local cont-sys.tex file is up-to-date i.e. compare it to cont-sys.rme) 

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
-

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


Re: [NTG-context] line break

2005-07-20 Thread Hans Hagen

Jörg Hagmann wrote:

Some time ago, I inquired about the problem of an unwanted linebreak.  
The linebreak is inserted after an \inothermargin command, if at the  
same time there is a figure occupying the margin and some part of the  
textarea on the opposite side (a type of figure here called  
"vignette"). When I run the .tex file (see below) on the wiki, I get  
the same result as on my computer.
Could somebody tell me whether there is an abvious mistake in what I  
did or that's the way it is, and nothing can be done (I include the  
complete setuparea, just to be sure).



you can put this in cont-new.tex (after \unprotect); it solves the 
problem but i'm not that sure if it does not introduce new ones


\def\dodoinmargin[#1][#2][#3][#4][#5]#6%
 {\bgroup
  \forgetall % otherwise sidefloat problems, added 2005/07/20 
\postponefootnotes % group is (somehow) needed
  \doifinsetelse\v!low{#4}
{\chardef\margincontentdisplacement\plusone}
{\chardef\margincontentdisplacement\zerocount}%
  \doif\v!reverse{#2}
{\swapmacros\dorightmarginblock\doleftmarginblock}%
  \processaction
[#1]
[   \v!left=>\let\next\doleftmarginblock,  % no swapping
   \v!right=>\let\next\dorightmarginblock, % no swapping
   \v!inner=>\def\next{\doinmarginswapped
\dorightmarginblock\doleftmarginblock },
   \v!outer=>\def\next{\doinmarginswapped
\doleftmarginblock\dorightmarginblock},
 \s!unknown=>\ifdubbelzijdig
   \doifcommonelse{+,-}{#4}
 {\def\next{\doinmarginswapped
\dorightmarginblock\doleftmarginblock }}
 {\def\next{\doinmarginswapped
\doleftmarginblock \dorightmarginblock}}%
 \else
   \let\next\doleftmarginblock
 \fi]%
  \next{#3}{#6}%
  \rawpagereference\s!mar{#5}% naar binnen ! ! ! !
  \flushnotes
  \egroup % don't forget the group
  \ignorespaces}


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

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


Re: [NTG-context] Help with interaction

2005-07-20 Thread luigi.scarso

luigi.scarso wrote:


Hi, I would like that whan i click over 'Bho' at page 1
I go to page 2 and see the title Bho

\setupinteraction[state=start, focus=width]
\starttext
\about[etichetta]
\page
\section[etichetta]{Bho}
\input tufte
\stoptext

This piece of latex does the thing I want
%%% latex
\documentclass[a4paper, 12pt]{article}
\usepackage[bookmarks=false, pdfstartview=FitH, pdfview=FitH]{hyperref}
\usepackage{nameref}
\begin{document}
\nameref{etichetta}
\clearpage
\section{Bho}\label{etichetta}
\input{tufte}
\end{document}


thanks
luigi
___ 


If I use
\setupinteraction[state=start, focus=minwidth]

I have
! Undefined control sequence.
 \v!minwidth


To work\unprotect
\def\dosetuppageview#1% watch the v-h swapping here
 {\processaction
[#1]
[   \v!fit=>\def\PDFpageviewkey  {fit}\def\PDFpageviewwrd{/Fit},
  \v!width=>\def\PDFpageviewkey {fith}\def\PDFpageviewwrd{/FitH},
 \v!height=>\def\PDFpageviewkey {fitv}\def\PDFpageviewwrd{/FitV},
   minwidth=>\def\PDFpageviewkey{fitbh}\def\PDFpageviewwrd{/FitBH},
  minheight=>\def\PDFpageviewkey{fitbv}\def\PDFpageviewwrd{/FitBV},
   standard=>\def\PDFpageviewkey{xyz 
\PDFpagexyzspec}\def\PDFpageviewwrd{/XYZ \PDFpagexyzspec},

\s!unknown=>\def\PDFpageviewkey  {fit}\def\PDFpageviewwrd{/Fit}]%
  \edef\PDFpageview{/View [\PDFpageviewwrd]}}
\protect


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


Re: [NTG-context] line break

2005-07-20 Thread Hans Hagen

Jörg Hagmann wrote:

Some time ago, I inquired about the problem of an unwanted linebreak.  
The linebreak is inserted after an \inothermargin command, if at the  
same time there is a figure occupying the margin and some part of the  
textarea on the opposite side (a type of figure here called  
"vignette"). When I run the .tex file (see below) on the wiki, I get  
the same result as on my computer.
Could somebody tell me whether there is an abvious mistake in what I  
did or that's the way it is, and nothing can be done (I include the  
complete setuparea, just to be sure).


It's a bug as the following small example shows:  


\useMPlibrary[dum]

\setuppagenumbering[alternative=doublesided]
\setupwhitespace[medium]

\starttext

\placefigure[right]{}{\externalfigure[dummy][width=2cm]}

\input tufte \inothermargin{test} \input tufte

\stoptext

i must look into it

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
-

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


Re: [NTG-context] line break

2005-07-20 Thread Jörg Hagmann
Some time ago, I inquired about the problem of an unwanted linebreak.  
The linebreak is inserted after an \inothermargin command, if at the  
same time there is a figure occupying the margin and some part of the  
textarea on the opposite side (a type of figure here called  
"vignette"). When I run the .tex file (see below) on the wiki, I get  
the same result as on my computer.
Could somebody tell me whether there is an abvious mistake in what I  
did or that's the way it is, and nothing can be done (I include the  
complete setuparea, just to be sure).

Thanks a lot, Jörg.


can you make a minimal complete example


\enableregime [il1]
\mainlanguage [de]

\usemodule[greek]
\usemodule[units]

\setuplayout[height=26.5cm,backspace=2cm,topspace=1.7cm,footer=1.2cm]
\setupbodyfont[11pt]
\setuppagenumbering[alternative=doublesided,location=footer]
\setupheader[state=none]

\setuptolerance[tolerant, stretch]
\setupwhitespace[medium]

\setupitemize[headstyle=italic]

\definehead[Bookchapter][chapter]
\setuphead[Bookchapter][page=yes,conversion=Character]

\setuptables[bodyfont=small]

%Figures partially in margin
\definefloat[vignette][figure]
\setupfloat[vignette][leftmargindistance=- 
\outermargintotal,rightmargindistance=- 
\outermargintotal,default={outer,none,low}]

\setupcaption[vignette][number=no]

%Figures digestion_chapter
\setupexternalfigures[directory=./FIGURES/]
\useexternalfigure[fig:acidsecr][di_acidsecr]
\useexternalfigure[fig:di_cascade][di_cascade][width=0.5\textwidth]
\useexternalfigure[fig:di_proteins][di_proteins]
\useexternalfigure[fig:di_carbo][di_carbo][width=\textwidth]
\useexternalfigure[fig:di_lipids][di_lipids]

\setuptextrules[style=\ss]

\showframe

\starttext

\placevignette{}{\externalfigure[di_B12_marg][width=4cm]}
Die Resorption des {\em wasserloeslichen} Vitamins B\low{12} (=  
Cobalamin, s. Formel) faellt aus dem Rahmen: B\low{12} wird nur als  
Komplex mit dem \quotation{Intrinsic Factor}, einem Glycoprotein aus  
den Belegzellen des Magens, {\em im Ileum} aufgenommen (Intrinsic, weil  
der Faktor aus dem Koerper stammt -- dazu passend bezeichnet man  
B\low{12} auch als \quotation{Extrinsic Factor}).\inothermargin{\ssd  
Pa} Vitamin B\low{12} wird von Bakterien synthetisiert und stammt  
ausschliesslich aus tierischer Nahrung; Veganer/innen, die nicht nur  
auf Fleisch, sondern auch auf Eier und Milchprodukte verzichten,  
besitzen einen entsprechend niedrigen Vorrat des Vitamins. Haeufigste  
Ursache fuer die {\em pernizioese Anaemie}, die klassische  
B\low{12}-Mangelkrankheit, ist allerdings nicht eine Fehlernaehrung,  
sondern eine verminderte Resorption im Ileum, entweder weil dessen  
Schleimhaut entzuendet ist (Sprue), oder weil eine erkrankte  
Magenschleimhaut zuwenig Intrinsic Factor produziert.


\stoptext

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


Re: [NTG-context] how to use Times Roman font

2005-07-20 Thread Sytse Knypstra
On 2005-03-20 and 2005-03-21 there was a thread on this list about using 
the Times Roman font under the CONTEXT distribution for Windows.


I'm running into similar problems (also with the Bookman and Lucida 
bright fonts) and I am curious whether the problem was solved and how.


Sytse Knypstra

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


Re: [NTG-context] new beta

2005-07-20 Thread Hans Hagen

Taco Hoekwater wrote:




Hans Hagen wrote:


Hi,

I'm currently uploading a beta with the most recent discussed fixes / 
extensions. 



I've made a wiki page for the also uploaded current 2005.07.13 version,
that does not contain the \startlines code, but does have most of the


eh .. i did fix startlines (actually i fixed the normalspace definition) 
but this fix doe snot show up in the startlines code itself



other bugfixes:

  http://contextgarden.net/Release_Notes

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






--

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

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


Re: [NTG-context] ConTeXt to XML?

2005-07-20 Thread Hans Hagen

Brooks Moses wrote:


At 01:40 PM 7/19/2005, you wrote:


Brooks Moses wrote:

The other alternative I know of for doing math in XML is embedding 
bits of LaTeX code within the XML.  Since most "conversion to 
non-PDF formats" involves converting the math to bitmap images 
anyway (or, at least, any conversion to HTML for the web does!), I 
don't think that's really complicating things much.  It's certainly 
possible in theory to embed LaTeX-coded equations in ConTeXt, and 
there's a small bit of comment on this on the Wiki.  In practice, it 
may take a bit of coding to make work, but the amount won't be 
excessive.



there is a math module (m-math) and a new implementation of that 
(m-newmat) which does quite some ams math;



It does some, yes, though not (yet) the multiline alignment parts that 
I need.


ok, so just isolate the code that you want to be included

i have no problem with adding more code but each time i ask for 
specs, nothing comes up -)



Yeah, I know.  The specs for what I need are "I've got this pile of 
equations written in LaTeX with the AMSmath package, and I'd like to 
be able to copy them back and forth between LaTeX and ConTeXt without 
needing to edit them."  I'm slowly working on reducing that to 
something that's actually useful as specifications (and as some code), 
and I hope to get some of that to you within the next few months or so.


Ok,  maybe we can also make a small manual then -)


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
-

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


Re: [NTG-context] new beta

2005-07-20 Thread Taco Hoekwater



Hans Hagen wrote:

Hi,

I'm currently uploading a beta with the most recent discussed fixes / 
extensions. 


I've made a wiki page for the also uploaded current 2005.07.13 version,
that does not contain the \startlines code, but does have most of the
other bugfixes:

  http://contextgarden.net/Release_Notes

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


[NTG-context] \normalnextrandom+\setupindenting

2005-07-20 Thread Peter Rolf
Hi Hans,

in both new versions (13.7. and beta 19.7.) I get the error

...
! Undefined control sequence.
\nextrandom ->\bgroup \normalnextrandom
\gdef \nextrandom {\ifcase
\randomse...

[EMAIL PROTECTED] ->\nextrandom
 \ranval \randomi \advance \ranval \minusone
\divide...

\getrandomcount ...\!!countb \!!counta [EMAIL PROTECTED]
  \advance \ranval
#2#1\ranval

\getrandomnumber ...count \scratchcounter {#2}{#3}
  \edef #1{\the
\scratchcoun...

\setMPrandomseed ...\localMPseed \zerocount {4095}
  \writeMPgraphic
{randomsee...

\openMPgraphicfile ...iteMPgraph \setMPrandomseed
  \fi
...



In the new beta \setupindenting[\bodyfontsize] is broken

...
Symbole : Lade Symboldatei uzd
! Missing \endcsname inserted.

   \bodyfontsize
\executeifdefined #1->\ifcsname #1
  \endcsname \expandafter
\firstoftwoargumen...

\docomplexsetupindenting ...eifdefined {\??in :#1}
  {\edef
\currentindentation...

\next1 #1,->\docomplexsetupindenting {#1}
 \doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global
\advance \...

\complexsetupindenting ...docomplexsetupindenting
  \toggleindentation
l.65 \setupindenting[\bodyfontsize]



As always I'm not sure, if it's my crude context installation or a bug :)

Greetings,

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


[NTG-context] Help with interaction

2005-07-20 Thread luigi.scarso

Hi, I would like that whan i click over 'Bho' at page 1
I go to page 2 and see the title Bho

\setupinteraction[state=start, focus=width]
\starttext
\about[etichetta]
\page
\section[etichetta]{Bho}
\input tufte
\stoptext

This piece of latex does the thing I want
%%% latex
\documentclass[a4paper, 12pt]{article}
\usepackage[bookmarks=false, pdfstartview=FitH, pdfview=FitH]{hyperref}
\usepackage{nameref}
\begin{document}
\nameref{etichetta}
\clearpage
\section{Bho}\label{etichetta}
\input{tufte}
\end{document}


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