
En LyX, ¿cómo ajustaría globalmente el espacio entre ejemplos, teoremas, etc.?
¿Existe algún comando relativamente corto que pueda agregar a mi preámbulo?
Imagen de arriba tomada de un PDF generado por un archivo LyX, convertido al siguiente LaTeX (normal):
%% LyX 2.2.3 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setlength{\parskip}{\bigskipamount}
\setlength{\parindent}{0pt}
\usepackage{amsmath}
\usepackage{amsthm}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\newtheorem{thm}{\protect\theoremname}
\theoremstyle{definition}
\newtheorem{example}[thm]{\protect\examplename}
\makeatother
\usepackage{babel}
\providecommand{\examplename}{Example}
\providecommand{\theoremname}{Theorem}
\begin{document}
\begin{example}
Hello.
\end{example}
\begin{example}
Hello.
\end{example}
\begin{thm}
Hello.
\end{thm}
\begin{thm}
Hello.
\end{thm}
\end{document}
Respuesta1
Además de redefinir los estilos de teoremas, thmtools
por ejemplo, puedes cambiar el valor de \topsep
. Tal modificación parece cambiar su valor sólo para estructuras tipo teorema, pero no lo probé a fondo. Así que sugiero esta pequeña adición a su código (el valor se ajustará a sus necesidades; exageré la modificación con fines de demostración):
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setlength{\parskip}{\bigskipamount}
\setlength{\parindent}{0pt}
\usepackage{amsmath}
\usepackage{amsthm}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\newtheorem{thm}{\protect\theoremname}
\theoremstyle{definition}
\newtheorem{example}[thm]{\protect\examplename}
\topsep = 1cm
\makeatother
\usepackage{babel}
\providecommand{\examplename}{Example}
\providecommand{\theoremname}{Theorem}
\begin{document}
\begin{example}
Hello.
\end{example}
\begin{example}
Hello.
\end{example}
\begin{thm}
Hello.
\end{thm}
\begin{thm}
Hello.
\end{thm}
\end{document}