Skip to content

Commit 855d294

Browse files
authored
Merge pull request #10 from zhichenggeng/master
Double-blind review
2 parents 4240e62 + 6d4ba2b commit 855d294

10 files changed

Lines changed: 58 additions & 22 deletions

tex/latex/seg/SConstruct

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ for case in ('paper','twocolumn','endfloat','noblind'):
8282
['geophysics_%s.ltx' % case,'geophysics.cls',
8383
'example.bib','Fig/exgr.pdf'])
8484

85+
env.Pdf('geophysics_titlepage.pdf',['geophysics_titlepage.ltx','geophysics_example.pdf'])
86+
env.Pdf('geophysics_notitlepage.pdf',['geophysics_notitlepage.ltx','geophysics_example.pdf'])
87+
8588
for case in ('segabs','eage'):
8689
env.Pdf(case+'_example.pdf',
8790
[case+'_example.ltx',case+'.cls',

tex/latex/seg/geophysics.cls

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
\RequirePackage{seg}
7676
\ifthenelse{\boolean{@repr}}{\RequirePackage{attachfile2}}{}
7777
\RequirePackage{rotating}
78+
\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}{\RequirePackage{xcomment}}{}
7879
\ifthenelse{\boolean{@eflt}}{
7980
\ifthenelse{\boolean{@manu}}{\RequirePackage{endfloat}}{}
8081
}{
@@ -469,8 +470,11 @@
469470
}}}
470471
\renewcommand{\maketitle}{\ifthenelse{\boolean{@shrt}}{%
471472
\ifthenelse{\boolean{@twoc}}{\twocolumn[\seg@author]}{\seg@author}}{}}
472-
\ifthenelse{\boolean{@manu}}{
473-
\renewenvironment{abstract}{\seg@author
473+
\ifthenelse{\boolean{@manu}}{%
474+
\renewenvironment{abstract}{
475+
\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}%
476+
{{\setboolean{@blind}{false}\seg@author}\newpage\setcounter{page}{1}}{}%
477+
\seg@author
474478
\section{ABSTRACT}}{\newpage}
475479
}
476480
{
@@ -485,6 +489,9 @@
485489
\medskip\end{minipage}\end{lrbox}%
486490
\ifthenelse{\boolean{@shrt}}{}{\noindent\fbox{\usebox{\seg@abstract}}}}
487491
}
492+
\newenvironment{acknowledgments}%
493+
{\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}{\comment}{\section{acknowledgments}}}%
494+
{\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}{\endcomment}{}}
488495
\ifthenelse{\boolean{@manu}}
489496
{\pagestyle{plain}\thispagestyle{plain}}
490497
{\newcommand{\ps@seg}{%

tex/latex/seg/geophysics.dtx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
% \begin{macrocode}
217217
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
218218
% \end{macrocode}
219-
% We will use onecolumn paper and 11pt fonts by default.
219+
% We will use onecolumn paper and 12pt fonts by default.
220220
% \begin{macrocode}
221221
\ExecuteOptions{paper,onecolumn,long,noendfloat,new,nonreprod,blind}
222222
\ProcessOptions*
@@ -233,6 +233,11 @@
233233
% \begin{macrocode}
234234
\RequirePackage{rotating}
235235
% \end{macrocode}
236+
% Load comment package to exclude acknowledgments section for double-blind
237+
% review.
238+
% \begin{macrocode}
239+
\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}{\RequirePackage{xcomment}}{}
240+
% \end{macrocode}
236241
%
237242
% \subsection{Figures and Tables}
238243
% Either load the endfloat package or define special plotting commands
@@ -741,7 +746,7 @@
741746
% \end{macrocode}
742747
% \end{macro}
743748
% \begin{macro}{\author}
744-
% Finally, everything goes to \author and is stored in |\seg@author|.
749+
% Finally, everything goes to |\author| and is stored in |\seg@author|.
745750
% \begin{macrocode}
746751
\providecommand{\seg@author}{}
747752
\renewcommand{\author}[1]{%
@@ -778,8 +783,11 @@
778783
% \begin{macro}{abstract}
779784
% For manuscripts, the abstract environment is simply a section.
780785
% \begin{macrocode}
781-
\ifthenelse{\boolean{@manu}}{
782-
\renewenvironment{abstract}{\seg@author
786+
\ifthenelse{\boolean{@manu}}{%
787+
\renewenvironment{abstract}{
788+
\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}%
789+
{{\setboolean{@blind}{false}\seg@author}\newpage\setcounter{page}{1}}{}%
790+
\seg@author
783791
\section{ABSTRACT}}{\newpage}
784792
}
785793
% \end{macrocode}
@@ -799,6 +807,14 @@
799807
}
800808
% \end{macrocode}
801809
% \end{macro}
810+
% \begin{macro}{acknowledgments}
811+
% Acknowledgments section is removed for double-blind review.
812+
% \begin{macrocode}
813+
\newenvironment{acknowledgments}%
814+
{\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}{\comment}{\section{acknowledgments}}}%
815+
{\ifthenelse{\boolean{@manu}\AND\boolean{@blind}}{\endcomment}{}}
816+
% \end{macrocode}
817+
% \end{macro}
802818
% \subsection{Page style}
803819
% \begin{macrocode}
804820
\ifthenelse{\boolean{@manu}}

tex/latex/seg/geophysics_endfloat.ltx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ The discussion is summarized in Table~\ref{tbl:example}.
131131
\label{tbl:example}
132132
\end{table}
133133

134-
\section{ACKNOWLEDGMENTS}
135-
134+
\begin{acknowledgments}
136135
I wish to thank Ivan P\v{s}en\v{c}\'{\i}k and Fr\'ed\'eric Billette for having
137136
names with non-English letters in them. I wish to thank \cite{Cerveny} for
138137
providing an example of how to make a bib file that includes an author
139138
whose name begins with a non-English character and \cite{forgues96} for
140139
providing both an example of referencing a Ph.D. thesis and yet more
141140
non-English characters.
141+
\end{acknowledgments}
142142

143143
\append{Appendix example}
144144

tex/latex/seg/geophysics_example.ltx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ The discussion is summarized in Table~\ref{tbl:example}.
135135
\end{center}
136136
}
137137

138-
\section{ACKNOWLEDGMENTS}
139-
140-
I wish to thank Ivan P\v{s}en\v{c}\'{\i}k and Fr\'ed\'eric Billette
141-
for having names with non-English letters in them. I wish to thank
142-
\cite{Cerveny} for providing an example of how to make a bib file that
143-
includes an author whose name begins with a non-English character and
144-
\cite{forgues96} for providing both an example of referencing a Ph.D.
145-
thesis and yet more non-English characters.
138+
\begin{acknowledgments}
139+
I wish to thank Ivan P\v{s}en\v{c}\'{\i}k and Fr\'ed\'eric Billette
140+
for having names with non-English letters in them. I wish to thank
141+
\cite{Cerveny} for providing an example of how to make a bib file that
142+
includes an author whose name begins with a non-English character and
143+
\cite{forgues96} for providing both an example of referencing a Ph.D.
144+
thesis and yet more non-English characters.
145+
\end{acknowledgments}
146146

147147
\append{Appendix example}
148148
\label{example}

tex/latex/seg/geophysics_noblind.ltx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ The discussion is summarized in Table~\ref{tbl:example}.
135135
\end{center}
136136
}
137137

138-
\section{ACKNOWLEDGMENTS}
139-
138+
\begin{acknowledgments}
140139
I wish to thank Ivan P\v{s}en\v{c}\'{\i}k and Fr\'ed\'eric Billette
141140
for having names with non-English letters in them. I wish to thank
142141
\cite{Cerveny} for providing an example of how to make a bib file that
143142
includes an author whose name begins with a non-English character and
144143
\cite{forgues96} for providing both an example of referencing a Ph.D.
145144
thesis and yet more non-English characters.
145+
\end{acknowledgments}
146146

147147
\append{Appendix example}
148148
\label{example}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
\documentclass{article}
2+
\usepackage{pdfpages}
3+
\begin{document}
4+
\includepdf[pages={2-}]{geophysics_example}
5+
\end{document}

tex/latex/seg/geophysics_paper.ltx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ The discussion is summarized in Table~\ref{tbl:example}.
135135
\end{center}
136136
}
137137

138-
\section{ACKNOWLEDGMENTS}
139-
138+
\begin{acknowledgments}
140139
I wish to thank Ivan P\v{s}en\v{c}\'{\i}k and Fr\'ed\'eric Billette
141140
for having names with non-English letters in them. I wish to thank
142141
\cite{Cerveny} for providing an example of how to make a bib file that
143142
includes an author whose name begins with a non-English character and
144143
\cite{forgues96} for providing both an example of referencing a Ph.D.
145144
thesis and yet more non-English characters.
145+
\end{acknowledgments}
146146

147147
\append{Appendix example}
148148
\label{example}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
\documentclass{article}
2+
\usepackage{pdfpages}
3+
\begin{document}
4+
\includepdf[pages={1}]{geophysics_example}
5+
\end{document}

tex/latex/seg/geophysics_twocolumn.ltx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ The discussion is summarized in Table~\ref{tbl:example}.
129129
\end{center}
130130
}
131131

132-
\section{ACKNOWLEDGMENTS}
133-
132+
\begin{acknowledgments}
134133
I wish to thank Ivan P\v{s}en\v{c}\'{\i}k and Fr\'ed\'eric Billette for having
135134
names with non-English letters in them. I wish to thank \cite{Cerveny} for
136135
providing an example of how to make a bib file that includes an author
137136
whose name begins with a non-English character and \cite{forgues96} for
138137
providing both an example of referencing a Ph.D. thesis and yet more
139138
non-English characters.
139+
\end{acknowledgments}
140140

141141
\append{Appendix example}
142142

0 commit comments

Comments
 (0)