Re: [NTG-context] Theorems, etc with ConTeXt

2007-03-02 Thread Aditya Mahajan
Hi Oliver,

On Mon, 29 Jan 2007, Oliver Buerschaper wrote:

> Hi Aditya, hi Taco,
>
> I would really love to see built-in support for theorems in ConTeXt!

I have rudimentary support for titled theorems and end of proof 
markers working. It also takes care of your bug-report.

> I have been typesetting my diploma thesis (in mathematical physics)
> with ConTeXt and my experience has been that in some areas ConTeXt
> still needs to catch up a bit on LaTeX (especially on the AMS
> packages), although it has definitely come along way already ...
>
> So far I have constructed my theorems etc. as enumerations on an
> adhoc basis and - surprise - noted a few glitches here and there.
>
> 2. There is some odd behaviour concerning the options "right" and
> "stopper" which I mentioned on the list a while ago. I believe this
> is more an issue of descriptions/enumerations  than anything else but
> it would affect any theorem mechanism based on enumerations. Perhaps
> this can be looked into at the same time as you're trying to cook up
> generic theorems.

I have patched core-des so that stopper is also honored when number=no 
is set.

> Have you found out anything about the end of proof markers yet? I
> haven't tried it out but how do the AMS folks handle this issue?
> Unfortunately, I don't have the TeX programming experience (yet) to
> start digging myself ...

I have a very basic end of proof marker working. Basically, it will 
handle the marker correctly for proofs that end with paragraphs, and 
works hard to avoid a page break when the proof ends with a formula or 
an itemize (in this case, the end of proof marker is in a line of its 
own). The main macro for putting the proof marker on the right is from 
Paul Taylor's qed.sty. If you want to test this, I can send you the 
file offlist. This file is not in a state to be merged into the core 
right now.

Hans, why does core-des.tex define description parameter as:

\def\descriptionparameter#1{\csname\??dd\currentdescription#1\endcsname}

while in some other files, you had

\def\parameter#1{\executeifdefinedelse{\??..\current#1}{\executeifdefined{\??..#1}}

which prevents a lot of copying of parameters. Is core-des yet to be 
cleaned up?


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


Re: [NTG-context] style for section

2007-03-02 Thread Hans Hagen
Thomas A. Schmitz wrote:
> On Mar 1, 2007, at 8:54 PM, Thomas A. Schmitz wrote:
>
>   
>> Taco,
>>
>> thanks! This made me experiment with my file again, and it turned out
>> there is some strange interference because I have defined a command
>> in \setuphead[section]. When I comment it out, I get the output I
>> want. I'll do some more experiments and will report back.
>>
>> Thanks
>>
>> Thomas
>>
>> 
>
> OK, after some more experiments: it looks like I can't have a  
> command= AND a \hfill in my sections. I have something like
>
> \setuphead
> [section]
> [command=\incrementSlideNumber,
>  page=yes,
>  ]
>
> in my definition. If I comment the command= line out or put a \ in  
> front of the comma at the end, the section title looks the way I  
> want, but the command does (of course) not work any longer. If I have  
> the command, the \hfill is not honored. Strange, but I can live with it.
>   
has to do with being in vertical or horizontal mode; also keep in mind that 
section heads are to take care of lists, marks, refs as well, so the underlying 
code is somewhat messy and complex 

grep for 

\defineheadplacement

in core-sec ... you can implement your own variants 

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] Strange behaviour of \dorechecknextindentation inside float

2007-03-02 Thread Aditya Mahajan
On Fri, 2 Mar 2007, Aditya Mahajan wrote:

> Hi,
>
> Right now, indentnext key is ignored for floats. I was trying to test
> how to do it, but something strange is happening. I thought that the
> following two are equivalent:
>
> \def\sometopfloat [#1]{\someelsefloat[#1]}
>
> \placefigure[top]{top}{}
> \nonoindentation\autoindentation\dorechecknextindentation
>
> and
>
> \def\sometopfloat[#1]%
>   {\someelsefloat[#1]%
>\nonoindentation\autoindentation\dorechecknextindentation}
>
> \placefigure[top]{top}{}
>
>
> The first one works fine, but the second does not. Can anyone explain
> what is going on here. Here is my test example:

I finally managed to figure out what is wrong. The 
\nonoindentation...\doreckecknextindentation should be the last line 
in the defintion of dodocomplexplacefloat.

I will post the details of my feature request on dev-context list 
after doing some testing.

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


[NTG-context] Strange behaviour of \dorechecknextindentation inside float

2007-03-02 Thread Aditya Mahajan
Hi,

Right now, indentnext key is ignored for floats. I was trying to test 
how to do it, but something strange is happening. I thought that the 
following two are equivalent:

\def\sometopfloat [#1]{\someelsefloat[#1]}

\placefigure[top]{top}{}
\nonoindentation\autoindentation\dorechecknextindentation

and

\def\sometopfloat[#1]%
   {\someelsefloat[#1]%
\nonoindentation\autoindentation\dorechecknextindentation}

\placefigure[top]{top}{}


The first one works fine, but the second does not. Can anyone explain 
what is going on here. Here is my test example:


\setupindenting[big,yes]

\def\sometopfloat [#1]{\someelsefloat[#1]}

% This works
\section {Test}
\placefigure[top]{top}{}\noindentation
\input tufte

\placefigure[top]{top}{}\doindentation

\input tufte

\page

% This also works

\section {Test}
\placefigure[top]{top}{}
\nonoindentation\autoindentation\dorechecknextindentation
\input tufte

\placefigure[top]{top}{}
\nonoindentation\autoindentation\dorechecknextindentation

\input tufte

\page
% This does not work (why)?

\def\sometopfloat[#1]%
   {\someelsefloat[#1]%
\nonoindentation\autoindentation\dorechecknextindentation}

\section {Test}
\placefigure[top]{top}{}
\input tufte

\placefigure[top]{top}{}

\input tufte

\stoptext


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


Re: [NTG-context] ConTeXt ver: 2007.01.12 15:56 and including PDFs

2007-03-02 Thread George N. White III
On 1/13/07, Martin Schröder <[EMAIL PROTECTED]> wrote:

> 2007/1/13, Alan Bowen <[EMAIL PROTECTED]>:
> > It does not seem to have any observable impact on the typeset product
> > however.
>
> I think it can be safely ignored. All the features in PDF 1.6 & 1.7
> should be handled by pdftex's pdf inclusion.

When I try to embed 
I get a document that is much smaller than the original and lacks the
3d views of the original.

-- 
George N. White III <[EMAIL PROTECTED]>
Head of St. Margarets Bay, Nova Scotia
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] spread box contents

2007-03-02 Thread Idris Samawi Hamid
Hmm, no reply yet, maybe the following is more interesting:

On Thu, 01 Mar 2007 12:30:42 -0700, Idris Samawi Hamid  
<[EMAIL PROTECTED]> wrote:

> How can I evenly spread the contents of a box or column-row? In PlainTeX
> there is
>
> \hbox{Here\hfill is\hfill an\hfill evenly\hfill spread\hfill line.}
>
> but there must be a better (read "ConTeXt-") way. I looked into this  
> years
> ago and may have found the answer; but I've forgotten it...

==
\starttext

\defineparagraphs[TwoColumns][n=2,distance=2cm]
\setupparagraphs[TwoColumns][each][width=5cm,tolerance=stretch]
\setupframedtexts[frame=off]
 \startframedtext[middle]
 \startalignment[middle]
 \startTwoColumns
 \hbox spread \textwidth{Here is the first line 1a}
 \TwoColumns
 Here \hfill is \hfill the \hfill first \hfill line \hfill 1b
 \stopTwoColumns
 \startTwoColumns
 Here \hfill is \hfill the \hfill second \hfill line \hfill 2a
 \TwoColumns
 Here \hfill is \hfill the \hfill second \hfill line \hfill 2b
 \stopTwoColumns
 \stopalignment
 \stopframedtext

\stoptext
==

How can I get the first column right? Note that, according to the manual,  
\textwidth gives the width of a column but in this case it apparently  
gives a full \hsize.

RELATED QUESTION: How can I control the distance between rows? I do not  
want any extra whitespace between rows (i.e., except the normal  
interparagraph space).

Please advise!

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Test message

2007-03-02 Thread John Culleton
test
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bibtex: empty reference and reference-t itle / -data

2007-03-02 Thread Henning Haeske
> The information for the citation is taken from the one-letter keys
> in \startpublication. In your case, you need to add an 'a=' key
> containing the author information you want to see referenced.

> I take you are not using bibtex. It may help if you create a
> dummy test file *with* bibtex, just to see what comes out of that.

Ui... I thought I am (trying) using bibtex. Ok, I add two example-files to 
this email: 

studie.tex
studie.bbl

To create my pdf I am runing: 

texexec --xtx studie.tex

Unfortunatly to reference inside the text is empty. When I am changing the 
reference in the text to \cite[apa][stl] the resulting reference in the pdf 
looks like [stl] - at least not empty. But if I am changing the reference stl 
to a not existing one - e.g. stla - I am getting an empty publicationlist and 
the reference inside the text look like: [stla]. 

What am I doing wrong?

Ciao, H.
\setuppublicationlist[
  criterium=all,
  totalnumber=1]

 \startpublication[
  k=stl,
  a=aStift,
  y=2001,
  n=1,
  s=StiftL2001,
  t=book]
  \lang{de}
  \editor[]{}[]{}{Stiftung Lesen}
  \title{Leseverhalten in Deutschland im neuen Jahrtausend: Eine Studie der 
Stiftung Lesen}
  \series{Schriftenreihe: «Lesewelten»}
  \volume{3}
  \pubyear{2001}
  \city{Mainz, Hamburg}
  \country{Deutschland}
  \edition{1.}
  \pubname{Spiegel Verlag und Stiftungs Lesen}
  \stoppublication\mainlanguage[de]

\usemodule[bib]
\setupbibtex[database=studie,bibtex=bibtex8]
\setuppublications[alternative=apa-de,numbering=short]

\definetypeface [MS][ss][sans] [arial][default][encoding=uc]
\setupbodyfont[MS, 11pt]


\starttext

\placecontent

\chapter{Textrepräsentation}

Für die Perspektive der Geisteswissenschaften wird hier eine Arbeit der {\sc Stiftung Lesen} \cite[short][stl] hinzugezogen. Sie liefert eine vergleichende Studie des Leseverhaltens der Jahre 1992 und 2000. Die Wahl ist auf diese Studie gefallen, da es die einzige ist, die alle Gesellschaftsgruppen berücksichtigt und sich nicht auf nur eine selektierte Lesergruppe konzentriert.


\chapter{Quellen}
\placepublications

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


[NTG-context] additional footnote (quite late)

2007-03-02 Thread Steffen Wolfrum
Hi,

sometimes – just before the printer heats up his machine – there is something 
important too add, but yet the footnote-numbering can't be changed anymore (see 
example below please):

\starttext

First sentence.\footnote{First footnote} Something added\footnote[-]{In-between 
footnote}. Second sentence.\footnote{Second footnote}

\stoptext


Do you know a reliable way to make footnote "In-between footnote" labeled "1a" 
(in text and page end)?

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


Re: [NTG-context] Bibtex: empty reference and reference-title / -data

2007-03-02 Thread Taco Hoekwater


Henning Haeske wrote:
> Thanks Peter and Ralf,
> 
> your were right... i misspelled volume. I changed that and the 
> publicationlist 
> looks a little bit better. Sorry that I bothered you with that stupid 
> mistake. I also added a editior field. But the reference in the text is still 
> empty :-( How can I make this reference work?

The information for the citation is taken from the one-letter keys
in \startpublication. In your case, you need to add an 'a=' key
containing the author information you want to see referenced.

I take you are not using bibtex. It may help if you create a
dummy test file *with* bibtex, just to see what comes out of that.


> Also the publicationlist is in English:
> 
> Stiftung Lesen, editor (2001). ... Number 3 in...
> 
> but I need it in German - I thought \mainlanguage[de] is enough. What else I 
> have to add? 

The bibliographic style needs to be translated to german. For the
APA style, this is done already  (I  believe by Peter Münster, but
it is possible I remember wrong). You have to start with

   \setuppublications[alternative=apa-de]

to use that file (bibl-apa-de.tex). If you are unhappy with the output, 
you can (have to) copy bibl-apa-de.tex to some other name starting
with bibl- and edit that file.


> And last but not least: How can I make the \setupheadtext[pubs=NeuerTitel] 
> work with \chapter (appendix) behavior?

I wouldn't give this much thought. Just use

   \chapter{Neurtitel}
   \placepublications

instead. That is all that \completepublications does, anyway.

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