[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no @image at start of paragraph
From: |
Patrice Dumas |
Subject: |
Re: no @image at start of paragraph |
Date: |
Mon, 21 Dec 2015 11:11:35 +0100 |
User-agent: |
Mutt/1.5.20 (2009-12-10) |
On Fri, Dec 18, 2015 at 05:02:23PM +0000, Gavin Smith wrote:
> On 17 December 2015 at 20:45, Gavin Smith <address@hidden> wrote:
> > I couldn't find a better workaround. I think that @indent or @noindent
> > should do it:
> >
> > @noindent @image{screenshot-1}
> > This image shows xyz.
> >
> > But this doesn't actually work at the present. I think that this would
> > be nice because @noindent switches from vertical mode into horizontal
> > mode in TeX, which is like starting a paragraph in HTML.
> >
> > Here's a patch that I'll probably apply to make @indent and @noindent
> > start a paragraph if needed:
>
> So that patch I posted doesn't quite work with the test suite,
> although I'm not sure whether it really matters in practice for the
> output that is obtained. I've attached another patch that does the
> same thing. If Patrice or anybody else has comments, that would be
> fine, otherwise I'll commit in the next couple of days.
The problem with such look-ahead with a regexp on the line is that it
will miss expansion of @value or user-defined macros. For example if we
have something along
@macro mymacro
aaa
@end macro
@indent @mymacro{}
The four spaces in the macro before aaa will be in the paragraph, though
it should be outside (I believe). In particular, this could potentially
mess up Plaintext indenting.
--
Pat