Is there a way to protect some part of a LaTeX-Code to avoid overwriting? (Cause I want to allocate the code to someone who shouldn't "touch" some parts of the source code.)
Edit:
% Begin: don't touch!!
\RequirePackage{fix-cm}
\documentclass[fontsize=8.5pt,DIV=calc]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{helvet}
\usepackage{geometry}
\geometry{a4paper,left=15mm,right=15mm, top=26mm, bottom=17mm}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{multicol}
\usepackage{xcolor}
\usepackage{mdframed}
\usepackage{paralist}
\setlength\parindent{0pt}
\setlength\columnsep{5mm}
\renewcommand\familydefault{\sfdefault}
\renewcommand{\labelitemi}{\textcolor{black!60}{\raisebox{0.5mm}{\rule{1.8mm}{1.8mm}}}}
\newcommand{\zitiert}[1]{\flqq{#1}\frqq}
\usepackage{enumitem}
\setitemize{leftmargin=*}
\addtokomafont{section}{\large}
\makeatletter
\renewcommand\sectionlinesformat[4]{%
\ifstr{#1}{section}
{\setlength\fboxsep{1.75mm}%
\colorbox{black!15}{\raisebox{0pt}[\height][0pt]{%
\parbox[b]{\dimexpr\linewidth-2\fboxsep\relax}{%
\raggedsection\@hangfrom{\hskip#2#3}{#4}%
}}}}
{\@hangfrom{\hskip#2#3}{#4}}%
}
\renewcommand\sectionformat{%
\makebox[10mm][r]{\thesection\autodot\hspace{5mm}}
}
\makeatother
% End: don't touch!!
\usepackage{lipsum}
\begin{document}
\begin{multicols}{2}
Some random text....
\lipsum[14]
\end{multicols}
\end{document}
The part from '% Begin: Don't touch!!' to '% End: Don't touch!!' should be "read-only"..
nottobemodified.texand include it with\input{nottobemodified}. When the file is returned, you can use your original version ofnottobemodifiedand also check with some text-comparision tool, whether your colleague's version is changed compared to yours. – gernot Feb 10 '17 at 11:06% Don't don't don't touch this part!). Or may be the opposite that gernot suggest: sendtobemodified.texwhilemain.tex(with\input{tobemodified}) is not shared, or it is flagged as read-only in the OS and in the comments (e.g:% Don't don't don't edit this file !!!). – Fran Feb 10 '17 at 11:20