Trong LaTeX, làm cách nào để tạo một tài liệu bằng cách sử dụng lớp tài liệu Thư, nhưng với đầu trang và chân trang được tùy chỉnh?Trong LaTeX, làm cách nào để thêm đầu trang/chân trang vào trong lớp tài liệu Thư?
Thông thường tôi sẽ sử dụng:
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{\footnotesize \parbox{11cm}{Custom left-head-note} }
\lfoot{\footnotesize \parbox{11cm}{\textit{#2}}}
\rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}}
\renewcommand\headheight{24pt}
\renewcommand\footrulewidth{0.4pt}
Tuy nhiên, với \ documentclass {} thư, điều này không làm việc ở tất cả. Gợi ý được đánh giá cao.
EDIT: Đây là mẫu mã mà không làm việc (đối với bất kỳ lý do rõ ràng):
\documentclass[12pt]{letter}
\usepackage{fontspec}% font selecting commands
\usepackage{xunicode}% unicode character macros
\usepackage{xltxtra} % some fixes/extras
% page counting, header/footer
\usepackage{fancyhdr}
\usepackage{lastpage}
\pagestyle{fancy}
\lhead{\footnotesize \parbox{11cm}{Draft 1} }
\lfoot{\footnotesize \parbox{11cm}{\textit{2}}}
\cfoot{}
\rhead{\footnotesize 3}
\rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}}
\renewcommand{\headheight}{24pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}
\name{ Joe Laroo }
\signature{ Joe Laroo }
\begin{letter}{ To-Address }
\renewcommand{\today}{ February 16, 2009 }
\opening{ Opening }
Content of the letter.
\closing{ Yours truly, }
\end{letter}
\end{document}
Các lỗi, và/hoặc hình ảnh hoặc giải thích như thế nào nó không thành công có thể là bài học. Có, tôi có thể đồng ý điều này và tự mình thử, nhưng tôi lười ... – dmckee
fancyhdr * nên * hoạt động. Điều gì đang xảy ra khi bạn thử? –
Tình cảm của tôi chính xác. Tôi đã chỉnh sửa câu hỏi để thêm mã phi chức năng mà tôi nghĩ nên làm việc ... –