![如何在横向模式下保持我的页面风格?](https://linux22.com/image/290823/%E5%A6%82%E4%BD%95%E5%9C%A8%E6%A8%AA%E5%90%91%E6%A8%A1%E5%BC%8F%E4%B8%8B%E4%BF%9D%E6%8C%81%E6%88%91%E7%9A%84%E9%A1%B5%E9%9D%A2%E9%A3%8E%E6%A0%BC%EF%BC%9F.png)
我想在文档的任何位置创建横向页面并保持文档的样式并更改这些页面的边距,我需要创建另一种页面样式吗?
\documentclass[oneside,spanish,10pt,a4paper]{memoir}
\usepackage{tikz}
\usepackage{titletoc}
\usepackage{lipsum}
\usepackage{anysize}
\marginsize{3cm}{2cm}{2cm}{2cm}
\usepackage{amsmath}
\usepackage{float}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[swedish]{babel}
\usepackage{multicol}
\usepackage{pdflscape}
\usepackage{color}
\definecolor{yourcolor}{HTML}{6C17A1}
\makechapterstyle{mystyle}{%
\chapterstyle{default}
\renewcommand*{\chapnumfont}{\normalfont\Huge\sffamily\bfseries}
\renewcommand*{\chaptitlefont}{\normalfont\huge\sffamily\itshape\color{yourcolor}}
\settowidth{\chapindent}{\chapnumfont 111}
\renewcommand*{\chapterheadstart}{}
\renewcommand*{\chapnamefont}{\hfill\color{yourcolor}\normalfont\Huge\sffamily\bfseries}
\renewcommand*{\printchapternum}{%
\begin{tikzpicture}[baseline={([yshift=-.6ex]current bounding box.center)}]
\node[fill=yourcolor,circle,text=white] {\thechapter};
\end{tikzpicture}\\[1ex]
\hrule height 1.5pt}
\renewcommand*{\printchaptertitle}[1]{%
{\chaptitlefont ##1}}
}
%------------------
\makepagestyle{myruled}
\makeheadfootruleprefix{myruled}{\color{yourcolor}}{\color{yourcolor}}
\makeheadrule{myruled}{\textwidth}{1.5pt}
\makefootrule{myruled}{\textwidth}{1.5pt}{\footruleskip}
\makeevenhead{myruled}{}{\small\itshape\leftmark}{}
\makeoddhead{myruled}{}{\small\itshape\rightmark}{}
\makeevenfoot{myruled}{\color{yourcolor}\small\thepage}{}{}
\makeoddfoot{myruled}{}{}{\color{yourcolor}\small\thepage}
\makeatletter % because of \@chapapp
\makepsmarks{myruled}{
\nouppercaseheads
\createmark{chapter}{both}{shownumber}{\color{yourcolor}\@chapapp\ }{\color{yourcolor}. \ }
\createmark{section}{right}{shownumber}{\color{yourcolor}}{\color{yourcolor}. \ }
\createmark{subsection}{right}{shownumber}{\color{yourcolor}}{. \ }
\createmark{subsubsection}{right}{shownumber}{\color{yourcolor}}{. \ }
\createplainmark{toc}{both}{\contentsname}
\createplainmark{lof}{both}{\listfigurename}
\createplainmark{lot}{both}{\listtablename}
\createplainmark{bib}{both}{\bibname}
\createplainmark{index}{both}{\indexname}
\createplainmark{glossary}{both}{\glossaryname}
}
\makeatother
\pagestyle{myruled}
\chapterstyle{mystyle}
%use new chapter style
\begin{document}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\chapter{some text}
\section{some text}
\lipsum[1-20]
\subsection{some text}
\lipsum
\subsubsection{some text}
\lipsum
{
\newpage
\begin{landscape}
\lipsum
\end{landscape}
}
\end{document}