摘要间距问题

摘要间距问题

早上好,我尝试将我的毕业论文第一页的“摘要”一词垂直对齐,但没有成功。如果我不插入“使用 latex 编辑”这句话,我可以做到这一点,但我想保留它。有什么建议吗?在此处输入图片描述

\documentclass[12pt,a4paper,oneside,openright]{book}

        \usepackage[italian]{babel} 
        \usepackage[T1]{fontenc}
        \usepackage{textcomp}
        \usepackage[utf8]{inputenc}

        \usepackage[scaled=.90]{helvet}
        \usepackage{titlesec}
        \usepackage{guit}
        \usepackage{makeidx}
        \usepackage{lipsum}
        \usepackage{layaureo}
        \usepackage{emptypage}
        \usepackage{setspace}
        \usepackage{fancyhdr}
        \usepackage{graphicx}
        \usepackage{caption}
        \usepackage{pdfpages}
        \usepackage{float}
        \usepackage{adjustbox}
        \usepackage{longtable}
        \usepackage{tabu}
        \usepackage{pdflscape}
        \usepackage{makecell}
        \setcellgapes{2pt}
        \usepackage{array}
        \usepackage{dcolumn}
        \usepackage{amsthm} 
        \usepackage{amsfonts}
        \usepackage{eufrak}
        \usepackage{mathrsfs}
        \usepackage{amsmath,amssymb} 
        \usepackage{siunitx} 
        \usepackage{nicefrac}
        \usepackage{xfrac} 
        \usepackage{varwidth}
        \usepackage{tasks} 
        \usepackage{booktabs,cellspace}
        \setlength\cellspacetoplimit{5pt} 
        \setlength\cellspacebottomlimit{5pt}
        \usepackage{ragged2e}
        \usepackage{changepage}
        \usepackage{tabularx}
        \usepackage{subfig}
        \usepackage{cancel}
        \usepackage{dblfloatfix}
        \usepackage[colorlinks=true,allbordercolors=white]{hyperref}
        \usepackage[all]{hypcap}
        \usepackage{cleveref}
        \usepackage[inline]{enumitem}
        \usepackage[autostyle,italian=guillemets]{csquotes} 
        \usepackage[bibstyle=authoryear,citestyle=authoryear-comp,backend=biber,useprefix=true]{biblatex}
        \usepackage{url}
        \usepackage{multirow}
        \usepackage{rotating}
        \usepackage{listings}
        \usepackage{pgfplots}
        \pgfplotsset{compat=newest}
        \usepackage{colortbl}
        \usepackage{xcolor}
        \usepackage[italian]{varioref}
        \usepackage{bookmark} 
        \usepackage{verbatim}
        \usepackage{pict2e}[2009/06/01]
        \usepackage{wrapfig}
        \usepackage{wasysym}
        \usepackage{numprint}
        \usepackage{tikz}


        %%%%%%%%%%%%%%%%%%%%%%%%  envinronment definition  %%%%%%%%%%%%%%%%
        \makeatletter
        \if@titlepage
        \newenvironment{abstract}{%
            \titlepage
            \null\vfil
            \@beginparpenalty\@lowpenalty
            \begin{center}
                \bfseries \abstractname
                \@endparpenalty\@M
        \end{center}}%
        {\par\vfil\null\endtitlepage}
        \else
        \newenvironment{abstract}{%
            \if@twocolumn
            \section*{\abstractname}%
            \else
            \small
            \begin{center}%
                {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
            \end{center}%
            \quotation
            \fi}
        {\if@twocolumn\else\endquotation\fi}
        \fi
        \makeatother

        %%%%%%%%%%%%%%%%%%%%%%%%  end envinronment definition  %%%%%%%%%%%%%%%%

        \onehalfspacing
        \raggedbottom 



        \begin{document}
        \frontmatter
        \pagestyle{plain}
            \begin{abstract}
                \vfill

                \lipsum[1] 

                \mbox{}
                \vfill
                \centering
                {\large Edit with \LaTeX }\\

            \end{abstract}  
        \mainmatter

        \appendix

        \backmatter

        \end{document}\\

答案1

在文档正文中使用此代码(简化):

    \frontmatter
    \pagestyle{plain}%
    \begin{abstract}

        \lipsum[1]
         \mbox{}
         \vfill
         \centering
         {\large Edit with \LaTeX }

        \end{abstract}

    \mainmatter

    \appendix

    \backmatter

在序言中,环境的定义abstract应该以

        \titlepage
        \null\vfill

代替

        \titlepage
        \null\vfil

在此处输入图片描述

相关内容