COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Memoir - adjustwidth - indentation

• Email
• Follow

How can one force indentation within an adjustwidth environment?

Or how would one define a similar environment that allowed one to use
\indent or \noindent and respected the indentation previously in
force.

I was unable to find any reference to the behaviour of adjustwidth
with respect to indentation in the manual but it seems that it's
noindent regardless...

 0
Reply julianidostuff (33) 12/3/2009 11:19:59 PM

See related articles to this posting

On 4 Dec, 00:19, Julian I-Do-Stuff <julianidost...@gmail.com> wrote:
> How can one force indentation within an adjustwidth environment?
>
> Or how would one define a similar environment that allowed one to use
> \indent or \noindent and respected the indentation previously in
> force.
>
> I was unable to find any reference to the behaviour of adjustwidth
> with respect to indentation in the manual but it seems that it's
> noindent regardless...

Of course I meant the FIRST paragraph within an adjustwidth
environment... subsequent paragraphs revert to the behaviour the
neophyte naively expected throughout...

 0

Julian I-Do-Stuff wrote:
> On 4 Dec, 00:19, Julian I-Do-Stuff <julianidost...@gmail.com> wrote:
>> How can one force indentation within an adjustwidth environment?
>>
>> Or how would one define a similar environment that allowed one to use
>> \indent or \noindent and respected the indentation previously in
>> force.
>>
>> I was unable to find any reference to the behaviour of adjustwidth
>> with respect to indentation in the manual but it seems that it's
>> noindent regardless...
>
> Of course I meant the FIRST paragraph within an adjustwidth
> environment... subsequent paragraphs revert to the behaviour the
> neophyte naively expected throughout...

It is defined using a list, and thus it is the list environment that
withholds the indentation of the first line.

A version with indentation would be

\makeatletter
\begin{list}{}{%
\topsep\z@%
\listparindent\parindent%
\parsep\parskip%
\@ifmtarg{#1}{\setlength{\leftmargin}{\z@}}%
{\setlength{\leftmargin}{#1}}%
\@ifmtarg{#2}{\setlength{\rightmargin}{\z@}}%
{\setlength{\rightmargin}{#2}}%
}
\item[]}{\end{list}}

\makeatother

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ:      http://www.tex.ac.uk/faq
LaTeX book:     http://www.imf.au.dk/system/latex/bog/    (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

 0

On 4 Dec, 10:22, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
> Julian I-Do-Stuff wrote:
> > On 4 Dec, 00:19, Julian I-Do-Stuff <julianidost...@gmail.com> wrote:
> >> How can one force indentation within an adjustwidth environment?
>
> >> Or how would one define a similar environment that allowed one to use
> >> \indent or \noindent and respected the indentation previously in
> >> force.
>
> >> I was unable to find any reference to the behaviour of adjustwidth
> >> with respect to indentation in the manual but it seems that it's
> >> noindent regardless...
>
> > Of course I meant the FIRST paragraph within an adjustwidth
> > environment... subsequent paragraphs revert to the behaviour the
> > neophyte naively expected throughout...
>
>
> It is defined using a list, and thus it is the list environment that
> withholds the indentation of the first line.
>
> A version with indentation would be
>
> \makeatletter
> =A0 =A0\begin{list}{}{%
> =A0 =A0 =A0\topsep\z@%
> =A0 =A0 =A0\listparindent\parindent%
> =A0 =A0 =A0\parsep\parskip%
> =A0 =A0 =A0\@ifmtarg{#1}{\setlength{\leftmargin}{\z@}}%
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {\setlength{\leftmargin}{#1}}%
> =A0 =A0 =A0\@ifmtarg{#2}{\setlength{\rightmargin}{\z@}}%
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {\setlength{\rightmargin}{#2}}%
> =A0 =A0 =A0}
> =A0 =A0 =A0\item[]}{\end{list}}
>
> \makeatother
>
> --
>
> /daleif (remove RTFSIGNATURE from email address)
>
> LaTeX FAQ: =A0 =A0 =A0http://www.tex.ac.uk/faq
> LaTeX book: =A0 =A0http://www.imf.au.dk/system/latex/bog/=A0 =A0(in Danis=
h)
> Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-=
bin/texfaq2html?label=3Dminxamplhttp://www.minimalbeispiel.de/mini-en.html

Thank you greatly...

Now I see how adjustwidth is defined I've done this (and similarly for
myAdjustWidth* using the code in Memoir.cls)

{\@ifmtarg{#1}{\setlength{\leftmargin}{\z@}}%
{\setlength{\leftmargin}{#1}}%
\@ifmtarg{#2}{\setlength{\rightmargin}{\z@}}%
{\setlength{\rightmargin}{#2}}%
}
{}

without screwing something else up... it *seems* ok to judge by the
output).

With no disrespect intended to the staggering effort of many people
involved in creating the system as a whole, the classes, additional
macros etc. - and the quality of the results - coming at TeX/LaTeX
with a head that once belong to a software engineer, I struggle with
the design/implementation philosophy. Such questions as "Why does
something labelled as a width adjustment change other contingent
things?" make my head hurt :)

My default assumption from here on will be - unless directed otherwise
- that unless one examines the implementing code one cannot predict
what any particular command will actually do. The fact that that
adjustwidth is based on a list environment (as I now know many
environments are - also conflicting with my sense of implementation
purity) is stated in the manual, but not in the description of
adjustwidth itself... it's in section 8.6 under list environments, and
thus unseen unless one searches the entire manual and reads around
every occurence (which is how I found it).

Whether the following suggestion has any merit is not for me to say,
but would it be possible in e.g. the Command Summary to indicate where
commands effectively "specialise" (are derived from)something else and
so have broader effect than might otherwise be apparent?

e.g. "\begin{adjustwidth}{<left>}{<right>... sets a List environment
and temporarily adds the lengths {<left>} and {<right>} to the left
and right margins within that List environment"

However, it's worth saying that without your help my brain would
probably have melted by now... thanks again.

 0

Julian I-Do-Stuff wrote:
> On 4 Dec, 10:22, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
>> Julian I-Do-Stuff wrote:
>>> On 4 Dec, 00:19, Julian I-Do-Stuff <julianidost...@gmail.com> wrote:
>>>> How can one force indentation within an adjustwidth environment?
>>>> Or how would one define a similar environment that allowed one to use
>>>> \indent or \noindent and respected the indentation previously in
>>>> force.
>>>> I was unable to find any reference to the behaviour of adjustwidth
>>>> with respect to indentation in the manual but it seems that it's
>>>> noindent regardless...
>>> Of course I meant the FIRST paragraph within an adjustwidth
>>> environment... subsequent paragraphs revert to the behaviour the
>>> neophyte naively expected throughout...
>>
>> It is defined using a list, and thus it is the list environment that
>> withholds the indentation of the first line.
>>
>> A version with indentation would be
>>
>> \makeatletter
>>    \begin{list}{}{%
>>      \topsep\z@%
>>      \listparindent\parindent%
>>      \parsep\parskip%
>>      \@ifmtarg{#1}{\setlength{\leftmargin}{\z@}}%
>>                   {\setlength{\leftmargin}{#1}}%
>>      \@ifmtarg{#2}{\setlength{\rightmargin}{\z@}}%
>>                   {\setlength{\rightmargin}{#2}}%
>>      }
>>      \item[]}{\end{list}}
>>
>> \makeatother
>>
>> --
>>
>> /daleif (remove RTFSIGNATURE from email address)
>>
>> LaTeX FAQ:      http://www.tex.ac.uk/faq
>> LaTeX book:    http://www.imf.au.dk/system/latex/bog/   (in Danish)
>> Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.minimalbeispiel.de/mini-en.html
>
> Thank you greatly...
>
> Now I see how adjustwidth is defined I've done this (and similarly for
> myAdjustWidth* using the code in Memoir.cls)
>
>     {\@ifmtarg{#1}{\setlength{\leftmargin}{\z@}}%
>                  {\setlength{\leftmargin}{#1}}%
>     \@ifmtarg{#2}{\setlength{\rightmargin}{\z@}}%
>                  {\setlength{\rightmargin}{#2}}%
> 	}
> 	{}
>
> without screwing something else up... it *seems* ok to judge by the
> output).
>
> With no disrespect intended to the staggering effort of many people
> involved in creating the system as a whole, the classes, additional
> macros etc. - and the quality of the results - coming at TeX/LaTeX
> with a head that once belong to a software engineer, I struggle with
> the design/implementation philosophy. Such questions as "Why does
> something labelled as a width adjustment change other contingent
> things?" make my head hurt :)
>
> My default assumption from here on will be - unless directed otherwise
> - that unless one examines the implementing code one cannot predict
> what any particular command will actually do. The fact that that
> adjustwidth is based on a list environment (as I now know many
> environments are - also conflicting with my sense of implementation
> purity) is stated in the manual, but not in the description of
> adjustwidth itself... it's in section 8.6 under list environments, and
> thus unseen unless one searches the entire manual and reads around
> every occurence (which is how I found it).
>
> Whether the following suggestion has any merit is not for me to say,
> but would it be possible in e.g. the Command Summary to indicate where
> commands effectively "specialise" (are derived from)something else and
> so have broader effect than might otherwise be apparent?
>
> e.g. "\begin{adjustwidth}{<left>}{<right>... sets a List environment
> and temporarily adds the lengths {<left>} and {<right>} to the left
> and right margins within that List environment"
>
> However, it's worth saying that without your help my brain would
> probably have melted by now... thanks again.

This is typical for all new users.

But you are not a typical new user, as your documents that 'interesting
requirements'

Usually environments and macros are just something people use, but in
other cases, people with special needs, as your self, need special

In those cases it is my opinion that you are better of explaining your
problem here first instead of in LC (no disrespect to LC, it is a great
forum for helping users)

A lot of the people on CTT are highly skilled (La)TeX macro programmers,
or have intimate knowledge of packages, classes and their internals. And
thus can offer great help to people.

But it will help us a lot if people would ask better question, or
explaing better what they are trying to achive.

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ:      http://www.tex.ac.uk/faq
LaTeX book:     http://www.imf.au.dk/system/latex/bog/    (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

 0

On Dec 4, 2:38=A0am, Julian I-Do-Stuff <julianidost...@gmail.com> wrote:
> Such questions as "Why does something labelled as a width

Since width adjustment is a pure formatting issue, one should rightly
expect that there are no other changes, including to paragraph
indentation.
Maybe it could be changed, but I expect a lot of documents are already
based on the current behavior.

\raggedright in core LaTeX has the same problem!

Donald Arseneau


 0

5 Replies
203 Views

Similar Articles

12/13/2013 6:07:16 PM
page loaded in 3452 ms. (0)

Similar Artilces:

memoir examples?
I am helping a friend typeset a couple of books and am looking at using memoir. Sometime back I came across some examples of cover pages, graphic arts, and small book examples using memoir but am currently unable to relocate them. Does anyone have examples they can point me to which demonstrate the capabilities of memoir? Thanks and best regards, EBo -- ebo@sandien.com wrote: > I am helping a friend typeset a couple of books and am looking at > using memoir. Sometime back I came across some examples of cover > pages, graphic arts, and small book examples using memoir but am &g...

\index* and memoir?
Memoir emulates the index package. I know that I can \DeemulatePackage{index} and load the index package, but I'd rather not. I miss the \index* from the index package, which was identical to \index except that it would also typeset its argument in-line with the text. Is there an easy way to build an \index* in memoir? Because \index takes an optional argument, I'm having trouble thinking of a simple \@ifstar that would do it. Thanks -- Ted > Is there an easy way to build an \index* in memoir? Because \index > takes an optional argument, I'm having trouble thinking of a s...

Marginpar in Memoir
All, I'd like to adjust my example environment in the code below so that each example is bracketed between two horizontal rules. The first rule should be placed above the example, align with the inner edge of the text and flow to the outer edge of the text, add a couple of spaces in the outer margin, typeset "You Try It", then continue to flow to within 1 cm of the page edge. Similarly, for the rule at the bottom of the example, I'd like to start it at the inner edge of the text, flow into the outer margin, then typeset the square that is flush right within 1 cm ...

watermarks in memoir
Hi, I'm writing a book using the memoir class, and would like to insert a background watermark picture. I'm currently using the pdfdraftcopy package, which is working fine for the most part. The first (minor) problem is that the package creates a bunch of "Missing number, treated as zero." errors. My main problem is that the package does not support mirrored output. I'd like a different watermark to appear in odd and even pages. Do you know of any packages that would do that? pdfdraftcopy was the best I could find. Thanks, Kostis PS While I'm at it, has anyone c...

booksmarks with memoir
Using memoir with option article and package hyperref the depth of bookmarks goes down to section, but I want to have subsections bookmarked too. Does anybody know the solution of this quiz? Here is an example: \documentclass[article]{memoir} \usepackage{hyperref} \hypersetup{ bookmarksopen=true } \usepackage{memhfixc} \begin{document} \settocdepth{subsection} \chapter{Chapter} Text goes here \section{Section} Text goes here \subsection{Subsection} Text goes here \end{document} -- Burkhardt Renz Burkhardt Renz wrote: > Using memoir with option article and package hyperref the >...

memoir: off-center
Hello: Below, I've put code for a book with a couple problems: First, the title page and "centered" page numbers are clearly not centered relative to the typeblock. Second (related?), the spine-side margin is way too small for binding purposes. Indeed, the set-up might make sense if recto and verso were reversed -- i.e., there is a nice wide right margin on odd numbered pages, a nice wide left margin on even numbered pages. How can I switch things around? Joe \documentclass[showtrims,twoside,openright]{memoir} \settrimmedsize{9in}{6in}{*} \settrims{1in}{1.25in} \begin{do...

chapterstyle memoir
Dear all, I have a problem with respect to the fix of chapterstyle by usepackage memoir: "pdflatex examole.tex" from the following example proves: -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. (./mem-Kapstil.aux) ! Undefined control sequence. <argument> \hspace {0.4em}\resizebox {!}{4ex}{\chapnamefont \bfseries \sffam... l.11 \chapter{Beginnen} ? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. ++++++++++++++++++++++++++++example++++++++++++ \documentclass[12pt,ngerman,a4paper]{memoir} \usepackage[T1]{fontenc} \usepackage[utf...

jurabib + memoir
Hi, I am using memoir (patch version 1.7 released 2003/07/23) together with jurabib. The bibliography will not be included in the ToC because jurabib, like memoir, changes thebibliography environment: +--------------------------------------------------------------+ \documentclass{memoir} \usepackage{jurabib} \usepackage[english]{babel}% required by jurabib \bibintoc \begin{document} \begin{thebibliography}{} \bibitem[]{} Empty \end{thebibliography} \tableofcontents \end{document} +--------------------------------------------------------------+ A solution could be to add this: \@ifundef...

memoir + color + ?
I'm writing to report what may be an interoperability problem between packages. I use MiKTeX 2.4, updated this morning with the latest available versions. Using the code shown below, I observe that the output before the page break is shaded and in the blue color as requested, but the remaining shaded text following the page break seems to have reverted to the standard black. Is this behavior known/expected? If not, then I would ask informed advice, please, as to whom or where else I might report it for further analysis. Thank you very much. -- WEB Walter E. Brown, Ph.D. CEPA Departm...

feetbelowfloat in memoir

\xindyindex in memoir
Dear list, I like to make index with with lot of Slavic names with =B9=E8=E6=BE=F0 o= n=20 beginning of names. i use recent memoir for latex class and winedt for=20 editor. instead of \makeindex i put in preamble \xindyindex, but after latexing = my file the button for make index in winedt is not active... i don't=20 know how to activate the generation of index ... i'm very novice in making index list. what should i do, that will be=20 able to use \xindyindex? please help me. minimal exammple what i do: \documentclass[a4paper,twoside]{memoir} \usepackage[english]{babel} \usepacka...

memoir and setsidebars
On Aug 1, 12:14 pm, NateP <napax...@gmail.com> wrote: > Hi all, > > I'm using the memoir class to write a booklet for my department, and > I want to change the sidepar environment, so that it sets the sidepars > in a different font family and at footnote size. The syntax for the > command is: Somehow the rest of the message got cut off. Here it is: The syntax for the command is (with default values filled in): \setsidebars{(hsep)}{(width)}{(vsep)}{(topsep)}{(font)}{(height)} ...

synctex with memoir
Dear group, I'm using Texmaker on Windows and have recently noticed a strange and unpleasant behaviour: With the memoir class, the inverse search (PDF > tex) is always wrong (appears lower in the tex-code than it should). The forward syncing (tex source to PDF position) works fine, and so does the inverse one with the article or book classes. So it's just the synctex+memoir combination which shows this weird behaviour. The very same behaviour is observed also with TeXworks. Any suggestions? Minimal example: \documentclass[a4paper, 11pt, twoside, openany, showtrims, draft] {mem...

footnotes in memoir
Hi! Just recently I noticed that memoir seems to act differently than before (as in TL09). Using XeLaTeX, I load a font, e.g., Latin Modern Roman, with OldStyle numbers. Previously, the footnote superscript ref numbers would *not* be OldStyle, but Lining. Now, however, they're OldStyle. I looked at memman.pdf (p. 240ff., I think) and it gave me some ideas for the preamble, like: \setmainfont[Numbers={OldStyle,Proportional}]{Latin Modern Roman} \newfontfamily\fnmarkfont{Latin Modern Roman} \makeatletter \renewcommand*{\@makefnmark}{{\fnmarkfont \textsuperscript{\@thefn...

memoir and subfig package
Hi, for subfigures I use (up to now) the subfig package. It is well integrated with memoir, so I was able to design caption style by memoir commands and use subfigure syntax for subfigure placement in text, for example: \begin{figure} \subfigure[subfigure caption \label{subfig:1}]{ figure} \subfigure[subfigure caption \label{subfig:2}]{ figure} \subfigure[subfigure caption \label{subfig:3}]{ figure} \subfigure[subfigure caption \label{subfig:4}]{ figure} \caption{figure caption} \label{fig:figure} \end{figure} Now I read, that subfigure is replaced by subfig. I try to use it with memoi...

Sidepar im Memoir
All, I cannot seem to get sidepar to work as advertised in memmanadd.pdf: "\sidepar provides a fixed version of \marginpar. In the original version the marginal text could shift up or down depending on the presence or absence of ascenders and descenders in the marginal text and the main line text. The length \sideparvshift was provided to enable the shift to be compensated for, and its default value was -2.08ex. Dan Luecking has provided the new version of \sidepar whereby the marginal text does not shift and the default value of \sideparvshift is now 0pt." Here is...