diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -417,6 +417,7 @@
add_subdirectory(data)
add_subdirectory(icons)
add_subdirectory(src)
+add_subdirectory(doc)
IF (ENABLE_LIBORIGIN)
add_subdirectory(liborigin)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -2,3 +2,4 @@
#
#
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR ${PROJECT_NAME})
+kdoctools_create_manpage(man-labplot2.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
diff --git a/doc/man-labplot2.1.docbook b/doc/man-labplot2.1.docbook
new file mode 100644
--- /dev/null
+++ b/doc/man-labplot2.1.docbook
@@ -0,0 +1,101 @@
+
+
+]>
+
+
+
+
+LabPlot User's Manual
+HelenFaulkner
+LabPlot man page.
+helen_ml_faulkner@yahoo.co.uk
+2018-09-28
+LabPlot 2.6
+KDE Extragear Applications
+
+
+
+labplot2
+1
+
+
+
+labplot2
+a KDE-application for interactive graphing and analysis of scientific data.
+
+
+
+
+ labplot2
+ generic-options
+ file
+
+
+
+
+Description
+
+ LabPlot is a data plotting and analysis tool for the Plasma desktop.
+
+
+ Its features include 2D and 3D data and function plotting, easy editing of plots, analysis of data and functions, support for different worksheets using MDI and LabPlot project files.
+
+
+ Note that LabPlot is called using labplot2.
+
+
+
+
+Options
+
+ For a full summary of generic options, run labplot2--help.
+
+
+
+Arguments
+
+
+
+
+ An address of the project to be opened.
+
+
+
+
+
+
+See Also
+
+Full user documentation is available through the KDE Help Centre.
+You can also enter the URL help:/labplot2
+(either enter this URL into &dolphin;, or run
+khelpcenter
+help:/labplot2).
+kf5options(7)
+qt5options(7)
+There is also further information available at
+https://labplot.kde.org/
+
+
+
+Authors
+
+ LabPlot2 was written by
+
+
+ Stefan Gerlach <stefan.gerlach@uni.kn>,
+ Alexander Semke <alexander.semke@web.de>,
+ Fábián Kristóf-Szabolcs <f-kristof@hotmail.com>
+ and several other authors.
+
+
+ This manual page was prepared by Helen Faulkner <helen_ml_faulkner@yahoo.co.uk> for the Debian GNU/Linux system (but may be used by others).
+
+
+ License: GNU General Public Version 2 <http://www.gnu.org/licenses/gpl-2.0.html>
+
+
+
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -470,5 +470,4 @@
install( PROGRAMS org.kde.labplot2.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES labplot2.xml DESTINATION ${XDG_MIME_INSTALL_DIR} )
install( FILES labplot2_themes.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
-install( FILES labplot2.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )
update_xdg_mimetypes( ${XDG_MIME_INSTALL_DIR} )
diff --git a/src/labplot2.1 b/src/labplot2.1
deleted file mode 100755
--- a/src/labplot2.1
+++ /dev/null
@@ -1,51 +0,0 @@
-.\" Hey, EMACS: -*- nroff -*-
-.\" First parameter, NAME, should be all caps
-.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
-.\" other parameters are allowed: see man(7), man(1)
-.\" Please adjust this date whenever revising the manpage.
-.\"
-.\" Some roff macros, for reference:
-.\" .nh disable hyphenation
-.\" .hy enable hyphenation
-.\" .ad l left justify
-.\" .ad b justify to both left and right margins
-.\" .nf disable filling
-.\" .fi enable filling
-.\" .br insert line break
-.\" .sp insert n+1 empty lines
-.\" for manpage-specific macros, see man(7)
-.TH "LabPlot" "1" "September 29, 2018" "" ""
-.SH "NAME"
-LabPlot \- a KDE-application for interactive graphing and analysis of scientific data.
-.SH "SYNOPSIS"
-.B labplot2
-[ \fIgeneric\-options\fP ]
-[ \fIfile\fP ... ]
-
-
-
-.SH "DESCRIPTION"
-\fBLabPlot\fP is a data plotting and analysis tool for the KDE desktop.
-.PP
-Its features include 2D and 3D data and function, plotting, easy editing of plots, analysis of data and functions, support for different worksheets using MDI and LabPlot project files.
-.PP
-Note that LabPlot is called using labplot2.
-.SH "OPTIONS"
-For a full summary of options, run \fIlabplot2 \-\-help\fP.
-
-
-
-.SH "SEE ALSO"
-Full user documentation is available through the KDE Help Centre.
-You can also enter the URL
-\fIhelp:/labplot2/\fP
-directly into dolphin or you can run
-`\fIkhelpcenter help:/labplot2/\fP'
-from the command\-line.
-.PP
-
-.SH "AUTHOR"
-LabPlot2 was written by Stefan Gerlach , Alexander Semke , Fábián Kristóf-Szabolcs and several other authors.
-.br
-This manual page was prepared by Helen Faulkner
-for the Debian GNU/Linux system (but may be used by others).