全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 LATEX论坛
1731 1
2015-03-25

下面的这个设计是从 memoir 中修正而来的,若是喜欢的话,可以自己根据需要选用。

代码如下:


[color=rgb(170, 170, 170) !important]1


[color=rgb(170, 170, 170) !important]2


[color=rgb(170, 170, 170) !important]3


[color=rgb(170, 170, 170) !important]4


[color=rgb(170, 170, 170) !important]5


[color=rgb(170, 170, 170) !important]6


[color=rgb(170, 170, 170) !important]7


[color=rgb(170, 170, 170) !important]8


[color=rgb(170, 170, 170) !important]9


[color=rgb(170, 170, 170) !important]10


[color=rgb(170, 170, 170) !important]11


[color=rgb(170, 170, 170) !important]12


[color=rgb(170, 170, 170) !important]13


[color=rgb(170, 170, 170) !important]14


[color=rgb(170, 170, 170) !important]15


[color=rgb(170, 170, 170) !important]16


[color=rgb(170, 170, 170) !important]17


[color=rgb(170, 170, 170) !important]18


[color=rgb(170, 170, 170) !important]19


[color=rgb(170, 170, 170) !important]20


[color=rgb(170, 170, 170) !important]21


[color=rgb(170, 170, 170) !important]22


[color=rgb(170, 170, 170) !important]23


[color=rgb(170, 170, 170) !important]24


[color=rgb(170, 170, 170) !important]25


[color=rgb(170, 170, 170) !important]26


[color=rgb(170, 170, 170) !important]27


[color=rgb(170, 170, 170) !important]28


[color=rgb(170, 170, 170) !important]29


[color=rgb(170, 170, 170) !important]30


[color=rgb(170, 170, 170) !important]31


[color=rgb(170, 170, 170) !important]32


[color=rgb(170, 170, 170) !important]33


[color=rgb(170, 170, 170) !important]34


[color=rgb(170, 170, 170) !important]35


[color=rgb(170, 170, 170) !important]36


[color=rgb(170, 170, 170) !important]37


[color=rgb(170, 170, 170) !important]38


[color=rgb(170, 170, 170) !important]39


[color=rgb(170, 170, 170) !important]40


[color=rgb(170, 170, 170) !important]41


[color=rgb(170, 170, 170) !important]42


[color=rgb(170, 170, 170) !important]43


[color=rgb(170, 170, 170) !important]44


[color=rgb(170, 170, 170) !important]45


[color=rgb(170, 170, 170) !important]46


[color=rgb(170, 170, 170) !important]47


[color=rgb(170, 170, 170) !important]48


[color=rgb(170, 170, 170) !important]49


[color=rgb(170, 170, 170) !important]50


[color=rgb(170, 170, 170) !important]51


[color=rgb(170, 170, 170) !important]52


[color=rgb(170, 170, 170) !important]53


[color=rgb(170, 170, 170) !important]54


[color=rgb(170, 170, 170) !important]55


[color=rgb(170, 170, 170) !important]56


[color=rgb(170, 170, 170) !important]57


[color=rgb(170, 170, 170) !important]58


[color=rgb(170, 170, 170) !important]59


[color=rgb(170, 170, 170) !important]60


[color=rgb(170, 170, 170) !important]61


[color=rgb(170, 170, 170) !important]62


[color=rgb(170, 170, 170) !important]63


[color=rgb(170, 170, 170) !important]64


[color=rgb(170, 170, 170) !important]65


[color=rgb(170, 170, 170) !important]66








二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-3-25 10:25:57
\documentclass[11pt, a4paper, oneside]{memoir}
\usepackage{color,calc,graphicx,soul,fourier}
\definecolor{wine}{rgb}{.5,0,0}
\makeatletter
\newlength\dlf@normtxtw
\setlength\dlf@normtxtw{\textwidth}
\def\myhelvetfont{\def\sfdefault{mdput}}
\newsavebox{\feline@chapter}
\newcommand\feline@chapter@marker[1][4cm]{%
\sbox\feline@chapter{%
\resizebox{!}{#1}{\fboxsep=1pt%
  \colorbox{wine}{\color{white}\bfseries\thechapter}%
}}%
\rotatebox{90}{%
\resizebox{%
  \heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%
{!}{\scshape\so\@chapapp}}\quad%
\raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%
}
\newcommand\feline@chm[1][4cm]{%
\sbox\feline@chapter{\feline@chapter@marker[#1]}%
\makebox[0pt][l]{%
\makebox[3.2cm][r]{\usebox\feline@chapter}%
}}
\makechapterstyle{daleif1}{
\renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}
\renewcommand\chapternamenum{}
\renewcommand\printchaptername{}
\renewcommand\printchapternum{\null\hfill\feline@chm[2.5cm]\par}
\renewcommand\afterchapternum{\par\vskip\midchapskip}
\renewcommand\printchaptertitle[1]{\chaptitlefont ##1\par}
}
\makeatother
\chapterstyle{daleif1}

\usepackage{blindtext}

\newcommand\addtoc[1]{%
  \leavevmode\marginpar{%
    \parbox[t]{3.5cm}{\raggedright\footnotesize\sffamily%
    \vspace{-7pt}%
      \begin{enumerate}[leftmargin=.65cm, topsep=0pt, partopsep=0pt,
            label=\textcolor{blue}{\thechapter-\arabic*}, nosep]%
        #1
      \end{enumerate}%
    }%
  }%
}

\usepackage{enumitem}
\begin{document}
\chapter{First Chapter}
\addtoc{
\item Newton's Laws
\item Work, Energy, and the Conservation of Energy
\item Rotations and the Center of Mass
\item Elastic Media and Waves
\item Thermal Phenomena
\item The Atomic Structure of Matter
\item Electricity and Magnetism
\item Electromagnetic Waves and Light
}
\blindtext

\blindtext
\end{document}
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群