标题页左侧浮动图像

标题页左侧浮动图像

我正在尝试实现这个目标:

在此处输入图片描述

到目前为止,我已经尝试过以下方法:

\documentclass[letterpaper]{book}


\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}

\usepackage{wrapfig}

\usepackage[letterpaper, top=4cm, bottom=2.5cm, left=4cm, right=2.5cm]{geometry}
\usepackage{setspace}
\doublespacing

\usepackage[pdftex]{graphicx}


\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}



\begin{document}
\begin{titlepage}

\begin{center}


\begin{wrapfigure}{l}{0.5\textwidth}\centering
    \includegraphics[scale=0.3]{./uchile.png}
\end{wrapfigure}


{ \LARGE UNIVERSIDAD DE CHILE \\[0.1cm]}
{ \LARGE FACSO \\[0.1cm]}
{ \LARGE DEPARTAMENTO EDUCACIÓN \\[0.1cm]}

\HRule 
{ \Huge TITLE \\[0.4cm]}
\vspace{3cm}

Description
\vspace{3cm}
\uppercase{My Name}
\vspace{3cm}
Professor Something

\vfill 
\HRule\\[0.1cm]
Santiago, Chile 2014




\end{center}
\end{titlepage}
\end{document}

https://www.writelatex.com/1862795gxzhvy#/4675483/

答案1

wrapfig绝对是错误的工具。

将代码改为

\begin{center}

% You'll use the commented out line
\makebox[0pt][r]{\fbox{\includegraphics[width=2.5cm]{duck}}}
%\makebox[0pt][r]{\includegraphics[scale=0.3]{uchile.png}}
{\renewcommand{\arraystretch}{1.2}%
 \begin{tabular}[b]{c}
 \LARGE UNIVERSIDAD DE CHILE \\
 \LARGE FACSO \\
 \LARGE DEPARTAMENTO EDUCACIÓN
\end{tabular}}

\HRule

{\Huge TITLE \\[0.4cm]}

\vspace{3cm}

其余部分保持原样。当然,您可以删除该duck行并使用注释掉的行。

在此处输入图片描述

为了使标题相对于图片垂直居中,请将图片放在一个表格中,然后[b]从第二个表格中删除:

\begin{center}

% You'll use the commented out lines
\begin{tabular}{@{}c@{}}
  \makebox[0pt][r]{\fbox{\includegraphics[width=2.5cm]{duck}}}%
\end{tabular}
%\begin{tabular}{@{}c@{}}
%\makebox[0pt][r]{\includegraphics[scale=0.3]{uchile.png}}
%\end{tabular}
{\renewcommand{\arraystretch}{1.2}%
 \begin{tabular}{c}
 \LARGE UNIVERSIDAD DE CHILE \\
 \LARGE FACSO \\
 \LARGE DEPARTAMENTO EDUCACIÓN
\end{tabular}}

\HRule

{\Huge TITLE \\[0.4cm]}

在此处输入图片描述

答案2

放下wrapfig并使用tabular环境来对齐图像和大学徽标。

间距可以稍后调整。

我没有关注各种\vspace{}命令......它们有点奇怪,但这不是问题。

\documentclass[oneside]{book}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\usepackage{wrapfig}


\begin{document}

\begin{center}
\begin{titlepage}
\begin{tabular}{@{}cc@{}}
\begin{tabular}{@{}c@{}}
  \includegraphics[scale=0.3]{./bild_erwin_schroedinger}
\end{tabular} &
\begin{tabular}{@{}c@{}@{}}
 \LARGE UNIVERSIDAD DE CHILE \tabularnewline[0.1cm]
 \LARGE FACSO \tabularnewline[0.1cm]
 \LARGE DEPARTAMENTO EDUCACIÓN \tabularnewline[0.1cm]
\end{tabular} \tabularnewline
& \tabularnewline[\baselineskip]
\hline
& \tabularnewline[\baselineskip]
\multicolumn{2}{c}{ \Huge TITLE} \tabularnewline[0.4cm]
\end{tabular} 

\vspace{3cm}

Description
\vspace{3cm}
\uppercase{My Name}
\vspace{3cm}
Professor Something

\vfill 
%\HRule\\[0.1cm]
Santiago, Chile 2014




\end{titlepage}
\end{center}

\end{document}

在此处输入图片描述

相关内容