]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-insets.tex
Set use_non_tex_fonts buffer parameter and default encoding correctly when we detect...
[lyx.git] / src / tex2lyx / test / test-insets.tex
index 5ffbc6e88dc05c62640b09b7256b1785a9a1db74..8e086e7ec741a82ea86128b1ecf5b4b11f4e9893 100644 (file)
@@ -114,41 +114,45 @@ M., \& Rasio, F.~A. 2004, ApJ, 604, 632\end{thebibliography}
 \section{Input files\index{Input files}}
 
 We can input files too, like this \input{DummyDocument}, or with the include
-variant \include{DummyDocument} % unfortunately, including the doc twice
-% generates a multiply defined label
+variant \include{DummyDocument} % unfortunately, including the doc twice generates a multiply defined label
 
-If you prefer verbatim input, you can choose
-between~\verbatiminput{foo} or~\verbatiminput*{foo}.
+We can also import chess diagrams:
 
+\loadgame{../../../lib/examples/iecc05}\showboard
 
-\section{URL\index{URL}\nomenclature[www]{URL}{uniform resource locator}}
+Spreadsheets:
 
-An URL: \url{http://www.lyx.org}
-\nomenclature{URL2}{uniform resource locator}
+\def\inputGnumericTable{}\input{../../../lib/examples/longsheet.gnumeric}
 
+and PDF pages:
 
-\section{Lists\index{Lists}}
+\includepdf[pages=-,angle=22,origin=Bl,width=5cm,height=40mm,keepaspectratio]{../../../lib/examples/beamer-icsi-logo}
 
-\listoffigures
-\listoftables
+If you prefer verbatim input, you can choose
+between~\verbatiminput{foo} or~\verbatiminput*{foo}.
 
 
-\section{Phantoms}
+\section{URLs and Hyperlinks\index{URL}\nomenclature[www]{URL}{uniform resource locator}}
 
-test\hphantom{Wow}test
+An URL: \url{http://www.lyx.org} \nomenclature{URL2}{uniform resource locator}
 
-test\phantom{\textcolor{green}{W}\textbf{ow}\textsuperscript{Wow}}test
+link:\href{http://www.test.test}{www.test.test}
 
-test\vphantom{Wow\textbackslash{}\&\%}test
+link2:\href{http://www.test.test}{http://www.test.test}
 
-$test\hphantom{Wow}test$
+mail:\href{mailto:www.test.test}{name}
 
-\[
-test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test
-\]
+file:\href{file:www.test.test}{www.test.test}
 
+ftp:\href{ftp://www.test.test}{ftp://www.test.test}
 
-$test\vphantom{Wow\&\%}test$
+ftp2:\href{ftp://www.test.test}{www.test.test}
+
+
+\section{Lists\index{Lists}}
+
+\listoffigures
+\listoftables
 
 
 \section{Graphics\index{Graphics}}
@@ -265,6 +269,97 @@ Lots of lines& like this.\\
 Lots of lines& like this.
 \end{longtable}
 
+From bug 7412 another example with more captions (can currently not produced in LyX):
+\begin{longtable}{|l|l|}
+\caption{A long table}
+\endfirsthead
+\caption{A long table -- continued}
+\endhead
+\multicolumn{2}{r}{{Continued on next page}}
+\tabularnewline
+\endfoot
+\endlastfoot
+\hline
+\multicolumn{1}{|c|}{Something} & \multicolumn{1}{c|}{Description}\tabularnewline
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline Lots of lines& like this.\\
+\hline
+\end{longtable}
+
+A table*:
+
+\begin{tabular*} % some comment
+{0.8\columnwidth}[b]{lr}
+two\\
+lonely&lines
+\end{tabular*}
+
+A booktabs table:
+
+\begin{table}[h]
+\caption{\label{tab:Special-booktabs-table}Special booktabs-table}
+
+
+\centering{}%
+\begin{tabular}{cccc}
+\toprule 
+System & Chip\,1 & \multicolumn{2}{c}{Chip\,2}\tabularnewline
+\cmidrule(r){2-2}\cmidrule(l){3-4}\morecmidrules \cmidrule{2-4}Detector
+thickness in \textmu{}m & 300 & 300 & 700\tabularnewline
+\midrule 
+Edge angle in \textdegree{} & 3.55 & 2.71 & 7.99\tabularnewline
+\addlinespace
+Spatial resolution in \textmu{}m & 4.26 & 10.17 & 10.56\tabularnewline
+\addlinespace
+MTF at $f_{\mathrm{max}}$ & 0.53 & 0.37 & 0.39\tabularnewline
+\midrule 
+\morecmidrules \cmidrule{3-4}LSF-spatial resolution &  &  & \tabularnewline
+in \textmu{}m & 129.7 & 52.75 & 50.78\tabularnewline
+in \% of pixel size & 76.3 & 95.9 & 92.3\tabularnewline
+\bottomrule
+\end{tabular}
+\end{table}
+
+
 \section{Macros}
 
 LyX supports several kinds of macros:
@@ -326,6 +421,24 @@ test
 \textcolor{red}{\rule[-4ex]{5in}{1cm}}
 
 
+\subsection{Phantoms}
+
+test\phantom{Wow}test
+
+test\hphantom{\textcolor{green}{W}\textbf{ow}\textsuperscript{Wow}}test
+
+test\vphantom{Wow\textbackslash{}\&\%}test
+
+$test\hphantom{Wow}test$
+
+\[
+test\phantom{\textcolor{green}{W}\mathbf{ow}\textsuperscript{Wow}}test
+\]
+
+
+$test\vphantom{Wow\&\%}test$
+
+
 \subsection{Line breaks}
 
 They can also or be broken by a newline\\
@@ -379,6 +492,11 @@ with $a^2+b^2=c^2$ math}.
 
 \printindex{}
 
+\printnomenclature hello
+
+\settowidth{\nomlabelwidth}{URL2}
 \printnomenclature{}
 
+\printnomenclature[0.02\linewidth]{}
+
 \end{document}