doc: fix *latex related errors (V2)
Created originally on Bitbucket by frantony (Antony Pavlov)
Was already merged in Bitbucket before import, marked as merged by the import user
Source changeset not longer availableat the time of import. Commit listwill look empty
This commit series fixes the errors preventing correct documentation pdf-file creation.
Also this series fixes issue #1571 (closed).
Changes since v1:
- import missed pictures files from the ML wiki.