From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Thomas Meyer <thomasgmeyer@t-online.de>
Subject: [NTG-context] Re: first line in different font
Date: Sat, 28 Sep 2024 12:26:22 +0200 [thread overview]
Message-ID: <b89b6515-d9d9-1380-b512-7f029e2cfb9c@gmail.com> (raw)
In-Reply-To: <37969416-43c1-4109-ab1c-33afea84c40e@t-online.de>
Thomas Meyer schrieb am 28.09.2024 um 11:40:
> Hi guys,
>
> Is it possible to set the first line of an indented paragraph in a
> different font?
> I saw it in a book. There, the first line was indented to half the line
> width (\setupindenting[yes, .5\textwidth]) and set in smallcaps.
Yes it is possible but it stops when the indentation gets too large.
There seems to be a few other problems because the spaces between the
words are too wide and it gets worse with increased indentation.
%%%% begin example
\definefirstline
[smallcaps]
[alternative=line,
style=\setsmallcaps]
\setupbodyfont [pagella]
% even with wider lines the formatting of the first line stops
% \setuppapersize[A4,landscape]
\starttext
% \setupindenting[yes,.5tw]
% \setfirstline[smallcaps]
% \samplefile{lorem}
\doloopoverlist{0,0.1,0.2,0.3,0.4,0.5}
{\setupindenting[yes,\recursestring\textwidth]
\inleft{\recursestring}
\setfirstline[smallcaps]
\samplefile{lorem}
\blank}
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2024-09-28 10:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-28 9:40 [NTG-context] " Thomas Meyer
2024-09-28 10:26 ` Wolfgang Schuster [this message]
2024-09-28 16:10 ` [NTG-context] " Thomas Meyer
2024-09-28 17:53 ` Hans Hagen via ntg-context
2024-09-29 7:28 ` Thomas Meyer
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=b89b6515-d9d9-1380-b512-7f029e2cfb9c@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=thomasgmeyer@t-online.de \
/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).