TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to write a poster using beamerposter package. I'm getting a strange behaviour of text alignment when using wrapfig. I attached the result and i encircled the strange behaviour. On the left side text starts on the next line even if i didn't insert a \par neither a \newline. I expected the sentence starting with "The agent learns..." would have continued from the line above, after "..environment itself.". On the right side, in addition to the aforesaid wrong behaviour, the text goes to the next line without a reason.

Here the code snippet:


%\linespread{1.05}         % Palatino needs more leading (space between lines)
%\usepackage{mathptmx} %<-- font times
\usepackage[numbers]{natbib} % <- bibliografia personalizzata





The purpose of this work involves the application and the evaluation of a \alert{Reinforcement Learning (RL)} based approach to address the problem of controlling the steering of a vehicle. The car is required to drive autonomously on unknown tracks without never going out of the way. The problem has been solved by using a simple neural network with two neurons, and according to the \alert{ASE-ACE algorithm}. The evaluation has been carried out with referring to The Open Racing Car Simulator (TORCS).

Reinforcement Learning (RL) is a learning paradigm for neural networks based on the idea of an agent which is placed into a certain environment and it is required it learns to take proper actions without having any knowledge about the environment itself. %
\centering %
\caption{The ASE-ACE neural model.}
The agent learns by trial and error: an entity called \emph{critic} observes the agent's behaviour and punishes or rewards the agent if it executes respectively wrong or proper actions; these kinds of judgements on the action taken are said \emph{reinforcements} \cite{michie1968boxes}.
A simple neural model for RL implementation is shown in \figname\ref{fig:aseace} and was proposed in \cite{barto1983neuronlike}.
This model is based \emph{only} on punishments: the critic never rewards the agent.

\begin{block}{The Problem Model}
The problem has been modelled as follows:
\item The car speed depends on an auxiliary control system, here modelled as a \emph{black-box} on which it is not actually possible to act or get information.
\item A set of proximity sensors (i.e. laser range-finders) are installed on the vehicle and each of them provides the distance from the sensor itself and the nearest track boundary into its range \cite{cardamone2008masterthesis}.
\item The steering control output is given by a real value in the range $[-1,1]$; positive values produce a steering left rotation, a right rotation the negative ones.
\item The steering control system does not have any kind of knowledge on the surrounding environment or the physical laws that regulate the car motion.




\begin{block}{Sensors and State Decoding}
The configuration used in this work uses only three sensors as shown in \figname{\ref{fig:msens}}: the front sensor is oriented as the major axis of the car, while the side ones have an orientation of respectively $\pm 45^{\circ}$ relative to the major axis of the car. %
\caption{Proximity sensors model.}
The range of the front sensor is up to 100mt and that of the side sensors is up to 50mt.
Two non-linear staircase quantization function for the sensors signals were used, each of them with 5 thresholds: the former with "large" thresholds for the front sensor, the latter with an higher resolution for the side sensors.



Here the actual result:


Any idea?

EDIT: the commented use of ragged2e package has been left on the example code because using \RaggedRight at the beginning of a beamer block, it results in giving a better hyphenation but seems to "resize" the lines above the figures, as they became narrower.

The bundle of the latex project (which compiles) can be found here: http://dl.dropbox.com/u/9439473/postertest.zip

Thank you in advance for your attention.

share|improve this question

closed as too localized by Paulo Cereda, percusse, Harish Kumar, Joseph Wright Aug 5 '12 at 7:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Your example does not compile; please, turn it into a compilable example. – egreg Jun 8 '12 at 10:27