ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* footnote reference mark font switch
@ 2005-04-13 20:54 Idris Samawi Hamid
  2005-04-13 21:35 ` Adam Lindsay
  2005-04-13 22:42 ` Idris Samawi Hamid
  0 siblings, 2 replies; 6+ messages in thread
From: Idris Samawi Hamid @ 2005-04-13 20:54 UTC (permalink / raw)


Dear cartel,

I need to switch to a different font for the footnote reference markers. First 
attempt failed:

=======================
% output=pdf interface=en
\setupfootnotes[before=\ss,after=\sc]

\starttext

This is a test.\footnote{This is a test}

\stoptext
=======================

The idea is to print the reference marker, in this case `1', in a different 
font from both the main text and from the footnote text. That is, 
\setupfootnotes should let me transparently distinguish between

1. main text font;
2. reference marker font
3. footnote text font.

Please advise, and I have a nice trick to show you once this is done:-)

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

* Re: footnote reference mark font switch
  2005-04-13 20:54 footnote reference mark font switch Idris Samawi Hamid
@ 2005-04-13 21:35 ` Adam Lindsay
  2005-04-13 22:39   ` Idris Samawi Hamid
  2005-04-13 22:42 ` Idris Samawi Hamid
  1 sibling, 1 reply; 6+ messages in thread
From: Adam Lindsay @ 2005-04-13 21:35 UTC (permalink / raw)


Idris Samawi Hamid said this at Wed, 13 Apr 2005 14:54:51 -0600:

>The idea is to print the reference marker, in this case `1', in a different 
>font from both the main text and from the footnote text. That is, 
>\setupfootnotes should let me transparently distinguish between

How about this?

\setupfootnotes[style=\ss,textcommand=,command=,textstyle=smallcapped]

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: footnote reference mark font switch
  2005-04-13 21:35 ` Adam Lindsay
@ 2005-04-13 22:39   ` Idris Samawi Hamid
  2005-04-13 22:54     ` Adam Lindsay
  0 siblings, 1 reply; 6+ messages in thread
From: Idris Samawi Hamid @ 2005-04-13 22:39 UTC (permalink / raw)


On Wed, 13 Apr 2005 22:35:29 +0100, Adam Lindsay <atl@comp.lancs.ac.uk> 
wrote:

> Idris Samawi Hamid said this at Wed, 13 Apr 2005 14:54:51 -0600:
>
>> The idea is to print the reference marker, in this case `1', in a 
>> different
>> font from both the main text and from the footnote text. That is,
>> \setupfootnotes should let me transparently distinguish between
>
> How about this?
>
> \setupfootnotes[style=\ss,textcommand=,command=,textstyle=smallcapped]
>

Your setup compiled but did not work, even after bracketing the commands. 
I still get no font changes:

==============================================
% output=pdf interface=en

%\setupfootnotes[before=\ss,after=\sc]
\setupfootnotes[{style=\ss},{textstyle=\sc}]

\starttext

This is a test.\footnote{This is a test}

\stoptext
==============================================

Caveat: My up-to-date (well, before the latest beta) is at home and I'm at 
work with an older ConTeXt. OTOH but this is not a new feature so should 
work...

Thnx
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

* Re: footnote reference mark font switch
  2005-04-13 20:54 footnote reference mark font switch Idris Samawi Hamid
  2005-04-13 21:35 ` Adam Lindsay
@ 2005-04-13 22:42 ` Idris Samawi Hamid
  1 sibling, 0 replies; 6+ messages in thread
From: Idris Samawi Hamid @ 2005-04-13 22:42 UTC (permalink / raw)


Dear Hans: (unless I'm missing something) is it possible to get an option

\setupfootnotes[{markstyle=\switchtobodyfont[myfont]}]

where the size defaults to the normal footnote mark size?

Best
Idris

On Wed, 13 Apr 2005 14:54:51 -0600, Idris Samawi Hamid 
<ishamid@lamar.colostate.edu> wrote:

> Dear cartel,
>
> I need to switch to a different font for the footnote reference markers. 
> First
> attempt failed:
>
> =======================
> % output=pdf interface=en
> \setupfootnotes[before=\ss,after=\sc]
>
> \starttext
>
> This is a test.\footnote{This is a test}
>
> \stoptext
> =======================
>
> The idea is to print the reference marker, in this case `1', in a 
> different
> font from both the main text and from the footnote text. That is,
> \setupfootnotes should let me transparently distinguish between
>
> 1. main text font;
> 2. reference marker font
> 3. footnote text font.
>
> Please advise, and I have a nice trick to show you once this is done:-)

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

* Re: footnote reference mark font switch
  2005-04-13 22:39   ` Idris Samawi Hamid
@ 2005-04-13 22:54     ` Adam Lindsay
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Lindsay @ 2005-04-13 22:54 UTC (permalink / raw)


Idris Samawi Hamid said this at Wed, 13 Apr 2005 16:39:45 -0600:

>Your setup compiled but did not work, even after bracketing the commands. 
>I still get no font changes:
>
>==============================================
>% output=pdf interface=en
>
>%\setupfootnotes[before=\ss,after=\sc]
>\setupfootnotes[{style=\ss},{textstyle=\sc}]
>
>\starttext
>
>This is a test.\footnote{This is a test}
>
>\stoptext
>==============================================

Don't bracket them, and the blank command parameters also play a role (to
over-ride the \high command, in case you have superior figures, for example).

Also, keep in mind that the particular font switches you chose are not
very visible in LMR with a single '1' character. Try:

\setupfootnotes[style=italic,textcommand=,command=,textstyle=boldslanted]

>Caveat: My up-to-date (well, before the latest beta) is at home and I'm at 
>work with an older ConTeXt. OTOH but this is not a new feature so should 
>work...

Au contraire, Hans gave footnote styles a big overhaul last summer, iirc.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* RE: footnote reference mark font switch
@ 2005-04-14  2:40 Idris Samawi Hamid
  0 siblings, 0 replies; 6+ messages in thread
From: Idris Samawi Hamid @ 2005-04-14  2:40 UTC (permalink / raw)


Hi Adam and all...

>===== Original Message From "Adam Lindsay" <atl@comp.lancs.ac.uk> =====
>\setupfootnotes[style=italic,textcommand=,command=,textstyle=boldslanted]

Ok, now we're getting somewhere...

The setup you presented was overkill-) but very instructive:

1.

\setupfootnotes[style=italic,textcommand=,command=,textstyle=boldslanted]

i. This changes the footnote marker in the main text (marker1), but also makes 
it a regular numeral aligned with the pre-footnote text.

b. The footnote marker in the note (marker2) also becomes aligned with the 
text of the note.

c. Marker1 is boldit and marker2 is italic.

d. Running text is normal;

2.

\setupfootnotes[style=italic,command=,textstyle=boldslanted]

Marker1 is now super, marker2 is text-aligned, marker1 is boldit and marker2 
is italic.

3.

\setupfootnotes[command=,textstyle=boldslanted]

Marker1 is super, marker2 is text-aligned, marker1 is bold, and marker 2 is 
normal;

4. 
\setupfootnotes[textstyle=boldslanted]

Marker1 is super, marker2 is super, marker1 is bold, marker2 is normal;

5.

\setupfootnotes[style=italic,textstyle=boldslanted]

Both markers are super, marker2 is italic and marker1 is boldit.
========

This last is the one I was looking for.

\setupfootnotes[style=\it,textstyle=\bs]

also works. This is interesting, because I thought that all options involving 
control sequences had to be surrounded by curly brackets. With curly brackets 
it does not work.

Thank you for your help! And that trick is forthcoming...

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

end of thread, other threads:[~2005-04-14  2:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 20:54 footnote reference mark font switch Idris Samawi Hamid
2005-04-13 21:35 ` Adam Lindsay
2005-04-13 22:39   ` Idris Samawi Hamid
2005-04-13 22:54     ` Adam Lindsay
2005-04-13 22:42 ` Idris Samawi Hamid
2005-04-14  2:40 Idris Samawi Hamid

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