2

it is my first time that i use latex, in particular lyx. I have to make a very simple page with a title a figure and 3 authors, but something strange happens when i put the figure after the title: there is a very big space and i don't know why, i think that when i press enter lyx does not exit from the title, however i do not have any idea about how to solve it.

code:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage{babel}
\begin{document}

\title{Requirements Analysis and Specifications Document}

\maketitle
\begin{figure}
\begin{centering}
\includegraphics[scale=0.4]{../Desktop/Logo_polimi_grande}
\par\end{centering}
\caption{Politecnico di Milano}

\end{figure}

\end{document}

Here the pdf created

  • 1
    Don't use a figure enviroment. It is very bad. You can smuggle in the picture with \author or \date which is bad from another point of view. Do you want a custom title page? – Johannes_B Oct 31 '16 at 13:29
  • 1
    Wait, is the image part f the title? Why does it get a caption? – Johannes_B Oct 31 '16 at 13:30
  • I want only a simple page with the figure immediately after the title or the date, I do not understand why there is that big space, the problem I think is when I press enter lyx does not exit from title – Guido Muscioni Oct 31 '16 at 13:32
  • The caption, is it important? Is your document just this one page? – Johannes_B Oct 31 '16 at 13:34
  • 2
    \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{graphicx} \usepackage{babel} \begin{document} \title{Requirements Analysis and Specifications Document} \maketitle \begin{center} \includegraphics[scale=0.4]{example-image} \end{center} \clearpage \end{document} – Johannes_B Oct 31 '16 at 13:41
2

Beside solution provided by @Johannes_B in his comment try the following:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage{babel}
\begin{document}

\title{Requirements Analysis and Specifications Document}

\maketitle
\begin{figure} 
\centering
\includegraphics[scale=0.4]{example-image}
\end{figure}

\end{document}
0

to control the virtcal space in lyx or latex used:

put cruser between the title and the image,Ctrl+L then write:

\vspace{-5pt}

you can change 5 to any number.

if you let the number + you get Increase the virtical distance.

if you let the number - you get Decrease the virtical distance.

regatds

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.