
Feliz Navidad a todo el mundo. Estoy intentando crear una plantilla LyX ya que tengo que escribir tres informes durante los próximos 12 meses. Estoy usando la demostración2 de estilo de memorias y capítulos. Cómo puedo
1) Alinear a la derecha el número del capítulo (el nombre ya está alineado a la derecha) y
2) ¿Cambiarlo de, por ejemplo, "uno" a "Capítulo 1"?
3) ¿Puedo hacer lo mismo con mi apéndice? Es decir, ¿alinear a la derecha y comenzar con el "Apéndice A" en lugar de "A"?
Este es mi preámbulo hasta ahora:
\chapterstyle{demo2}
\makepagestyle{mystyle}
\makeheadrule {mystyle}{\textwidth}{\normalrulethickness}
\makeevenhead{mystyle}{\small\leftmark}{}{}
\makeoddhead{mystyle}{\small\rightmark}{}{}
\makeevenfoot{mystyle}{}{\thepage }{}
\makeoddfoot{mystyle}{}{\thepage}{}
Respuesta1
Defina una variante del demo2
estilo del capítulo:
\documentclass{memoir}
\makeatletter
\makechapterstyle{demo2var}{%
\chapterstyle{default}
\renewcommand*{\chaptitlefont}{\normalfont\Huge\sffamily}
\renewcommand*{\chapnumfont}{\chaptitlefont}
\renewcommand*{\printchaptername}{\raggedleft}
\renewcommand*{\printchapternum}{\chapnumfont
\ifanappendix Appendix \else Chapter \fi\thechapter}
\renewcommand*{\printchaptertitle}[1]{%
\hrule\vskip\onelineskip \raggedleft \chaptitlefont ##1}
\renewcommand*{\afterchaptertitle}{%
\vskip\onelineskip \hrule\vskip \afterchapskip}
\setlength{\beforechapskip}{3\baselineskip}
\renewcommand*{\printchapternonum}{%
\vphantom{\chapnumfont One}
\afterchapternum%
\vskip\topskip}
\setlength{\beforechapskip}{2\onelineskip}}
\makeatother
\chapterstyle{demo2var}
%% add here the changes for headers and footers
\begin{document}
\mainmatter
\chapter{Fundamentals}
\appendix
\chapter{Minor points}
\end{document}