ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* simple question: newline in chapter header?
@ 2004-11-05 12:38 Miek Gieben
  2004-11-05 13:53 ` Hans Hagen
  2004-11-08 17:29 ` m-bib problem Bernd Militzer
  0 siblings, 2 replies; 8+ messages in thread
From: Miek Gieben @ 2004-11-05 12:38 UTC (permalink / raw)


Hello,

I'm trying to switch from latex to context and I'm trying to 
port the book class from latex to a context document.

Right now I'm working on the chapter def and I have:

\definetext[chapter][footer][pagenumber]
\setuphead[chapter][
header=empty, footer=chapter,
textstyle=bold,
numberstyle=bold,
numbercommand=Chapter ,
textcommand={\bfc},
after={\blank[4*big]}]

But this doesn't give a newline after the chapter number. If I change

textcommand={\bfc},
to
textcommand={\\ \bfc},

I do get a newline, but then the chapter title is not aligned to the
left side of the document? Even if I try to left aline this it does 
seem work. :(

What I'm I missing here?

Thanks a lot!

grtz,
  --Miek

--
today's fortune:
Chemist who falls in acid is absorbed in work.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple question: newline in chapter header?
  2004-11-05 12:38 simple question: newline in chapter header? Miek Gieben
@ 2004-11-05 13:53 ` Hans Hagen
  2004-11-05 13:55   ` Miek Gieben
  2004-11-08 17:29 ` m-bib problem Bernd Militzer
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2004-11-05 13:53 UTC (permalink / raw)


Miek Gieben wrote:
> Hello,
> 
> I'm trying to switch from latex to context and I'm trying to 
> port the book class from latex to a context document.
> 
> Right now I'm working on the chapter def and I have:
> 
> \definetext[chapter][footer][pagenumber]
> \setuphead[chapter][
> header=empty, footer=chapter,
> textstyle=bold,
> numberstyle=bold,
> numbercommand=Chapter ,
> textcommand={\bfc},
> after={\blank[4*big]}]
> 
> But this doesn't give a newline after the chapter number. If I change
> 
> textcommand={\bfc},
> to
> textcommand={\\ \bfc},
> 
> I do get a newline, but then the chapter title is not aligned to the
> left side of the document? Even if I try to left aline this it does 
> seem work. :(
> 
> What I'm I missing here?

use

\def\MyHeadCommand#1#2%
   {\vbox{#1\par#2}}

with

command=\MyHeadCommand

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple question: newline in chapter header?
  2004-11-05 13:53 ` Hans Hagen
@ 2004-11-05 13:55   ` Miek Gieben
  0 siblings, 0 replies; 8+ messages in thread
From: Miek Gieben @ 2004-11-05 13:55 UTC (permalink / raw)


[On 05 Nov, @ 14:53, Hans wrote in "Re: [NTG-context] simple quest ..."]
> >seem work. :(
> >
> >What I'm I missing here?
> 
> use
> 
> \def\MyHeadCommand#1#2%
>   {\vbox{#1\par#2}}
> 
> with
> 
> command=\MyHeadCommand

ofcourse \par! :)

thanks!

grtz Miek

^ permalink raw reply	[flat|nested] 8+ messages in thread

* m-bib problem
  2004-11-05 12:38 simple question: newline in chapter header? Miek Gieben
  2004-11-05 13:53 ` Hans Hagen
@ 2004-11-08 17:29 ` Bernd Militzer
  2004-11-08 18:23   ` Taco Hoekwater
  1 sibling, 1 reply; 8+ messages in thread
From: Bernd Militzer @ 2004-11-08 17:29 UTC (permalink / raw)


Hi Taco,

after installing the new version of ConTeXt and your bib-module

\placepublications resp. \completepublications do not work any more.

Please give me a hint what I have to do.

Thanks for help

Bernd


log-file:

This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) (format=cont-en
2004.11.6)  7 NOV 2004 11:29
entering extended mode
 (/usr/local/share/texmf/web2c/natural.tcx)
**&cont-en buch.tex
(./buch.tex{/var/lib/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2004.10.28  fmt: 2004.11.6  int: english  mes: english

systems        : pdfTeX version 110 -> please update

systems        : eTeX version 201 -> too old (bugs)

--- snip ---

system         : macros of module bib loaded
(/usr/local/share/texmf/tex/context/bib/t-bib.tex
system         : macros of module list loaded
(/usr/local/share/texmf/tex/context/bib/t-list.tex)
publications   : loading formatting style from bibl-apa
(/usr/local/share/texmf/tex/context/bib/bibl-apa.tex))
\openout0 = `buch.aux'.

publications   : wrote a new auxiliary file buch.aux
publications   : loading formatting style from bibl-apa
(/usr/local/share/texmf/tex/context/bib/bibl-apa.tex) <buch-buf-0.tmp>
\openout4 = `buch-buf-0.tmp'.
)

--- snip ---

chapter        : (-) Literatur
(./buch.tuo)
system         : pubs not found/processed
[309.299] [310.300]
chapter        : (-) Ortsverzeichnis
(./mt_Ortsliste_de.tex (./buch.tuo [311.301] [312.302] [313.303])
columns        : balanced in 9 step(s)
) [314.304]
chapter        : (-) Register -- Stichwortverzeichnis
(./buch.tuo [315.305] [316.306] [317.307] [318.308] [319.309] [320.310]
[321.311] [322.312] [323.313] [324.314] [325.315] [326.316] [327.317]
[328.318]
[329.319] [330.320] [331.321] [332.322] [333.323] [334.324] [335.325]
[336.326]
[337.327] [338.328] [339.329] [340.330])
columns        : balanced in 7 step(s)
[341.331]
systems        : end file buch at line 217
 ) 
Here is how much of TeX's memory you used:
 4316 strings out of 65413
 64791 string characters out of 707167
 4531110 words of memory out of 5611755
 36222 multiletter control sequences out of 10000+50000
 50221 words of font info for 167 fonts, out of 500000 for 1000
 102 hyphenation exceptions out of 1000
 53i,23n,85p,1441b,1429s stack positions out of
1500i,500n,5000p,200000b,5000s
 0 PDF objects out of 300000
 0 named destinations out of 131072
 0 words of extra memory for PDF output out of 65536

Output written on buch.dvi (341 pages, 1059888 bytes).

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: m-bib problem
  2004-11-08 17:29 ` m-bib problem Bernd Militzer
@ 2004-11-08 18:23   ` Taco Hoekwater
  2004-11-13 15:59     ` Bernd Militzer
  0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2004-11-08 18:23 UTC (permalink / raw)



Hi Bernd,

I believe you have to insert 
	\setuppublicationlist[criterium=all]
in your preamble.

I still do not fully understand why though.


Bernd Militzer <bernd@militzer.net> wrote:
>
> after installing the new version of ConTeXt and your bib-module
> \placepublications resp. \completepublications do not work any more.
> Please give me a hint what I have to do.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: m-bib problem
  2004-11-08 18:23   ` Taco Hoekwater
@ 2004-11-13 15:59     ` Bernd Militzer
  2004-11-15  9:03       ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Bernd Militzer @ 2004-11-13 15:59 UTC (permalink / raw)


Hi Taco,

oops, that was my problem
\setuppublicationlist[criterium=all]

How can I change the word 'and' to 'und' and 'pages' to 'Seite' in the
publication list?

thanks

Bernd

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: m-bib problem
  2004-11-13 15:59     ` Bernd Militzer
@ 2004-11-15  9:03       ` Taco Hoekwater
  2004-11-16  7:22         ` Bernd Militzer
  0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2004-11-15  9:03 UTC (permalink / raw)



Hi Bernd,

For now, you have to edit a local copy of bibl-apa.tex
or bibl-aps.tex. I'll get back to you on the other problem

Greetings, Taco

Bernd Militzer wrote:
> Hi Taco,
> 
> oops, that was my problem
> \setuppublicationlist[criterium=all]
> 
> How can I change the word 'and' to 'und' and 'pages' to 'Seite' in the
> publication list?
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: m-bib problem
  2004-11-15  9:03       ` Taco Hoekwater
@ 2004-11-16  7:22         ` Bernd Militzer
  0 siblings, 0 replies; 8+ messages in thread
From: Bernd Militzer @ 2004-11-16  7:22 UTC (permalink / raw)


Hi Taco,


I did:

cp bibl-apa.tex  bibl-apaD.tex
cp bibl-aps.tex  bibl-apsD.tex

edit the files for german (und for and; S. for pages)

texhash

\usemodule[bib]
\setupbibtex[database=mt-quellen,sort=author]	
%
\setuppublications[alternative=apaD]


That's now perfect fort me, thanks for your hint

Greetings, Bernd

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-11-16  7:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-05 12:38 simple question: newline in chapter header? Miek Gieben
2004-11-05 13:53 ` Hans Hagen
2004-11-05 13:55   ` Miek Gieben
2004-11-08 17:29 ` m-bib problem Bernd Militzer
2004-11-08 18:23   ` Taco Hoekwater
2004-11-13 15:59     ` Bernd Militzer
2004-11-15  9:03       ` Taco Hoekwater
2004-11-16  7:22         ` Bernd Militzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).