From 0d5de031280c67a229236863c5f1ff0e761edec3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Tue, 24 Apr 2007 22:35:37 +0000 Subject: [PATCH] remove decimal.lyx as its content is in the EmbeddedObjects manual git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17960 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/examples/decimal.lyx | 271 --------------------------------------- 1 file changed, 271 deletions(-) delete mode 100644 lib/examples/decimal.lyx diff --git a/lib/examples/decimal.lyx b/lib/examples/decimal.lyx deleted file mode 100644 index 0e28e018a1..0000000000 --- a/lib/examples/decimal.lyx +++ /dev/null @@ -1,271 +0,0 @@ -#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/ -\lyxformat 245 -\begin_document -\begin_header -\textclass article -\begin_preamble -\usepackage{dcolumn} -\newcolumntype{d}[1]{D{.}{.}{#1}} -\end_preamble -\language english -\inputencoding latin1 -\fontscheme default -\graphics default -\paperfontsize default -\spacing single -\papersize default -\use_geometry false -\use_amsmath 0 -\cite_engine basic -\use_bibtopic false -\paperorientation portrait -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\defskip medskip -\quotes_language english -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes true -\end_header - -\begin_body - -\begin_layout Title - -A Better Decimal-Alignment Solution -\end_layout - -\begin_layout Standard - -An alternative way to have decimal alignment in tables is through the dcolumn - package. - Add the following to the LateX preamble: -\end_layout - -\begin_layout LyX-Code - - -\backslash -usepackage{dcolumn} -\end_layout - -\begin_layout LyX-Code - - -\backslash -newcolumntype{d}[1]{D{.}{.}{#1}} -\end_layout - -\begin_layout Standard - -To have a column decimally aligned, enter in the -\family sans -Special Column Alignment -\family default - box of the -\family sans -Table extra -\family default - form the following: -\end_layout - -\begin_layout LyX-Code - -d{number of decimals of the data} -\end_layout - -\begin_layout Standard - -In the following table we entered -\family typewriter -d{4} -\family default -: -\end_layout - - -\begin_layout Standard - - -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - -\begin_layout Standard -\align center - -\begin_inset Tabular - - - - - - -\begin_inset Text - -\begin_layout Standard - -Expression -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -Value -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -3.1416 -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -36.462 -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -80663. -\end_layout - -\end_inset - - - - -\begin_inset Text - -\begin_layout Standard - -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard - -1.3402e18 -\end_layout - -\end_inset - - - - -\end_inset - - -\end_layout - -\begin_layout Standard - - -\begin_inset VSpace 0.3cm -\end_inset - - -\end_layout - - -\begin_layout Standard - -To create extra column space just increase the number of decimals in -\family typewriter -d{} -\family default -. - Setting the multicolumn attribute for a single cell makes it insensitive - to the decimal alignment which comes in handy as well. - A drawback of this method is that math mode is not allowed in a column - with decimal alignment except if the multicolumn attribute is set. -\end_layout - -\begin_layout Standard - -This method offers the same flexibility as the -\family typewriter -dcolumn -\family default - package. - One could, for example, change the alignment separator, and have different - alignment separators for different columns by defining multiple column - types in the preamble. - The syntax is as follows: -\end_layout - -\begin_layout LyX-Code - -D{inputsep}{outputsep}{decimal places} -\end_layout - -\begin_layout Standard - -The interested reader is directed towards the -\family typewriter -dcolumn -\family default - package documentation for more details. -\end_layout - -\end_body -\end_document -- 2.39.2