Am Donnerstag, den 14.07.2011, 13:55 -0400 schrieb Julien Rioux: > On 13/07/2011 5:23 AM, Karl Linek wrote: > > Hallo, > > > > I tried to use this captionsetup in the preamble: > > > > \captionsetup{figurename=Abb.,tablename=Tab.,font={footnotesize,sf},justification=RaggedRight,labelfont=bf,singlelinecheck=false,labelsep=colonenskip} > > > > It didn't do its job. Using the same line in the text, was ok. Why? Well > > I could live with it, but I think it is not the way it should work. > > > > Karl > > > > > > Have a look at the generated LaTeX code (menu View > View Source) to see > if there is not another \captionsetup line generated by LyX that comes > after the user preamble. You also need a \useoackage{caption} line, right? >
This is the whole preamble an the beginning of the text: \documentclass[ngerman,nohyper,justified,marginals=raggedright,nofonts,a4paper,symmetric]{tufte-book} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{verbatim} \usepackage{graphicx} \PassOptionsToPackage{version=3}{mhchem} \usepackage{mhchem} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. %% A simple dot to overcome graphicx limitations \newcommand{\lyxdot}{.} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \usepackage [version=3] {mhchem} \mhchemoptions{font=sf} \usepackage [notextcomp,oldstylenums] {kpfonts} \setcounter{secnumdepth}{1} \usepackage{caption} \usepackage{mcaption} \newcommand{\xyR}[1]{% \xydef@\xymatrixrowsep@{#1}} \newcommand{\xyC}[1]{% \xydef@\xymatrixcolsep@{#1}} \DeclareCaptionLabelSeparator{colonenskip}{:\enskip{}} \captionsetup{figurename=Abb.,tablename=Tab.,font={footnotesize,sf},justification=RaggedRight,labelfont=bf,singlelinecheck=false,labelsep=colonenskip} \title{Chemie verstehen -- Band I} \author{Karl Linek} \sloppy \usepackage{microtype} \makeatother \usepackage{babel} \begin{document} \chapter*{Von der Alchemie zur Chemie} \captionsetup{figurename=Abb.,tablename=Tab.,font={footnotesize,sf},justification=RaggedRight,labelfont=bf,singlelinecheck=false,labelsep=colonenskip}Im Altertum gab es keinen Unterschied zwischen I added the \captionsetup after \begin{document}. I dont see a reason why it shouldn't work without the second \captionsetup, but it doesn't. lg, Karl