/* --------------------------------- chapter -------------------------------- */ Example: \chapter{Further implemented dynamical systems} \label{ch_Ap_Dyna} regex: \\chapter\{(.*?)\} \\label\{(.*?)\} replace with: # $1 {#sec-$2} /* --------------------------------- section -------------------------------- */ search: \\section\{(.*)\} \\label\{(.*?)\} replace: ## $1 {#sec-$2} /* ------------------------------- subsection ------------------------------- */ search: \\subsection\{(.*)\} \\label\{(.*?)\} replace: ### $1 {#sec-$2} /* -------------------------------- sections -------------------------------- */ [-@sec{chapers, sections, subsections}] --> without Quatroos Chapters, sections, Subsection.. see: https://quarto.org/docs/authoring/cross-references.html regex: (@sec-[\w\d]+) replace [-$1] /* ------------------------------ ref sections ------------------------------ */ syntax ## Introduction {#sec-introduction} See @sec-introduction for additional context. latex syntax: \ref{subsec_1_1_1_Principles} search make search non greedy \\ref\{(.*?)\} replace: @sec-$1 /* ------------------ ref fig,eq,chapter and more with dot ------------------ */ example: @eq-eq_1_1_MPV. --> @eq-eq_1_1_MPV . search: @([\w+\d+\.-]+)\. replace @$1 . /* ---------------------------- ref sections dot ---------------------------- */ @sec-(.*?)\. @sec-$1 . /* ----------------------------- boldsymbol math ---------------------------- */ \\bm \boldsymbol /* -------------------------- equation Equation jb -------------------------- */ /* ------------------------------- equations_0 ------------------------------ */ match all that do not start with $$ like: $$ \begin{equation} F = \dot{\vec{x}}(t) = \frac{\vec{x}(t)}{dt} = f(\vec{x}(t))^ \label{eq_1_0_DGL} \end{equation} $${#eq-eq_1_0_DGL_} match like: \begin{equation} \boldsymbol A_{3\times 3}\,(\vec{\beta}) = \begin{bmatrix} \beta_{1,1} & \beta_{1,2} & \beta_{1,3}\\ \beta_{2,1} &\beta_{2,2} & \beta_{2,3}\\ \beta_{3,1} & \beta_{3,2} &\beta_{3,3} \end{bmatrix} \label{eq_17_Dist_A} \end{equation} serach: ^(?!\$\$) (\\begin\{equation\} (.|\n)*?\\label\{(.*?)\}(.|\n)*?\\end\{equation\}) replace with: $$$$ $1 $$$$ {#eq-$3} /* ---------------------------------- eqref --------------------------------- */ \\eqref\{(.*?)\} replace: @eq-$1 /* ------------------------------ math sings_0 ------------------------------ */ /* -------------------------------- bold word ------------------------------- */ \\textbf\{(.*?)\} replace: **$1** /* ---------------------------------- tags ---------------------------------- */ repeat label see: $$ \begin{equation} \boldsymbol {A_{i \mu}} \approx \boldsymbol A^{\prime}_{i \mu} = (\boldsymbol W \boldsymbol H)_{i \mu} = \sum_{a = 1}^{r} \boldsymbol W_{ia} \boldsymbol H_{a \mu} \end{equation} $$ 2_Task/7_QT.md /* --------------------------------- italic --------------------------------- */ \\emph\{(.*?)\} *$1* /* -------------------------------- comments -------------------------------- */ tripple comment search for (%.*) (%.*) (%.*) single advanced comment, includes tripple comment (^%.*|^\s%.*|^\s+%.*) /* ---------------------------------- cite ---------------------------------- */ single cite \\cite\{([\d\s\w:-]+)\} [@$1] double cite find: \\cite\{([\d\s\w,]+)\} replace manually --> see example [@Silva2020; @Kaptanoglu2022] regex abailites: should not start with:[ --> negative look behind should not coninue with: negative look ahead (?