From: <josephcanedo@gmail.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Dropcaps in ConTeXt
Date: Tue, 27 Oct 2015 09:09:00 +0000 [thread overview]
Message-ID: <cedb5e07e38e47f89470c03840a6ef05@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1296 bytes --]
Dear all,
I try to typeset some text with dropcaps which are pdf files in a 2 column text. I came up with 3 possibilities as shown in the sample below (attached D1.pdf). So far best solution seems to use the lettrine module, but I wondered if it would be possible to cope with the issue with figure and text overlapping if the first paragraph is very short (ie avoid using \\) ? Had a look to lettrine module source and wondered where I could find some documentation on the low level ConTeXt commands used in there ? For example to amend the code to avoid Lines= and use the actual figure size.
Sample follows:
\definecolumnset[TwoColumns][n=2]
\usemodule[lettrine]
\starttext
\startcolumnset [TwoColumns]
\placefigure[left,none]{}{\externalfigure[D1.pdf]} % how to have left side figure with text wrapping around it ?
This is a first paragraph.
\input tufte
\starthanging{\externalfigure[D1.pdf]}
This is a first paragraph.\\ % how to have \par here ?
\input tufte
\stophanging
\lettrine[Image=yes, Lines=4, Nindent=0pt, Findent=0.5em]{D1.pdf} % avoid Lines and use actual figure size ?
This is a first paragraph.\\ % how to have \par here ?
\input tufte
\stopcolumnset
\stoptext
Thanks
Regards
Joseph Canedo
[-- Attachment #1.2: Type: text/html, Size: 2646 bytes --]
[-- Attachment #2: D1.pdf --]
[-- Type: application/pdf, Size: 13048 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
reply other threads:[~2015-10-27 9:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=cedb5e07e38e47f89470c03840a6ef05@gmail.com \
--to=josephcanedo@gmail.com \
--cc=ntg-context@ntg.nl \
/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).