From: Andrea Valle <valle@di.unito.it>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: orphan headline
Date: Fri, 27 May 2016 10:16:17 +0200 [thread overview]
Message-ID: <7914542A-B854-4F79-9292-03EAC3CB8B99@di.unito.it> (raw)
In-Reply-To: <574754AB.80500@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1915 bytes --]
Thanks a lot Wolfgang
--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - StudiUm
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.fonurgia.unito.it/andrea/
--> http://www.flickr.com/photos/vanderaalle/sets/
--> http://vimeo.com/vanderaalle
--> andrea.valle@unito.it
--------------------------------------------------
"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous."
(Jeffrey 'The Dude' Lebowski)
> Your lack of a working minimal example makes it hard to give a solution
Sorry, I know, but I didn’t know to reproduce the situation.
> but adding changing the way how the frame is added should improve things.
>
> \startsetups[section:andrea]
> \ifconditional\headshownumber
> \scratchdimenone\dimexpr\headnumberwidth+\headnumberdistance\relax
> \scratchdimentwo\dimexpr\headnumberdistance\relax
> \else
> \scratchdimenone\zeropoint
> \scratchdimentwo\zeropoint
> \fi
> \startframedtext[offset=0.25cm,loffset=\scratchdimenone,rulethickness=0.01cm,frame=off,bottomframe=on]
> \dontleavehmode\llap{\headnumbercontent\hskip\scratchdimentwo}
> \headtextcontent
> \stopframedtext
> \stopsetups
>
look likes it solves all the problems! I really have no idea of what’s going on here. Luckily this mailing list is super friendly.
Manuals are cool, but I always miss the big picture that would allow me to generalise over a problem!
Thanks
Best
> \defineheadalternative[section:andrea][alternative=vertical,renderingsetup=section:andrea]
>
> \setuphead
> [section]
> [alternative=section:andrea,
> numberwidth=1em,
> before={\blank[0.5cm]},
> after={\blank[1cm]}]
>
> \starttext
[-- Attachment #1.2: Type: text/html, Size: 23907 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2016-05-27 8:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 8:56 Andrea Valle
2016-05-26 15:40 ` Pablo Rodriguez
2016-05-26 15:45 ` Andrea Valle
2016-05-26 19:29 ` Pablo Rodriguez
2016-05-27 12:49 ` Wolfgang Schuster
2016-05-29 9:57 ` Pablo Rodriguez
2016-05-29 11:26 ` Hans Hagen
2016-05-26 19:55 ` Wolfgang Schuster
2016-05-27 8:16 ` Andrea Valle [this message]
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=7914542A-B854-4F79-9292-03EAC3CB8B99@di.unito.it \
--to=valle@di.unito.it \
--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).