我目前正在撰寫論文,需要包含大量電子郵件轉換。我在用經典論文。我想知道你會如何格式化堆疊轉換。此外,你會如何處理電子郵件標頭,簽名和越線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}