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.

Is it possible to include a section of a file?

Context: Literature Reviews for thesis, I write long(ish) notes on each paper/article/whatever, but generally have a 'bird's eye view' summary. I'd like to generate a report that just contains these summaries from each individual review file.

If there's a better way to lay this out, I would like to hear those too.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You could simply put all all review sections in own files which are inserted using \input (not \include) in your normal document and also in the extra report. This might seem to be a little extra work, but IMHO is the most straight-forward way to do it.

You could also mark the sections in questions using special tags and then extract them as shown in Delimit a single auxiliary file into chunks, and include these at separate places?, but personally I find this overly complicated in this case where it is only one section per chapter and not multiple chunks.

share|improve this answer
    
+1 for pointing out \input to me. I think that for my purposes and plans for development, the catchfilebetweentags is worth trying for now. Will mark as answered after a customary 24hr wait. –  Andrew Bolster Oct 18 '11 at 10:20

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.