# Adding new parameter in lyx

In texmaker, I create document_setting.tex for input some document attribution like the author, publisher, some attribution in acknowledgements. And then input document_setting in master document report.tex.

Here is a command for a new variable, in gayaan.sty I write:



In document_setting.tex :

\Var{\titling}{Analisis dan Penghitungan Tingkat Kemiskinan}
\var{\subdir}{Subdirectorate of Constraction Statistics}
\var{\nopublication}{05340.1002}


In report.tex :

\documentclass{memoir}
\usepackage{gayaan}
\usepackage{lipsum}

\input{document_setting}

\begin{document}

\textbf{\Large{\titling}}
\subdir
\nopublication

\chapter{Introduction}
\lipsum[5]
\section{example}
\lipsum[5]

\end{document}


And the result is success, but I can't do this in Lyx. Does anyone know how to do it in lyx? Create something like document-setting.tex?

-

You could open "Document settings" in the LyX main menu and put \input{document_setting} into the document preamble, or the corresponding code lines.