Re: problem with dcolumn
Dipl.-Ing. Robert Sauerbrey schrieb: Hi there! I have a rather strange problem with the package dcolumn, which I could only track down after some frustrating hours of work. It´s no problem to correctly align the values on the decimal point in the middle of the column and view the result with Acrobat Reader AS LONG as the font size remains on normal. If I change this to an arbitrarily chosen size, e.g. big or small, I get a pretty amount of errors while trying to convert to PDF. For example I get something like this: missing } inserted {footnotesize 104.1} I have no ideas left, what might be wrong (sigh). I´m running Lyx 1.2.2 on Windows XP SP1. I´ve added an example file which demontrates this problem. Font size is on the default setting "normal" at the moment, but if changed, the errors start coming in low. attached the running file. Look into the preamble, I changed the newcolumntype and commented out two commands, which are unknown to me (maybe that they are part of komascript(???) Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/ #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass scrbook \begin_preamble \@addtoreset{equation}{chapter} \renewcommand{\theequation}{\thechapter.\arabic{equation}} \@addtoreset{table}{chapter} \renewcommand{\thetable}{\thechapter.\arabic{table}} \@addtoreset{figure}{chapter} \renewcommand{\thefigure}{\thechapter.\arabic{figure}} %\renewcommand{\sectfont}{\rmfamily\bfseries} %\setlength{\abovecaptionskip}{0.2cm} % 1cm as an example %\setlength{\belowcaptionskip}{0.2cm} % 1cm as an example \renewcommand\arraystretch{1.5} % 1.0 ist Normalabstand für Tabelle \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter\ #1}}{}} \renewcommand{\sectionmark}[1]{\markright{\it{\thesection\ #1}}} \fancyhf{} \fancyhead[LE,RO]{\thepage} \fancyhead[LO]{\rightmark} \fancyhead[RE]{\leftmark} \fancypagestyle{plain}{% \fancyfoot{} \fancyhead[LE,RO]{\thepage} % get rid of headers } \renewcommand\headrulewidth{0pt} \renewcommand\footrulewidth{0pt} \widowpenalty=1 \clubpenalty=1 \usepackage{pdflscape} \usepackage{color} \definecolor{darkred}{rgb}{0.5,0,0} \definecolor{darkgreen}{rgb}{0,0.4,0.3} \definecolor{darkblue}{rgb}{0,0,0.5} \usepackage{ccaption} % that is double c \captionnamefont{\bfseries} \captiontitlefont{\it} \usepackage{array} \usepackage{dcolumn} \newcolumntype{.}[1]{D{.}{.}{-1}} \usepackage{hyperref} \end_preamble \language german \inputencoding auto \fontscheme pslatex \graphics default \float_placement htb \paperfontsize default \spacing single \papersize a4paper \paperpackage widemarginsa4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle fancy \layout Standard \begin_inset Float table wide false collapsed false \layout Caption Test \layout Standard \begin_inset Tabular \begin_inset Text \layout Standard Legierung \end_inset \begin_inset Text \layout Standard Bearbeitung \end_inset \begin_inset Text \layout Standard E-Modul [GPa] \end_inset \begin_inset Text \layout Standard \begin_inset Formula $\sigma _{S}$ \end_inset [MPa] \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard CP Titan grade 1 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard 102.7 \end_inset \begin_inset Text \layout Standard 170 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \family roman \series medium \shape up \size normal \emph off \bar no \noun off \color none CP Titan grade \family default \series default \shape default \size default \emph default \bar default \noun default \color default 2 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard 102.76 \end_inset \begin_inset Text \layout Standard 75.6 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \family roman \series medium \shape up \size normal \emph off \bar no \noun off \color none CP Titan grade \family default \series default \shape default \size default \emph default \bar default \noun default \color default 3 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard 1103.4 \end_inset \begin_inset Text \layout Standard 3801.6 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \family roman \series medium \shape up \size normal \emph off \bar no \noun off \color none CP Titan grade \family default \series default \shape default \size default \emph default \bar default \noun default \color default 4 \e
Re: problem with dcolumn
On Tue, Jan 21, 2003 at 01:50:22PM +0100, Dipl.-Ing. Robert Sauerbrey wrote: > I have no ideas left, what might be wrong (sigh). Looks like the columntype you define only understands numbers, but not {\huge 100.2}. I've never used the dcolumn package, though. If you want the whole table as "huge", you could simply put \huge in ERT in front of the table. Andre' PS: This is not exactly a LyX problem, maybe better ask in comp.text.tex or similar. -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
problem with dcolumn
Hi there! I have a rather strange problem with the package dcolumn, which I could only track down after some frustrating hours of work. It´s no problem to correctly align the values on the decimal point in the middle of the column and view the result with Acrobat Reader AS LONG as the font size remains on normal. If I change this to an arbitrarily chosen size, e.g. big or small, I get a pretty amount of errors while trying to convert to PDF. For example I get something like this: missing } inserted {footnotesize 104.1} I have no ideas left, what might be wrong (sigh). I´m running Lyx 1.2.2 on Windows XP SP1. I´ve added an example file which demontrates this problem. Font size is on the default setting "normal" at the moment, but if changed, the errors start coming in low. Thanks in advance, Robert -- Dipl.-Ing. Robert Sauerbrey Institut für Chemische Technologie Anorganischer Stoffe TU Graz Stremayrgasse 16/III A-8010 Graz Tel.: +43 (0) 316/ 873 8293 Fax.: +43 (0) 316/ 873 8272 e-mail: [EMAIL PROTECTED] #LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass scrbook \begin_preamble \@addtoreset{equation}{chapter} \renewcommand{\theequation}{\thechapter.\arabic{equation}} \@addtoreset{table}{chapter} \renewcommand{\thetable}{\thechapter.\arabic{table}} \@addtoreset{figure}{chapter} \renewcommand{\thefigure}{\thechapter.\arabic{figure}} %\renewcommand{\sectfont}{\rmfamily\bfseries} %\setlength{\abovecaptionskip}{0.2cm} % 1cm as an example %\setlength{\belowcaptionskip}{0.2cm} % 1cm as an example \renewcommand\arraystretch{1.5} % 1.0 ist Normalabstand für Tabelle \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter\ #1}}{}} \renewcommand{\sectionmark}[1]{\markright{\it{\thesection\ #1}}} \fancyhf{} \fancyhead[LE,RO]{\thepage} \fancyhead[LO]{\rightmark} \fancyhead[RE]{\leftmark} \fancypagestyle{plain}{% \fancyfoot{} \fancyhead[LE,RO]{\thepage} % get rid of headers } \renewcommand\headrulewidth{0pt} \renewcommand\footrulewidth{0pt} \widowpenalty=1 \clubpenalty=1 \usepackage{pdflscape} \usepackage{color} \definecolor{darkred}{rgb}{0.5,0,0} \definecolor{darkgreen}{rgb}{0,0.4,0.3} \definecolor{darkblue}{rgb}{0,0,0.5} \usepackage{ccaption} % that is double c \captionnamefont{\bfseries} \captiontitlefont{\it} \usepackage{array} \usepackage{dcolumn} \newcolumntype{.}[1]{D{.}{.}{-1}} \usepackage{hyperref} \end_preamble \language german \inputencoding auto \fontscheme pslatex \graphics default \float_placement htb \paperfontsize default \spacing single \papersize a4paper \paperpackage widemarginsa4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 2 \paperpagestyle fancy \layout Standard \begin_inset Float table wide false collapsed false \layout Caption Test \layout Standard \begin_inset Tabular \begin_inset Text \layout Standard Legierung \end_inset \begin_inset Text \layout Standard Bearbeitung \end_inset \begin_inset Text \layout Standard E-Modul [GPa] \end_inset \begin_inset Text \layout Standard \begin_inset Formula $\sigma _{S}$ \end_inset [MPa] \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard CP Titan grade 1 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard 102.7 \end_inset \begin_inset Text \layout Standard 170 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \family roman \series medium \shape up \size normal \emph off \bar no \noun off \color none CP Titan grade \family default \series default \shape default \size default \emph default \bar default \noun default \color default 2 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard 102.76 \end_inset \begin_inset Text \layout Standard 75.6 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \family roman \series medium \shape up \size normal \emph off \bar no \noun off \color none CP Titan grade \family default \series default \shape default \size default \emph default \bar default \noun default \color default 3 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard 1103.4 \end_inset \begin_inset Text \layout Standard 3801.6 \end_inset \begin_inset Text \layout Standard \end_inset \begin_inset Text \layout Standard \family roman \series medium \shape up \size normal \emph off \bar no \noun off \color none CP Titan grade \family default \series default \shape default \size default \emph default \bar default \noun default \color default 4 \end_inset \begin_inset Text \layou