我正在尝试创建标题页。我在此网站的帮助下创建了此示例。但我遇到了一个问题。在我的示例中,我的测量值不真实。当我打印它时,块不在它们的位置。例如,最后一个块位于页面顶部下方 26.5 厘米处。
\documentclass[12pt,twoside]{report}
\usepackage[turkish]{babel}%türkçe karakter
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}%türkçe karakter
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{float}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{epstopdf}
\usepackage{titlesec}
\usepackage{afterpage}
\usepackage{fancyhdr}
\usepackage{layouts}
\usepackage[export]{adjustbox}
\usepackage[labelfont=bf]{caption}
\usepackage{etoolbox}
\usepackage[titles]{tocloft}%LoF paketi
\usepackage{amsmath}
\usepackage{parselines}
\usepackage{mwe}
\usepackage{subfig}
\usepackage[all]{nowidow}
\usepackage{mathptmx}%times new roman
\usepackage{setspace}%satır aralığı
\usepackage{url}
\usepackage{notoccite}%referans sırasını düzeltti.
\usepackage{textpos}
\usepackage{calc}
\usepackage{multirow}
\usepackage{geometry}
\geometry{%kağıt boyutları ve yazım alanı
a4paper,
left=40mm,
top=25mm,
bottom=25mm,
right=25mm,
}
\newcommand{\fromtop}[1]{%
\dimexpr-1in-\topskip-\topmargin-\headheight-\headsep+#1\relax
}
\newcommand{\fromleft}[1]{%
\dimexpr-1in-\oddsidemargin+#1\relax
}
\begin{document}
\shorthandoff{=}
\begin{titlepage}
\setlength{\parindent}{1cm}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{3cm})
\centering
\begin{tabular}{ccc}
\multirow{3}{*}{}
&\textbf{T.C.}&\multirow{3}{*}{}\\
&\textbf{FHDFGHFHDFH ÜNİVERSİTESİ}&\\
&\textbf{FEN BİLİMLERİ ENSTİTÜSÜ}&\\
\end{tabular}
\end{textblock*}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{6.5cm})
\centering
\textbf{DFHDFHDGHDFG ANABİLİM DALI}
\end{textblock*}
\begin{singlespacing}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{9.5cm})
\centering
\textbf{SDFGDGGDSGFDSG\\
TGFHGJJHDHFHD}
\end{textblock*}
\end{singlespacing}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{15cm})
\centering
\textbf{DOKTORA TEZİ}
\end{textblock*}
\begin{singlespacing}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{16cm})
\centering
\textbf{ASDGH}\\
\textbf{2346445}
\end{textblock*}
\end{singlespacing}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{19.5cm})
\centering
\textbf{Tezin Savunma Tarihi : 00.00.0000}
\end{textblock*}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{23cm})
\centering
\textbf{Tez Danışmanı : sdfgdgsd}
\end{textblock*}
\begin{singlespacing}
\begin{textblock*}{\paperwidth-65mm}(\fromleft{4cm},\fromtop{26.5cm})
Bu Yüksek Lisans/Doktora Tez Çalışması sdgsdgsdgf Üniversitesi ………………’nolu Proje ile desteklenmiştir.
\end{textblock*}
\end{singlespacing}
\end{titlepage}
\end{document}
答案1
删除所有\begin{singlespacing}
和\end{singlespacing}
标签 - 它们似乎正在向文档添加填充,从而干扰 s textblock
。
如果您想要文本的某个部分使用不同的行距,您可以在行尾使用\\[10pt]
或或类似按钮动态调整行距。\\[-2pt]