Warning, /office/kile/src/internal-testing/syntax-comment-updateStruct.tex is written in an unsupported language. File is not indexed.
0001 % /***************************************************************************
0002 % begin : Mon 9 october 2006
0003 % copyright : (C) 2006 by Holger Danielsson, Thomas Braun
0004 % ***************************************************************************/
0005 %
0006 % /***************************************************************************
0007 % * *
0008 % * This program is free software; you can redistribute it and/or modify *
0009 % * it under the terms of the GNU General Public License as published by *
0010 % * the Free Software Foundation; either version 2 of the License, or *
0011 % * (at your option) any later version. *
0012 % * *
0013 % ***************************************************************************/
0014 % description: syntax file check for comments, has all commands updateStruct should grab
0015 % compiles: no
0016 %
0017
0018 \usepackage{graphicx,
0019 import,
0020 amsmath}
0021 \usepackage{floatflt,
0022 pifont,url,psfrag,booktabs}
0023 \usepackage[english]{babel}
0024 \usepackage[T1]{
0025 fontenc}
0026 % you can easily test if kile grabbed all newcommands by viewing the structure view (no ERROR sections) and by codecompletion, the commands have ascending number of h's. asdf
0027
0028 \newcommand{\bla}{}
0029 \newcommand{\blah}{test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0030 \newcommand{\blahh}%
0031 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0032 \newcommand{\blahhh}
0033 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0034 \newcommand{\blahhhh}{%
0035 test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0036 \newcommand{\blahhhhh}{
0037 test
0038 \section{ERROR}
0039 test
0040 \ensuremath{a^2 + b^2 = c^2}
0041 \section{ERROR}
0042 }
0043 \newcommand{\blahhhhhh}{
0044 test % \section{ERROR}
0045 \section{ERROR}
0046 test
0047 \ensuremath{a^2 + b^2 = c^2}
0048 \section{ERROR}
0049 }
0050 \newcommand{\blahhhhhhh}{% \section{ERROR}
0051 test \% \section{ERROR}
0052 \section{ERROR}
0053 test
0054 \ensuremath{a^2 + b^2 = c^2}
0055 \section{ERROR}
0056 }
0057 % \newcommand{\blahhhhhhhh}{test\section{ERROR}test\ensuremath{a^2 + b^2 = c^2}} as reserve
0058
0059 \newcommand{\blaeh}
0060 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0061 \newcommand{\blaehh}%
0062 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0063 \newcommand{\blaehhh}
0064 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0065 \newcommand{\blaehhhh}{%
0066 test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0067 \newcommand{\blaehhhhh}{
0068 test
0069 \section{ERROR}
0070 test
0071 \ensuremath{a^2 + b^2 = c^2}
0072 \section{ERROR}
0073 }
0074 \newcommand{% \section{ERROR}
0075 \blaehhhhhh}{test % \section{ERROR}
0076 \section{ERROR}
0077 test
0078 \ensuremath{a^2 + b^2 = c^2}
0079 \section{ERROR}
0080 }
0081 \newcommand{\blaehhhhhhh}{% \section{ERROR}
0082 test \% \section{ERROR}
0083 \section{ERROR}
0084 test
0085 \ensuremath{a^2 + b^2 = c^2}
0086 \section{ERROR}
0087 }
0088
0089 \newcommand{\blu}[1]{}
0090 \newcommand{\bluh}[1]{test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0091 \newcommand{\bluhh}[1]%
0092 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0093 \newcommand{\bluhhh}[1]
0094 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0095 \newcommand{\bluhhhh}[1]{%
0096 test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0097 \newcommand{\bluhhhhh}[1]{
0098 test
0099 \section{ERROR}
0100 test
0101 \ensuremath{a^2 + b^2 = c^2}
0102 \section{ERROR}
0103 }
0104 \newcommand{\bluhhhhhh}[1]{
0105 test % \section{ERROR}
0106 \section{ERROR}
0107 test
0108 \ensuremath{a^2 + b^2 = c^2}
0109 \section{ERROR}
0110 }
0111 \newcommand{\bluhhhhhhh}[1]{
0112 test \% \section{ERROR}
0113 \section{ERROR}
0114 test
0115 \ensuremath{a^2 + b^2 = c^2}
0116 \section{ERROR}
0117 }
0118
0119 \newcommand{\bloe}[3][stdarg]{}
0120
0121 \newcommand{\bloeh}[3][stdarg]{test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0122 \newcommand{\bloehh}[3][stdarg]%
0123 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0124 \newcommand{\bloehhh}[3][stdarg]
0125 {test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0126 \newcommand{\bloehhhh}[3][stdarg]{%
0127 test \section{ERROR} test \ensuremath{a^2 + b^2 = c^2}}
0128 \newcommand{\bloehhhhh}[3][stdarg]{
0129 test
0130 \section{ERROR}
0131 test
0132 \ensuremath{a^2 + b^2 = c^2}
0133 \section{ERROR}
0134 }
0135 \newcommand{\bloehhhhhh}[3][stdarg]{
0136 test % \section{ERROR}
0137 \section{ERROR}
0138 test
0139 \ensuremath{a^2 + b^2 = c^2}
0140 \section{ERROR}
0141 }
0142 \newcommand{\bloehhhhhhh}[3][stdarg]{
0143 test \% \section{ERROR}
0144 \section{ERROR}
0145 test
0146 \ensuremath{a^2 + b^2 = c^2}
0147 \section{ERROR}
0148 }
0149 \newcommand{\bloehhhhhhhh}[3][]{\hallo} % is also valid latex ...
0150
0151 \providecommand{\bloehhhhhhhhh}{test} % not yet supported
0152
0153 \newenvironment{hello}{test \%}{\section{ERROR}}
0154 \newenvironment{helloo}[2]{test \%}{\section{ERROR}}
0155 \newenvironment{hellooo}[3][stdarg]{test \%}{\section{ERROR}} % also not yet supported
0156
0157 \renewcommand{\section}[2]{asd} % also missing
0158 \input{helloo} %allowed in preamble
0159
0160 \iffalse
0161 \addunit{\knoelks}{knoe} % needed for fancyunits
0162 \fi
0163
0164 \DeclareMathOperator{\destroyer}{D}
0165 \DeclareMathOperator*{\destroyerr}{D}
0166
0167 \bibliographystyle{plain}
0168
0169 \begin{document}
0170 \input{hello}
0171 \input{./hello}
0172 \input{/home/thomas/devel/svn/office-trunk/kile/kile/internal-testing/hello} % change this to your local absolute path
0173
0174 \include{hello}
0175 \include{./hello}
0176
0177 \iffalse \include{/home/thomas/devel/svn/office-trunk/kile/kile/internal-testing/hello}
0178 \fi % http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/2904, may not work with your setup
0179
0180 \import{/home/thomas/devel/svn/office-trunk/kile/kile/internal-testing}{hello}
0181 % new, see #128227
0182
0183 \begin{figure}[htb]
0184 blubb
0185 \includegraphics{./teppich.eps}
0186 \end{figure}
0187
0188 \begin{figure}[htb]
0189 \includegraphics[width=2cm,
0190 bb=0 0 120 101]{teppich.eps}
0191 \label{picture---}
0192 \end{figure}
0193
0194 \begin{figure}[b!]
0195 \centering
0196 \psfrag{xtitle}{$\alpha$ [asasa]}
0197 \psfrag{ytitle}{$R$ [asdas]}
0198 \includegraphics{teppich.eps}
0199 \caption{blubb}
0200 \label{fig:stuff}
0201 \end{figure}
0202
0203 \begin{table}[h]
0204 \centering
0205 \begin{tabular}{cccc}
0206 $m_p$ & $R_p$ & $m_s$ & $R_s$ \\ \toprule
0207 0,105(6)&28,6(1,6)&69(3)&43,5(1,9) \\ \bottomrule
0208 \end{tabular}
0209 \caption{Si-Dunkelkennlinie}
0210 \label{tab:si-ivt-dunkel}
0211 \vspace{1cm}
0212 \end{table}
0213
0214 \label{asdf}
0215 \ref{asdf}
0216 \pageref{asdf}
0217 \ref{picture---}
0218
0219 \part{-1}
0220 \chapter{0}
0221 \section{A}
0222 \subsection{KHL}
0223 \subsubsection{C}
0224 \paragraph{% should jump to first position of textstring
0225 D}
0226 \subparagraph{E}
0227
0228 \part*{-1}
0229 \chapter*{0}
0230 \section*{A}
0231 \subsection*{B}
0232 \subsubsection*{C}
0233 \paragraph*{% should jump to first position of textstring
0234 D}
0235 \subparagraph*{E}
0236
0237 \iffalse
0238 \bibliography{test,./test,/home/thomas/devel/svn/office-trunk/kile/kile/internal-testing/test,test.bib,./test.bib,test2.bib} % where test2.bib lies in a directory referenced in $BIBINPUTS
0239 \fi
0240
0241 %\section{111}
0242 %\section{%222}
0243 \%%\section{333}
0244 \%%\section{%444}
0245 \%\section{555}
0246 \%\section{666}
0247 \\\section{777}
0248 \\\section{%888
0249 999} adsdfgsdfg sdfgsfdga sadfgsdf
0250 \\\%\section{aaa}
0251 \\\%\section{%bbb
0252 ccc}
0253
0254 % \section{ERROR}
0255 % \section{ERROR} \% \section{ERROR}
0256 % % \section{ERROR}
0257 \% \section{blubb}
0258 \% \section{blahh} % \section{ERROR}
0259 \% \section{nix} \% \section{garnix}
0260 ab % \section{ERROR}
0261 bc \% \section{hallo} % \section{ERROR}
0262 de % \section{ERROR} % \section{ERROR}
0263
0264 \section{% \section{ERROR}
0265 comment}
0266
0267 \section{%
0268 comment}
0269
0270 Test 1
0271
0272 \includegraphics[width=2cm,bb=0 0 120 101]{teppich.eps}
0273 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0274
0275 Test 2
0276
0277 \includegraphics[
0278 width=2cm,bb=0 0 120 101]{teppich.eps}
0279 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0280
0281 Test 3
0282
0283 \includegraphics[
0284 width=2cm,
0285 bb=0 0 120 101]{teppich.eps}
0286 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0287
0288
0289 Test 4
0290
0291 \includegraphics[%
0292 width=2cm,bb=0 0 120 101]{teppich.eps}
0293 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0294
0295
0296 Test 5
0297
0298 \includegraphics[%
0299 width=2cm,
0300 bb=0 0 120 101]{teppich.eps}
0301 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0302
0303 Test 6
0304
0305 \includegraphics[width=2cm, % kommentar {abc}
0306 bb=0 0 120 101]{teppich.eps}
0307 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0308
0309
0310 Test 7
0311
0312 \includegraphics[width=2cm,% kommentar {abc}
0313 bb=0 0 120 101 % kommentar def
0314 ]{teppich.eps}
0315 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0316
0317 Test 8
0318
0319 \includegraphics
0320 [width=2cm,bb=0 0 120 101]{teppich.eps}
0321 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0322
0323 Test 9
0324
0325 \includegraphics %
0326 [width=2cm,bb=0 0 120 101]{teppich.eps}
0327 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0328
0329 Test 10
0330
0331 \% \includegraphics %
0332 [width=2cm,bb=0 0 120 101]{teppich.eps}
0333 % teppich.eps: 160x135 pixel, 96dpi, 4.23x3.57 cm, bb=0 0 120 101
0334
0335 \begin{thebibliography}{bbxsec}
0336 \bibitem{prop}
0337 T.~Lohse et al., {\em An Experiment to Study CP Violation in the
0338 $B$ System Using an Internal Target at the HERA Proton Ring},
0339 Proposal, {\bf DESY-PRC 94/02} (1994).
0340 \bibitem{PDG} Particle Data Group, Review of Particle Properties,
0341 Eur. Phys. J. {\bf C15} (2000).
0342 \bibitem{bbxsec} P.~Nason, S.~Dawson and K.R.~Ellis,
0343 \bf{303}{1988}{607};
0344 {\bf B327} (1989) 49; {\bf B335} (1990) 260.
0345 \end{thebibliography} % taken from http://www-hera-b.desy.de/general/publications/hb2k/report/target/target.bib