避免摘要前后留有空白页

避免摘要前后留有空白页

每个摘要前后以及每个章节之前都有空白页。

我的摘要中也有两种语言,因此需要将两种摘要放在同一页上。

所以我需要

  • 第 1 页:标题

  • 第 2 页:两篇摘要使用不同的语言

  • 第 3 页:索引

  • 第 4 页:简介

  • 第 5 页:开始第 1 章

  • 第 6 页:开始第 2 章

这是我的代码,如能得到任何帮助我将非常感激。

    \documentclass[a4paper,12pt,twoside,onecolumn,final]{book}
    \usepackage[spanish,english]{babel}
    \usepackage[utf8]{inputenc} 
    
    \oddsidemargin=-0cm
    \evensidemargin=0cm
    \topmargin=-3cm
    \textwidth=17cm
    \textheight=27cm
    
    \hyphenation{trian-gu-lar}
    
    
    \newcommand{\pf}{\vspace{.2in}\hspace{.6cm}{\bf Proof$\,$:\ }}
    
    %\setlength{\parskip}{2ex}
    \pagestyle{empty}
    
    
    
    
    \usepackage{mathtools}
    \usepackage{wasysym}
    \let\wasysymLightning\lightning
    \usepackage{amsmath}
    \usepackage{amsthm,nccmath}
    \usepackage{mathrsfs}
    \usepackage{stackengine}
    \usepackage{hyperref}
    \usepackage{enumerate}
    \usepackage[all]{xy}
    %\usepackage{showkeys} %verETIQUETAS%
    \usepackage{tikz-cd}
    \tikzset{
      symbol/.style={
        draw=none,
        every to/.append style={
          edge node={node [sloped, allow upside down, auto=false]{$#1$}}}
      }}
    % con \[ \] fuerza el centrado y achica
    % con gather no fuerza centrado, solo para ponerle label
    
    \usepackage{xfrac}
    \usepackage{dsfont}
    \usepackage{amsfonts}
    \usepackage{amssymb}
    \usepackage{upgreek}
    \usepackage{faktor}
    \usepackage{makeidx}
    \newenvironment{abstract}{}{}
    \usepackage{abstract}
    \usepackage{graphicx}
    %\newcommand*\quot[2]{{^{\textstyle #1}\big/_{\textstyle #2}}}
    \usepackage{lmodern}
    \usepackage{fancyhdr}
    \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
    
    
    
    
    %para matriz encerrar entradas
    \usepackage{blkarray, bigstrut}
    \usepackage{tikz}
    \usetikzlibrary{tikzmark,calc,fit}
    \usetikzlibrary{matrix}
    
    
    
    %para estilo negrita teorema
    \usepackage{xpatch,amsthm}
    \makeatletter
       \xpatchcmd{\@thm}{\fontseries\mddefault\upshape}{}{}{} 
    \makeatother
    %para estilo negrita teorema
    
    
    
    \newtheorem{theorem}{Teorema}[chapter]
    \newtheorem{pro}[theorem]{Proposición}
    \newtheorem{cor}[theorem]{Corolario}
    \newtheorem{lem}[theorem]{Lema}
    \newtheorem{defin}[theorem]{Definición}
    \newtheorem{ejem}[theorem]{Ejemplo}
    \theoremstyle{definition}
    
    
    \newtheorem{note}[theorem]{Notación}
    
    \theoremstyle{remark}
    \newtheorem{obs}[theorem]{Observación}
    
    
    
    \DeclareMathOperator{\nul}{nul}
    \DeclareMathOperator{\defe}{def}
    \DeclareMathOperator{\ind}{ind}
    \DeclareMathOperator{\ase}{ascenso}
    \DeclareMathOperator{\dese}{descenso}
    \DeclareMathOperator{\Inv}{Inv}
    \DeclareMathOperator{\Ima}{Im}
    \DeclareMathOperator{\inicial}{In}
    \DeclareMathOperator{\final}{Fin}
    \DeclareMathOperator{\spaan}{span}
    \DeclareMathOperator{\spe}{sp}
    \DeclareMathOperator{\ida}{I}
    \DeclareMathOperator{\vol}{vol}
    \DeclareMathOperator{\sop}{sop}
    \DeclareMathOperator{\sym}{Sym}
    \DeclareMathOperator{\dist}{dist}
    \DeclareMathOperator{\coker}{Coker}
    \DeclareMathOperator{\Hom}{Hom}
    \DeclareMathOperator{\proj}{proy}
    \DeclareMathOperator{\Aut}{Aut}
    \DeclareMathOperator{\singa}{singsop}
    
    
    
    % aqui definimos el encabezado de las paginas pares e impares.
    \rhead[\thesection.]{\thesection.}
    \chead[]{}
    \lhead[]{}
    \renewcommand{\headrulewidth}{0.5pt}
    
    % aqui definimos el pie de pagina de las paginas pares e impares.
    \lfoot[Regularidad elíptica]{Regularidad elíptica}
    \cfoot[]{}
    \rfoot[\thepage]{\thepage}
    \renewcommand{\footrulewidth}{0.5pt}
    
    % aqui definimos el encabezado y pie de pagina de la pagina inicial de un capitulo.
    \fancypagestyle{plain}{
    \fancyhead[L]{}
    \fancyhead[C]{}
    \fancyhead[R]{}
    \fancyfoot[L]{}
    \fancyfoot[C]{}
    \fancyfoot[R]{}
    \renewcommand{\headrulewidth}{0pt}
    \renewcommand{\footrulewidth}{0pt}
    }
    
    \pagestyle{fancy}
    
    %para eliminar encabesado y pie pagina, una pagina limpia
    %\thispagestyle{empty}
    
    
    
    \setlength{\headheight}{15pt}
    
    \title{\textsc{something} \\
    \vspace*{1cm}
    \textbf{something} \\ 
    \vspace*{2cm}
    something \\
    something \\
    \vspace*{2cm}
    something \\
    something \\
    something \\
    something \\
    \date{something}}
    
    
    \begin{document}
    
    \maketitle
    \selectlanguage{spanish} 
    \begin{abstract}
    Here is the spanish abstract
    \end{abstract}
    \selectlanguage{english} 
    \begin{abstract}
   Here is the english abstract
    \end{abstract}
    \selectlanguage{spanish} 
    
    
    \tableofcontents
    
    \chapter*{Introducción}


\chapter{something}\label{something cap}
\section{something}\label{something sec}
\rhead[\thesection. something]{\thesection. something}

\end{document}

我使用 解决了空白页问题\let\cleardoublepage=\clearpage,但两个摘要仍然在不同的页面上。

答案1

无需使用abstract包裹。只需定义您自己的abstract环境(在这种情况下,为了简单起见,只需将抽象标题作为参数传递即可):

在此处输入图片描述

\documentclass[twoside]{book}

\usepackage[spanish,english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}

\NewDocumentEnvironment{abstract}{ m }{%
  \begin{center}
    \bfseries #1
  \end{center}
  \medskip\normalfont}{\par}

\title{A title}
\author{An Author}
\date{Some day}

\begin{document}

\maketitle

\cleardoublepage
\mbox{}\par\vfill
\selectlanguage{spanish}%
\begin{abstract}{Resumen}
Here is the Spanish abstract. \lipsum[1]
\end{abstract}

\bigskip

\selectlanguage{english}
\begin{abstract}{Abstract}
Here is the English abstract. \lipsum[2]
\end{abstract}
\vfill\mbox{}\cleardoublepage

\selectlanguage{spanish}

\tableofcontents

\chapter*{Introducción}

\chapter{Another chapter}
\section{Some section}

\end{document}

在上面的(最小)文档中,两个摘要使用 在页面上垂直居中\vfill,并通过 手动分页\cleardoublepage

相关内容