ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Renaud AUBIN <aubin@nibua-r.org>
Subject: Chapters, setupbackgrounds[header] issue & indenting issue
Date: Fri, 27 Jan 2006 11:13:46 +0100	[thread overview]
Message-ID: <43D9F25A.3020704@nibua-r.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 704 bytes --]


Hi all,

I have made a small document in order to show you issues I have to face 
with.
1. At page 3, why do I have bottomframe=on in the header althought I use 
high option ? It's ok at page 1 and 4.
2. At page 4, it works only because the previous chapter is on one page 
! Don't see why with my present ConTeXt skills.
3. Concerning indenting, the first paragraph of each section isn't 
indented, why and how to modify ? I have seen that the order of options 
matters but I don't understand how work "next" and "first" options 
because when I use it, I don't obtain indentation at all.

What I'm doing wrong ??? It drives me crazy since these features are 
prerequisites for my PhD style !

Renaud



[-- Attachment #1.2: Type: text/html, Size: 1038 bytes --]

[-- Attachment #2: test.tex --]
[-- Type: text/x-tex, Size: 1273 bytes --]

\enableregime[il9]
\useencoding[ffr]
\mainlanguage[fr]

%% Set output to pdf
\setupoutput[pdftex]
%% Activate txt in METAPOST
\useMPlibrary[txt]
%% Activate colors
\setupcolors[state=start]

% Paper size
\setuppapersize[A4][A4]

% Fonts settings for ConTeXt
\usetypescriptfile[type-buy]
\loadmapfile[ec-bh-lucida.map]
\usetypescript[lucida][ec]
\setupbodyfont[lucida,10pt]

\setuphead[chapter][header=high, command=\ChapterHeader, style=\tfd]
\def\ChapterHeader#1#2{%
  \framedtext
  [width= \overlaywidth,
  height=12\bodyfontsize,
  background=foreground,
  offset=0pt,
  strut=no,
  frame=off,
  align=left]{\blank[4\bodyfontsize,force]#1\blank[small]#2}} 

\setupbackgrounds[header][text][bottomframe=on]
\setupbackgrounds[footer][text][topframe=on]

% Indenting
\setupindenting[medium,yes]

% French
\setupheadtext[fr][pubs=Bibliographie]
\setuplabeltext[fr][chapter=Chapitre~]

\starttext

\chapter{Introduction}
\section{First dummy section}
\dorecurse{5}{\input knuth\par\ }
\section{Second dummy section}

\chapter{Dummy chapter}
\section{First dummy section}
\dorecurse{2}{\input knuth\par\ }
\section{Second dummy section}

\chapter{Another dummy chapter}
\section{First dummy section}
\dorecurse{5}{\input knuth\par\ }
\section{Second dummy section}

\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

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

             reply	other threads:[~2006-01-27 10:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-27 10:13 Renaud AUBIN [this message]
2006-01-27 21:30 ` Hans Hagen
2006-01-27 21:48   ` Renaud AUBIN
2006-01-28  9:42     ` Hans Hagen
2006-01-28 11:26       ` Taco Hoekwater
2006-01-28 12:06       ` Renaud AUBIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43D9F25A.3020704@nibua-r.org \
    --to=aubin@nibua-r.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).