>
Land for sale
Undy, Caldicot NP26
£700,000
Undy, Caldicot NP26
£700,000
Our Summary
- 95 acres of amenity land located just south of the rapidly expanding village of Undy, offering an exceptional opportunity for developers looking to capitalise on a thriving area with excellent connectivity
Description
```
I've tried using `\summarize` from the `xsum` package, but it seems to be designed for summarizing text rather than a structured list like the one above. Any suggestions on how to achieve this in LaTeX?
Comment: You can use a script or a macro to process the list and extract the key points. Here's a simple approach using `expl3` and `xparse`: https://tex.stackexchange.com/a/58226/16994
## Answer (2)
You can use a combination of `xparse` and `expl3` to create a new command that processes the list and extracts the key points. Here's an example of how you could implement this:
```\documentclass{article}
\usepackage{xparse}
\usepackage{xstring}
\ExplSyntaxOn
\NewDocumentCommand{\summarize}{m}
{
\group_begin:
\str_case:nn { #1 }
{
\q_stop:
{ 0.95 acres of amenity land }
\str_case:ff { ##1 }
{
\c_gen_stop:
{
\str_case:ff { ##2 }
{
\c_gen_stop:
{
\loc_summarize:nn { ##1 } { ##2 }
}
}
}
}
}
\group_end:
}
\seq_new:N \l_loc_summary_parts_seq
\cs_new_protected:N \loc_summarize:nn { ##1 } { ##2 }
{
\seq_put_right:NV \l_loc_summary_parts_seq { ##2 }
}
\cs_generate_variant:Nn \str_case:nnf { fff }
\ExplSyntaxOff
\begin{document}
\summarize{SYS}{Summarize this property description in a single paragraph without a list <>
A rare opportunity to purchase approximately 0.95 acres of