GeneralProject Planning

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pinsky
Posts: 2
Joined: Sat Dec 17, 2011 11:55 pm

Project Planning

Post by pinsky »

Hy,

the topic might be a little off, but I'll explain. :)

So, I've written a project in latex for a Linux conference. It currently contains only the text that will go to sponsors and local media. It contains the plan of the conference without the realization details.

Now I'm going to add technical details and duties for every chapter.
For example:
(original text) This is going to be a cool conference.
(organization comment) Mark: Gather the "components of coolness" till 2.3.2012.

What I would like to achieve, but don't know how is to have all the written comments gathered on a last page of the documents (together with the ones in chapters).

In the ideal solution, they would be sorted by names.

Any ideas?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Project Planning

Post by 5gon12eder »

There might be a package for that but it's easy to add (as far as I understand your needs) and I guess you have already done some research without finding an appropriate package.

The following solution will allow you to add textual comments in the text and defines a macro to print a summary of all comments by one person at the end of the document. (If you want to print them anywhere, you'd have to use some file shipout trickery.)

Code: Select all

\documentclass{article}
\usepackage{xcolor}

\makeatletter

% Define a macro to declare new persons to add comments:

\newcommand{\DefineComment}[2][black]%  #1: color,  #1: person
           {
             % Define a macro named \comment@<Person> that stores all comments
             % by <Person>.  It's initially empty.
             \expandafter\newcommand\csname comment@#2\endcsname{}
             %  Remember the color associated with that person in a macro named
             %  \commentcolor@<Person>:
             \expandafter\newcommand\csname commentcolor@#2\endcsname{#1}
           }

% Define a macro that can be used to add comments inside the text:

\newcommand*{\comment}[2]%  #1: person,  #2: comment text
            {%
              \textcolor{\csname commentcolor@#1\endcsname}%
                        {[#1:\quad#2]}%
              \expandafter\g@addto@macro\csname comment@#1\endcsname{\item#2}%
            }

% Define a macro that will print all comments by one person:

\newcommand{\printcomments}[1]%  person
           {
             \begin{itemize}
               \csname comment@#1\endcsname
             \end{itemize}
           }

\makeatother


% Set up commens for Mark and Alice:
\DefineComment[blue]{Mark}
\DefineComment[green]{Alice}


\begin{document}

  This is going to be a cool conference.
  \comment{Mark}{Gather the ``components of coolness'' till 2.3.2012.}
  
  This is going to be an expensive conference.
  \comment{Alice}{Collect \$\,100,000 till next week.}
  
  This is going to be an interesting conference.
  \comment{Alice}{Invite interesting speakers till the end of December.}
  
  There'll be a lot of coffee needed for the conference.
  \comment{Mark}{Grow coffe beans and roast them asap.}
  
  \appendix
  \section{Comments}
  \subsection{Comments by Mark}
  \printcomments{Mark}
  
  \subsection{Comments by Alice}
  \printcomments{Alice}
  
\end{document}
Hope that helps.

Best
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Post Reply