重新创建 Word 文档以包含在 .tex 中

重新创建 Word 文档以包含在 .tex 中

我想在我的 .tex 文档中包含 3 页 Word 文档(我学习的知情同意书)。

我可以包含每个 PDF,但我想知道我怎样才能在 TeX 中重新创建文档并将其(稍微减小尺寸)包含在内并附带一些标题? Minipage

(使用 Overleaf 和 PDFLaTeX)

以下是我想要重新创建的一个页面的示例:

在此处输入图片描述

这是我的 MWE(有一些警告):

\documentclass[a4paper]{article}
\usepackage{fancyhdr} %for a header
\usepackage{amssymb} %for the $\Box$
\usepackage{tabularx}

\newcommand*{\SignatureAndDate}[1]{%
    \par\noindent\makebox[5cm]{\hrulefill} \hfill\makebox[4cm]{\hrulefill}%
    \par\noindent\makebox[5cm][l]{#1}      \hfill\makebox[4cm][l]{Date}%
}

\pagestyle{fancy}
\fancyhf{}
\chead{PROJECT name: here goes the title for the project that is in the header\\ Participant Information on the study}

\begin{document}
\section*{Introduction}
You have been invited to participate in a study of the Faculty xx of the University of yy in 
the  scope  of  the  zz  project.  This  information  sheet  describes  the  study  and  your 
participation in it. The researcher will answer any question or doubt regarding this study. 

\noindent Your participation is voluntary, and you are free to decide not to enrol or abandon your 
participation at any moment without prejudice of any relation with the project or your 
institution.

\noindent Please  carefully  read  this  information  sheet  before  signing  the  following  informed 
consent. 

\section*{Aim of the study}
The goal of this study is to...


{\centering \section*{Informed Consent}}
\noindent\begin{tabular}{@{}p{12cm}p{3cm}@{}}
I declare that I have read the information above and that I understood the aim of 
the study, as well as the risks and benefits of my participation in the study.& $\Box$\\[5ex]
I had the time and opportunity to place all the questions I had about the study and 
the experimental protocol and all my questions were answered.& $\Box$\\[5ex]
All the information, oral or written, and discussion about the study were provided 
to me either in English or in another language in which I am also proficient.& $\Box$\\[5ex]
I was informed that my participation in this study is voluntary and the refusal to 
participate will not involve any punitive action of any sort.& $\Box$\\[5ex]
I  was  informed  that  all  the  information  collected  during  this  study  would  be 
treated with confidentiality.& $\Box$\\[5ex]
Finally, I declare that I participate willingly in this study.& $\Box$
\end{tabular}

\vspace{2cm}
\noindent\begin{tabular}{ll}
\makebox[7cm]{\hrulefill} &\\
Participant’s name &\\[5ex]
\makebox[7cm]{\hrulefill} & \makebox[3cm]{\hrulefill}\\
Participant’s signature & Date\\[5ex]
\makebox[7cm]{\hrulefill} & \makebox[3cm]{\hrulefill}\\
Researcher’s signature & Date\\
\end{tabular}
\end{document}

答案1

tcolorbox包示例,来自:beamer里面的文章

包含 PDF 外壳转义

平均能量损失

\documentclass[a4paper]{article}
\usepackage[skins,listings,raster]{tcolorbox}

\begin{document}
\begin{figure}
\begin{tcblisting}{
  enhanced,oversize,lower separated=false,
  colframe=red!50!black,colback=yellow!10!white,
  interior style={top color=yellow!5!white,bottom color=yellow!20!white},
%  listing side comment,
  comment only,
  listing options={style=tcblatex,texcsstyle=*\color{red!70!black}},
  pdf comment,
  comment style={drop lifted shadow},
  compilable listing,
  run xelatex,
  raster columns=1}
\documentclass[a4paper]{article}
\usepackage{xcolor}
\pagecolor{blue!1}
\usepackage{fancyhdr} %for a header
\usepackage{amssymb} %for the $\Box$
\usepackage{tabularx}
\setlength{\headheight}{30pt}
\newcommand*{\SignatureAndDate}[1]{%
    \par\noindent\makebox[5cm]{\hrulefill} \hfill\makebox[4cm]{\hrulefill}%
    \par\noindent\makebox[5cm][l]{#1}      \hfill\makebox[4cm][l]{Date}%
}

\pagestyle{fancy}
\fancyhf{}
\chead{PROJECT name: here goes the title for the project that is in the header\\ Participant Information on the study}

\begin{document}
\section*{Introduction}
You have been invited to participate in a study of the Faculty xx of the University of yy in 
the  scope  of  the  zz  project.  This  information  sheet  describes  the  study  and  your 
participation in it. The researcher will answer any question or doubt regarding this study. 

\noindent Your participation is voluntary, and you are free to decide not to enrol or abandon your 
participation at any moment without prejudice of any relation with the project or your 
institution.

\noindent Please  carefully  read  this  information  sheet  before  signing  the  following  informed 
consent. 

\section*{Aim of the study}
The goal of this study is to...


{\centering \section*{Informed Consent}}
\noindent\begin{tabular}{@{}p{12cm}p{3cm}@{}}
I declare that I have read the information above and that I understood the aim of 
the study, as well as the risks and benefits of my participation in the study.& $\Box$\\[5ex]
I had the time and opportunity to place all the questions I had about the study and 
the experimental protocol and all my questions were answered.& $\Box$\\[5ex]
All the information, oral or written, and discussion about the study were provided 
to me either in English or in another language in which I am also proficient.& $\Box$\\[5ex]
I was informed that my participation in this study is voluntary and the refusal to 
participate will not involve any punitive action of any sort.& $\Box$\\[5ex]
I  was  informed  that  all  the  information  collected  during  this  study  would  be 
treated with confidentiality.& $\Box$\\[5ex]
Finally, I declare that I participate willingly in this study.& $\Box$
\end{tabular}

\vspace{2cm}
\noindent\begin{tabular}{ll}
\makebox[7cm]{\hrulefill} &\\
Participant’s name &\\[5ex]
\makebox[7cm]{\hrulefill} & \makebox[3cm]{\hrulefill}\\
Participant’s signature & Date\\[5ex]
\makebox[7cm]{\hrulefill} & \makebox[3cm]{\hrulefill}\\
Researcher’s signature & Date\\
\end{tabular}
\end{document}
\end{tcblisting}
\caption{The Consent Form}
\end{figure}
\end{document}

原建议:

用包尝试一些实验latexdemo

第 1 页

第2页

第 3 页

平均能量损失

\documentclass[a4paper]{article}
\usepackage{xcolor}
\usepackage{graphicx}
\pagecolor{blue!2}
\usepackage{latexdemo}

\usepackage{fancyhdr} %for a header
\usepackage{amssymb} %for the $\Box$
\usepackage{tabularx}
\setlength{\headheight}{30pt}
\newcommand*{\SignatureAndDate}[1]{%
    \par\noindent\makebox[5cm]{\hrulefill} \hfill\makebox[4cm]{\hrulefill}%
    \par\noindent\makebox[5cm][l]{#1}      \hfill\makebox[4cm][l]{Date}%
}

\pagestyle{fancy}
\fancyhf{}
\chead{PROJECT name: here goes the title for the project that is in the header\\ Participant Information on the study}

\begin{document}
\begin{filecontents}[overwrite,nosearch,noheader]{\democodefile}
\section*{Introduction}
You have been invited to participate in a study of the Faculty xx of the University of yy in 
the  scope  of  the  zz  project.  This  information  sheet  describes  the  study  and  your 
participation in it. The researcher will answer any question or doubt regarding this study. 

\noindent Your participation is voluntary, and you are free to decide not to enrol or abandon your 
participation at any moment without prejudice of any relation with the project or your 
institution.

\noindent Please  carefully  read  this  information  sheet  before  signing  the  following  informed 
consent. 

\section*{Aim of the study}
The goal of this study is to...

%\begin{figure}
\fbox{\includegraphics[scale=0.2]{formshrink_read}}
%\caption{The Consent Form}
%\end{figure}

{\centering \section*{Informed Consent}}
\noindent\begin{tabular}{@{}p{12cm}p{3cm}@{}}
I declare that I have read the information above and that I understood the aim of 
the study, as well as the risks and benefits of my participation in the study.& $\Box$\\[5ex]
I had the time and opportunity to place all the questions I had about the study and 
the experimental protocol and all my questions were answered.& $\Box$\\[5ex]
All the information, oral or written, and discussion about the study were provided 
to me either in English or in another language in which I am also proficient.& $\Box$\\[5ex]
I was informed that my participation in this study is voluntary and the refusal to 
participate will not involve any punitive action of any sort.& $\Box$\\[5ex]
I  was  informed  that  all  the  information  collected  during  this  study  would  be 
treated with confidentiality.& $\Box$\\[5ex]
Finally, I declare that I participate willingly in this study.& $\Box$
\end{tabular}

\vspace{2cm}
\noindent\begin{tabular}{ll}
\makebox[7cm]{\hrulefill} &\\
Participant’s name &\\[5ex]
\makebox[7cm]{\hrulefill} & \makebox[3cm]{\hrulefill}\\
Participant’s signature & Date\\[5ex]
\makebox[7cm]{\hrulefill} & \makebox[3cm]{\hrulefill}\\
Researcher’s signature & Date\\
\end{tabular}\end{filecontents}
\PrintDemo {style=stacked}


\end{document}

相关内容