Pregunta

¿Cómo modifico la distancia entre el final de una sección y el encabezado de la siguiente sección en un documento de látex?

¿Fue útil?

Solución

Puede configurar el estilo de los encabezados de sección, incluido el espacio, utilizando el titlesec paquete. Hay una opción 'compacta' para una reducción simple del espacio, o puede especificar valores específicos utilizando las opciones más avanzadas (consulte la documentación en la página vinculada para obtener los detalles sangrientos).

Otros consejos

Una alternativa a TitlesEC es redefinir el comando de sección, como en el siguiente fragmento. Tenga en cuenta que BeFefefefefefefeip y AfterSkip son las variables que le interesan. El código en sí es solo las primeras líneas. Es seguido por un comentario largo para recordarme las definiciones cuando corte y pego todo de un documento a otro. El código, por cierto, es más o menos del libro indispensable, The Ladex Companion, segunda edición.

\makeatletter
 \renewcommand\section{\@startsection {section}{1}{\z@}%
     {-2.5ex \@plus -1ex \@minus -.2ex}%
     {1.3ex \@plus.2ex}%
    {\centering\bfseries}}
% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
%            optional * [ALTHEADING]{HEADING}
%    Generic command to start a section.  
%    NAME       : e.g., 'subsection'
%    LEVEL      : a number, denoting depth of section -- e.g., chapter=1,
%                 section = 2, etc.  A section number will be printed if
%                 and only if LEVEL gt or eq the value of the secnumdepth
%                 counter.
%    INDENT     : Indentation of heading from left margin
%    BEFORESKIP : Absolute value = skip to leave above the heading.  
%                 If negative, then paragraph indent of text following 
%                 heading is suppressed.
%    AFTERSKIP  : if positive, then skip to leave below heading,
%                       else - skip to leave to right of run-in heading.
%    STYLE      : commands to set style
%  If '*' missing, then increments the counter.  If it is present, then
%  there should be no [ALTHEADING] argument.  A sectioning command
%  is normally defined to \@startsection + its first six arguments.
\makeatother
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top