我对使用该类还比较陌生meetingmins
,总体来说我对它很满意。但是,默认是枚举的,有时我希望它们以项目符号显示。有人能告诉我这是否可行吗?(我知道如何使用和hiddenitems
来回更改非隐藏项目。)itemize
enumerate
谢谢你!
答案1
- 好消息:
meetingmins
使用该enumitem
包! - 坏消息是:该类的作者并没有真正使用
enumitem
特性来使其可配置 :-(
hiddenitem
这是(在声明后面\@ifundefined
,因此必须更加谨慎)的原始定义
\newenvironment{hiddenitems}{%
\begin{enumerate}[leftmargin=0.5in]
}{%
\end{enumerate}%
}
这改为
\renewenvironment{hiddenitems}{%
\begin{enumerate}[label={\textbullet},leftmargin=0.5in]
}{%
\end{enumerate}%
}
label={\textbullet}
然后将使用子弹。
\documentclass[11pt,agenda]{meetingmins}
%\usepackage{xpatch}
\setcommittee{Department of Instruction}
\setmembers{
\chair{B.~Smart},
B.~Brave,
D.~Claire,
B.~Gone
}
\setdate{October 5, 2011}
%\let\orighiddenitemsstart\hiddenitems
%\let\orighiddenitemsend\endhiddenitems % Not needed here
\renewenvironment{hiddenitems}{%
\begin{enumerate}[label={\textbullet},leftmargin=0.5in]
}{%
\end{enumerate}%
}
\begin{document}
\maketitle
\section{Announcements}
\begin{hiddenitems}
\item
The dean is coming today.
\item
The dean has canceled.
\end{hiddenitems}
\section{Committee Reports}
\subsection{College-wide Committees}
\subsubsection{Library}
The library still has books that no one has read.
\subsubsection{Curriculum {\rm (D.~Claire)}}
\begin{hiddensubitems}
\item
There is widespread interest in reforming
the curriculum.
\item
Unfortunately, no one seems interested
in participating on the curriculum
reform committee.
\end{hiddensubitems}
\subsection{Department Committees}
\subsubsection{Personnel}
\subsubsection{Assistant Professor Search}
\section{Old Business}
\begin{items}
\item
\priormins
\end{items}
\section{New Business}
\begin{items}
\item
We will teach classes next semester.
\item
We will do research next semester.
\end{items}
\vspace{1em}
\nextmeeting{Wednesday, October 19, at 3:00}
\end{document}
新版本
入门:更新环境hiddenitems
等,并向其中添加可选参数*
。查看输出中的差异。
\documentclass[11pt]{meetingmins}
\usepackage{xparse}
\makeatletter
\@ifundefined{@agenda}{%
\RenewDocumentEnvironment{hiddenitems}{sO{}}{%
\IfBooleanTF{#1}{%
\begin{enumerate}[label=\textbullet,leftmargin=0.5in,#2]
}{%
\begin{enumerate}[leftmargin=0.5in,#2]%
}%
}{%
\end{enumerate}%
}
}{%
\let\hiddenitems\emptysection%
}
\@ifundefined{@agenda}{% minutes
\RenewDocumentEnvironment{hiddensubitems}{sO{}}{%
\IfBooleanTF{#1}{%
\begin{enumerate}[label=\textasteriskcentered,leftmargin=1in,#2]
}{%
\begin{enumerate}[leftmargin=1in,#2]
}%
}{%
\end{enumerate}
}}{% agenda only
\let\hiddensubitems\emptysection
}%
\@ifundefined{@agenda}{% minutes
\RenewDocumentEnvironment{hiddensubsubitems}{sO{}}{%
\IfBooleanTF{#1}{%
\begin{enumerate}[label={$\triangleright$},leftmargin=1in,#2]
}{%
\begin{enumerate}[leftmargin=1in,#2]
}%
}{%
\end{enumerate}
}}{% agenda only
\let\hiddensubsubitems\emptysection
}%
\makeatother
\setcommittee{Department of Instruction}
\setmembers{
\chair{B.~Smart},
B.~Brave,
D.~Claire,
B.~Gone
}
\setdate{October 5, 2011}
\let\orighiddenitemsstart\hiddenitems
\let\orighiddenitemsend\endhiddenitems
\begin{document}
\maketitle
\section{Announcements}
\begin{hiddenitems}*
\item
The dean is coming today.
\item
The dean has canceled.
\end{hiddenitems}
\section{Committee Reports}
\subsection{College-wide Committees}
\subsubsection{Library}
The library still has books that no one has read.
\subsubsection{Curriculum {\rm (D.~Claire)}}
\begin{hiddensubitems}*
\item
There is widespread interest in reforming
the curriculum.
\item
Unfortunately, no one seems interested
in participating on the curriculum
reform committee.
\end{hiddensubitems}
\begin{hiddensubsubitems}*
\item First
\end{hiddensubsubitems}
\begin{hiddensubsubitems}
\item First -- non starred
\end{hiddensubsubitems}
\subsection{Department Committees}
\subsubsection{Personnel}
\subsubsection{Assistant Professor Search}
\section{Old Business}
\begin{items}
\item
\priormins
\end{items}
\section{New Business}
\begin{items}
\item
We will teach classes next semester.
\item
We will do research next semester.
\end{items}
\vspace{1em}
\nextmeeting{Wednesday, October 19, at 3:00}
\end{document}