从顶部为所有线赋予高度

从顶部为所有线赋予高度

我尝试制作如下所示的封面。

来源

所有线条都有特定的高度值。当我使用下面的命令时,线条高度会毁掉一切。因为所有线条都有自己的高度。

\begin{titlepage}
\singlespacing
   \begin{center}

    \vspace*{40mm}
    KARADENİZ TEKNİK ÜNİVERSİTESİ\\
    FEN BİLİMLERİ ENSTİTÜSÜ\\
    \vspace*{40mm}
    ABC MÜHENDİSLİĞİ ANABİLİM DALI\\
    \vspace*{30mm}
    TEZ KONUSU\\
    \vspace*{70mm}
    YÜKSEK LİSANS TEZİ\\
    \vspace*{30mm}
    AD SOYAD\\
    \vspace*{40mm}
    Mayıs 2019\\
    TRABZON\\

  \end{center}
\end{titlepage}

因此,我想从顶部开始为所有行赋予一个值。但是该怎么做呢?谢谢。

答案1

这是我的尝试。

\documentclass{scrbook}
\usepackage{tikz}
\usetikzlibrary{calc,positioning}


\begin{document}
    \begin{titlepage}
        \begin{tikzpicture}[remember picture, overlay]
            \node at ($(current page.north)-(0,4cm)$) [anchor=north] {\parbox{\linewidth}{\centering KARADENİZ TEKNİK ÜNİVERSİTESİ\\ FEN BİLİMLERİ ENSTİTÜSÜ}};
            \node at ($(current page.north)-(0,8cm)$) [anchor=north] {\parbox{\linewidth}{\centering ABC MÜHENDİSLİĞİ ANABİLİM DALI}};
            \node at ($(current page.north)-(0,11cm)$) [anchor=north] {\parbox{\linewidth}{\centering TEZ KONUSU}};
            \node at ($(current page.north)-(0,18cm)$) [anchor=north] {\parbox{\linewidth}{\centering YÜKSEK LİSANS TEZİ}};
            \node at ($(current page.north)-(0,21cm)$) [anchor=north] {\parbox{\linewidth}{\centering AD SOYAD}};
            \node at ($(current page.north)-(0,25cm)$) [anchor=north] {\parbox{\linewidth}{\centering Mayıs 2019\\ TRABZON}};

        \end{tikzpicture}
    \end{titlepage}

\end{document}

答案2

的一个变体NBur 的答案(解决了你的问题)利用了tikzpositioning并且代码稍微短一些:

\documentclass[12pt]{report} 
\usepackage{tikz}               % add to your document (only in the case, if you not already use)
\usetikzlibrary{positioning}    % add to your document (only in the , if you not already use)

\begin{document}
    \begin{titlepage}
        \begin{tikzpicture}[remember picture, overlay,
            every node/.style = {align=center}
                                ]
            \coordinate (cpn) at (current page.north);
            \node[below= 4cm of cpn] {KARADENİZ TEKNİK ÜNİVERSİTESİ\\ FEN BİLİMLERİ ENSTİTÜSÜ};
            \node[below= 8cm of cpn] {ABC MÜHENDİSLİĞİ ANABİLİM DALI};
            \node[below=11cm of cpn] {TEZ KONUSU};
            \node[below=18cm of cpn] {YÜKSEK LİSANS TEZİ};
            \node[below=21cm of cpn] {AD SOYAD};
            \node[below=25cm of cpn] {Mayıs 2019\\ TRABZON};
        \end{tikzpicture}
    \end{titlepage}
\end{document}

在此处输入图片描述

笔记:为了获得标题页的最终外观,您需要至少编译两次文档

相关内容