[NTG-context] Footnotes

2003-10-04 Thread Steffen Wolfrum
Hi,

Just in case some one is interested in detailed footnote problems:

In the last time I was fiddling a lot on the problem of setting up footnotes - the 
task was to have different defined font and interlinespace sizes for text as well as 
for footnotes.

The first solution that I constructed with commands and keywords from the manual (and 
etexshow) seemed to give the desired result:

\setupbodyfont[10pt]
\setupinterlinespace[line=15pt]
\definefont [FNfont][Serif at 8pt]
\def\FNstyle{\FNfont\setupinterlinespace[line=15pt]}
\setupfootnotes[numbercommand=]
\setupfootnotedefinition[style=\FNstyle]

\starttext
\input tufte \footnote{\input knuth }
\input tufte \footnote{\input knuth }
\stoptext

But it just worked OK for *normal* sizes.
When set to extreme values it begun to show strange phenomena (see the distances over 
and under each first line of a footnote):

\setupbodyfont[4pt]
\setupinterlinespace[line=45pt]
\definefont [FNfont][Serif at 4.5pt]
\def\FNstyle{\FNfont\setupinterlinespace[line=12pt]}
\setupfootnotes[numbercommand=]
\setupfootnotedefinition[style=\FNstyle]

\starttext
\input tufte \footnote{\input knuth }
\input tufte \footnote{\input knuth }
\stoptext


After re-combining the different option and command for setupfootnotes and 
setupfootnotedefinition without improvement, I started to search through the source 
files and found the very interesting command \setfootnotebodyfont.

With this command a setup can be written that works, finally:

\setupbodyfont[4pt]
\setupinterlinespace[line=45pt]
\definefont [FNfont][Serif at 4.5pt]
\def\setfootnotebodyfont{\FNfont\setupinterlinespace[line=12pt]}
\setupfootnotes[numbercommand=]
\setupfootnotedefinition[style=\FNfont]

\starttext
\input tufte \footnote{\input knuth }
\input tufte \footnote{\input knuth }
\stoptext


Maybe this helps someone.

Steffen
P.S. If there is still need for improvement, please correct.
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Again: (can be better done global) ???

2003-10-04 Thread Steffen Wolfrum
Sorry, 

maybe the last mail was a bit confusing. So I make another try - hopefully clearer:


The problem was when defining an unusual size for my footnotes
> \setupfootnotes[bodyfont=8.5pt, ... ]
I get an amazing amount of messages
> bodyfont: bodyfont XXpt is defined (can be better done global)
with XX being various sizes. Which makes processing real slow...

So the original question is:
What is meant by "global defining"?
Where should I write a "global" definition and how does it look like?


On this, Hans gave me the advice:
> \setupbodyfont   [...] : global settings, document level, main text as well as 
> headers footers etc
> \switchtobodyfont[...] : local, inside a box or in page stream, but no headers etc  

I was not sure how to use this for footnotes, so I asked:
> Well, yes - I use setupbodyfont for defining  the main text 
> \setupbodyfont[AGaramondOldStyle,10.5pt]
> But what would be the syntax when I want to define the main text's *and* the 
> footnote's font with setupbodyfont??
> It's not \setupbodyfont[AGaramondOldStyle,10.5pt,8.8pt] ?

And then Hans wrote:
> \setupfootnotes[bodyfont=8.8pt] % or [bodyfont={whatever,you,want,10pt}]


But this is the initial problem (see top here). The circle is closed...

Does this mean there is actually no answer to my problem?


Thank you for assistance,

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


Re: [NTG-context] texshow (was: keywords)

2003-10-04 Thread George N. White III
On Sat, 4 Oct 2003, Steffen Wolfrum wrote:

> OK, use only with X11.
>
> So I started X11 and entered texshow in xterm:
> Can't locate Tk.pm in @INC (@INC contains: 
> /usr/local/teTeX/share/texmf.local/context/perltk/ /System/Library/Perl/darwin 
> /System/Library/Perl /Library/Perl/darwin /Library/Perl /Network/Library/Perl/darwin 
> /Network/Library/Perl .) at 
> /usr/local/teTeX/share/texmf.local/context/perltk//cont_set.pm line 59.
> BEGIN failed--compilation aborted at 
> /usr/local/teTeX/share/texmf.local/context/perltk//cont_set.pm line 59.
> Compilation failed in require at 
> /usr/local/teTeX/share/texmf.local/context/perltk/texshow.pl line 57.
> BEGIN failed--compilation aborted at 
> /usr/local/teTeX/share/texmf.local/context/perltk/texshow.pl line 57.
>
> Does anybody has an advice on how to use actually texshow?

Tk.pm is a perl module.  It was missing on SGI Irix too.  Perl has a
tools to automate the installation of modules, but you may need some
libraries as well (Tk/Tcl, compression, etc.) which can either be
installed under Perl or for use with other applications.  You will
need the developer tools if you build the module from sources.

-- 
George N. White III  <[EMAIL PROTECTED]>

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


Re: [NTG-context] Re: keywords

2003-10-04 Thread Hans Hagen
At 00:31 04/10/2003, you wrote:
Hans Hagen <[EMAIL PROTECTED]> wrote:

> At 13:12 03/10/2003, you wrote:
>
> >But where can I find "texshow"? Do you also have an URL?
>
> on you disk -)
>
> did you try >texshow ?
I tried to try - but failed. I tried commandline, tex file ...

Sorry, but do you also have an explanation or example how to use "texshow"

Should I spray the word "texshow" on the wall?
maybe ... is texshow in \texmf(-local)\context\perltk ?

it's a perl/tk script so you need to have both perl and tk installed

the program is quite self explanatory: it shows the context commands and 
keys and so

Hans

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


Re[2]: [NTG-context] Context Ruby scripts

2003-10-04 Thread Hans Hagen
At 00:11 01/10/2003, you wrote:

BTW Hans, could you please switch to .tar.bz2 for the package?
It packs *much* more than plain .zip (1.4Mb vs 2Mb ...)
i can add more archive types as soon as i got the auto updating in place 
(working on that, now that we're on 1500/512 adsl);

Hans  

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


[NTG-context] Re: texshow (was: keywords)

2003-10-04 Thread Steffen Wolfrum
Henning Hraban Ramm <[EMAIL PROTECTED]> wrote:

> Am Freitag, 03.10.03, um 16:59 Uhr (Europe/Zurich) schrieb Hans Hagen:
> 
> >> But where can I find "texshow"? Do you also have an URL?
> >
> > on your disk -)
> > did you try >texshow ?
> 
> BTW: On MacOS X one can use texshow only with X11 (there's no Perl/Tk 
> for Aqua).
> Is there a way to increase font size? It's unreadable small (only on 
> X11/OSX, Win and Lin are ok).
> I guess there's some standard X11 parameter?


OK, use only with X11.

So I started X11 and entered texshow in xterm:
Can't locate Tk.pm in @INC (@INC contains: 
/usr/local/teTeX/share/texmf.local/context/perltk/ /System/Library/Perl/darwin 
/System/Library/Perl /Library/Perl/darwin /Library/Perl /Network/Library/Perl/darwin 
/Network/Library/Perl .) at 
/usr/local/teTeX/share/texmf.local/context/perltk//cont_set.pm line 59.
BEGIN failed--compilation aborted at 
/usr/local/teTeX/share/texmf.local/context/perltk//cont_set.pm line 59.
Compilation failed in require at 
/usr/local/teTeX/share/texmf.local/context/perltk/texshow.pl line 57.
BEGIN failed--compilation aborted at 
/usr/local/teTeX/share/texmf.local/context/perltk/texshow.pl line 57.

Does anybody has an advice on how to use actually texshow?

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