ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Captions' alignment
@ 2011-09-06  9:58 Honza Hejzl
  0 siblings, 0 replies; only message in thread
From: Honza Hejzl @ 2011-09-06  9:58 UTC (permalink / raw)
  To: ntg-context


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

Hello,
I am re-posting my question because the last one was not clear and properly
written.

I am trying to set captions like paragraphs where the label is indented
negatively, like in case of itemize lists. I was successful with the shape
(\hbox{\vtop ...}}) but don't think my solution is useful. I am not able to
set this via \setupcaptions and styles.

I need something like:

Fig. 1 This figures how to...
         ... solve the problem.

This shape is very common in books and is common in cases of long paragraphs
in captions.

My test source:

\mainlanguage[cz]
\setuplayout[grid=yes]
\showgrid[yes]
\setuppagenumbering[location=footer]
\setupexternalfigures[]

\def\myblank{\blank[5pt]}

\definefont[headcap][SerifBold at 7pt]
\definefont[bodycap][SerifItalic at 7pt]
\definefloat[pic][pics]
\setupfloat[pic][location=right]
\setupfloats[spacebefore=none,frame=on,spaceafter=none,rightmargindistance=0pt,margin=5pt]
\setupcaptions[location=bottom,style={\bodycap\setupinterlinespace[small]}%
I don't want smaller captions' text on grid.
,headstyle={\headcap\setupinterlinespace[small]},distance=3pt,inbetween=\myblank]
\setuplabeltext[cz][figure=Obr.: ]

\starttext

\placefigure[right]{To je právě to, co člověka bude zas a znovu
mrzet.}{\externalfigure[jahve][width=6cm]} A jde, jak nejlépe umí; náhle
slyší za sebou kroky. Člověk s~vyhrnutým límcem jde za ním. Zdá se, že běží.
A Prokop se v~nesnesitelné hrůze dal na útěk.Ale zrovna na krok před chodcem
se mu udělá v~hlavě tma a celý svět se s~ním pojednou zatočí; náhle vidí
zblízka, zblizoučka pár pronikavých očí, jak se do něho vpíchly, naráží na
něčí rameno, vypraví ze sebe cosi jako "promiňte" a vzdaluje se s~křečovitou
důstojností. Po několika krocích se zastaví a ohlédne; ten člověk stojí a
dívá se upřeně za ním. Prokop se sebere a odchází trochu rychleji; ale nedá
mu to, musí se znovu ohlédnout; a vida, ten člověk ještě pořád stojí a dívá
se za ním, dokonce samou pozorností vysunul z~límce hlavu jako želva. "Ať
kouká," myslí si Prokop znepokojen, "teď už se ani neohlédnu." A jde, jak
nejlépe umí; náhle slyší za sebou kroky. Člověk s~vyhrnutým límcem jde za
ním. Zdá se, že běží.

\stoptext

Thanks, Honza Hejzl

[-- Attachment #1.2: Type: text/html, Size: 4142 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-06  9:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06  9:58 Captions' alignment Honza Hejzl

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