2

I am fairly inexperienced with Latex and would like to create a special document of paper summaries. I am trying to create a large number of files where each file contains the summary of a technical paper and then combine them into a single file.

The summary file would have something like:

\papertitle{The Paper Title}
\dateread{January 1, 2013}
\begin{summary}
 Technical summary here $for fun$.
\end{summary}
\cite{halespiles2008}

And the main paper would pull out a few of these fields and display them nicely with perhaps a custom command (and I was thinking about using something like this to loop through files, but whatever).

What is the most appropriate command to input such a file and display only its title and summary and be sure its citation ends up in the references section?

5
  • include doesn't seem to allow for any formatting or selection of fields and catchfilebetweentags seems crude.
    – Steve
    Jan 29, 2013 at 21:52
  • 2
    \include or \input just input the file, you can define \papertitle and \summary to be anything (and \dateread to do nothing) Jan 29, 2013 at 22:13
  • @DavidCarlisle: Can you provide an answer please? Mar 2, 2013 at 9:21
  • @MarcoDaniel done Mar 2, 2013 at 11:31
  • @DavidCarlisle: voted ;-) Mar 2, 2013 at 11:31

1 Answer 1

3

You can use

\newcommand\papertitle[1]{\item[#1]}
\newcommand\dateread[1]{}
\newenvironment{summary}{}{}
% leave \cite as is, or perhaps make it locally \nocite, depending

\begin{description}
    \input{file1}  
    \input{file2}
     ...
\end{description}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .