I am working on my thesis, but I came to a problem with unbreakable space in latex using tilde. It does an unbreakable space, but puts both words on previous line so the line is longer and at the end a black square appears. How can I command it to put the words on the next line.
I am using TexStudio and this header:
\documentclass[12pt,a4paper]{report}
\setlength\textwidth{145mm}
\setlength\textheight{247mm}
\setlength\oddsidemargin{15mm}
\setlength\evensidemargin{15mm}
\setlength\topmargin{0mm}
\setlength\headsep{0mm}
\setlength\headheight{0mm}
\let\openright=\clearpage
%% Generate PDF/A-2u
\usepackage[a-2u]{pdfx}
%% Character encoding: usually latin2, cp1250 or utf8:
\usepackage[utf8]{inputenc}
%% Prefer Latin Modern fonts
\usepackage{lmodern}
%% Further useful packages (included in most LaTeX distributions)
\usepackage{amsmath} % extensions for typesetting of math
\usepackage{amsfonts} % math fonts
\usepackage{amsthm} % theorems, definitions, etc.
\usepackage{bbding} % various symbols (squares, asterisks, scissors, ...)
\usepackage{bm} % boldface symbols (\bm)
\usepackage{graphicx} % embedding of pictures
\usepackage{fancyvrb} % improved verbatim environment
\usepackage{natbib} % citation style AUTHOR (YEAR), or AUTHOR [NUMBER]
\usepackage[nottoc]{tocbibind} % makes sure that bibliography and the lists
% of figures/tables are included in the table
% of contents
\usepackage{dcolumn} % improved alignment of table columns
\usepackage{booktabs} % improved horizontal lines in tables
\usepackage{paralist} % improved enumerate and itemize
\usepackage[usenames]{xcolor} % typesetting in color
\usepackage{acro}
\usepackage{listings}
EDIT: The problem still remains even without the tilde.
\\
or you may reword a bit, but to be honest the best thing to do is to let LaTeX do its justification work, because breaking before these two words will look horrible.-
inMiddle-European
prevents hyphenation you could useMiddle-\hspace{0pt}European