Text Formatting ⇒ Turabian style: quote environment
-
alarswilson
- Posts: 26
- Joined: Thu Apr 02, 2009 3:42 pm
Turabian style: quote environment
I need to have these environments flush left on the first paragraph. How?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Turabian style: quote environment
Code: Select all
\makeatletter
\g@addto@macro{\quote}{\upshape}
\g@addto@macro{\quotation}{\upshape}
\makeatotherBest regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
alarswilson
- Posts: 26
- Joined: Thu Apr 02, 2009 3:42 pm
Turabian style: quote environment
Code: Select all
\makeatletter
\g@addto@macro{\quote}{\noindent}
\g@addto@macro{\quotation}{\noindent}
\makeatotherThis, however, revealed another item I must address: This environment must be indented .5inches from the left according to our style. How can I do this. I looked through Peter Flynn's manual, but I admit I'm at a loss.
It kills me how much work I'm doing to make it look like Microsoft Word! Thank you for your help. It is educational. Andrew
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Turabian style: quote environment
Is it only indented on the left side or like the original environment indented on both sides?alarswilson wrote:[...] This environment must be indented .5inches from the left according to our style. How can I do this. I looked through Peter Flynn's manual, but I admit I'm at a loss. [...]
Your patience and efforts will be worth the result. And the final output will look better than Word could ever manage.alarswilson wrote:[...] It kills me how much work I'm doing to make it look like Microsoft Word! Thank you for your help. It is educational. [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
magicmoose
- Posts: 90
- Joined: Fri Nov 06, 2009 7:29 am
Turabian style: quote environment
I don't know how far you have progressed with your document or whether my suggestion will be compatible with your document, but the wordlike package is a package that makes LaTeX mimic MS Words layout and styles.alarswilson wrote:It kills me how much work I'm doing to make it look like Microsoft Word! Thank you for your help. It is educational. Andrew
As I say, it might not help you now but maybe in the future
-
alarswilson
- Posts: 26
- Joined: Thu Apr 02, 2009 3:42 pm
Re: Turabian style: quote environment
I'll take a look at "wordlike." Thanks for the heads up.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Turabian style: quote environment
The worldlike package won't help you since it only mimics a standard Word document regarding fonts, page geometry and ToC style. It doesn't set up the document style you need.alarswilson wrote:[...] I'll take a look at "wordlike." Thanks for the heads up.
In this case forget the modifications to the concerned environments done by the \g@addto@macro command. You have to redefine them. Here is again a compete example that should meet all the demands so far.alarswilson wrote:.5" indent both sides. [...]
Code: Select all
\documentclass[11pt,a4paper,twoside,english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[doublespacing]{setspace}
\usepackage[indentfirst,raggedright]{titlesec}
\usepackage{lmodern}
\usepackage{blindtext}
\setlength{\parindent}{0.5in}
\makeatletter
\newcommand*{\spelled}[1]{%
\expandafter\@spelled\csname c@#1\endcsname
}
\newcommand*{\@spelled}[1]{%
\ifcase#1\or{One}\or{Two}\or{Three}\or{Four}\or{Five}\or{Six}\or{Seven}\or{Eight}\or{Nine}\or{Ten}\else\@ctrerr\fi
}
\renewenvironment{quotation}{%
\list{}{%
\listparindent 1.5em%
\itemindent \listparindent
\leftmargin 0.5in
\rightmargin \leftmargin
\parsep \z@ \@plus\p@
}%
\item\relax
}
{\endlist}
\renewenvironment{quote}{%
\list{}{%
\leftmargin 0.5in
\rightmargin \leftmargin
}%
\item\relax
}
{\endlist}
\makeatother
% Setup for headings (titlesec)
\titleformat{\chapter}[display]
{\normalfont\normalsize\bfseries\filcenter}
{\normalsize\MakeUppercase{\chaptertitlename\ \spelled{chapter}}}
{1pc}
{\normalsize}
\titleformat*{\section}{\normalfont\normalsize\itshape}
\titleformat*{\subsection}{\normalfont\normalsize}
\titleformat*{\subsubsection}{\normalfont\normalsize}
\titleformat*{\paragraph}{\normalfont\normalsize\slshape}
\titlespacing*{\section}{0pt}{1.5\baselineskip}{\baselineskip}
\titlespacing*{\subsection}{0pt}{1.5\baselineskip}{\baselineskip}
\titlespacing*{\subsubsection}{0pt}{1.5\baselineskip}{\baselineskip}
\begin{document}
\blindtext
\begin{quote}
\blindtext
\end{quote}
\blindtext
\end{document}Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
alarswilson
- Posts: 26
- Joined: Thu Apr 02, 2009 3:42 pm
Turabian style: quote environment
Three other things with quotation/quote are now apparent:
quotation environment
1. Now second (third + fourth etc.) paragraphs are not indented. They need to be indented.
2. The spacing between paragraphs in "quotation" is slightly more than 1 ex. It needs to be a normal singlespace.
Both quote and quotation
3. The spacing between the quote and quotation environments and the following paragraphs comes out 1.5ex. I need it to be a normal single space.
Here is my preamble. Note that I have commented a former solution to making quote/quotation single spaced. Please note anything else that is out of line:
Code: Select all
\documentclass[letterpaper,12pt,english,oneside,raggedright,draft]{report}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{epigraph}
\renewcommand{\epigraphsize}{\footnotesize}
\newcommand{\superscript}[1]{\ensuremath{^\textrm{\scriptsize{#1}}}}
\usepackage{fixltx2e}
\usepackage[flushmargin,hang,multiple,ragged]{footmisc}
\usepackage[indentfirst,raggedright]{titlesec}
\usepackage{blindtext}
\usepackage{fancyhdr}
\usepackage{times}
\usepackage{footmisc}
\usepackage[includeheadfoot,top=.5in, bottom=1in, left=1.5in, right=1in]{geometry}
\usepackage[doublespacing]{setspace}
% setup for headers (fncyhdr)
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\thepage}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\headrulewidth}{0pt}
\raggedright
\hyphenpenalty10000
\setlength{\parindent}{0.5in}
% spelled chapter numbers
\makeatletter
\newcommand*{\spelled}[1]{%
\expandafter\@spelled\csname c@#1\endcsname
}
\newcommand*{\@spelled}[1]{%
\ifcase#1\or{ONE}\or{TWO}\or{THREE}\or{FOUR}\or{FIVE}\or{SIX}\or{SEVEN}\or{Eight}\or{Nine}\or{Ten}\else\@ctrerr\fi
}
\makeatother
% quote and quotation indents and margins
\makeatletter
\renewenvironment{quotation}{%
\list{}{%
\listparindent 1.5em%
\itemindent \listparindent
\leftmargin 0.5in
\rightmargin \leftmargin
\parsep \z@ \@plus\p@
\singlespacing
}%
\item\relax
}
{\endlist}
\renewenvironment{quote}{%
\list{}{%
\leftmargin 0.5in
\rightmargin \leftmargin
\singlespacing
}%
\item\relax
}
{\endlist}
\makeatother
% \expandafter\def\expandafter\quote\expandafter{\quote\noindent\singlespacing}
% \expandafter\def\expandafter\quote\expandafter{\quotation\noindent\singlespacing}
% \expandafter\def\expandafter\verse\expandafter{\verse\noindent\singlespacing}
% Setup for headings (titlesec)
\titleformat{\chapter}[display]
{\normalfont\normalsize\bfseries\filcenter}
{\normalsize\MakeUppercase{\chaptertitlename\ \spelled{chapter}}}
{1pc}
{\normalsize}
\titleformat*{\section}{\normalfont\normalsize\itshape}
\titleformat*{\subsection}{\normalfont\normalsize}
\titleformat*{\subsubsection}{\normalfont\normalsize}
\titleformat*{\paragraph}{\normalfont\normalsize\slshape}
\titlespacing*{\section}{0pt}{3ex}{1ex}
\titlespacing*{\subsection}{0pt}{3ex}{1ex}
\titlespacing*{\subsubsection}{0pt}{3ex}{1ex}
\setlength{\footnotesep}{20pt}
-
alarswilson
- Posts: 26
- Joined: Thu Apr 02, 2009 3:42 pm
Re: Turabian style: quote environment
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Turabian style: quote environment
Code: Select all
\documentclass[11pt,twoside,english]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=1in]{geometry}
\usepackage[doublespacing]{setspace}
\usepackage[indentfirst,raggedright]{titlesec}
\usepackage{lmodern}
\usepackage{blindtext}
\setlength{\parindent}{0.5in}
\makeatletter
\newcommand*{\spelled}[1]{%
\expandafter\@spelled\csname c@#1\endcsname
}
\newcommand*{\@spelled}[1]{%
\ifcase#1\or{One}\or{Two}\or{Three}\or{Four}\or{Five}\or{Six}\or{Seven}\or{Eight}\or{Nine}\or{Ten}\else\@ctrerr\fi
}
\renewenvironment{quotation}{%
\list{}{%
\listparindent 0.5in
\itemindent 0pt
\leftmargin 0.5in
\rightmargin \leftmargin
\parsep 0.5\baselineskip
\topsep 0.5\baselineskip
\singlespacing
}%
\item\relax
}
{\endlist}
\renewenvironment{quote}{%
\list{}{%
\listparindent 0.5in%
\itemindent 0pt
\leftmargin 0.5in
\rightmargin \leftmargin
\topsep 0.5\baselineskip
\singlespacing
}%
\item\relax
}
{\endlist}
\makeatother
% Setup for headings (titlesec)
\titleformat{\chapter}[display]
{\normalfont\normalsize\bfseries\filcenter}
{\normalsize\MakeUppercase{\chaptertitlename\ \spelled{chapter}}}
{1pc}
{\normalsize}
\titleformat*{\section}{\normalfont\normalsize\itshape}
\titleformat*{\subsection}{\normalfont\normalsize}
\titleformat*{\subsubsection}{\normalfont\normalsize}
\titleformat*{\paragraph}{\normalfont\normalsize\slshape}
\titlespacing*{\section}{0pt}{1.5\baselineskip}{\baselineskip}
\titlespacing*{\subsection}{0pt}{1.5\baselineskip}{\baselineskip}
\titlespacing*{\subsubsection}{0pt}{1.5\baselineskip}{\baselineskip}
\begin{document}
\blindtext
\begin{quotation}
\blindtext
\blindtext
\end{quotation}
\blindtext
\end{document}Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10