Hi list!
I have a three-part question.
First, when using \placeinitial, how would you detect whether the first
character is a quotation mark, and, if so, override the setupinitial to use
m=2?
Second, when using m=2 to capture a quotation mark, how would you change
the font size of only the
Hi, I tried to figure out what the "method" parameter of \setupinitial
does – it changes the handling of quotation marks at the beginning of
the text. It’s defined in context/base/mkiv/typo-drp.lua
But I found no difference between first, last, and none; just "auto"
incl
Am 09.02.24 um 22:06 schrieb Thomas Meyer:
Thank you, Pablo,
next question:
why does it say here
https://wiki.contextgarden.net/Command/setupinitial
default is 0pt?
Why does the information not match?
Crazy!
Either it changed since 2020, or Garulfo just assumed wrongly when they
wrote it
Thank you, Pablo,
next question:
why does it say here
https://wiki.contextgarden.net/Command/setupinitial
default is 0pt?
Why does the information not match?
Crazy!
Am 09.02.24 um 20:02 schrieb Pablo Rodriguez via ntg-context:
On 2/9/24 09:53, Thomas Meyer wrote:
Hi folks,
if I understand
On 2/9/24 09:53, Thomas Meyer wrote:
> Hi folks,
>
> if I understand it correct it is not necessary to set default parameters.
> In my example it is a difference to set it or not (distance=0pt should
> be default):
Hi Thomas,
the default (as per line 65 in typo-drp.mkxl) is .125\emwidth.
This is
Hi folks,
if I understand it correct it is not necessary to set default parameters.
In my example it is a difference to set it or not (distance=0pt should
be default):
\setupinitial%[distance=0pt]
\starttext
\placeinitial
\input knuth
\stoptext
Why?
Greetings
Thomas
s the same, but with the
addition of an indenting setup:
% SOT
\setupinitial[n=2, continue=yes]
\setupindenting[medium, yes]
\setuphead[chapter][
after={\placeinitial},
page=no,
]
\starttext
\chapter{one}
Kermit Ruffins
Meet me at the second line.
\chapter{two}
\input knuth
Meet me at the se
ext_par")
local default = typesetters.initials.actions.default
function typesetters.initials.actions.default(...)
nodes.tasks.enableaction("finalizers", "userdata.post_lettrine")
return default(...)
end
\stopluacode
\setupiniti
ead.next.width = userdata.hangindent
end
return head
end
nodes.tasks.appendaction("processors", "before", "userdata.next_par")
nodes.tasks.disableaction("processors", "userdata.next_par")
local defaul
nt.
> > >
> >
> > Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow,
> > What source document are you talking about here?
> >
> > You're already sourcing the lines after chapter one. As a matter of
> > fact, if you weren't sour
r one. As a matter of
> fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty,
> null, void, an space, a separation, an abstract
>
> Just define Kermit Muffins and it should be good to go
>
>
> \setupinitial[n=2]
>
> \def\KermitMuffins{\vbox{Kermi
s after chapter one. As a matter of
fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty,
null, void, an space, a separation, an abstract
Just define Kermit Muffins and it should be good to go
\setupinitial[n=2]
\def\KermitMuffins{\vbox{Kermit M
rt line solves the issue, but probably
>> there is a better way to achieve the correct result.
>>
>> \setupinitial[n=2]
>>
>> \setuphead[chapter][
>> after={\placeinitial},
>> page=no,
>> ]
>>
>> \starttext
>> \chapter{one}
>> Kermit R
ifying the source
document.
Cheers!
On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context <
ntg-context@ntg.nl> wrote:
> Hi,
>
> Adding \hfill\break to the short line solves the issue, but probably there
> is a better way to achieve the correct result.
>
> \setupi
Hi,
Adding \hfill\break to the short line solves the issue, but probably there is a
better way to achieve the correct result.
\setupinitial[n=2]
\setuphead[chapter][
after={\placeinitial},
page=no,
]
\starttext
\chapter{one}
Kermit Ruffins \hfill\break % <---
Meet me at the second l
I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter
wherein the first letter is a lettrine. When the first paragraph is too
short, the second paragraph overlaps the lettrine.
% SOT
\setupinitial[n=2]
\setuphead[chapter][
after={\placeinitial},
page=no,
]
\star
Hi Wolfgang,
You can use the tabulate environment to create parallel paragraphs.
Just one thing for others, this solution as the same problem as
paragraphs: \placeinitial won't work.
I.e. this:
\setupinitial[text=#1]\placeinitial
inside the tabulate or paragraphs doesn't work
Gerben Wierda via ntg-context 于2023年5月17日周三 06:42写道:
> I did a simple thing, replace a \framed by \framedtext to get
> \placeinitial working but that doesn't seem to work automatically:
>
> %==
> \starttext
> \setupinitial[n=2,text=Knuth]\p
I did a simple thing, replace a \framed by \framedtext to get \placeinitial
working but that doesn't seem to work automatically:
%==
\starttext
\setupinitial[n=2,text=Knuth]\placeinitial\input knuth
\framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placein
I'd like to use a drop cap inside a \framed, but it doesn't work.
Minimal example:
%==
\starttext
\setupinitial[n=2,text=Knuth]\placeinitial\input knuth
\framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input knuth
}
in the Antykwa-Poltawskiego
> font.
>
> Found out that the following does work with the *\placeinitial*
> command:
>
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
>
> sa 4]*
>
> So something weird is happening I suppose!
>
On 2/20/23 16:02, G.C.H.M. Verhaag via ntg-context wrote:
> [...]
> Found out that the following does work with the *\placeinitial* command:
>
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
> sa 4]*
>
> So something weird is happening
efinefont[InitialCapFont][name:antpoltcondregular*default sa 4]*
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*
>
> Has anybody any idea why this doesn't work?
Hi Geert,
this works for me:
\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]
%\setupinit
l* command:
*\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
sa 4]*
So something weird is happening I suppose!
Regards,
Geert Verhaag___
If your question is of interest to others as well, ple
*default sa 4]*
*\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*
Has anybody any idea why this doesn't work?
Did you confirm that \InitialCapFont works outside of that setup?
I recently used initials with a simple "font=Serif at 37pt,", and that
worked. Maybe t
Hi,
Yes Hraban that worked! Thanks!
My next issue is adapting the font-family, because a want to use the
*Antykwa-Poltawskiego* font|| as my initial. I tried the following:
*\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]*
*\setupinitial[color=MyColor,distance=6pt,n=3,font
Am 20.02.23 um 10:39 schrieb G.C.H.M. Verhaag via ntg-context:
*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distance=0pt,n=3]*
doesn't seem to work! Is this as expected behaviour or a possible issue?
The color key generally takes color _n
Would state=start within \setupinitial[...] help?
Best Wishes
Keith McKay
On 20/02/2023 09:39, G.C.H.M. Verhaag via ntg-context wrote:
Hi,
Thanks for your suggestion Alan! I've been using lettrine all the
time, without knowing it was actually obsolete, sorry!
I'm now
Hi,
Thanks for your suggestion Alan! I've been using lettrine all the time,
without knowing it was actually obsolete, sorry!
I'm now trying the \placeinitial command but coloring like:
*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distan
In mkiv and mkxl, we use
\placeinitial
rather than the obsolete (mkii) lettrine module.
See also \setupinitial.
Alan
On Sun, 19 Feb 2023 17:12:45 +0100
"G.C.H.M. Verhaag via ntg-context" wrote:
> Dear ConTeXt-user,
>
> Have been using ConTeXt for quite some time
The following produces different results in mkiv and lmtx (to which I am brand
new):
\setupinitial[distance=1pt,font=Serif at 36pt,n=2]
\setupindenting[medium,yes]
\starttext
\placeinitial
\input knuth
\stoptext
The mkiv output is the desired effect. It works fine in lmtx if I do not
small minds
> discuss people.
> \stoptext
>
> However, the leading quotation mark is gobbled. Is there any generic way of
> detecting a leading quotation mark while keeping initial caps on the first
> character?
>
Not really generic, and maybe not what you want, but there i
Hi,
since the lettrine module does not work with LMTX, I’ve looked into
\setupinitial.
(There is a different thread about this.)
There is a „style“ parameter to change the style, but whenever I change the
style, the font size is reset.
This is not what I expected.
This was the case in context
\input knuth
> \blank[2*big]
>
> \setfirstline[smallcapsfirstline]
> \setinitial[Q] Quo usque tandem abutere, Catilina, patientia nostra? quam diu
> etiam furor iste tuus nos1 eludet? quem ad finem sese effrenata iactabit
> audacia?
>
> \stoptext
>
\stoptext
%%%%
I hope this will give you some ideas!
References:
https://wiki.contextgarden.net/Command/setupinitial
https://wiki.conte
fo for lettrine)
Hi Gerben,
\setupinitial is your friend.
i-context.pdf (included in LMTX) contains the available options
(searching for "\setupinitial [", without quotation marks).
Both commands have different feature sets, e.g. with lettrine you can use
a image for the initial and you
With the following minimal example:
\definemeasure[CAindent][12pt]
% Every chapter body text starts with a drop cap:
\setupinitial[n=3,m=1,-\measure{CAindent}]]
\setupindenting[yes,\measure{CAindent}]
\starttext
\placeinitial S{\bf{\kap uppose we}} have a system for the approval of
loans. \input
TeXtgarden gives my mike info for lettrine)
Hi Gerben,
\setupinitial is your friend.
i-context.pdf (included in LMTX) contains the available options
(searching for "\setupinitial [", without quotation marks).
I hope it helps,
Pablo
--
http://www.ousia.tk
___
On 7/9/2021 1:58 AM, Thangalin wrote:
This has come up before on the mailing list, but I was wondering if LMTX
has a more elegant solution than using a transparent/invisible capture
of the drop-cap.
Consider:
|\setupinitial[n=2, style=\tfd, location=text]
\setuphead[chapter][after
This has come up before on the mailing list, but I was wondering if LMTX
has a more elegant solution than using a transparent/invisible capture of
the drop-cap.
Consider:
\setupinitial[n=2, style=\tfd,
location=text]\setuphead[chapter][after={\placeinitial}]
\starttext
\chapter
Hello world
On 5/25/2021 2:10 AM, jbf wrote:
If I run the following in lmtx, the defined color is not recognized and
I get black instead. If I run it as mkiv with --luatex, I get the
darkgray I defined. Is there something else I need to do for lmtx?
\definecolor[darkgray][s=.4]
\setupinitial[color
If I run the following in lmtx, the defined color is not recognized and
I get black instead. If I run it as mkiv with --luatex, I get the
darkgray I defined. Is there something else I need to do for lmtx?
\definecolor[darkgray][s=.4]
\setupinitial[color=darkgray,font=adellesemibold at 46pt
initial is moved to
the left.
But the initial should nearly touch the first characters, and the text lines
should be full width.
The behavior is the same with (latest) MkIV and LMTX.
Is there a misunderstanding of the parameters on my side, or is this a bug?
\setupinitial[
distance
about the \setupinitial command. Thanks for
pointing that out.
Sorry, Wolfgag,
I forgot to sign my reply.
Eduardo
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist
10cm
\updateparagraphshapes
\endgroup
\input weisman
\stoptext
BTW: ConTeXt already provides a command to place initials as part of
the core but it lacks a few features of the lettrine module.
Wolfgang
OK, I get it.
Oh, and yes, I knew about the \setupinitial command. Thanks for pointing
On 3/4/2020 5:09 PM, Thangalin wrote:
Looking to uppercase the first word of a poem:
\setupindenting[yes, 0.75em]
\setupinitial[
state=start,
n=2,
distance=\zeropoint,
]
% This does not appear to work?
\definealternativestyle[PoemFirstWord][\WORD][]
\definefirstline[PoemFirstLine
Looking to uppercase the first word of a poem:
\setupindenting[yes, 0.75em]
\setupinitial[
state=start,
n=2,
distance=\zeropoint,
]
% This does not appear to work?
\definealternativestyle[PoemFirstWord][\WORD][]
\definefirstline[PoemFirstLine][
alternative=word,
style=PoemFirstWord
=darkgreen,
style=\setfontfeature{smallcaps},
n=3]
\setupinitial
[location=text,
n=2,
color=darkred,
voffset=1.2\lineheight,
before={\blank[2*big]}]
% \enabletrackers[typesetters.firstlines,typesetters.initials]
\starttext
\setfirstline
\input ward \par
] \Setupbodyfont{\setupbodyfont[#1,11pt]}
\define[1] \DisplayExample{\switchtobodyfont[#1]\getbuffer}
\setupfirstline [alternative=line,
style=\setfontfeature{smallcaps}]
\setupinitial [location=text,n=2,color=darkred]
\setuphead [chapter
placeinitial \starteffect[hidden]K\stopeffect\input knuth
> \setupinitial[color=transparentblue]
>
> \placeinitial K\input knuth
> \stoptext
>
> The sample contains two methods.
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
> _
finecolor[transparentblue][t=0, a=1]
\setupwhitespace[medium]
\starttext
\placeinitial
Knuth writes:
\placeinitial \starteffect[hidden]K\stopeffect\input knuth
\setupinitial[color=transparentblue]
\placeinitial K\input knuth
\stoptext
The sample contains two methods.
Just i
g to do about this?
>
> Hi Martin,
>
> I guess initials make sense only when used inside a paragraph. It is
> problematic when you have white space defined.
>
> Having margin initials is also another approach. You may compare both
> with the following sample:
>
> \setup
e anything to do about this?
Hi Martin,
I guess initials make sense only when used inside a paragraph. It is
problematic when you have white space defined.
Having margin initials is also another approach. You may compare both
with the following sample:
\setupwhitespace[medium]
\setup
}{ \setupinitial[location=text, n=4] \placeinitial \input{ward}
\setupinitial[location=text, n=6] \placeinitial \input{knuth} }
\stopmixedcolumns
\stoptext
Admitedly this example has lots of lettrines. I added some \testcolumn to fix
that, but now some columns are not balanced (page 3)
\starttext
oes not with the latest beta.
> >
> > Try the example from http://wiki.contextgarden.net/Initials.
> >
> > \setupinitial[color=red,font=Bold sa
> 4,distance=3pt,state=start,n=3]
> >
> > \starttext
> >
> > \placeiniti
Bowen wrote:
\placeinitial used to work but now does not with the latest beta.
Try the example from http://wiki.contextgarden.net/Initials.
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
\starttext
\placeinitial \input
t; Try the example from http://wiki.contextgarden.net/Initials.
>
> \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
>
> \starttext
>
> \placeinitial \input knuth
>
> \stoptext
>
>
> fixed in next
latest beta.
>>
>> Try the example from http://wiki.contextgarden.net/Initials.
>>
>> \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
>>
>> \starttext
>>
>> \placeinitial \input knuth
>>
>> \stoptext
>>
>
>
On 10/31/2015 2:26 PM, Alan Bowen wrote:
\placeinitial used to work but now does not with the latest beta.
Try the example from http://wiki.contextgarden.net/Initials.
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
\starttext
\placeinitial \input knuth
\stoptext
\placeinitial used to work but now does not with the latest beta.
Try the example from http://wiki.contextgarden.net/Initials.
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
\starttext
\placeinitial \input knuth
\stoptext
Alan
d]
\setupsectionblock[frontpart][page=no]
\setupsectionblock[bodypart][page=no]
\setupsectionblock[appendix][page=no]
\setupsectionblock[backpart][page=no]
% Every chapter body text starts with lettrine:
\usemodule[oldbibtex]
\setupinitial[font=Normal cp
\measure{initial:n},hoffset=3ex,voffset
top of the first line
\setupbodyfont[dejavu]
\starttext
\setupinitial[font=Bold cp
\measure{initial:n},hoffset=2ex,voffset=1\lineheight,n=2,m=2,distance=-1ex]
\placeinitial `What is this. \input ward \par
What do I have to change for mkiv?
search for 'initials' (probably on the wiki somewhere) .. from the sources:
%D \starttyping
%D \placeinitial \input ward \par \input ward \par \placeinitial \input
tufte
%D
%D \setupinitial
%D [location=text,
%Dn=2,
%Dcolor=darkred,
%D
the \parindent. For example:
\setupinitial[font=Bold sa 4,n=3]
\setupindenting[yes,1em]
\starttext
\section{Knuth}
\placeinitial
\input knuth
\stoptext
I suppose this is not the intended behavior :) The problem doesn't
occur if I enable indenting also for the first paragraph after the
he
Hi,
If I attempt to insert a drop cap after a heading while the paragraph
indentation is enabled, I get the following effect: all lines the drop
cap spans except the first one (e. g. second and third in case of n=3)
get an additional indent, equal to the \parindent. For example:
\setupinitial
}
{\type{ht}: TEST \strut\definedfont[Normal ht \the\strutht] TEST}
{\type{cp}: TEST \strut\definedfont[Normal cp \the\strutht] TEST}
\placeinitial \strut \input ward.tex
\start
\setupinitial[style=\bfd,voffset=.25\lineheight,n=1]
\placeinitial \strut \input ward.tex \par
\stop
\start
]
\setupinitial
[location=text,
n=2,
color=darkred,
voffset=-.5ex,
before={\blank[2*big]}]
\starttext
\setfirstline
\input ward \par
\placeinitial
\input ward \par
\setupindenting[medium,yes]
\setinitial % \placeinitial
\input ward \par
\setinitial
ce to "[NTG-context] Lettrine not Working as Expected") does not work
>> for me:
>>
>> minimal
>> \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
>> % known parameters: font, distance, state, n, command
>>
>> \star
Am 23.01.2013 um 08:16 schrieb Andreas Mang :
> Hi there,
>
> the example from the garden (http://wiki.contextgarden.net/Initials; with
> reference to "[NTG-context] Lettrine not Working as Expected") does not work
> for me:
>
> %%%% minimal
> \set
Hi there,
the example from the garden (http://wiki.contextgarden.net/Initials; with
reference to "[NTG-context] Lettrine not Working as Expected") does not work
for me:
minimal
\setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3]
% known parameters: font
I had to switch to "\placeinitial", e.g.
Instead of:
% \usemodule[lettrine]
% \setuplettrine[Raise=0.1,FontHook=\darkgrey,TextFont=\tf]
I used:
\setupinitial[color=darkgrey,n=2,voffset=-1.5ex]
and then:
\placeinitial My text …
See also
http://archive.contextgarden.net/message/20120
l \input
tufte
%D
%D \setupinitial
%D [location=text,
%Dn=2,
%Dcolor=darkred,
%Ddistance=-1em,
%Dhoffset=1em,
%Dvoffset=-3ex,
%Dbefore=\blank]
%D
%D \placeinitial \input ward \par \input ward \placeinitial \input tufte
%D \stoptyping
(dropping caps is something that can
so in another font -- such as small caps.
Hans: Does the \setupinitial also allow to set the words immediately
after in \sc etc?
no, but it's doable (need a good reason for it)
Hans
-
als have been rewritten (they also no longer pick up an argument
which is more robust). The old macros will probably be removed (or end
up in a module).
\setupinitial[font=Bold at 48pt,state=start]
\starttext
\placeinitial \input tufte
\placeinitial \input ward
\stoptext
Hmm
Am 13.12.2011 um 14:42 schrieb Henning Hraban Ramm:
> Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster:
>
>>> Ok, but how can I set the font size relative to bodyfontsize/baselineskip?
>>
>> \setupinitial[font=Bold sa 4]
>
> Thank you, I feel stupid.
>
Am 2011-12-13 um 14:22 schrieb Wolfgang Schuster:
Ok, but how can I set the font size relative to bodyfontsize/
baselineskip?
\setupinitial[font=Bold sa 4]
Thank you, I feel stupid.
Works for me, but not in the wiki (I can’t get colors there, too).
http://wiki.contextgarden.net/Initials
Am 13.12.2011 um 14:17 schrieb Henning Hraban Ramm:
> Am 2011-12-13 um 13:38 schrieb Hans Hagen:
>
>> Initials have been rewritten (they also no longer pick up an argument which
>> is more robust). The old macros will probably be removed (or end up in a
>> module).
&
Am 2011-12-13 um 13:28 schrieb Wolfgang Schuster:
\setupbodyfont[pagella]
\setupinitial
[color=red]
\starttext
\placeinitial Once upon a time... \input tufte
\stoptext
Grmbl, I would have sworn that didn’t work before! But it does. Thank
you!
Am 2011-12-13 um 13:38 schrieb Hans Hagen
an argument
which is more robust). The old macros will probably be removed (or end
up in a module).
\setupinitial[font=Bold at 48pt,state=start]
\starttext
\placeinitial \input tufte
\placeinitial \input ward
\stopt
stoptext
\setupbodyfont[pagella]
\setupinitial
[color=red]
\starttext
\placeinitial Once upon a time... \input tufte
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to th
I use absolute values for font size and vertical offset,
like
\def\Initial{\DroppedCaps%
{\color[red]} {Serif} {36pt} {3pt} {28pt} {3}}
I also tried \setupinitial / \placeinitial like below; I got my
defined font, but only ever in base font size.
%\definefontsynonym[Initial][WieynkIni
er=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,left
margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes
7
8 %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank]
%, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank]
9
10 % \def\nadpisT{\hcolor\sst}
11
r=10mm,bottom=5mm,
rightmargin=10mm,leftmarg
indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit,
height=fit,backspa
ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm,
rightmargin=10mm,left
margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes
7
8
%\setupinitia
m,bottom=5mm,
rightmargin=10mm,leftmarg
indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit,
height=fit,backspa
ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm,
rightmargin=10mm,left
margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes
7
8 %\setupinitial[hesloi
\placeinitial (the old mechanism will become a module at some point).
\starttext
\placeinitial \input ward \par \input ward \par
\placeinitial \input tufte
\setupinitial
[variant]
[location=text,
n=2,
color=darkred,
distance=-1em,
hoffset=1em,
voffset=-3ex,
before=\blank
]
\stopsectionblockenvironment
%\setmainfont[Antykwa Poltawskiego]
\usemodule[t][lettrine]
\usemodule[t][annotation]
\usemodule[newmat] %vanwege de breuk
\newdimen\Margin
\Margin=20mm
\newdimen\Tekstbreedte
\Tekstbreedte=14cm
\setupinitial
[state=start,
n=3,
distance=.15pc
o idea
> > how to go about it.
> >
> > Specifically, I have a font with an alternate glyph that can only be used
> > after whitespace, and I would like to have it used automatically when
> > appropriate.
>
> Do you want a initial?
>
> \setupinitial[
lyph that can only be used
> after whitespace, and I would like to have it used automatically when
> appropriate.
Do you want a initial?
\setupinitial[state=start]
\starttext
\placeinitial \input knuth
\stoptext
Wolfgang
__
On Thursday 23 September 2010 19:38:46 Aditya Mahajan wrote:
> >
> > %D \macros
> > %D {setupinitial,placeinitial,checkinitial}
> > %D
> > %D {\em To be documented.}
> >
> > Indeed!
>
> So you do not consider the source itself as the docum
ine#1#2{{\tfc #1}#2}
> >
> >Of course, this is no good for production, but it is a simple
> >solution if you are working on drafts.
>
> Isn't it better to use initials? This is what one of setups has"
>
> \definehead[initialtitle][title]
>
&
On Thu, 23 Sep 2010, Alan BRASLAU wrote:
On Thursday 23 September 2010 18:46:00 you wrote:
Sorry... \placeinitial gobbles \input but here is a standalone
example:
\setupinitial
[ state=start,
n=3,
distance=-.1pc,
]
\starttext
\placeinitial This is what Knuth said
On Thursday 23 September 2010 18:46:00 you wrote:
>
> Sorry... \placeinitial gobbles \input but here is a standalone
> example:
>
> \setupinitial
>[ state=start,
>n=3,
> distance=-.1pc,
>]
>
> \starttext
>
> \placeinitia
imple
solution if you are working on drafts.
Isn't it better to use initials? This is what one of setups has"
\definehead[initialtitle][title]
\setuphead[initialtitle]
[after=\placeinitial]
\definefontsynonym[initial][name:fontin]
\setupinitial
[ state=start,
n=
#2}
> >
> > Of course, this is no good for production, but it is a simple
> > solution if you are working on drafts.
>
> Isn't it better to use initials? This is what one of setups has"
>
> \definehead[initialtitle][title]
>
> \setuphead[initialt
setups has"
\definehead[initialtitle][title]
\setuphead[initialtitle]
[after=\placeinitial]
\definefontsynonym[initial][name:fontin]
\setupinitial
[ state=start,
n=3,
distance=-.1pc,
]
And then I can simply use
\initialtitle {Don Knuth said}
\inpu
Could be a one character word !
{\globaldropcaps\let\DroppedIndent\!!zeropoint
\globaldropcaps\edef\DroppedLines{\number\maxdimen}%
\globaldropcaps\chardef\DroppedStatus\plusthree
\def\next{#7}}%
\let\globaldropcaps\global
\next}
btw, another way is:
\setupinitial
[n=3,
ppedCaps macros in
supp-fun, and in some higher-level macros
{setupinitial,placeinitial,checkinitial} in core-fnt. I only noticed the
latter recently, with this message:
<http://archive.contextgarden.net/message/20050219.150656.64318a18.html>
>> - microtype.sty (protrusion,probably n
eeplinestogether\undefined
> \let\keeplinestogether\gobbleoneargument
> \fi
[...]
> btw, high level interface:
>
> \setupindenting[medium] \setupwhitespace[medium]
>
> \setupinitial[state=start,n=3]
> \definefontsynonym[Initial][SerifBold]
>
> \placeinitial \dorecurs
eropoint
\globaldropcaps\edef\DroppedLines{\number\maxdimen}%
\globaldropcaps\chardef\DroppedStatus\plusthree
\def\next{#7}}%
\let\globaldropcaps\global
\next}
\protect
btw, high level interface:
\setupindenting[medium] \setupwhitespace[medium]
\setupinitial[state=s
99 matches
Mail list logo