ConTeXt-Wiki (Was: Re: [NTG-context] Re: pdfTeX questions)

2004-06-18 Thread Holger Schöner
Hallo Patrick,

 Patrick (thinking about creating a ConTeXt wiki, see same page as
 below, just port number 8062)
 
 [1] http://members.ping.de:8061/

Finde ich eine gute Idee! Was mir (neben der Hilfe auf auf der Liste für 
neue Probleme) am meisten bringt, und ich bisher etwas vermisse, sind 
Beispiel-Dokumente (genauer: deren Quellcode).

Im Moment habe ich aufgrund meiner Promotion wenig Zeit, mich in das Wiki 
einzuarbeiten. Was ich zur Verfügung stellen könnte, ist ein include-File 
mit Macros zum Setzen von (hoffentlich) DIN-kompatiblen Briefen, ein 
typescript mit (bisher erst 4 oder 5) verschiedenen Schrift-Definitionen, 
die auf den Schriftdateien der Fontsite500-Distribution, sowie ergänzende 
TeX/LaTeX-Dateien (Link weiss ich momentan gerade nicht, kann ich aber bei 
Bedarf heraussuchen) aufsetzen. Schließlich benutze ich ein Environment, das 
ich von Projekt zu Projekt mitschleppe, und in dem ich alle möglichen mir 
nützlich erscheinenden Definitionen pflege (zum Teil auskommentiert, bzw. 
kommentiert). Alle sind natürlich noch mehr oder weniger Verbesserungsfähig.

Wenn Du etwas davon auf die Seite stellen willst, bevor ich dazu komme
(voraussichtlich ab August, dann ist die Promotion [natürlich in ConTeXt
;-)] hoffentlich fertig), dann kann ich sie Dir per EMail senden.

Viele Grüße,

-- 
Holger F. Schoener  TU Berlin; Dept. IV: EE and Computer Science
[EMAIL PROTECTED]   http://www.cs.tu-berlin.de/~hfsch/
Rooms FR2525Tel: +49-30-314-73115, Fax: -73121
Office FR 2-1   Franklinstr. 28/29, D-10587 Berlin, Germany
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: pdfTeX questions

2004-06-07 Thread Hans Hagen
Peter Münster wrote:
On Mon, 31 May 2004, Patrick Gundlach wrote:
 

FitBH means, fit to width of bounding box. When reading text on the screen,
the combination of FullScreen and FitBH seems to me optimal.
 

I could not find anything like this in ConTeXt.
   

After a while of searching, I found in spec-fdf.tex the following lines:
\def\PDFpageviewkey{  fit}
\def\PDFpageviewwrd{ /Fit}
\def\PDFpageview   {/View [\PDFpageviewwrd] }
I changed /Fit to /FitBH and indeed, I get lines like this:
/S /GoTo /D [0 /FitBH]
in the pdf-file. When clicking on a link, I get into FitBH mode, but not at
startup. Does anybody know a little bit more about PDF to get this working
as in LaTeX?
 

\setupinteraction[focus=fit|width|height|standard]
BH is not supported (yet)
\def\dosetuppageview#1%
 {\processaction
[#1]
[\v!passend=\def\PDFpageviewkey{   fit}%
 \def\PDFpageviewwrd{  /Fit},
  \v!minbreedte=\def\PDFpageviewkey{  fitbh}%
 \def\PDFpageviewwrd{ /FitBH},
 \v!breedte=\def\PDFpageviewkey{  fith}%   
 \def\PDFpageviewwrd{ /FitH},   
   \v!minhoogte=\def\PDFpageviewkey{  fitbv}%   
 \def\PDFpageviewwrd{ /FitBV},   
  \v!hoogte=\def\PDFpageviewkey{  fitv}%   
 \def\PDFpageviewwrd{ /FitV},   
   \v!standaard=\def\PDFpageviewkey{   xyz\PDFpagexyzspec}%
 \def\PDFpageviewwrd{  /XYZ\PDFpagexyzspec},
 \s!unknown=\def\PDFpageviewkey{   fit}%
 \def\PDFpageviewwrd{  /Fit}]%
  \edef\PDFpageview{/View [\PDFpageviewwrd]}}

you need to add the following to mult-con.tex first to get minheight supported 

   minhoogte: minhoogte minheight
  minhoehe  minvyska
  altezzamininaltimeminima
so now we have minheight and minwidth; can you test that (only when it works i will move it to the driver module; such things were buggy in previous versions of acrobat) 

Hans 

Hans 

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: pdfTeX questions

2004-06-07 Thread Peter Mnster
On Mon, 7 Jun 2004, Hans Hagen wrote:

 \setupinteraction[focus=fit|width|height|standard]
 
 BH is not supported (yet)
 
 you need to add the following to mult-con.tex first to get minheight supported 
 
 minhoogte: minhoogte minheight
minhoehe  minvyska
altezzamininaltimeminima

Thank you, Hans!
I also had to add minbreedte, then my testfile compiled.
With \setupinteraction[state=start,focus=minwidth] I get indeed a line like
this: /D [2 0 R /FitBH 0] in the pdf-file, but Acroread does not start in
this mode... (focus=width does not work neither)

 so now we have minheight and minwidth; can you test that (only when it
 works i will move it to the driver module; such things were buggy in
 previous versions of acrobat)

Yes, I think they are still buggy, but it seems, that newer pdftex versions
know to handle those bugs. At least with pdftex-1.10b and LaTeX, there is
no more problem. (with pdftex-0.14h, there was no hope...)

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: pdfTeX questions

2004-06-06 Thread Peter Mnster
On Mon, 31 May 2004, Patrick Gundlach wrote:

  FitBH means, fit to width of bounding box. When reading text on the screen,
  the combination of FullScreen and FitBH seems to me optimal.
 
 I could not find anything like this in ConTeXt.

After a while of searching, I found in spec-fdf.tex the following lines:

\def\PDFpageviewkey{  fit}
\def\PDFpageviewwrd{ /Fit}
\def\PDFpageview   {/View [\PDFpageviewwrd] }

I changed /Fit to /FitBH and indeed, I get lines like this:
/S /GoTo /D [0 /FitBH]
in the pdf-file. When clicking on a link, I get into FitBH mode, but not at
startup. Does anybody know a little bit more about PDF to get this working
as in LaTeX?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: pdfTeX questions

2004-06-01 Thread Hans Hagen
At 14:20 31/05/2004, you wrote:
On Mon, 31 May 2004, Patrick Gundlach wrote:
  \externalfigure[example][width=5cm]
  some text, jpeg-figure is shifted down and to the left.

 I don't see that it is shifted to the left, but slightly down (I
 wonder where this is aligned?).
Indeed, very slightly. But much better than here. So I just have to update
to ConTeXt 2004.4.9.
some minor shift may be due to scaling; i recently made things a bit more 
accurate; also, now and then i compensate for nasty pdf situations 
(unfortunate cropping and such)

so, best use the latest
Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: pdfTeX questions

2004-06-01 Thread Hans Hagen
At 14:53 31/05/2004, Patrick Gundlach wrote
a quick test shows that
/Author (M¸nster) is put in the pdf file, where the Character after
the M is 0xfc. Dunno if this is right.
dunno either but it is supposed to be in the proper encoding (unicode or 
pdfdoc)

btw, using \pdf... primitives is a bad idea

 It seems, that there is no key named keywords ?
Hans?
it's 'keyword' (e.g. keyword={a,b,c})
for patrick (added to setupb/setupinteraction):
  \variable[\c!trefwoord][\c!text!][]
Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: pdfTeX questions

2004-05-31 Thread Peter Mnster
On Mon, 31 May 2004, Patrick Gundlach wrote:

 \setupinteraction[title=Übung,Author=Münster]

Thanks, I missed those keys in the manual.
Ü is still not working, perhaps I should update to ConTeXt-2004.4.9 ?

It seems, that there is no key named keywords ?

  \pdfdest num 1 fitbh % I would like to get the same result as in LaTeX with
   % \hypersetup{pdfstartview={FitBH}}

 what does this do?

FitBH means, fit to width of bounding box. When reading text on the screen,
the combination of FullScreen and FitBH seems to me optimal.

When you create a pdf-file of the following LaTeX-source (with pdflatex),
you see all features, I'm looking for:

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage{hyperref}
\hypersetup{pdfstartview=FitBH,pdfpagemode=FullScreen,
  pdfauthor={Peter Münster},pdftitle={A title},pdfsubject={The subject},
  pdfkeywords={some keywords}}
\begin{document}
\section{Section with ö, with bookmark}
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
\end{document}

BTW, how do you create bookmarks with ConTeXt?
I tried the following, but it did not work:

\setupoutput[pdftex]
\enableregime[il1]
\setupinteraction[state=start,menu=on]
\setupinteractionmenu[left][state=start]
\setupinteractionscreen[option=bookmark]
\starttext
\section{Section with ö}
some text
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: pdfTeX questions

2004-05-31 Thread Peter Mnster
On Mon, 31 May 2004, Patrick Gundlach wrote:

  \externalfigure[example][width=5cm]
  some text, jpeg-figure is shifted down and to the left.
 
 I don't see that it is shifted to the left, but slightly down (I
 wonder where this is aligned?).

Indeed, very slightly. But much better than here. So I just have to update
to ConTeXt 2004.4.9.

 And \externalfigure eats up the
 whitespace after 5cm]. This is sligthly confusing.

Yes. I've just seen the same problem with \cite[...] (m-bib). With \cite
it's a bigger problem, because it's in the running text, \externalfigure
in most cases in a \placefigure.

Thanks for your answers, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context