Dear gang, I am having difficuly getting dropped caps and the new indenting mechanism coordinated; the dropped cap goes into the margin. Try this: =============================================== \setupoutput[pdftex] \setupindenting[medium,next,yes] \def\TextDroppedCaps{% \DroppedCaps% {} % commands (like color) {cmr12} {2.2\baselineskip} % height scale of dropped cap {4pt} % amount of indent wrt dropped letter {\baselineskip} % distance of base of letter from base of first line {2} % number of indented lines } \starttext \TextDroppedCaps In general, Baroque letterforms appear more modern and less {\em written} than Renaissance forms. They give less evidence of the direct trace of the pen. Yet they take many different forms, and they thrived in Europe throughout the seventeenth century, endured through much of the eighteenth, and enjoyed an enthusiastic revival during the nineteenth. \stoptext =============================================== If indenting is commented it works correctly. I ran into this before and worked around it back when indenting had to be declared twice; don't know what to do now... Best Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
Idris Samawi Hamid wrote:
\TextDroppedCaps In general, Baroque letterforms appear more
\noindenting \TextD.... or replace this in supp-fun.tex \def\DroppedCaps#1#2#3#4#5#6#7% does not yet handle accented chars {\convertargument #7\to\asciia \convertcommand \DroppedString\to\asciib \ExpandBothAfter\doifinstringelse\asciia\asciib {\noindenting \dontleavehmode %\ifhmode\hskip-\parindent\fi % sensitive for context mechanism \keeplinestogether{#6}% \setbox0\hbox{\definedfont[#2 at #3]#1{#7}\hskip#4}% \ifdim\dp0>\strutdp % one of those Q's , will be option \setbox2\hbox{\raise\dp0\hbox{\lower\strutdp\copy0}}% \ht2\ht0 \dp0\strutdp \setbox0\box2 \fi \setbox0\hbox {\ifnum\DropMode=\plusone \hskip-\wd0\wd0\zeropoint \fi \lower#5\box0}% \ht0\strutht \dp0\strutdp \ifnum\DropMode=\plusone \globaldropcaps\let\DroppedIndent\!!zeropoint \globaldropcaps\edef\DroppedLines{\number\maxdimen}% \globaldropcaps\chardef\DroppedStatus\plusthree \else \globaldropcaps\edef\DroppedIndent{\the\wd0}% \globaldropcaps\edef\DroppedLines {\number#6}% \globaldropcaps\chardef\DroppedStatus\plustwo \globaldropcaps\hangindent\DroppedIndent \globaldropcaps\hangafter-\DroppedLines \noindent \hskip-\DroppedIndent \fi \vbox{\forgetall\box0}% \nobreak \let\next\ignorespaces} % 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, distance=.125em, font=SansBold] % or: \definefontsynonym[Initial][SansBold] \setupinitial[state=start] \placeinitial \input tufte (and there is taco's lettrines module) Hans
participants (2)
-
Hans Hagen
-
Idris Samawi Hamid