Re: Problems with xelatex/miktex [Errorcode: TeX capacity exceeded, sorry [main memory size=3000000].]
"Uwe Lueck" <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <trinity-60eeadeb-1767-444a-8769-1c8564d9dbef-1444874319567@3capp-webde-bs16> |
BTW, it seems to me that
> \renewcommandx*{\chapter}[6][1,2,3,4]{% 1: alternativer TOC-Eintrag, 2: alternativer "TOC-Autor", 3: alternative Kopfzeile, 4: alternativer Autor in der Kopfzeile 5: Titel, 6: Autor
> \setcounter{footnote}{0}
> \ifthenelse{\isempty{#1}}%ifelsethen1.if
> {%ifelsethen1.then START:
> \ifthenelse{\isempty{#6}}%ifthenelse1.1.if
> {\addchap[\normalsize #5]{#5}\addtocontents{toc}{\vspace*{2pt}}}%ifthenelse1.1.then
> {\addchap[\normalsize #5 {\footnotesize\textit{(#6)}}]{#5}\addtocontents{toc}{\vspace*{2pt}}}%ifthenelse1.1.else
> }%ifelsethen1.then STOP
> {%ifelsethen1.else START:
> \ifthenelse{\isempty{#6}}%ifthenelse1.2.if
> {\addchap[\normalsize #5]{#5}\addtocontents{toc}{\vspace*{2pt}}}%ifthenelse1.2.then
> {%ifelsethen1.2.else START:
> \ifthenelse{\isempty{#2}}%ifthenelse1.2.1.if
> {\addchap[\normalsize #1 {\footnotesize\textit{(#6)}}]{#5}\addtocontents{toc}{\vspace*{2pt}}}%ifthenelse1.2.1.then
> {\addchap[\normalsize #1 {\footnotesize\textit{(#2)}}]{#5}\addtocontents{toc}{\vspace*{2pt}}}%ifthenelse1.2.1.else
> }%ifelsethen1.2.else STOP
> }%ifelsethen1.else STOP
>
> %\vspace*{28pt}
> \setcounter{section}{0}
> \ifthenelse{\isempty{#6}}
> {}
> {\centerline{{\Large\textit{#6}}}%
> \ifthenelse{\isempty{#4}}
> {\TextAuthor{#6}}
> {\TextAuthor{#4}}
> \ifthenelse{\isempty{#3}}
> {\ifthenelse{\isempty{#2}}
> {\TextTitel{#5}}
> {\TextTitel{#1}}}
> {\TextTitel{#3}}
> \vspace*{26pt}}
> }
(missing indents probably due to the digest that I receive as HTML)
can be put more clearly about as this (including the later idea
not to redefine \¢hapteer):
\newcommand*{\IfEmpty}[1]{\ifthenelse{\isempty{#1}}}
%% ... or with ifmtarg.sty instead of ifthen.sty:
\newcommand*{\IfEmpty}{\@ifmtarg}
\newcommand*{\AddAuthor}[1]{ {\footnotesize\textit{(#1)}}}
%% use \AddChapter instead of \chapter:
\newcommandx*{\AddChapter}...
...
\addchap[\normalsize\IfEmpty{#1}{#5}{#1}%
\IfEmpty{#1}%
{\IfEmpty{#6}{}{\AddAuthor{#6}}}%
{\AddAuthor{\IfEmpty{#2}{#6}{#2}}}%
]%
{#5}%
\addtoc...{...{2pt}}%
...
\IfEmpty{#6}{}{\centerline{\Large\textit{#6}}}%
\TextAuthor{\IfEmpty{#4}{#6}{#4}}%
\TextTitel {\IfEmpty{#3}%
{\IfEmpty{#2}{#5}{#1}}%
{#3}}%
...
}
I am attaching this also for those who don't see my indents above.
Cheers,
Uwe.
------------------------------------------------------------------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml