Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I got a problem (probably simple), but I dont really see how to explain it with a MWE.

So I'm trying to modify my quote environment. I entered the following line in my preamble :

\renewenvironment{quote}{\begin{singlespace} {\rightmargin\leftmargin}}{\end{singlespace}}

In a MWE, its working (I can give it, but this should not be necessary, I only need the setspace package).

However, in my main document, something just cancel this effect. I think that's probably another package i'm using. So here's the list of packages : can anyone tell me if one of them if known for interferating with quote ?

Thank you, Thomas :

documentclass[a4paper,12pt,oneside]{book} % On utilise la classe Book

\usepackage{appendix}
\usepackage{bredele} % Appel de bredele.sty
\usepackage[round]{natbib}
\usepackage{amsmath}
\usepackage{setspace} % pour virer les espaces dans les environnements equation et alig\usepackage{etoolbox} % it\usepackage{array}
\usepackage[T1]{fontenc} % un peu superflu, pour tenter d'améliorer l'hyphenation
\usepackage{lmodern} % un peu superflu, pour tenter d'améliorer l'hyphenation
\usepackage{splitidx} % REMPLACE \usepackage{multind} 


\usepackage{french}[babel]
\usepackage{array}
\usepackage{lscape}
\usepackage{chngcntr}
\usepackage[compact]{titlesec}
\usepackage{tikz} % pour des diagrammes simples
\usepackage[strict]{changepage}
\usepackage{enumitem}
\setlist{nolistsep}
share|improve this question
bredele.sty isn't available at CTAN. If I omit this package (and correctly load babel), everything works fine for me using your preamble. Have you tried to redefine quote immediately before \begin{document}? – lockstep Feb 20 at 12:53
Actually that's how it was in the first place, but I then changed it to be in the preamble. I'm also including the chapters in my main file. Do you think a redefinition at the beginning of each chapter would work ? – Thoms Morel Feb 20 at 12:55
Immediately before \begin{document} is part of the preamble. Please provide an example that shows the problem. – lockstep Feb 20 at 12:56
Sorry I misread ! Yeah, it was right before the \begin{document} ! – Thoms Morel Feb 20 at 13:00

closed as too localized by lockstep, zeroth, Andrew Swann, Claudio Fiandrino, diabonas Feb 20 at 14:44

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

Ok the problem was probably with the fact I was using a main file, and then included my chapters in this main file. When I put the

\renewenvironment{quote}{\begin{singlespace} {\rightmargin\leftmargin}}\end{singlespace}}

at the beginning of a chapter, that's working !

Thanks @lockstep anyway !

share|improve this answer
Good to hear that it's working for you -- I don't have a clue why \include would change an evironment's definition, though. – lockstep Feb 20 at 13:03
1  
Ok, to be very honest, I have to confess I found the real reason : I hade not seen that, in the first .tex that I had include, there was another definition of quote. So everything I was doing before that was nonsense, since it was erased by the new definition. My mistake, and sorry for wasting your time – Thoms Morel Feb 20 at 13:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.