\documentclass{book}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[gen]{eurosym}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage{etoolbox}
\usepackage{titleps}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{float}
% use hidelinks to remove boxes around links to be similar to Texinfo TeX
\usepackage[hidelinks]{hyperref}

\makeatletter
\newcommand{\Texinfosettitle}{No Title}%
\newcommand{\Texinfotheinclude}{}%

% redefine the \mainmatter command such that it does not clear page
% as if in double page
\renewcommand\mainmatter{\clearpage\@mainmattertrue\pagenumbering{arabic}}
\newenvironment{Texinfopreformatted}{%
  \par\GNUTobeylines\obeyspaces\frenchspacing\parskip=\z@\parindent=\z@}{}
{\catcode`\^^M=13 \gdef\GNUTobeylines{\catcode`\^^M=13 \def^^M{\null\par}}}
\newenvironment{Texinfoindented}{\begin{list}{}{}\item\relax}{\end{list}}

% used for substitutions in commands
\newcommand{\Texinfoplaceholder}[1]{}

\newpagestyle{single}{\sethead[\chaptername{} \thechapter{} \chaptertitle{}][][\thepage]
                              {\chaptername{} \thechapter{} \chaptertitle{}}{}{\thepage}}

\newpagestyle{double}{\sethead[\thepage{}][][\Texinfosettitle]
                              {\chaptername{} \thechapter{} \chaptertitle{}}{}{\thepage}}

% allow line breaking at underscore
\let\Texinfounderscore\_
\renewcommand{\_}{\Texinfounderscore\discretionary{}{}{}}
\renewcommand{\includegraphics}[1]{\fbox{FIG \detokenize{#1}}}

\makeatother
% set default for @setchapternewpage
\makeatletter
\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\Texinfoplaceholder{setchapternewpage placeholder}\clearpage}{}{}
\makeatother
\pagestyle{single}%

\makeatletter
\patchcmd{\chapter}{\Texinfoplaceholder{setchapternewpage placeholder}\clearpage}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}
\makeatother
\pagestyle{double}%
\newpagestyle{custom}{%
\sethead[\thepage{}][\Texinfotheinclude{}][\chaptername{} \thechapter{} \chaptertitle{}]%
{\thepage{}}{\Texinfotheinclude{}}{\chaptername{} \thechapter{} \chaptertitle{}}%
}%
\pagestyle{custom}%

\begin{document}
\tableofcontents\newpage
\label{anchor:Top}%
\chapter{{chap in main}}
\label{anchor:in-main}%

\renewcommand{\Texinfotheinclude}{section\_file.texi}%
\textbackslash{}input texinfo 

\chapter{{Chapter in included file}}
\label{anchor:Chapter-in-included-file}%


\section{{Section}}
\label{anchor:Section}%


\subsection{{Subsection}}
\label{anchor:Subsection}%

\renewcommand{\Texinfotheinclude}{}%

\renewcommand{\Texinfotheinclude}{section\_file\_no\_node.texi}%


\chapter{{Chapter in included file}}

\section{{Section}}

\subsection{{Subsection}}

\renewcommand{\Texinfotheinclude}{}%

\renewcommand{\Texinfotheinclude}{section\_file\_no\_node\_include.texi}%


\chapter{{Chapter in included file Include}}

\section{{Section Include}}

\subsection{{Subsection Include}}


Now include file
\renewcommand{\Texinfotheinclude}{section\_file\_no\_node.texi}%


\chapter{{Chapter in included file}}

\section{{Section}}

\subsection{{Subsection}}

\renewcommand{\Texinfotheinclude}{section\_file\_no\_node\_include.texi}%

\renewcommand{\Texinfotheinclude}{}%

\renewcommand{\Texinfotheinclude}{section\_file\_no\_node.texi}%


\chapter{{Chapter in included file}}

\section{{Section}}

\subsection{{Subsection}}

\renewcommand{\Texinfotheinclude}{}%


\chapter{{A last}}
\label{anchor:last-chap}%

\end{document}
