I am a candidate for a phd in computer science. During my master i've had to write a memoir. Because in my university Latex is overused compared to lyx that is almost never used nor known, i've written my memoir using lyx. The end result is a lyx master file with subdocuments.
In the master file, i needed to put some latex in the preamble of this file. Since a few teachers left latex templates, i used one of them and did the work on lyx to optimise the time.
Code: Select all
\usepackage{palatino}\usepackage{amsfonts}\usepackage{multirow}\usepackage{colortbl}\usepackage{xspace}\usepackage{varioref}\usepackage{xcolor}\usepackage{graphicx}\usepackage{appendix}\newcommand{\version}[1]{\def\theversion{#1}}\newcommand{\subtitle}[1]{\def\thesubtitle{#1}}\newcommand{\authors}[1]{\def\theauthors{#1}\author{#1}}\newcommand{\supervisor}[1]{\def\thesupervisor{#1}}\newcommand{\tutor}[1]{\def\thetutor{#1}}\newcommand{\authorname}{Author}\newcommand{\authorsname}{Authors}\newcommand{\supervisorname}{Supervisor}\newcommand{\tutorname}{Tutor}\newcommand{\thepartname}{Part}\ifdefined\addto{%\addto{\captionsfrench}{\renewcommand{\authorname}{Auteur}}%\addto{\captionsfrench}{\renewcommand{\authorsname}{Auteurs}}%\addto{\captionsfrench}{\renewcommand{\supervisorname}{Superviseur}}%\addto{\captionsfrench}{\renewcommand{\tutorname}{Tuteur}}}\addto{\captionsfrench}{\renewcommand{\thepartname}{Partie}}\else{}\fi\pretitle{\flushleft\Huge\textsf}\posttitle{\\[-.65em]\rule{\linewidth}{1.5mm}\\[-.65em]\ifx\thesubtitle\undefined%\else%\hfill{\small\itshape \thesubtitle}%\fi\centering