| 1 |
+-----------------------------------------------+ |
| 2 |
| MINORREVISION v1.1 | |
| 3 |
| | |
| 4 |
| Quoting and referring to modified documents | |
| 5 |
| | |
| 6 |
| By Matthieu Guillaumin | |
| 7 |
| [email protected] | |
| 8 |
+-----------------------------------------------+ |
| 9 |
|
| 10 |
|
| 11 |
Description and usage |
| 12 |
===================== |
| 13 |
|
| 14 |
minorrevision is intended for researchers who publish articles in peer-reviewed |
| 15 |
journals. In the final stages of the review process, the authors typically have |
| 16 |
to provide an additional document (such as a letter to the editors) where they |
| 17 |
want to provide a list of modifications that they made to the manuscript. It |
| 18 |
is convenient for the editors to have line numbers and quotations from the |
| 19 |
manuscript in this letter. This package helps automatizing this task for the |
| 20 |
authors. |
| 21 |
|
| 22 |
This is a two-step process. |
| 23 |
|
| 24 |
Step 1) In the manuscript (say "manuscript.tex"), you need to declare the use |
| 25 |
of the package, by putting the following line in the preamble of your LaTeX |
| 26 |
source: |
| 27 |
|
| 28 |
\usepackage{minorrevision} |
| 29 |
|
| 30 |
You should also add line numbers to your manuscript, also in the preamble: |
| 31 |
|
| 32 |
\linenumbers |
| 33 |
|
| 34 |
Then, in the body of you manuscript, when you make a minor modification, you |
| 35 |
need to use the \revision macro. For instance, if the following sentence was in |
| 36 |
your manuscript: |
| 37 |
|
| 38 |
In this paper, we show that $1+1=2$. |
| 39 |
|
| 40 |
And, following reviews, you want to modify it to: |
| 41 |
|
| 42 |
In this paper, we hypothetize that $1+1=2$. |
| 43 |
|
| 44 |
Then, instead of replacing the text directly, you should use |
| 45 |
\revision{label}{new text}{old text}, like this: |
| 46 |
|
| 47 |
In this paper, we \revision{mymod}{hypothetize}{show} that $1+1=2$. |
| 48 |
|
| 49 |
Here, we have used the label "mymod" for later reference. When compiling |
| 50 |
manuscript.tex with LaTeX, only the new version of the text will appear. |
| 51 |
|
| 52 |
For text that is simply removed, you can use: \revisionrm{label}{text} |
| 53 |
For text that is simply added: \revisionadd{label}{text} |
| 54 |
A call to \revision{label}{text1}{text2} is similar to |
| 55 |
\revisionrm{label}{text2}\revisionadd{label}{text1} but the latter wouldn't |
| 56 |
work because the label would be defined twice. |
| 57 |
|
| 58 |
Step 2) In the document where you want make reference to the manuscript, also |
| 59 |
add the minorrevision package, and specify that manuscript.tex is the |
| 60 |
reference: |
| 61 |
|
| 62 |
\usepackage{minorrevision} |
| 63 |
\mrvdocument{manuscript} |
| 64 |
|
| 65 |
Note how ".tex" should *not* be included in the \mrvdocument macro. As of |
| 66 |
v1.1, you can have multiple references: |
| 67 |
|
| 68 |
\mrvdocument{manuscript} |
| 69 |
\mrvdocument{manuscript2} |
| 70 |
... |
| 71 |
|
| 72 |
You can now refer to the line numbers of modifications in the reference |
| 73 |
documents via their label names, by using \mrvref{reference}{label}, |
| 74 |
\mrvold{reference}{label} and \mrvnew{reference}{label}. "reference" should |
| 75 |
correspond to the argument of \mrvreference. |
| 76 |
|
| 77 |
On line~\mrvref{manuscript}{mymod}, we have replaced |
| 78 |
``\mrvold{manuscript}{mymod}'' with ``\mrvnew{manuscript}{mymod}''. |
| 79 |
|
| 80 |
It's up to you to format that as you prefer. The quote environment is probably |
| 81 |
better for larger modifications. |
| 82 |
|
| 83 |
For the latest declared reference document, the simpler \revref{label}, |
| 84 |
\revold{label} and \revnew{label} are available. |
| 85 |
|
| 86 |
On line~\revref{mymod}, we have replaced ``\revold{mymod}'' with |
| 87 |
``\revnew{mymod}''. |
| 88 |
|
| 89 |
This is particularly useful when there is no ambiguity, ie there is only one |
| 90 |
reference document. |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
Implementation details |
| 95 |
====================== |
| 96 |
|
| 97 |
This package automatically adds the following packages: |
| 98 |
- xkeyval: for passing options to the packages below |
| 99 |
- lineno: to get line numbers of labels |
| 100 |
- xr: to perform cross-reference between documents |
| 101 |
|
| 102 |
When using the minorrevision package, a new auxiliary file is created, with |
| 103 |
extention ``.mrv''. In the case of manuscript.tex, the file will be |
| 104 |
manuscript.mrv. The \revision macro not only declares the label for lineno and |
| 105 |
prints the new text to the document, but also writes two macro definitions in |
| 106 |
manuscript.mrv with both the new and old text contents. The macro name depends |
| 107 |
on the name of the reference (here, ``manuscript''), and the label name (here, |
| 108 |
``mymod''). |
| 109 |
|
| 110 |
When making the call to \mrvdocument, those macro definitions are read (simply |
| 111 |
by inputting the file), and calls to \revref{mymod}, \revold{mymod} and |
| 112 |
\revnew{mymod} become available. |
| 113 |
|
| 114 |
See minorrevision.sty for the actual implementation with comments. |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
File manifest |
| 119 |
============= |
| 120 |
|
| 121 |
README This file |
| 122 |
minorrevision.sty The style file |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
Bug report and questions |
| 127 |
======================== |
| 128 |
|
| 129 |
Please use the official bitbucket repository for bug reports, patch proposal |
| 130 |
and question: |
| 131 |
|
| 132 |
https://bitbucket.org/mguillau/latex-minorrevision |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
Copyright and License |
| 137 |
===================== |
| 138 |
|
| 139 |
Copyright 2013 Matthieu Guillaumin |
| 140 |
|
| 141 |
This work may be distributed and/or modified under the conditions of |
| 142 |
the LaTeX Project Public License, either version 1.3c of this license |
| 143 |
or (at your option) any later version. The latest version of this |
| 144 |
license is in |
| 145 |
|
| 146 |
http://www.latex-project.org/lppl.txt |
| 147 |
|
| 148 |
and version 1.3c or later is part of all distributions of LaTeX version |
| 149 |
2008/05/04 or later. |
| 150 |
|