diff options
author | Karl Berry <karl@freefriends.org> | 2015-09-11 22:46:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-09-11 22:46:10 +0000 |
commit | 530f626ca92dfe906817b10105c2342b3d2ee4be (patch) | |
tree | 4a79d3972fe1bd4cdba7a4fca413eecacd5488bc /Master/texmf-dist | |
parent | af130f6132abe143060e18f2e0275dcaa1f93f83 (diff) |
easyreview (11sep15)
git-svn-id: svn://tug.org/texlive/trunk@38352 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/easyreview/README.txt | 41 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/easyreview/doc/easyReview.pdf | bin | 0 -> 325920 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/easyreview/doc/easyReview.tex | 347 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/easyreview/easyReview.dtx | 261 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/easyreview/easyReview.ins | 57 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easyreview/easyReview.sty | 73 |
6 files changed, 779 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/easyreview/README.txt b/Master/texmf-dist/doc/latex/easyreview/README.txt new file mode 100644 index 00000000000..38a86ae7cf8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/easyreview/README.txt @@ -0,0 +1,41 @@ +%% readme.txt, jmamatos +%% Copyright 2013- by jmamatos +%% +%% This work may be distributed and/or modified under the +%% conditions of the \LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.\LaTeX-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of \LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is jmamatos, led +%% by Jody Maick Matos. Further information are available on +%% https://github.com/jmamatos/easyReview/ +%% +%% +%% +%% Revision history: +%% +%% 2015/09/11 jmamatos +%% +%% + +The Easy Review Package: Reviewing TeX documents in an easy way +author: Jody Maick Matos (jody.matos@inf.ufrgs.br) +2015/09/11 + +The easyReview package provide a way to review (or perform editorial process) in LaTeX. You can use the provided commands to claim attention in different ways to part of the text, or even to indicate that a text was added, needs to be removed, needs to be replaced and add comments to the text. + + +Software License: +The files easyReview.dtx, easyReview.ins, and all files generated from these files are referred to as ‘the Easy Review package’ or simply ‘the package’. + + Copyright: The Easy Review package is copyright 2013- by jmamatos (jody.matos@inf.ufrgs.br). + + Distribution and modification: This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later. This work has the LPPL maintenance status `maintained'. The Current Maintainer of this work is jmamatos, led by Jody Maick Matos. Further information are available on https://github.com/jmamatos/easyReview/. + + Contacts: Read Section "Troubleshooting" (in the documentation files) on how to submit a bug report. Send all other comments and ideas to jody.matos@inf.ufrgs.br using easyReview as part of the subject. + diff --git a/Master/texmf-dist/doc/latex/easyreview/doc/easyReview.pdf b/Master/texmf-dist/doc/latex/easyreview/doc/easyReview.pdf Binary files differnew file mode 100644 index 00000000000..ce5abe45376 --- /dev/null +++ b/Master/texmf-dist/doc/latex/easyreview/doc/easyReview.pdf diff --git a/Master/texmf-dist/doc/latex/easyreview/doc/easyReview.tex b/Master/texmf-dist/doc/latex/easyreview/doc/easyReview.tex new file mode 100644 index 00000000000..50d89218d80 --- /dev/null +++ b/Master/texmf-dist/doc/latex/easyreview/doc/easyReview.tex @@ -0,0 +1,347 @@ +%% easyReview.sty, v-1.0 jmamatos +%% Copyright 2013- by jmamatos +%% +%% This work may be distributed and/or modified under the +%% conditions of the \LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.\LaTeX-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of \LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is jmamatos, led +%% by Jody Maick Matos. Further information are available on +%% https://github.com/jmamatos/easyReview/ +%% +%% +%% +%% Revision history: +%% +%% 2014/06/27 jmamatos +%% +%% + +\documentclass[a4paper]{ltxdoc} +\usepackage{lmodern} % Usa a fonte Latin Modern +\usepackage[T1]{fontenc} % seleção de códigos de fonte. +\usepackage[utf8]{inputenc} % determina a codificação utiizada (conversão automática dos acentos) +\usepackage{hyperref} % controla a formação do índice +\usepackage{parskip} % espaçamento entre os parágrafos +\usepackage{microtype} % para melhorias de justificação +\usepackage{morefloats} % permite mais floats +\usepackage{listings} +\usepackage[margin=1in]{geometry} +\usepackage{../../backup/easyReview} + +\lstset{ + keywordstyle=\bfseries\color{purple!60!black}, + commentstyle=\itshape\color{green!40!black}, +% identifierstyle=\itshape, + stringstyle=\itshape, + showstringspaces=false, + escapeinside={\%*}{*)}, + columns=flexible, + breaklines=true, + breakindent=0pt} +\renewcommand\lstlistingname{Example} +% \renewcommand\lstlistlistingname{\textbf{List of Algorithms}} + +\newcommand{\keyword}[1]{\textbf{\color{purple!60!black}{#1}}} + +\title{\textbf{The Easy Review Package}: \\ \Large{Reviewing +\TeX~documents in an easy way}} + +% \thanks{Este documento +% se referete ao \textsf{abntex2} versão \fileversion, +% de \filedate.} + +\author{Jody Maick Matos\\\url{jody.matos@inf.ufrgs.br}} + +\date{\today, v-1.0} + +\hypersetup{ + pdftitle={The Easy Review Package}, + pdfauthor={Jody Maick Matos}, + pdfsubject={Reviewing +\TeX~documents in an easy way}, + pdfproducer={Jody Maick Matos -- jody.matos@inf.ufrgs.br}, % producer of the document + pdfcreator={\LaTeX with easyReview}, + colorlinks=true, + linkcolor=blue, + citecolor=blue, + urlcolor=blue +} + +\EnableCrossrefs +\CodelineIndex +\RecordChanges + +\changes{v1.0}{2014/06/27}{First version} + +\begin{document} + + +\maketitle + +\begin{abstract} +The \textit{easyReview} provide a way to review (or perform editorial process) in \LaTeX. You can use the provided commands to claim attention in different ways to part of the text, or even to indicate that a text was added, needs to be removed, needs to be replaced and add comments to the text. +\end{abstract} + +\tableofcontents + +% \listoftables + +% ------ +\section{User's Guide} +% ------ + +% ------ +\subsection{Getting started} +% ------ +% ------ +\subsubsection{A minimal file} +\label{sec:minimal} +% ------ +Before using the listings package, you should be familiar with the \\LaTeX~typesetting +system. You need not to be an expert. Here is a minimal file for using easyReview: + +\begin{lstlisting}[language=tex] +%*\keyword{$\backslash$documentclass}*){article} +%*\keyword{$\backslash$usepackage}*){easyReview} + +%*\keyword{$\backslash$begin}*){document} + +% Write your text here. +% You will be able to use the easyReview commands. + +%*\keyword{$\backslash$end}*){document + +\end{lstlisting} + +Now, type in this first example and run it through \\LaTeX. + +\begin{description} + \item[* Should I read the software license before using the package?:] Yes, but read this \textit{Getting started} Section first to decide whether you are willing to use the package. + \item[* The example doesn't work:] The easyReview package requires that four other packages must be installed (but himself, of course) in the way for working properly: \textbf{\textit{soul, xcolor,} and \textit{todonotes}}. Please, be sure that the \\LaTeX~engine and \textit{all} these packages are installed before trying the given example (or any other easyReview utilization). +\end{description} + +% ------ +\subsubsection{Loading the package} +% ------ +As usual in \LaTeX, the package is loaded by ``\keyword{$\backslash$usepackage}\{easyReview\}''. + +% ------ +\subsubsection{Figure out the appearance} +% ------ +``alert'' is typeset in red; ``add'' in blue; ``remove'' in strikethrough red; ``substitute''/``replace'' are equivalent commands which appear as a combination of both ``remove'' and ``add'' commands; ``highlight'' is typeset with yellow background; and ``comment'' appears as an inline box with orange background. + +% ------ +\subsection{A package overview} +% ------ +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +The Easy Review package is intended to be used for reviewing (or in editorial process) of %*\keyword{$\backslash$TeX}*)~documents, such as research papers, reports, books, presentations %*\keyword{$\backslash$textit}*){etc}. By using this package, %*\keyword{$\backslash$alert}*){the authors can %*\keyword{$\backslash$textbf}*){easily} claim attention to special parts of the text} %*\keyword{$\backslash$highlight}*){using different ways!} In this small example, you will be able to see the whole that the Easy Review package have. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +The Easy Review package is intended to be used for reviewing (or in editorial process) of \TeX~documents, such as research papers, reports, books, presentations \textit{etc}. By using this package, \alert{the authors can \textbf{easily} claim attention to special parts of the text} \highlight{using different ways!} In this small example, you will be able to see the whole that the Easy Review package have. +\end{minipage} +\end{center} + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +%*\keyword{$\backslash$replace}*){For obtaining}{In the way to obtain} the final version of the \TeX~document, the authors will need to perform a lot changes over the original text. In this sense, it would be very interesting to have an available package which could turn easy the task of highlight some changes: %*\keyword{$\backslash$alert}*){alert a phrase ou period}; %*\keyword{$\backslash$highlight}*){highlight another \TeX~ content}; %*\keyword{$\backslash$add}*){add specific parts in the text}; %*\keyword{$\backslash$remove}*){remove another parts}; or even %*\keyword{$\backslash$replace}*){substitute}{replace} parts of the text. Another very important feature would be %*\keyword{$\backslash$comment}*){using special commands to let a comment to the group.}{This feature is really important!} +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +\replace{For obtaining}{In the way to obtain} the final version of the \TeX~document, the authors will need to perform a lot changes over the original text. In this sense, it would be very interesting to have an available package which could turn easy the task of highlight some changes: \alert{alert a phrase ou period}; \highlight{highlight another \TeX~ content}; \add{add specific parts in the text}; \remove{remove another parts}; or even \replace{substitute}{replace} parts of the text. Another very important feature would be \comment{using special commands to let a comment to the group.}{This feature is really important!} +\end{minipage} +\end{center} + +% ------ +\subsection{The Main commands} +% ------ +% ------ +\subsubsection{The alert command} +% ------ +Command intended to claim author's attention to a given part of the text. In the following, it is possible to see an example: + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +A text without the alert command. %*\keyword{$\backslash$alert}*){A text with the alert command}. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +A text without the alert command. \alert{A text with the alert command}. +\end{minipage} +\end{center} + +% ------ +\subsection{The highlight command} +% ------ +Command intended to claim author's attention to a given part of the text in a different to the ``alert'' command. In the following, it is possible to see an example: + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +A text without the highlight command. %*\keyword{$\backslash$highlight}*){A text with the highlight command}. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +A text without the highlight command. \highlight{A text with the highlight command}. +\end{minipage} +\end{center} + +% ------ +\subsection{The remove command} +% ------ +Command which an author suggest to remove a given part of the text. In the following, it is possible to see an example: + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +This text is not to be removed. %*\keyword{$\backslash$remove}*){This text is to be removed}. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +This text is not to be removed. \remove{This text is to be removed}. +\end{minipage} +\end{center} + +% ------ +\subsection{The add command} +% ------ +Command which an author suggest to add new text in a given part of the text. In the following, it is possible to see an example: + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +This text was already in the text. %*\keyword{$\backslash$add}*){This text is been added now}. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +This text was already in the text. \add{This text is been added now}. +\end{minipage} +\end{center} + +% ------ +\subsection{The replace/substitute commands} +% ------ +Both commands are equivalent. It shall be used when an author suggest to replace a given part of the text for a newer one. In the following, it is possible to see an example: + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +%*\keyword{$\backslash$replace}*){This part of the text needs to be replaced}{for this newer part of the text}. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +\replace{This part of the text needs to be replaced}{for this newer part of the text}. +\end{minipage} +\end{center} + +% ------ +\subsection{The comment command} +% ------ +Command intended to claim author's attention to a given part of the text, giving some comments to provide more information. In the following, it is possible to see an example: + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +%*\keyword{$\backslash$comment}*){This text will receive a comment.}{This is the comment I have!}. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +\comment{This text will receive a comment.}{This is the comment I have!}. +\end{minipage} +\end{center} + +% ------ +\section{Advanced Techniques} +% ------ + +% ------ +\subsection{Turning reviews ON or OFF} +% ------ +It is possible to turn the reviews ON or OFF. In some extent, it is possible to say that, when the reviews is turned off, they were not accepted. In the following, it is possible to see an example: + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +%*\keyword{$\backslash$setreviewson}*) +This text will receive the reviews. The Easy Review package is intended to be used for reviewing (or in editorial process) of %*\keyword{$\backslash$TeX}*)~documents, such as research papers, reports, books, presentations %*\keyword{$\backslash$textit}*){etc}. By using this package, %*\keyword{$\backslash$alert}*){the authors can %*\keyword{$\backslash$textbf}*){easily} claim attention to special parts of the text} %*\keyword{$\backslash$highlight}*){using different ways!} In this small example, you will be able to see the whole that the Easy Review package have. +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +The Easy Review package is intended to be used for reviewing (or in editorial process) of \TeX~documents, such as research papers, reports, books, presentations \textit{etc}. By using this package, \alert{the authors can \textbf{easily} claim attention to special parts of the text} \highlight{using different ways!} In this small example, you will be able to see the whole that the Easy Review package have. +\end{minipage} +\end{center} + +\begin{center} +\begin{minipage}[ht]{0.45\textwidth} +\begin{lstlisting}[language=tex] +%*\keyword{$\backslash$setreviewsoff}*) +This text will not receive the reviews. %*\keyword{$\backslash$replace}*){For obtaining}{In the way to obtain} the final version of the \TeX~document, the authors will need to perform a lot changes over the original text. In this sense, it would be very interesting to have an available package which could turn easy the task of highlight some changes: %*\keyword{$\backslash$alert}*){alert a phrase ou period}; %*\keyword{$\backslash$highlight}*){highlight another \TeX~ content}; %*\keyword{$\backslash$add}*){add specific parts in the text}; %*\keyword{$\backslash$remove}*){remove another parts}; or even %*\keyword{$\backslash$replace}*){substitute}{replace} parts of the text. Another very important feature would be %*\keyword{$\backslash$comment}*){using special commands to let a comment to the group.}{This feature is really important!} +\end{lstlisting} +\end{minipage} +\hspace{10pt} +\begin{minipage}[ht]{0.45\textwidth} +For obtaining the final version of the \TeX~document, the authors will need to perform a lot changes over the original text. In this sense, it would be very interesting to have an available package which could turn easy the task of highlight some changes: alert a phrase or period; highlight another \TeX~ content; remove another parts; or even substitute parts of the text. Another very important feature would be using special commands to let a comment to the group. +\end{minipage} +\end{center} + +% ------ +\subsection{Changing the default colors} +% ------ +The default colors used in the commands are provided by the \textit{xcolor} package. It is possible to change all colors but the highlight color. To change the command colors, use on of these assignments: + +\begin{lstlisting}[language=tex] +%*\keyword{$\backslash$renewcommand}*){%*\keyword{$\backslash$alertColor}*)}{%*\keyword{$\backslash$textcolor}*){%new alert color%%*\}\}*) +%*\keyword{$\backslash$renewcommand}*){%*\keyword{$\backslash$removeColor}*)}{%*\keyword{$\backslash$textcolor}*){%new remove color%%*\}\}*) +%*\keyword{$\backslash$renewcommand}*){%*\keyword{$\backslash$addColor}*)}{%*\keyword{$\backslash$textcolor}*){%new add color%%*\}\}*) + +\end{lstlisting} + +\section{Troubleshooting} +\label{sec:troubleshooting} +If you're faced with a problem with the listings package, there are some steps you should undergo before you make a bug report. First, create a minimal file which reproduces the problem. Follow these instructions: + +\begin{enumerate} + \item Start from the minimal file in Section \ref{sec:minimal}; + \item Add the \LaTeX code which causes the problem, but keep it short. In particular, keep the number of additional packages small; + \item Remove some code from the file (and the according packages) until the problem disappears. Then you've found a crucial piece; + \item Add this piece of code again and start over with step 3 until all code and all packages are substantial; + \item You now have a minimal file. Send a bug report to \url{jody.matos@inf.ufrgs.br} and include the minimal file together with the created \textit{.log-file}. If you use a very special package (i.e., one not on CTAN), also include the package if its software license allows it. +\end{enumerate} + +% ------ +\section{The Next Steps} +% ------ +Now, before actually using the \textit{easyReview} package, you should really read the software license. It does not cost much time and provides information you probably need to know. + +% ------ +\subsection{Software License} +% ------ +The files \lstinline!easyReview.dtx!, \lstinline!easyReview.ins!, \lstinline!easyReview.sty! and all files generated from these files are referred to as ‘the Easy Review package’ or simply ‘the package’. + +\begin{description} + \item[Copyright:] The Easy Review package is copyright 2013- by jmamatos (\url{jody.matos@inf.ufrgs.br}). + \item[Distribution and modification:] This work may be distributed and/or modified under the conditions of the \LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in \url{http://www.latex-project.org/lppl.txt} and version 1.3 or later is part of all distributions of \LaTeX version 2005/12/01 or later. This work has the LPPL maintenance status `maintained'. The Current Maintainer of this work is jmamatos, led by Jody Maick Matos. Further information are available on \url{https://github.com/jmamatos/easyReview/}. + \item[Contacts:] Read Section \ref{sec:troubleshooting} on how to submit a bug report. Send all other comments and ideas to \url{jody.matos@inf.ufrgs.br} using \textit{easyReview} as part of the subject. +\end{description} + +\end{document} diff --git a/Master/texmf-dist/source/latex/easyreview/easyReview.dtx b/Master/texmf-dist/source/latex/easyreview/easyReview.dtx new file mode 100644 index 00000000000..1d9a1d1e85d --- /dev/null +++ b/Master/texmf-dist/source/latex/easyreview/easyReview.dtx @@ -0,0 +1,261 @@ +% \iffalse meta-comment +% +% Copyright (C) 2014 by jmamatos <jody.matos@inf.ufrgs.br> +% --------------------------------------------------------------------------- +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is jmamatos. +% +% This work consists of the files easyReview.dtx and easyReview.ins +% and the derived filebase easyReview.sty. +% +% \fi +% +% \iffalse +%<*driver> +\ProvidesFile{easyReview.dtx} +%</driver> +%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] +%<package>\ProvidesPackage{easyReview} +%<*package> + [2014/06/27 Package for Easy Review on LaTeX documents] +%</package> +% +%<*driver> +\documentclass{ltxdoc} +\usepackage{easyReview}[2014/06/27] +\EnableCrossrefs +\CodelineIndex +\RecordChanges +\begin{document} + \DocInput{easyReview.dtx} + \PrintChanges + \PrintIndex +\end{document} +%</driver> +% \fi +% +% \CheckSum{63} +% +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% +% \changes{<+version+>}{<+date+>}{Converted to DTX file} +% +% \DoNotIndex{\newcommand,\newenvironment} +% +% \providecommand*{\url}{\texttt} +% \GetFileInfo{easyReview.dtx} +% \title{The \textsf{easyReview} package} +% \author{jmamatos \\ \url{jody.matos@inf.ufrgs.br}} +% \date{\fileversion~from \filedate} +% +% \maketitle +% +% \section{Introduction} +% +% Put text here. +% +% \section{Usage} +% +% Put text here. +% +% +% \DescribeMacro{\setreviewson} +% +% +% \DescribeMacro{\setreviewsoff} +% +% +% \DescribeMacro{\alertColor} +% +% +% \DescribeMacro{\removeColor} +% +% +% \DescribeMacro{\addColor} +% +% +% \DescribeMacro{\alert} +% +% +% \DescribeMacro{\remove} +% +% +% \DescribeMacro{\add} +% +% +% \DescribeMacro{\substitute} +% +% +% \DescribeMacro{\replace} +% +% +% \DescribeMacro{\highlight} +% +% +% \DescribeMacro{\comment} +% + +% +% \StopEventually{} +% +% \section{Implementation} +% +% \iffalse +%<*package> +% \fi +% +%% easyReview.sty, v-1.0 jmamatos +%% Copyright 2013- by jmamatos +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is jmamatos, led +%% by Jody Maick Matos. Further information are available on +%% https://github.com/jmamatos/easyReview/ +%% +%% +%% +%% Revision history: +%% +%% 2014/06/27 jmamatos +%% +%% +% +% \begin{macrocode} +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +% \end{macrocode} +%% This file provide the easyReview package, wich can be used to +%% easily review tex documents (or editorial processes). +% \begin{macrocode} +\ProvidesPackage{easyReview}[2013/12/09 Package for Easy Review on LaTeX documents] +\newif\ifistoreview +\istoreviewtrue +% \end{macrocode} +% +% \begin{macro}{\setreviewson} +% \begin{macrocode} +\newcommand{\setreviewson}{\istoreviewtrue} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\setreviewsoff} +% \begin{macrocode} +\newcommand{\setreviewsoff}{\istoreviewfalse} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +\RequirePackage{soul} +\RequirePackage{xcolor} +\RequirePackage{todonotes} +% \end{macrocode} +% +% \begin{macro}{\alertColor} +% \begin{macrocode} +\newcommand{\alertColor}{\textcolor{red}} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\removeColor} +% \begin{macrocode} +\newcommand{\removeColor}{\textcolor{red}} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\addColor} +% \begin{macrocode} +\newcommand{\addColor}{\textcolor{blue}} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\alert} +% \begin{macrocode} +\newcommand{\alert}[1]{\ifistoreview\alertColor{#1}\else #1\fi} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\remove} +% \begin{macrocode} +\newcommand{\remove}[1]{\ifistoreview\alertColor{\st{#1}}\else #1\fi} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\add} +% \begin{macrocode} +\newcommand{\add}[1]{\ifistoreview\addColor{#1}\else #1\fi} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\substitute} +% \begin{macrocode} +\newcommand{\substitute}[2]{\ifistoreview\remove{#1}~\add{#2} \else #1\fi} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\replace} +% \begin{macrocode} +\newcommand{\replace}[2]{\ifistoreview\remove{#1}~\add{#2}\else #1\fi} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\highlight} +% \begin{macrocode} +\newcommand{\highlight}[1]{\hl{#1}} +% \end{macrocode} +% \end{macro} +% +% +% \begin{macro}{\comment} +% \begin{macrocode} +\newcommand{\comment}[2]{\highlight{#1}\todo[inline]{#2}}% \end{macrocode} +% \end{macro} +% + +% +% \iffalse +%</package> +% \fi +% +% \Finale +\endinput diff --git a/Master/texmf-dist/source/latex/easyreview/easyReview.ins b/Master/texmf-dist/source/latex/easyreview/easyReview.ins new file mode 100644 index 00000000000..8e7171fecc0 --- /dev/null +++ b/Master/texmf-dist/source/latex/easyreview/easyReview.ins @@ -0,0 +1,57 @@ +%% Copyright (C) 2014 by jmamatos <jody.matos@inf.ufrgs.br> +%% -------------------------------------------------------------------------- +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is jmamatos. +%% +%% This work consists of the files easyReview.dtx and easyReview.ins +%% and the derived filebase easyReview.sty. +%% + +\input docstrip.tex +\keepsilent + +\usedir{tex/latex/easyReview} + +\preamble + +This is a generated file. + +Copyright (C) 2014 by jmamatos <jody.matos@inf.ufrgs.br> +-------------------------------------------------------------------------- +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either version 1.3 +of this license or (at your option) any later version. +The latest version of this license is in + http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of LaTeX +version 2005/12/01 or later. + +\endpreamble + +\generate{\file{easyReview.sty}{\from{easyReview.dtx}{package}}} + +\obeyspaces +\Msg{*************************************************************} +\Msg{* *} +\Msg{* To finish the installation you have to move the following *} +\Msg{* file into a directory searched by TeX: *} +\Msg{* *} +\Msg{* easyReview.sty *} +\Msg{* *} +\Msg{* To produce the documentation run the file easyReview.dtx *} +\Msg{* through LaTeX. *} +\Msg{* *} +\Msg{* Happy TeXing! *} +\Msg{* *} +\Msg{*************************************************************} + +\endbatchfile diff --git a/Master/texmf-dist/tex/latex/easyreview/easyReview.sty b/Master/texmf-dist/tex/latex/easyreview/easyReview.sty new file mode 100644 index 00000000000..d8725970bad --- /dev/null +++ b/Master/texmf-dist/tex/latex/easyreview/easyReview.sty @@ -0,0 +1,73 @@ +%% +%% This is file `easyReview.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% easyReview.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2014 by jmamatos <jody.matos@inf.ufrgs.br> +%% -------------------------------------------------------------------------- +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{easyReview} + [2014/06/27 Package for Easy Review on LaTeX documents] + +%% easyReview.sty, v-1.0 jmamatos +%% Copyright 2013- by jmamatos +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is jmamatos, led +%% by Jody Maick Matos. Further information are available on +%% https://github.com/jmamatos/easyReview/ +%% +%% +%% +%% Revision history: +%% +%% 2014/06/27 jmamatos +%% +%% +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +%% This file provide the easyReview package, wich can be used to +%% easily review tex documents (or editorial processes). +\ProvidesPackage{easyReview}[2013/12/09 Package for Easy Review on LaTeX documents] +\newif\ifistoreview +\istoreviewtrue +\newcommand{\setreviewson}{\istoreviewtrue} +\newcommand{\setreviewsoff}{\istoreviewfalse} +\RequirePackage{soul} +\RequirePackage{xcolor} +\RequirePackage{todonotes} +\newcommand{\alertColor}{\textcolor{red}} +\newcommand{\removeColor}{\textcolor{red}} +\newcommand{\addColor}{\textcolor{blue}} +\newcommand{\alert}[1]{\ifistoreview\alertColor{#1}\else #1\fi} +\newcommand{\remove}[1]{\ifistoreview\alertColor{\st{#1}}\else #1\fi} +\newcommand{\add}[1]{\ifistoreview\addColor{#1}\else #1\fi} +\newcommand{\substitute}[2]{\ifistoreview\remove{#1}~\add{#2} \else #1\fi} +\newcommand{\replace}[2]{\ifistoreview\remove{#1}~\add{#2}\else #1\fi} +\newcommand{\highlight}[1]{\hl{#1}} +\newcommand{\comment}[2]{\highlight{#1}\todo[inline]{#2}}% \end{macrocode} + +\endinput +%% +%% End of file `easyReview.sty'. |