* setupcaptions
@ 2002-06-03 7:44 Jochen Dietrich
2002-06-06 13:43 ` setupcaptions Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Jochen Dietrich @ 2002-06-03 7:44 UTC (permalink / raw)
Gruetzi
with the last beta numbering captions "bytext" doesn't seem to work anymore.
With \setupcaptions[way=bytext] I always get the captions numbered by
section. Any Idea?
Jochen
------------------
Jochen Dietrich
jdietrich@filander.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setupcaptions
2002-06-03 7:44 setupcaptions Jochen Dietrich
@ 2002-06-06 13:43 ` Hans Hagen
2002-06-06 14:07 ` setupcaptions Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2002-06-06 13:43 UTC (permalink / raw)
Cc: ntg-context
At 09:44 AM 6/3/2002 +0200, Jochen Dietrich wrote:
>Gruetzi
>
>with the last beta numbering captions "bytext" doesn't seem to work anymore.
>
>With \setupcaptions[way=bytext] I always get the captions numbered by
>section. Any Idea?
you're right, this got lost when implementing the new float inheritance
mechanism, i'll fix it
Hans
======== quick patch ========
in core-des locate \definieernummer and patch :
\definieernummer
[#1]
[\c!wijze=\getvalue{\??lb#1\c!wijze}]%
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setupcaptions
2002-06-06 13:43 ` setupcaptions Hans Hagen
@ 2002-06-06 14:07 ` Hans Hagen
0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2002-06-06 14:07 UTC (permalink / raw)
At 03:43 PM 6/6/2002 +0200, you wrote:
>At 09:44 AM 6/3/2002 +0200, Jochen Dietrich wrote:
>>Gruetzi
>>
>>with the last beta numbering captions "bytext" doesn't seem to work anymore.
>>
>>With \setupcaptions[way=bytext] I always get the captions numbered by
>>section. Any Idea?
you may try to replace \doorlabelen by \definieernummer in page-flt.tex and
core-mat.tex (an dregenerate the format); that will give you complete
control again.
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setupcaptions
2012-07-11 20:29 ` setupcaptions Wolfgang Schuster
@ 2012-07-13 17:26 ` Hans Hagen
0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2012-07-13 17:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11-7-2012 22:29, Wolfgang Schuster wrote:
> Having a list as argument for the style key is interesting and you have my vote for this but it would
> be more complex and slower than the current mechanism.
indeed too much of a slowdown
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 11+ messages in thread
* Re: setupcaptions
2012-07-11 15:17 setupcaptions Meer, H. van der
@ 2012-07-11 20:29 ` Wolfgang Schuster
2012-07-13 17:26 ` setupcaptions Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2012-07-11 20:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2362 bytes --]
Am 11.07.2012 um 17:17 schrieb Meer, H. van der:
> I want to make my figure captions both slanted and small, or bold and small,etc.
> The wiki has for setupcaptions:
>
> headstyle normal, bold, .. , small, ..
> style normal, bold, .. , small, ..
>
> I therefore expected to work the following setup:
>
> \setupcaptions[headstyle={slanted,small},style={bold,small}]
> \starttext
> \placefigure{A dummy figure}{\externalfigure[dummy]}
> Caption test.
> \stoptext
>
> But no, two seems too much. style={bold} does work and style={small} but style = {bold,small} does not. From the general principles of ConTeXt's parameter handling I would have expected this to work.
> Of course I could have used style={\bf\switchtobodyfont[small]}, but I would prefer to refrain from low level font commands when possible.
>
> I am right the setupcaptions should work with combined fontsettings, or is it my mistake?
You misunderstand how named styles work. When you have style key (can be style, textstyle etc.)
for a command you can write “style=\bf” and use the font switch as argument. Another way to set
the font is to use a name, e.g. “style=bold”. The argument in this case is a identifier which is defined as
\definealternativestyle [\v!bold] [\bf] []
As you can see “bold” is only a synonym for \bf (with the third argument you can specify what should
happen when a command when the identifier is used in a heading, see below for a example.
\definehead[HeadA][section][style=bold]
\definehead[HeadB][section][style=italic]
\starttext
\HeadA{normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal}
normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal
\HeadB{normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal}
normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal
\stoptext
Having a list as argument for the style key is interesting and you have my vote for this but it would
be more complex and slower than the current mechanism.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 3330 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] 11+ messages in thread
* setupcaptions
@ 2012-07-11 15:17 Meer, H. van der
2012-07-11 20:29 ` setupcaptions Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Meer, H. van der @ 2012-07-11 15:17 UTC (permalink / raw)
To: ConTeXt NTG
[-- Attachment #1.1: Type: text/plain, Size: 871 bytes --]
I want to make my figure captions both slanted and small, or bold and small,etc.
The wiki has for setupcaptions:
headstyle normal, bold, .. , small, ..
style normal, bold, .. , small, ..
I therefore expected to work the following setup:
\setupcaptions[headstyle={slanted,small},style={bold,small}]
\starttext
\placefigure{A dummy figure}{\externalfigure[dummy]}
Caption test.
\stoptext
But no, two seems too much. style={bold} does work and style={small} but style = {bold,small} does not. From the general principles of ConTeXt's parameter handling I would have expected this to work.
Of course I could have used style={\bf\switchtobodyfont[small]}, but I would prefer to refrain from low level font commands when possible.
I am right the setupcaptions should work with combined fontsettings, or is it my mistake?
Hans van der Meer
[-- Attachment #1.2: Type: text/html, Size: 1364 bytes --]
[-- Attachment #2: setup.pdf --]
[-- Type: application/pdf, Size: 10193 bytes --]
[-- Attachment #3: 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] 11+ messages in thread
* Re: setupcaptions
2006-08-03 14:06 ` setupcaptions Taco Hoekwater
@ 2006-08-03 23:02 ` Hans Hagen
0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 2006-08-03 23:02 UTC (permalink / raw)
Taco Hoekwater wrote:
> Thomas A. Schmitz wrote:
>
>> There has been a discussion about this three months ago, but I can't
>> figure it out: I have
>>
>> \setupcaptions[separator={:}]
>>
>> in my document and would expect something like "figure 1: a figure,"
>> but I don't get a colon, the same for stopper={:}. Isn't this
>> supposed to work?
>>
>
> One of them is supposed to work, but somehow neither does. There is a
> bit of a problem with these caption settings in the current release,
> see also the post by David Arnold "Figure 1", a few days ago.
>
separator is between numbers (chap.fig) and stopper is at the end (i have to look into it; something is messed up since we introduced separators for subnumbers in split floats)
remind me
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] 11+ messages in thread
* Re: setupcaptions
2006-08-03 13:25 setupcaptions Thomas A. Schmitz
@ 2006-08-03 14:06 ` Taco Hoekwater
2006-08-03 23:02 ` setupcaptions Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Taco Hoekwater @ 2006-08-03 14:06 UTC (permalink / raw)
Thomas A. Schmitz wrote:
> There has been a discussion about this three months ago, but I can't
> figure it out: I have
>
> \setupcaptions[separator={:}]
>
> in my document and would expect something like "figure 1: a figure,"
> but I don't get a colon, the same for stopper={:}. Isn't this
> supposed to work?
One of them is supposed to work, but somehow neither does. There is a
bit of a problem with these caption settings in the current release,
see also the post by David Arnold "Figure 1", a few days ago.
Taco
^ permalink raw reply [flat|nested] 11+ messages in thread
* setupcaptions
@ 2006-08-03 13:25 Thomas A. Schmitz
2006-08-03 14:06 ` setupcaptions Taco Hoekwater
0 siblings, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2006-08-03 13:25 UTC (permalink / raw)
There has been a discussion about this three months ago, but I can't
figure it out: I have
\setupcaptions[separator={:}]
in my document and would expect something like "figure 1: a figure,"
but I don't get a colon, the same for stopper={:}. Isn't this
supposed to work?
Thomas
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: setupcaptions
1999-05-18 6:19 setupcaptions Matthew Baker
@ 1999-05-18 9:56 ` Hans Hagen
0 siblings, 0 replies; 11+ messages in thread
From: Hans Hagen @ 1999-05-18 9:56 UTC (permalink / raw)
Cc: Context List
Matthew Baker wrote:
> Is the following the correct procedure for making captions on floats
> left-aligned instead of centred?
>
> \setupcaptions
> [align=left]
>
> It didn't seem to make any difference for me. Using
>
> \setupcaptions
> [align=left,
> width=max]
>
> seemed to fix it for my figuretext environment (I only have one in the
> doc) but not for my placefigure environments (of which I have several).
> Is there another way?
This is the way indeed:
\setupcaptions
[align=left,
width=max]
\input tufte \placefigure{hi there}{} \input tufte
\startfiguretext{hi there}{}
\input tufte
\stopfiguretext
gives me two figures with left aligned captions. So it seems that
something else is interefering. Can you isolate the problem and send me
the file?
> Thanks for the help on non-uniform columns, btw. Playing around with my
> margins turned out to be tricky as they already swap with odd and even
> pages so I ended up doing a fixed-size hbox for the left column (with only
> images inside) and changed the hsize to do the right column. Dirty, but
> it worked :)
Another dirty one:
When you say \getpagestatus, you can use \ifrightpage to distinguish odd
even page actions, like in:
\getpagestatus \ifrightpage hello \else world \fi
This is a two-pass thing, so you need at least two runs (automaticlly
done by texexec).
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.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* setupcaptions
@ 1999-05-18 6:19 Matthew Baker
1999-05-18 9:56 ` setupcaptions Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Matthew Baker @ 1999-05-18 6:19 UTC (permalink / raw)
Hi,
Is the following the correct procedure for making captions on floats
left-aligned instead of centred?
\setupcaptions
[align=left]
It didn't seem to make any difference for me. Using
\setupcaptions
[align=left,
width=max]
seemed to fix it for my figuretext environment (I only have one in the
doc) but not for my placefigure environments (of which I have several).
Is there another way?
Thanks for the help on non-uniform columns, btw. Playing around with my
margins turned out to be tricky as they already swap with odd and even
pages so I ended up doing a fixed-size hbox for the left column (with only
images inside) and changed the hsize to do the right column. Dirty, but
it worked :)
- Matthew
--
Dr. Matthew Baker matthew.baker@gmd.de
GMD - FIT.MMK http://fit.gmd.de/hci/pages/matthew.baker.html
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-07-13 17:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-03 7:44 setupcaptions Jochen Dietrich
2002-06-06 13:43 ` setupcaptions Hans Hagen
2002-06-06 14:07 ` setupcaptions Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2012-07-11 15:17 setupcaptions Meer, H. van der
2012-07-11 20:29 ` setupcaptions Wolfgang Schuster
2012-07-13 17:26 ` setupcaptions Hans Hagen
2006-08-03 13:25 setupcaptions Thomas A. Schmitz
2006-08-03 14:06 ` setupcaptions Taco Hoekwater
2006-08-03 23:02 ` setupcaptions Hans Hagen
1999-05-18 6:19 setupcaptions Matthew Baker
1999-05-18 9:56 ` setupcaptions Hans Hagen
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).