
No LyX, como eu ajustaria globalmente o espaço entre exemplos, teoremas, etc.?
Existe algum comando relativamente curto que posso adicionar ao meu preâmbulo?
Imagem acima retirada do PDF gerado pelo arquivo LyX, convertido para o seguinte LaTeX (simples):
%% 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}
Responder1
Além de redefinir os estilos de teoremas, thmtools
por exemplo, você pode alterar o valor de \topsep
. Tal modificação parece alterar seu valor apenas para estruturas semelhantes a teoremas, mas não testei completamente. Então sugiro esta pequena adição ao seu código (valor a ser ajustado à sua necessidade – exagerei na modificação para fins de demonstração):
\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}