ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Section title customization
@ 2010-05-12  7:29 Vladimir Lomov
  2010-05-12 13:02 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Lomov @ 2010-05-12  7:29 UTC (permalink / raw)
  To: ConTeXt mailing list

Hi.

Consider the following example:
<file example.tex>
\setuphead[section][stopper={.}, numbercommand=\Branch, style=bold]

\def\Branch#1{Branch #1}

\setupcolumns[2]

\starttext
\startcolumns

\section{This is a short title}

\input knuth

\section{This is not a short title either, this is a long, very very long title}

\input knuth

\stopcolumns
\stoptext
</file>

Q1.
I want to add the word 'Branch' before a number in section title. May
be there is another way to accomplish this. I looked through manual
(cont-eni.pdf) but didn't find another solution.

Q2.
The text of second section is aligned on right edge of 'Branch 2.'. Is
there option to make section text to be align on left edge of text body?

I use last minimals on Linux (x86_64).

---
WBW, Vladimir Lomov

-- 
Q:	How many IBM 370's does it take to execute a job?
A:	Four, three to hold it down, and one to rip its head off.
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Section title customization
  2010-05-12  7:29 Section title customization Vladimir Lomov
@ 2010-05-12 13:02 ` Wolfgang Schuster
  2010-05-13  0:18   ` Vladimir Lomov
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2010-05-12 13:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 12.05.10 09:29, schrieb Vladimir Lomov:
> Q1.
> I want to add the word 'Branch' before a number in section title. May
> be there is another way to accomplish this. I looked through manual
> (cont-eni.pdf) but didn't find another solution.
>    
\setuplabeltext[<language>][section=Branch ]
> Q2.
> The text of second section is aligned on right edge of 'Branch 2.'. Is
> there option to make section text to be align on left edge of text body?
>    
\setuphead[section][alternative=paragraph]

Wolfgang

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


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

* Re: Section title customization
  2010-05-12 13:02 ` Wolfgang Schuster
@ 2010-05-13  0:18   ` Vladimir Lomov
  0 siblings, 0 replies; 3+ messages in thread
From: Vladimir Lomov @ 2010-05-13  0:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

** Wolfgang Schuster [2010-05-12 15:02:19 +0200]:

>>Q1.
>>I want to add the word 'Branch' before a number in section title. May
>>be there is another way to accomplish this. I looked through manual
>>(cont-eni.pdf) but didn't find another solution.
>\setuplabeltext[<language>][section=Branch ]
>>Q2.
>>The text of second section is aligned on right edge of 'Branch 2.'. Is
>>there option to make section text to be align on left edge of text body?
>\setuphead[section][alternative=paragraph]

>Wolfgang

Thank you Wolfgang.

I was aware of \setuphead and \setuplabeltext commands (actually I dig
through manual trying to find answers on my questions).

Your information is good guide, as always :)

---
WBW, Vladimir Lomov

-- 
Fashions have done more harm than revolutions.
		-- Victor Hugo
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2010-05-13  0:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-12  7:29 Section title customization Vladimir Lomov
2010-05-12 13:02 ` Wolfgang Schuster
2010-05-13  0:18   ` Vladimir Lomov

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