如何格式化电子邮件对话?

如何格式化电子邮件对话?

我目前正在写论文,需要包含大量电子邮件转换。我正在使用经典论文我想知道,你会如何格式化堆叠转换。此外,你会如何处理电子邮件标头签名越线s:为什么我需要\\一直添加?
这是我目前正在试验的配置:

\documentclass[
oneside,
openright,
titlepage,
dottedtoc,
numbers=noenddot,
headinclude,
footinclude=true,
cleardoublepage=empty,
abstractoff,
BCOR=5mm,
paper=a4,
fontsize=11pt,
ngerman,
american
]
{scrreprt}

\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\usepackage{blindtext} 
\usepackage{framed}

% Vertical line that highlights quotations in an email.
% Use \begin{leftbar} and \end{leftbar} environment.
% Width of the line = 0.4pt
% Space between the line and the text = 10pt
% Requires \usepackage{framed}
\renewenvironment{leftbar}{%
  \def\FrameCommand{\vrule width 0.4pt \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
{\endMakeFramed}

\usepackage{nicefrac}
\usepackage[english]{babel}
\usepackage[pdfspacing]{classicthesis}

\begin{document}
\selectlanguage{ngerman} % american ngerman
% Disable paragraph indentation.
\setlength{\parindent}{0pt}




\begin{verbatim}
From: [email protected]
Subject: Your inquiry from 20042012
Date: Thu, 3 May 2012 11:34:54 +0200
To: Jane Doe <[email protected]>
\end{verbatim}

Jane Doe wrote:
\begin{leftbar}
\begin{leftbar}
\begin{leftbar}
\begin{leftbar}
There are a couple of questions I like to ask. Please forward them if you cannot do so.
\end{leftbar}
I hope I can answer them after holidays.
\end{leftbar}
I am back from holidays now and will look through your questionaire the next days.
\end{leftbar}
Thank you, Mr. Doe - I am awaiting your answers.
\end{leftbar}

Dear Mrs. Doe,\\
\ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut molestie placerat pharetra. In quam leo, tincidunt ut consequat eget, malesuada sit amet urna. Morbi et interdum arcu. Nullam nisi nunc, ullamcorper vitae pulvinar eu, suscipit ut augue.\\
\ Donec risus mi, accumsan ac interdum id, molestie sed mauris. Suspendisse porttitor luctus justo in ullamcorper. Proin in neque magna. Mauris quis arcu eget enim mattis pharetra vitae a dolor. Nam aliquam consectetur mollis. Ut at sem quis dolor faucibus fringilla. Quisque cursus vehicula odio, vitae placerat ipsum dapibus id.\\
\ Best regards\\
John Doe\\
\ (See attached file: Questions\_Doe.doc)

\begin{verbatim}
_______________________________________________________
Administration New York
John Doe
Mainstr. 3
11111 New York

T:        (011) 212-4301
F:            (011) 212-954301
M:         [email protected]
\end{verbatim}

\begin{leftbar}
My question
I looking forward to reading the answers to my questions:\\
\ 1. Is the world analog or digital?
\end{leftbar}
digital

\begin{leftbar}
2. How long does the world exist? 
\end{leftbar}
analog since 1984, digital since 1999

\end{document}  

这就是上面的乳胶示例的样子。

电子邮件对话

我也看到了这个类似的问题但我不想使用>或颜色。我的设置灵感来自这个法语转换和这个问题

答案1

您的策略基本上是好的。我建议进行一些更改。为了消除\\您询问的烦人之处,只需使用\parskip长度来定义段落之间的跳过。然后,唯一\\需要的是当您需要在段落内换行时(这里唯一的换行是在称呼中)。此外,我发现环境leftbar不像结构那样易于阅读(在 tex 代码源中)。所以我用名为的宏结构替换了它\embed。此外,为了节省输出空间,我没有\embed像以前那样在输入时自动提供额外的空间leftbar

显然,这些都是个人喜好问题。向读者清楚地传达信息才是最重要的

\documentclass[
oneside,
openright,
titlepage,
dottedtoc,
numbers=noenddot,
headinclude,
footinclude=true,
cleardoublepage=empty,
abstractoff,
BCOR=5mm,
paper=a4,
fontsize=11pt,
ngerman,
american
]
{scrreprt}

\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\usepackage{blindtext} 
\usepackage[english]{babel}
\usepackage[pdfspacing]{classicthesis}

\usepackage{scalerel}
\usepackage{calc}
\global\newcounter{embedlevel}
\global\newlength\embedspace
\embedspace=2ex
\setcounter{embedlevel}{1}

\newcommand\embed[1]{%
  \stepcounter{embedlevel}%
  \stretchrel{\rule{0.2ex}{1ex}}{\hspace{1.8ex}\parbox{%
    \textwidth-\value{embedlevel}\embedspace}{%
    \rule{0ex}{2ex}#1\rule[-1.3ex]{0ex}{1.3ex}%
  }}%
  \vspace{.5ex}%
  \addtocounter{embedlevel}{-1}%
}

\parskip 1.5ex
\begin{document}
\selectlanguage{ngerman} % american ngerman
% Disable paragraph indentation.
\setlength{\parindent}{0pt}

\begin{verbatim}
From: [email protected]
Subject: Your inquiry from 20042012
Date: Thu, 3 May 2012 11:34:54 +0200
To: Jane Doe <[email protected]>
\end{verbatim}

Jane Doe wrote:

\embed{%
  \embed{%
    \embed{%
      \embed{%
        There are a couple of questions I like to ask. Please forward them if
        you cannot do so.
      }
      I hope I can answer them after holidays.
    }
    I am back from holidays now and will look through your questionaire the next days.
  }
  Thank you, Mr. Doe - I am awaiting your answers.
}

Dear Mrs. Doe,

Nullam nisi nunc, ullamcorper vitae pulvinar eu, suscipit ut augue.

Donec risus mi.  Nam aliquam consectetur mollis. Ut at sem quis dolor
faucibus fringilla. Quisque cursus vehicula odio, vitae placerat ipsum
dapibus id.

Best regards,\\
John Doe

(See attached file: Questions\_Doe.doc)

\begin{verbatim}
_______________________________________________________
Administration New York
John Doe
Mainstr. 3
11111 New York

T:        (011) 212-4301
F:            (011) 212-954301
M:         [email protected]
\end{verbatim}

\embed{%
My question
I looking forward to reading the answers to my questions:

1. Is the world analog or digital?
}

digital

\embed{%
2. How long does the world exist? 
}

analog since 1984, digital since 1999


\end{document}  

在此处输入图片描述

相关内容