listings
package provides an elegant way to include an external programming source code as demonstrated below.
Assume that you have an external programming source code named project.cs
:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
You can import the code from within your report.
\documentclass{report}
\usepackage{xcolor}
\usepackage{listings}
\lstset
{
basicstyle=\tt\scriptsize,
identifierstyle=\color{blue},
commentstyle=\color{red},
breaklines=true,
backgroundcolor=\color{yellow!30},
numbers=none,
language=[Sharp]C
}
\begin{document}
\lstinputlisting{project.cs}
\end{document}
Output:
For further details how to use listings
package, run texdoc listings
to show the listings
package manual. There are too many options that I cannot show one by one.
For drawing UML, you can use PSTricks package named as pst-uml
.
That's kind of difficult so say. Are you writing this report just for you or would you like to hand it in as a paper for a magazine or a university?
If you just do it on your own, you can do mainly everything you like. Maybe How to customize the standard report template is a first starting point.
If you want to hand your report in, the magazine or university or whatever may have a complete template or style-guide, how the report should look. The best solution then is to ask them about a template or style-guide and start from there.
Best Answer
As you wish:
https://www.overleaf.com/latex/templates/national-school-of-engineers-of-sfax-enis-report/xjrnfvzfxqrn#.VzBuF0JcFpg
or you can search an other on
https://www.overleaf.com/latex/templates/