Text Formatting ⇒ narrow paragraph
narrow paragraph
I was wondering how to make a narrow paragraph in a text and found a command \narrower. I couldn't find any description to this command but it seems to make paragraph narrower by value of \parindent variable. Any idea how to change this value?
Thanks!
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
narrow paragraph
in the following code I used a list to create an environment mypar that let's you control the nargins for your paragraphs:
Code: Select all
\documentclass{article}
\usepackage{lipsum}% just to automatically generate some text
\newenvironment{mypar}[2]
{\begin{list}{}%
{\setlength\leftmargin{#1}
\setlength\rightmargin{#2}}
\item[]}
{\end{list}}
\begin{document}
\lipsum[1]
\begin{mypar}{1cm}{1cm}
\lipsum[1]
\end{mypar}
\lipsum[1]
\begin{mypar}{0cm}{2cm}
\lipsum[1]
\end{mypar}
\lipsum[1]
\begin{mypar}{2cm}{0cm}
\lipsum[1]
\end{mypar}
\end{document} Code: Select all
\setlength\parindent{0em}Re: narrow paragraph
narrow paragraph
Code: Select all
\def\narrower{%
\advance\leftskip\parindent
\advance\rightskip\parindent}