[NTG-context] Quotation mark in drop caps

2024-07-07 Thread Thangalin
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

[NTG-context] enhancing documentation: initials

2024-03-05 Thread Henning Hraban Ramm
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

[NTG-context] Re: distance in \setupinitial

2024-02-09 Thread Henning Hraban Ramm
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

[NTG-context] Re: distance in \setupinitial

2024-02-09 Thread 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! 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

[NTG-context] Re: distance in \setupinitial

2024-02-09 Thread Pablo Rodriguez via ntg-context
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

[NTG-context] distance in \setupinitial

2024-02-09 Thread Thomas Meyer
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

Re: [NTG-context] Protect the lettrine

2023-06-25 Thread Thangalin via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-16 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-14 Thread Max Chernoff via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-14 Thread linguafalsa--- via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread linguafalsa--- via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
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

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Otared Kavian via ntg-context
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

[NTG-context] Protect the lettrine

2023-06-12 Thread Thangalin via ntg-context
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

Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Berend de Boer via ntg-context
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

Re: [NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread 李延瑞
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

[NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread Gerben Wierda via ntg-context
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

[NTG-context] \placeinitial inside \framed?

2023-05-15 Thread Gerben Wierda via ntg-context
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 }

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Alan Braslau via ntg-context
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! >

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Pablo Rodriguez via ntg-context
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

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Pablo Rodriguez via ntg-context
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

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread G.C.H.M. Verhaag via ntg-context
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

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Henning Hraban Ramm via ntg-context
*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

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread G.C.H.M. Verhaag via ntg-context
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

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Henning Hraban Ramm via ntg-context
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

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Keith McKay via ntg-context
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

Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread G.C.H.M. Verhaag via ntg-context
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

Re: [NTG-context] Lettrine module not working?!

2023-02-19 Thread Alan Braslau via ntg-context
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

[NTG-context] lmtx \placeinitial with nonzero par indent?

2022-07-11 Thread Michael Urban via ntg-context
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

Re: [NTG-context] \placeinitial to account for quotation mark

2021-09-26 Thread Bruce Horrocks via ntg-context
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

[NTG-context] \setupinitial: style Parameter resets size

2021-07-25 Thread Axel Kielhorn
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

[NTG-context] Solution: LMTX initial (drop cap) in combination with indenting

2021-07-22 Thread Gerben Wierda
\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 >

Re: [NTG-context] Use of lettrine module in LMTX

2021-07-21 Thread Nicola
\stoptext %%%% I hope this will give you some ideas! References: https://wiki.contextgarden.net/Command/setupinitial https://wiki.conte

Re: [NTG-context] LMTX and lettrine

2021-07-19 Thread Wolfgang Schuster
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

[NTG-context] drop cap (initial) and indentation

2021-07-18 Thread Gerben Wierda
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

Re: [NTG-context] LMTX and lettrine

2021-07-18 Thread Pablo Rodriguez
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 ___

Re: [NTG-context] Initial caps with short paragraph

2021-07-09 Thread Hans Hagen
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

[NTG-context] Initial caps with short paragraph

2021-07-08 Thread Thangalin
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

Re: [NTG-context] lmtx and defined placeinitial color

2021-05-25 Thread Hans Hagen
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

[NTG-context] lmtx and defined placeinitial color

2021-05-24 Thread jbf
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

[NTG-context] distance parameter of \setupinitial

2020-12-14 Thread Henning Hraban Ramm
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

Re: [NTG-context] lmtx update

2020-09-17 Thread Eduardo Bohoyo
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

Re: [NTG-context] lmtx update

2020-09-17 Thread Eduardo Bohoyo
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

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Hans Hagen
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

[NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
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

Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Hans Hagen
=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

[NTG-context] Problems with setfirstline

2017-10-18 Thread Rik Kabel
]  \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

Re: [NTG-context] Initials and short paragraph

2017-06-24 Thread Martin Oppegaard
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 > _

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Pablo Rodriguez
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

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Martin Oppegaard
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

Re: [NTG-context] Initials and short paragraph

2017-06-20 Thread Pablo Rodriguez
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

[NTG-context] Issue with initial (new beta)

2015-11-20 Thread josephcanedo
}{ \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

Re: [NTG-context] \placeinitial not working

2015-11-02 Thread Alan Bowen
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

Re: [NTG-context] \placeinitial not working

2015-11-02 Thread Hans Hagen
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

Re: [NTG-context] \placeinitial not working

2015-11-01 Thread Pablo Rodriguez
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

Re: [NTG-context] \placeinitial not working

2015-11-01 Thread Alan Bowen
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 >> > >

Re: [NTG-context] \placeinitial not working

2015-11-01 Thread Hans Hagen
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

[NTG-context] \placeinitial not working

2015-10-31 Thread Alan Bowen
\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

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
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

Re: [NTG-context] mkiv and lettrine

2015-03-10 Thread Hans Hagen
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

Re: [NTG-context] mkiv and lettrine

2015-03-01 Thread Hans Hagen
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

Re: [NTG-context] \placeinitial after a heading

2014-01-25 Thread Hans Hagen
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

[NTG-context] \placeinitial after a heading

2014-01-24 Thread Alexey Kryukov
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

[NTG-context] Fwd: Re: beta / initials

2013-08-28 Thread Hans Hagen
} {\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

Re: [NTG-context] beta

2013-08-23 Thread Hans Hagen
] \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

Re: [NTG-context] placeinitial broken (mkiv)?

2013-01-22 Thread Andreas Mang
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

Re: [NTG-context] placeinitial broken (mkiv)?

2013-01-22 Thread Wolfgang Schuster
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

[NTG-context] placeinitial broken (mkiv)?

2013-01-22 Thread 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 \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3] % known parameters: font

Re: [NTG-context] Problem with *lettrine* module in Mk-iv

2012-09-10 Thread Jörg Hagmann
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

Re: [NTG-context] Lettrine misbehaving in beta

2012-03-22 Thread Hans Hagen
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

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Hans Hagen
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 -

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Idris Samawi Hamid ادريس سماوي حامد
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

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster
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. >

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread 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. Works for me, but not in the wiki (I can’t get colors there, too). http://wiki.contextgarden.net/Initials

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster
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). &

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm
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

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread 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

Re: [NTG-context] Initials / DroppedCaps

2011-12-13 Thread Wolfgang Schuster
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

[NTG-context] Initials / DroppedCaps

2011-12-13 Thread Henning Hraban Ramm
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

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Salil Sayed
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   

Re: [NTG-context] Project structure and modes

2011-11-13 Thread Jaroslav Hajtmar
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

Re: [NTG-context] Project structure and modes

2011-11-12 Thread Jaroslav Hajtmar
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

[NTG-context] new beta

2011-11-02 Thread Hans Hagen
\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

Re: [NTG-context] math signs in itemize

2011-09-25 Thread R. Ermers
] \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

Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Marc Trius
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[

Re: [NTG-context] First Line After Whitespace Styling

2011-05-27 Thread Wolfgang Schuster
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 __

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Alan BRASLAU
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

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Philipp Gesang
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] > &

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Aditya Mahajan
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

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Alan BRASLAU
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

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Aditya Mahajan
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=

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Alan BRASLAU
#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

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Aditya Mahajan
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

Re: [NTG-context] Dropped caps and indenting

2005-12-04 Thread Hans Hagen
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,

Re: [NTG-context] Moving to ConTeXt

2005-02-23 Thread Adam Lindsay
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

Re: [NTG-context] Strange interaction of \chapter and \AutoDroppedCaps

2005-02-21 Thread Slawek Zak
eeplinestogether\undefined > \let\keeplinestogether\gobbleoneargument > \fi [...] > btw, high level interface: > > \setupindenting[medium] \setupwhitespace[medium] > > \setupinitial[state=start,n=3] > \definefontsynonym[Initial][SerifBold] > > \placeinitial \dorecurs

Re: [NTG-context] Strange interaction of \chapter and \AutoDroppedCaps

2005-02-21 Thread Hans Hagen
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