Debian Codegraph @

texmf-dist/source/latex/uwa-pcf/uwa-pcf.dtx

raw
1 % \iffalse meta-comment
2 % Copyright 2019, 2021 Anthony Di Pietro
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either version 1.3
6 % of this license or (at your option) any later version.
7 % The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3 or later is part of all distributions of LaTeX
10 % version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status `maintained'.
13 %
14 % The Current Maintainer of this work is Anthony Di Pietro.
15 %
16 % This work consists of the files uwa-pcf.dtx, uwa-pcf.ins, and
17 % uwa-pcf-example.tex and the derived files uwa-pcf.cls and uwa-pcf.pdf.
18 % \fi
19 %
20 % \iffalse
21 %<*driver>
22 \ProvidesFile{uwa-pcf.dtx}
23 %</driver>
24 %<class>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
25 %<class>\ProvidesClass{uwa-pcf}
26 %<*class>
27 [2021/09/28 1.0.1 UWA Participant Consent Form]
28 %</class>
29 %
30 %<*driver>
31 \documentclass[
32 a4paper,
33 10pt
34 ]{ltxdoc}
35 \usepackage{hypdoc}
36 \PassOptionsToPackage{scale=0.9}{sourcecodepro}
37 \usepackage[regular]{uwa-letterhead}[2021/09/13]
38 \GetFileInfo{uwa-pcf.dtx}
39 \setcounter{secnumdepth}{3}
40 \geometry{
41 left=5cm,
42 right=2cm
43 }
44 \hypersetup{colorlinks=true}
45 \date{}
46 \makeatletter
47 \title{%
48 {The UWA Participant Consent Form Class} \\
49 {\Large uwa-pcf \fileversion{} (\filedate{})}%
50 }
51 \c@IndexColumns = 2
52 \renewcommand*{\uwalh@uwa}{\sffamily}
53 \renewcommand{\uwalh@makeletterhead}{}
54 \makeatother
55 \DoNotIndex{\newcommand, \newenvironment}
56 \DisableCrossrefs
57 \CodelineIndex
58 \RecordChanges
59 \CheckSum{328}
60 \begin{document}
61 \DocInput{uwa-pcf.dtx}
62 \end{document}
63 %</driver>
64 % \fi
65 %
66 % \CharacterTable
67 % {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
68 % 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
69 % Digits \0\1\2\3\4\5\6\7\8\9
70 % Exclamation \! Double quote \" Hash (number) \#
71 % Dollar \$ Percent \% Ampersand \&
72 % Acute accent \' Left paren \( Right paren \)
73 % Asterisk \* Plus \+ Comma \,
74 % Minus \- Point \. Solidus \/
75 % Colon \: Semicolon \; Less than \<
76 % Equals \= Greater than \> Question mark \?
77 % Commercial at \@ Left bracket \[ Backslash \\
78 % Right bracket \] Circumflex \^ Underscore \_
79 % Grave accent \` Left brace \{ Vertical bar \|
80 % Right brace \} Tilde \~}
81 %
82 % \changes{1.0.0}{2019/08/31}{Initial version}
83 % \changes{1.0.1}{2021/09/28}{Make HREO statement and signature lines optional}
84 %
85 % \maketitle
86 %
87 % \section{Introduction}
88 %
89 % This class generates a Participant Consent Form (PCF) for a
90 % human research protocol at the University of Western Australia.
91 %
92 % \section{Usage}
93 %
94 % \subsection{External Dependencies}
95 %
96 % You must supply the university logo (as |uwacrest-blue.pdf| by default).
97 % It is available in SVG format at
98 % \href{https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}
99 % {https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}.
100 %
101 % In accordance with the official PCF template, this class uses the
102 % \href{https://docs.microsoft.com/en-us/typography/font-list/arial}{Arial}
103 % typeface by default. The fonts must be installed on the system for this to
104 % work. Arial is available as part of Microsoft's TrueType core fonts for the
105 % web (\url{https://sourceforge.net/projects/mscorefonts2/}). Alternatively,
106 % you can use the |noarial| package option to substitute it with
107 % \href{https://adobe-fonts.github.io/source-sans/}{Source Sans Pro}, the usual
108 % typeface used for university correspondence.
109 %
110 % \subsection{Class Options}
111 %
112 % \DescribeMacro{\documentclass}
113 % To select the class, add this to your preamble:
114 % \begin{quote}
115 % |\documentclass{uwa-pcf}|
116 % \end{quote}
117 %
118 % This class supports the |draft|, |final|, |leqno|, and |fleqn| options
119 % from the |article| base class and the |footer|, |nofooter|, |arial|, and
120 % |noarial| options from the |uwa-letterhead| package.
121 %
122 % You can pass the following options to specify whether to include the
123 % mandatory Human Ethics Research Office (HREO) statement:
124 % \begin{itemize}
125 % \item |hreo|: Include HREO statement (default).
126 % \item |nohreo|: Do not include HREO statement.
127 % \end{itemize}
128 %
129 % You can pass the following options to specify whether to include the
130 % signature and date lines:
131 % \begin{itemize}
132 % \item |signature|: Include signature and date lines (default).
133 % \item |nosignature|: Do not include signature and date lines.
134 % \end{itemize}
135 %
136 % \subsection{Letterhead Fields}
137 %
138 % Use the following commands in the preamble to set the letterhead fields:
139 %
140 % \DescribeMacro{\author}
141 % \begin{minipage}[t]{\textwidth}
142 % |\author|\marg{author} \\
143 % The author of the document. \\
144 % Required
145 % \end{minipage}
146 %
147 % \DescribeMacro{\school}
148 % \begin{minipage}[t]{\textwidth}
149 % |\school|\marg{school} \\
150 % The author's school within the university. \\
151 % Required
152 % \end{minipage}
153 %
154 % \DescribeMacro{\mbdp}
155 % \begin{minipage}[t]{\textwidth}
156 % |\mbdp|\marg{mbdp} \\
157 % The author's \href{http://www.staff.uwa.edu.au/facilities/mail/mbdp}
158 % {mailbag delivery point (MBDP)}. \\
159 % Required
160 % \end{minipage}
161 %
162 % \DescribeMacro{\university}
163 % \begin{minipage}[t]{\textwidth}
164 % |\university|\marg{university} \\
165 % The name of the university. \\
166 % Default: \textit{The University of Western Australia}
167 % \end{minipage}
168 %
169 % \DescribeMacro{\address}
170 % \begin{minipage}[t]{\textwidth}
171 % |\address|\marg{address} \\
172 % The university's address. \\
173 % Default: \textit{35 Stirling Highway, Crawley WA 6009}
174 % \end{minipage}
175 %
176 % \DescribeMacro{\phone}
177 % \begin{minipage}[t]{\textwidth}
178 % |\phone|\marg{phone} \\
179 % The author's phone number. \\
180 % Required
181 % \end{minipage}
182 %
183 % \DescribeMacro{\mobile}
184 % \begin{minipage}[t]{\textwidth}
185 % |\mobile|\marg{mobile} \\
186 % The author's mobile number. \\
187 % Required
188 % \end{minipage}
189 %
190 % \DescribeMacro{\email}
191 % \begin{minipage}[t]{\textwidth}
192 % |\email|\marg{email} \\
193 % The author's email address. \\
194 % Required
195 % \end{minipage}
196 %
197 % \DescribeMacro{\website}
198 % \begin{minipage}[t]{\textwidth}
199 % |\website|\marg{website} \\
200 % The author's website, or their school's website. \\
201 % Omit the scheme (|https://|) and path (|/|). \\
202 % Default: \textit{www.uwa.edu.au}
203 % \end{minipage}
204 %
205 % \DescribeMacro{\footeraddress}
206 % \begin{minipage}[t]{\textwidth}
207 % |\footeraddress|\marg{footeraddress} \\
208 % The university's address, shortened for the first-page footer. \\
209 % Default: \textit{Perth WA 6009 Australia}
210 % \end{minipage}
211 %
212 % \DescribeMacro{\cricos}
213 % \begin{minipage}[t]{\textwidth}
214 % |\cricos|\marg{cricos} \\
215 % The university's \href{http://cricos.education.gov.au/}{CRICOS} provider code. \\
216 % Default: \textit{00126G}
217 % \end{minipage}
218 %
219 % \DescribeMacro{\uwacrest}
220 % \begin{minipage}[t]{\textwidth}
221 % |\uwacrest|\marg{uwacrest} \\
222 % The filename of the UWA crest in PDF format (available in SVG format at
223 % \href{https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}
224 % {https://static-listing.weboffice.uwa.edu.au/visualid/core-rebrand/img/uwacrest/}). \\
225 % Default: \textit{uwacrest-blue.pdf}
226 % \end{minipage}
227 %
228 % \subsection{Project Fields}
229 %
230 % Use the following commands in the preamble to set the project fields:
231 %
232 % \DescribeMacro{\project}
233 % \begin{minipage}[t]{\textwidth}
234 % |\project|\marg{project} \\
235 % The project's title. \\
236 % Required
237 % \end{minipage}
238 %
239 % \subsection{Participant Name}
240 %
241 % \DescribeMacro{\theparticipant}
242 % Use |\theparticipant| to generate the line for the participant's name.
243 % For example:
244 %
245 % \begin{quote}
246 % \begin{verbatim}
247 % I, \theparticipant, have read the information provided and
248 % any questions I have asked have been answered to my satisfaction.
249 % I agree to participate in this research project but withdrawal
250 % is not possible once data are submitted.
251 % \end{verbatim}
252 % \end{quote}
253 %
254 % \StopEventually{\PrintChanges\PrintIndex}
255 %
256 % \section{Implementation}
257 %
258 % \subsection{Class Options}
259 %
260 % \begin{minipage}{\textwidth}
261 % \begin{macro}{\uwapcf@hreo}
262 % \begin{macro}{\uwapcf@signature}
263 % Define conditionals for the class options.
264 % \begin{macrocode}
265 \newif\ifuwapcf@hreo
266 \newif\ifuwapcf@signature
267 % \end{macrocode}
268 % \end{macro}
269 % \end{macro}
270 % \end{minipage}
271 %
272 % The |hreo| and |nohreo| options respectively enable and disable
273 % the HREO statement.
274 % \begin{macrocode}
275 \DeclareOption{hreo}{
276 \uwapcf@hreotrue
277 }
278 \DeclareOption{nohreo}{
279 \uwapcf@hreofalse
280 }
281 % \end{macrocode}
282 %
283 % The |signature| and |nosignature| options respectively enable and disable
284 % the signature and date lines.
285 % \begin{macrocode}
286 \DeclareOption{signature}{
287 \uwapcf@signaturetrue
288 }
289 \DeclareOption{nosignature}{
290 \uwapcf@signaturefalse
291 }
292 % \end{macrocode}
293 %
294 % Pass the |draft|, |final|, |leqno|, and |fleqn| options through to the
295 % |article| base class, and pass the |footer|, |nofooter|, |arial|, and
296 % |noarial| options through to the |uwa-letterhead| package.
297 % \begin{macrocode}
298 \DeclareOption{draft}{
299 \PassOptionsToClass{\CurrentOption}{article}
300 }
301 \DeclareOption{final}{
302 \PassOptionsToClass{\CurrentOption}{article}
303 }
304 \DeclareOption{leqno}{
305 \PassOptionsToClass{\CurrentOption}{article}
306 }
307 \DeclareOption{fleqn}{
308 \PassOptionsToClass{\CurrentOption}{article}
309 }
310 \DeclareOption{footer}{
311 \PassOptionsToPackage{\CurrentOption}{uwa-letterhead}
312 }
313 \DeclareOption{nofooter}{
314 \PassOptionsToPackage{\CurrentOption}{uwa-letterhead}
315 }
316 \DeclareOption{arial}{
317 \PassOptionsToPackage{\CurrentOption}{uwa-letterhead}
318 }
319 \DeclareOption{noarial}{
320 \PassOptionsToPackage{\CurrentOption}{uwa-letterhead}
321 }
322 % \end{macrocode}
323 %
324 % Show a warning for unknown options.
325 % \begin{macrocode}
326 \DeclareOption*{
327 \ClassWarning{uwa-pcf}{Unknown option '\CurrentOption'}
328 }
329 % \end{macrocode}
330 %
331 % Use the |hreo| and |signature| options by default.
332 % \begin{macrocode}
333 \ExecuteOptions{
334 hreo,
335 signature
336 }
337 % \end{macrocode}
338 %
339 % Complete option processing.
340 % \begin{macrocode}
341 \ProcessOptions\relax
342 % \end{macrocode}
343 %
344 % Load the |article| base class with the |a4paper| and |11pt| options.
345 % \begin{macrocode}
346 \PassOptionsToClass{
347 a4paper,
348 11pt
349 }{article}
350 \LoadClass{article}
351 % \end{macrocode}
352 %
353 % \subsection{Page Configuration}
354 %
355 % Use |uwa-letterhead| to configure the page.
356 % \begin{macrocode}
357 \RequirePackage[regular]{uwa-letterhead}
358 % \end{macrocode}
359 %
360 % Adjust paragraph spacing.
361 % \begin{macrocode}
362 \setlength{\parskip}{0.83\baselineskip}
363 % \end{macrocode}
364 %
365 % \subsection{Font Configuration}
366 %
367 % Use |fontspec| for access to OpenType and TrueType fonts.
368 % \begin{macrocode}
369 \RequirePackage[no-math]{fontspec}
370 % \end{macrocode}
371 %
372 % Set default fonts.
373 % \begin{macrocode}
374 \uwalh@arial
375 \ifuwalh@arialfont
376 \setmainfont{Arial}
377 \setsansfont{Arial}
378 \fi
379 \renewcommand{\familydefault}{\sfdefault}
380 % \end{macrocode}
381 %
382 % Use |anyfontsize| to support the irregular font sizes required.
383 % \begin{macrocode}
384 \RequirePackage{anyfontsize}
385 % \end{macrocode}
386 %
387 % \subsection{Letterhead}
388 %
389 % Adjust the address block of the letterhead to match the PCF template.
390 % \begin{macro}{\uwalh@addresstop}
391 % \begin{macro}{\uwalh@addressblock}
392 % \begin{macrocode}
393 \setlength{\uwalh@addresstop}{2.07cm}
394 \renewcommand{\uwalh@addressblock}{%
395 \begin{textblock*}%
396 {\uwalh@addresswidth}(\uwalh@addressleft, \uwalh@addresstop)
397 \begin{minipage}[t]{\uwalh@addresswidth}
398 \color{UWAPCFBody}%
399 \sffamily\fontsize{9}{10.4}\selectfont%
400 \@author{} \\
401 \uwalh@school{}, M\uwalh@mbdp{} \\
402 \uwalh@university{} \\
403 \uwalh@address{} \\
404 \noblanks[q]{\uwalh@phone}%
405 Tel: \href{tel:\thestring}{\uwalh@phone} \\
406 Email: \href{mailto:\uwalh@email}{\uwalh@email} \\
407 \href{https://\uwalh@website/}{\uwalh@website}
408 \end{minipage}
409 \end{textblock*}%
410 }
411 % \end{macrocode}
412 % \end{macro}
413 % \end{macro}
414 %
415 % \subsection{Heading Configuration}
416 %
417 % Use |titlesec| to configure headings.
418 % \begin{macrocode}
419 \RequirePackage[sf]{titlesec}
420 \titleformat{\section}{\color{black}\bfseries}{\thesection}{1em}{}
421 \titleformat{\subsection}{\color{black}\bfseries\small}{\thesubsection}{1em}{}
422 \titlespacing*{\section}{0pt}{-0.07em}{-0.07em}
423 \titlespacing*{\subsection}{0pt}{-0.07em}{-0.07em}
424 % \end{macrocode}
425 % Disable section numbering.
426 % \begin{macrocode}
427 \setcounter{secnumdepth}{0}
428 % \end{macrocode}
429 %
430 % \subsection{Colour Configuration}
431 %
432 % Use |xcolor| for colour support, and enable |hyperref| compatibility.
433 % \begin{macrocode}
434 \RequirePackage[hyperref]{xcolor}
435 % \end{macrocode}
436 % Define body text colour.
437 % \begin{macrocode}
438 \definecolor{UWAPCFBody}{RGB}{77, 77, 79}
439 % \end{macrocode}
440 %
441 % \subsection{Template Fields}
442 %
443 % Set default values for the letterhead template fields.
444 % \begin{macrocode}
445 \renewcommand*{\uwalh@footermbdp}{459}
446 \renewcommand*{\uwalh@footerphone}{+61 8 6488 3703}
447 \renewcommand*{\uwalh@mobile}{+61 000 000 000}
448 \renewcommand*{\uwalh@footeremail}{[email protected]}
449 % \end{macrocode}
450 %
451 % Redefine macros to set the letterhead template fields
452 % without affecting the first-page footer.
453 % \begin{macrocode}
454 \renewcommand*{\mbdp}[1]{\renewcommand*{\uwalh@mbdp}{#1}}
455 \renewcommand*{\university}[1]{\renewcommand*{\uwalh@university}{#1}}
456 \renewcommand*{\phone}[1]{\renewcommand*{\uwalh@phone}{#1}}
457 \renewcommand*{\mobile}[1]{}
458 \renewcommand*{\email}[1]{\renewcommand*{\uwalh@email}{#1}}
459 % \end{macrocode}
460 %
461 % \begin{minipage}{\textwidth}
462 % \begin{macro}{\uwapcf@project}
463 % Set default values for the template fields.
464 % \begin{macrocode}
465 \newcommand*{\uwapcf@project}{}
466 % \end{macrocode}
467 % \end{macro}
468 % \end{minipage}
469 %
470 % \begin{minipage}{\textwidth}
471 % \begin{macro}{\project}
472 % Define macros to set the template fields.
473 % \begin{macrocode}
474 \newcommand*{\project}[1]{\renewcommand*{\uwapcf@project}{#1}}
475 % \end{macrocode}
476 % \end{macro}
477 % \end{minipage}
478 %
479 % \subsection{Field Validation}
480 %
481 % \begin{macro}{\uwapcf@checkfields}
482 % Check that the required template fields are set.
483 % \begin{macrocode}
484 \newcommand{\uwapcf@checkfields}{%
485 \uwalh@checkfield{\uwapcf@project}{\noexpand\project}
486 }
487 % \end{macrocode}
488 % \end{macro}
489 %
490 % \subsection{Document Title}
491 %
492 % \begin{macro}{\uwapcf@maketitle}
493 % Generate the title of the Participant Consent Form, including the
494 % fields for the project title and researchers.
495 % \begin{macrocode}
496 \newcommand{\uwapcf@maketitle}{%
497 \uwapcf@checkfields{}%
498 \vspace{-1\parskip}\vspace{-0.310cm}%
499 \begin{center}%
500 \uwalh@arial%
501 \fontsize{16}{16.96}\selectfont%
502 \textbf{Participant Consent Form}%
503 \normalsize%
504 \end{center}%
505 \vspace{-1\parskip}\vspace{-0.120cm}%
506 \begin{center}%
507 \uwalh@arial%
508 \fontsize{12}{12.72}\selectfont%
509 \uwapcf@project{}%
510 \normalsize%
511 \end{center}%
512 \uwalh@arial%
513 \fontsize{10}{11.6}\selectfont%
514 \vspace{-1\parskip}\vspace{0.860cm}%
515 }
516 % \end{macrocode}
517 % \end{macro}
518 %
519 % \subsection{Signature Lines}
520 %
521 % \begin{macro}{\uwapcf@sig@vspace}
522 % The vertical space before the signature lines.
523 % \begin{macrocode}
524 \newlength{\uwapcf@sig@vspace}
525 \setlength{\uwapcf@sig@vspace}{1.3cm}
526 % \end{macrocode}
527 % \end{macro}
528 %
529 % \begin{macro}{\uwapcf@sig@rulewidth}
530 % The width of the signature lines.
531 % \begin{macrocode}
532 \newlength{\uwapcf@sig@rulewidth}
533 \setlength{\uwapcf@sig@rulewidth}{0.0227cm}
534 % \end{macrocode}
535 % \end{macro}
536 %
537 % \begin{macro}{\uwapcf@sig@offset}
538 % The horizontal offset of the leftmost signature line.
539 % \begin{macrocode}
540 \newlength{\uwapcf@sig@offset}
541 \setlength{\uwapcf@sig@offset}{0.095cm}
542 % \end{macrocode}
543 % \end{macro}
544 %
545 % \begin{macro}{\uwapcf@sig@labeloffset}
546 % The horizontal offset of the signature line labels.
547 % \begin{macrocode}
548 \newlength{\uwapcf@sig@labeloffset}
549 \setlength{\uwapcf@sig@labeloffset}{0.008cm}
550 % \end{macrocode}
551 % \end{macro}
552 %
553 % \begin{macro}{\uwapcf@siglabelvspace}
554 % The vertical space added before the signature line labels.
555 % \begin{macrocode}
556 \newlength{\uwapcf@sig@labelvspace}
557 \setlength{\uwapcf@sig@labelvspace}{-0.0675cm}
558 % \end{macrocode}
559 % \end{macro}
560 %
561 % \begin{macro}{\uwapcf@sig@gutter}
562 % The horizontal space between the signature lines.
563 % \begin{macrocode}
564 \newlength{\uwapcf@sig@gutter}
565 \setlength{\uwapcf@sig@gutter}{3cm}
566 % \end{macrocode}
567 % \end{macro}
568 %
569 % \begin{macro}{\uwapcf@sig@siglinelength}
570 % The length of the line for the signature.
571 % \begin{macrocode}
572 \newlength{\uwapcf@sig@siglinelength}
573 \setlength{\uwapcf@sig@siglinelength}{4.905cm}
574 % \end{macrocode}
575 % \end{macro}
576 %
577 % \begin{macro}{\uwapcf@sig@datelinelength}
578 % The length of the line for the date.
579 % \begin{macrocode}
580 \newlength{\uwapcf@sig@datelinelength}
581 \setlength{\uwapcf@sig@datelinelength}{2.946cm}
582 % \end{macrocode}
583 % \end{macro}
584 %
585 % \begin{macro}{\uwapcf@makesignature}
586 % Generate the signature lines.
587 % \begin{macrocode}
588 \newcommand{\uwapcf@makesignature}{%
589 \vspace{\uwapcf@sig@vspace}%
590 \hspace{\uwapcf@sig@offset}%
591 \begin{minipage}[t]{\uwapcf@sig@siglinelength}
592 \rule{\textwidth}{\uwapcf@sig@rulewidth} \\
593 \vspace{-1\baselineskip}\vspace{\uwapcf@sig@labelvspace} \\
594 \hspace*{\uwapcf@sig@labeloffset}%
595 Participant signature
596 \end{minipage}%
597 \hspace{\uwapcf@sig@gutter}%
598 \begin{minipage}[t]{\uwapcf@sig@datelinelength}
599 \rule{\textwidth}{\uwapcf@sig@rulewidth} \\
600 \vspace{-1\baselineskip}\vspace{\uwapcf@sig@labelvspace} \\
601 \hspace*{\uwapcf@sig@labeloffset}%
602 Date
603 \end{minipage}%
604 }
605 % \end{macrocode}
606 % \end{macro}
607 %
608 % \subsection{HREO Statement}
609 %
610 % \begin{macro}{\uwapcf@hreo@vspace}
611 % The vertical space before the HREO statement.
612 % \begin{macrocode}
613 \newlength{\uwapcf@hreo@vspace}
614 \setlength{\uwapcf@hreo@vspace}{1.843cm}
615 % \end{macrocode}
616 % \end{macro}
617 %
618 % \begin{macro}{\uwapcf@hreo@font}
619 % The font for the HREO statement.
620 % \begin{macrocode}
621 \newcommand*{\uwapcf@hreo@font}{%
622 \uwalh@arial%
623 \fontsize{9}{10.4}\selectfont%
624 \color{black}%
625 \bfseries\itshape%
626 }
627 % \end{macrocode}
628 % \end{macro}
629 %
630 % \begin{macro}{\uwapcf@hreo@parvspace}
631 % The vertical space between paragraphs for the HREO statement.
632 % \begin{macrocode}
633 \newlength{\uwapcf@hreo@parvspace}
634 \setlength{\uwapcf@hreo@parvspace}{0.5\baselineskip}
635 % \end{macrocode}
636 % \end{macro}
637 %
638 % \begin{macro}{\uwapcf@hreo@statement}
639 % The statement required by the Human Research Ethics Office (HREO).
640 % \begin{macrocode}
641 \newcommand{\uwapcf@hreo@statement}{%
642 \begin{minipage}{\textwidth}
643 Approval to conduct this research has been provided by the
644 University of Western Australia, in accordance with its ethics
645 review and approval procedures. Any person considering
646 participation in this research project, or agreeing to
647 participate, may raise any questions or issues with the
648 researchers at any time.
649 \end{minipage}
650
651 \vspace*{\uwapcf@hreo@parvspace}
652
653 \begin{minipage}{\textwidth}
654 In addition, any person not satisfied with the response of
655 researchers may raise ethics issues or concerns, and may make
656 any complaints about this research project by contacting the
657 Human Ethics office at UWA on
658 \href{tel:+61-8-6488-4703}{(08)~6488~4703} or by emailing to
659 \href{mailto:[email protected]}{[email protected]}.
660 \end{minipage}
661
662 \vspace*{\uwapcf@hreo@parvspace}
663
664 \begin{minipage}{\textwidth}
665 All research participants are entitled to retain a copy of any
666 Participant Information Form and/or Participant Consent Form
667 relating to this research project.
668 \end{minipage}
669 }
670 % \end{macrocode}
671 % \end{macro}
672 %
673 % \begin{macro}{\uwapcf@makehreostatement}
674 % Generate the HREO statement.
675 % \begin{macrocode}
676 \newcommand{\uwapcf@makehreostatement}{%
677 \vspace{\uwapcf@hreo@vspace} \\
678 \begin{minipage}{\textwidth}
679 {%
680 \uwapcf@hreo@font{}%
681 \uwapcf@hreo@statement{}%
682 }%
683 \end{minipage}
684 }
685 % \end{macrocode}
686 % \end{macro}
687 %
688 % \subsection{Body Text Font}
689 %
690 % \begin{macro}{\uwapcf@bodyfont}
691 % Set the body text font and colour.
692 % \begin{macrocode}
693 \newcommand*{\uwapcf@bodyfont}{%
694 \sffamily%
695 \fontsize{11}{15.5}\selectfont%
696 \color{UWAPCFBody}%
697 }
698 % \end{macrocode}
699 % \end{macro}
700 %
701 % \subsection{Form Generation}
702 %
703 % Automatically generate the title and set the body text font at
704 % the beginning of the document.
705 % \begin{macrocode}
706 \AtBeginDocument{%
707 \uwapcf@bodyfont{}%
708 \uwapcf@maketitle{}%
709 }
710 % \end{macrocode}
711 %
712 % Automatically add the signature lines and HREO statement at the end
713 % of the document.
714 % \begin{macrocode}
715 \AtEndDocument{%
716 \ifuwapcf@signature\uwapcf@makesignature{}\fi%
717 \ifuwapcf@hreo\uwapcf@makehreostatement{}\fi%
718 }
719 % \end{macrocode}
720 %
721 % \subsection{Participant Name}
722 %
723 % \begin{macro}{\theparticipant}
724 % Generate the line for the participant's name.
725 % \begin{macrocode}
726 \newcommand{\theparticipant}{%
727 \begin{minipage}[t]{9.415cm}
728 \vspace*{0.048cm}%
729 \rule{\textwidth}{0.0227cm}%
730 \end{minipage}%
731 }
732 % \end{macrocode}
733 % \end{macro}
734 % \Finale
735 \endinput