help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multi-line paragraph separator


From: Mirko
Subject: multi-line paragraph separator
Date: Wed, 05 Sep 2007 08:07:49 -0700
User-agent: G2/1.0

Hi,

I am writing a mode to help navigate results of literature searches.
I would like to redefine the paragraph as a beginning of a new
citation.  The problem is that because of the file format, I need a
regexp to look at two or more lines to determine a start of a
paragraph.  Here are the details:

In this file, citations are separated by two blank lines.  A single
blank line separates the citation header (title, authors, publication
info) from the abstract.  The header and the abstract start in column
5.  Here is an example (the blank lines are marked with "<" -- these
characters are not present in the file, and my comments in CAPITALS)


    PREVIOUS CITATION ABSTRACT .....
    cantilever models can provide a fast and reliable understanding of
    the mechanical deflection properties of microfabricated SiO2
    cantilevers.  FOLLOWED BY TWO BLANK LINES
<
<
    Porous silicon fuel cells for micro power generation THIS IS THE
HEADER OF THE NEXT CITATION
    Kuan-Lun Chu, Mark A Shannon and Richard I Masel
    2007 J. Micromech. Microeng. 17 S243-S249
    Abstract:  http://www.iop.org/EJ/abstract/-alert=33505/0960-1317/17/9/S06
    Full text PDF: 
http://www.iop.org/EJ/article/-alert=33505/0960-1317/17/9/S06/jmm7_9_s06.pdf
<
    The objective of this paper is to report the recent progress in
the FOLLOWED BY ITS ABSTRACT
    development of porous silicon fuel cells for micro power
    generation. Previous work has demonstrated that an acid loaded

I tried by redefining the paragraph-start and paragraph-separate as
  (make-local-variable 'paragraph-start)
  (setq paragraph-start "\\f\\f|    ")
  (make-local-variable 'paragraph-separate)
  (setq paragraph-separate "\\f$\\f$")
but that did not work.

Is that even possible?

Thanks,

Mirko



reply via email to

[Prev in Thread] Current Thread [Next in Thread]