GeneralExceeding Latex

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Zelos
Posts: 4
Joined: Tue Nov 19, 2013 12:32 pm

Exceeding Latex

Post by Zelos »

I am trying on a project of mine and I use different packages, gb4e and xstring seem to really dislike each other because I get the exceed message when they are used togather, I have other packages I use but this is from a test document I made and it still fails. I have the same issue with color package. Any recomendations?

Code: Select all

\documentclass[11pt,a4paper]{article}

\usepackage{gb4e} 
\usepackage{xstring}

\def\ReplaceStr#1{%
  \IfSubStr{#1}{XY}{%
    \StrSubstitute{#1}{XY}{$\to$}}{#1}}
\begin{document}
\ReplaceStr{aXYbXYc}

\ReplaceStr{abc}
\end{document}
Last edited by Stefan Kottwitz on Sat May 03, 2014 9:54 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Exceeding Latex

Post by Stefan Kottwitz »

It works with changed package loading order:

Code: Select all

\usepackage{xstring}
\usepackage{gb4e}
Stefan
LaTeX.org admin
Zelos
Posts: 4
Joined: Tue Nov 19, 2013 12:32 pm

Re: Exceeding Latex

Post by Zelos »

oh my god, seriously? Why would the order matter? and yes it did work.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Exceeding Latex

Post by Stefan Kottwitz »

Sometimes a package uses the same internal macros as another package, or redefines one. This way there can be a conflict or a dependency. If this happens, it's often documented in the package manual.

I remember, that you posted the same question some months ago. Without an example it was hard to tell then. Now you posted a very good minimal example, so it was easy to test and to help within minutes. I tested an just tried with changing the loading order. Otherwise I would have tried loading etex or using lualatex.

Stefan
LaTeX.org admin
Post Reply