I was wondering whether it would be possible to edit the titles and the entities displayed in the structure bar of texstudio? Firstly I have code inside the \part titles, which the structure bar writes out, rather than just display the name of the part. I have tried taking the code out, and placing it around the \part command but obviously that did not work, and the code had no effect on the font.
Secondly, I am keeping my chapters in separate .txt files in order to make it easier and more manageable for me to locate various errors and information. However, this means, that the chapters and sections are not displayed in the structure. Rather, the file names are displayed, and I have to click each one to see the list of headings, which does not fold out underneath the names of the input files, but instead at the bottom of the list of parts and input files. Is it possible to change the settings such that either or both of these issues goes away? Or to solve it in any other way?
Minimal Example
\documentclass[12pt,a4paper,onecolumn,oneside,final]{memoir}
\usepackage[english]{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{newcent}
\usepackage[utf8x]{inputenc}
\begin{document}
\clearpage
\chapterstyle{hangnum1}
\part*{\textsc{\fontsize{35}{45}\selectfont{Part title 1}}}
\input{1.txt}
\part*{\textsc{\fontsize{35}{45}\selectfont{Part title 2}}}
\input{2.txt}
\part*{\textsc{\fontsize{35}{45}\selectfont{Part title 3}}}
\input{3.txt}
\end{document}
Content of .txt files
1.txt:
\chapter{chapter title 1}
2.txt:
\chapter{chapter title 2}
3.txt:
\chapter{chapter title 3}