Skip to content

Commit 0f5df7f

Browse files
committed
better explanation of macros
1 parent aa1227f commit 0f5df7f

File tree

5 files changed

+35
-44
lines changed

5 files changed

+35
-44
lines changed

p-rebuttal-letter.tex

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@
44
\providecommand{\authors}{Authors}
55
\providecommand{\journal}{Journal}
66

7+
%% CROSS REFERENCE TO ORIGINAL DOCUMENT
8+
9+
% if you just use cite
10+
% \usepackage{xr}
11+
% \externaldocument[v1-]{pathToDoc}
12+
% in doc, do \ref{v1-sec:intro}
13+
14+
% if you use hyperref
15+
\usepackage{xr-hyper}
16+
\usepackage[hidelinks]{hyperref}
17+
\makeatletter
18+
\long\def\myempty{}
19+
\def\XR@addURL#1{\XR@@dURL#1\myempty{}{}{}{}{}\\}
20+
\def\XR@@dURL#1#2#3#4#5#6#7\\{%
21+
{#1}{#2}%
22+
\ifx\myempty#6\@empty
23+
{#3}{#4}{\XR@URL}%
24+
\else
25+
\fi
26+
}
27+
\makeatother
28+
\externaldocument[v1:]{../manuscript/manuscript}
29+
730
\input{../preamble.tex}
831

932
\begin{document}

p-reviewer-letter.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
\providecommand{\journal}{Journal}
66
\providecommand{\doi}{--}
77

8+
9+
\usepackage[hidelinks]{hyperref}
810
\input{../preamble.tex}
911

1012
\begin{document}

preamble.tex

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,18 @@
11
\usepackage[includeheadfoot,top=20mm, bottom=20mm, footskip=2.5cm]{geometry}
22

3+
%% CONTAINS EVERYTHING COMMON TO BOTH DOCUMENTS
4+
35
% TYPOGRAPHY
46
\usepackage{cmbright}
57
\usepackage{amssymb,amsmath}
68
\usepackage{microtype}
79
\usepackage[utf8]{inputenc}
810

9-
%% CROSS REFERENCE TO ORIGINAL DOCUMENT
10-
11-
% if you just use cite
12-
% \usepackage{xr}
13-
% \externaldocument[v1-]{pathToDoc}
14-
% in doc, do \ref{v1-sec:intro}
15-
16-
% if you use hyperref
17-
\usepackage{xr-hyper}
18-
\usepackage[hidelinks]{hyperref}
19-
\makeatletter
20-
\long\def\myempty{}
21-
\def\XR@addURL#1{\XR@@dURL#1\myempty{}{}{}{}{}\\}
22-
\def\XR@@dURL#1#2#3#4#5#6#7\\{%
23-
{#1}{#2}%
24-
\ifx\myempty#6\@empty
25-
{#3}{#4}{\XR@URL}%
26-
\else
27-
\fi
28-
}
29-
\makeatother
30-
\externaldocument[v1:]{../manuscript/manuscript}
31-
3211
% MISC
3312
\usepackage{graphicx}
3413
\usepackage{soul} % Highlight using \hl{}
3514

3615
% TABLE
37-
3816
\usepackage{adjustbox} % center large tables across textwidth by surrounding tabular with \begin{adjustbox}{center}
3917
\renewcommand{\arraystretch}{1.5} % enlarge spacing between rows
4018
\usepackage{caption}
@@ -108,7 +86,7 @@
10886
\end{sideline}
10987
}
11088

111-
%% MACRO FOR CROSS REFERENCING %%
89+
%% MACROSz FOR CROSS REFERENCING %%
11290
\newcommand{\llabel}[1]{\hypertarget{llineno:#1}{\linelabel{#1}}}
11391

11492
% rebuttal-letter
@@ -160,20 +138,4 @@ \subsection{}
160138
\usepackage{lipsum}
161139

162140
%% CHECKS IF THINGS ARE EMPTY
163-
\usepackage{etoolbox}
164-
165-
%% NICE REFERENCING
166-
% must be loaded after hyperref
167-
% puts in section, fig, etc in front of comment
168-
\usepackage[capitalise]{cleveref}
169-
170-
%% CROSS REFERENCE TO ORIGINAL DOCUMENT
171-
172-
% if you just use cite
173-
% \usepackage{xr}
174-
% \externaldocument[v1-]{pathToDoc}
175-
% in doc, do \ref{v1-sec:intro}
176-
177-
% if you use hyperref
178-
% \usepackage{xr-hyper}
179-
% \externaldocument[v1-]{pathToDoc}
141+
\usepackage{etoolbox}

rebuttal-letter/trunk-rebuttal.pdf

732 Bytes
Binary file not shown.

rebuttal-letter/trunk-rebuttal.tex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ \subsection*{Comments}
5252

5353
\section{Reviewer Two}
5454

55-
\lreviewer{Line 50}{}{This statement is confusing as written.}
55+
\reviewer{Line 50}{This statement is confusing as written.}
5656

5757
Thank you. We have removed this accordingly. This agrees with Comment \ref{sec:test}.
5858

59-
\lreviewer{Line 99}{}{Please check Schrodinger's cat.}
59+
This was written with the macro, \texttt{$\backslash$reviewer}, that only takes two inputs, i.e. it does not offer any line tracking.
60+
61+
\reviewer{Line 99}{Please check Schrodinger's cat.}
6062

6163
\begin{quote}
6264
The cat in the box is \DIFdelbegin \DIFdel{dead}\DIFdelend \DIFaddbegin \DIFadd{alive}\DIFaddend .
@@ -66,4 +68,6 @@ \section{Reviewer Two}
6668
\end{align}
6769
\end{quote}
6870

71+
You can use the \texttt{quote} and \texttt{latexdiff} packages to format changes to the text like this as well.
72+
6973
\end{document}

0 commit comments

Comments
 (0)