Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
include doesn't seem to allow for any formatting or selection of fields and catchfilebetweentags seems crude. –  Steve Jan 29 '13 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) –  David Carlisle Jan 29 '13 at 22:13
    
@DavidCarlisle: Can you provide an answer please? –  Marco Daniel Mar 2 '13 at 9:21
    
@MarcoDaniel done –  David Carlisle Mar 2 '13 at 11:31
    
@DavidCarlisle: voted ;-) –  Marco Daniel Mar 2 '13 at 11:31

1 Answer 1

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}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.