Page LayoutPackage Conflict of 'ltxgrid' and 'algorithm' Package

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

Package Conflict of 'ltxgrid' and 'algorithm' Package

Post by ahmedsalahais »

Hi all. i have a problem. I want to make a specific chapter in two columns layout. After searching i found that i could use the command \twocolumngrid from the package ltxgrid. That worked very well for a test document. But it didn't work in my main document where i use the package algorithm. Here's a sample of the code that didn't work:

Code: Select all

\documentclass[10pt,a4paper]{book}
\usepackage{ltxgrid}
\usepackage{algorithm}
\begin{document}
\begin{algorithm}

\end{algorithm}
\end{document}
When i typeset that i get the following error at the line with \end{algorithm} :
! Missing \endcsname inserted.
Ofcourse if i removed \usepackage{ltxgrid} it wont show any error. So what do i do?

Thanks in advance,
Ahmed,
Last edited by ahmedsalahais on Sat Sep 03, 2011 8:35 pm, edited 3 times 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

Package Conflict of 'ltxgrid' and 'algorithm' Package

Post by ahmedsalahais »

Ok guys, I fixed the problem by using the package algorithm2e instead of algorithm.

The next code typeset correctly without any errors:

Code: Select all

\documentclass[10pt,a4paper]{book}
\usepackage{ltxgrid}
\usepackage{algorithm2e}
\begin{document}
\begin{algorithm}

\end{algorithm}
\end{document}
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

Package Conflict of 'ltxgrid' and 'algorithm' Package

Post by ahmedsalahais »

Damn this package ltxgrid it ruined my overall design.

Does anyone knows an alternative? i want to split a specific page, Reference, into two columns. Any ideas??
ahmedsalahais
Posts: 14
Joined: Sat Mar 19, 2011 11:17 pm

Package Conflict of 'ltxgrid' and 'algorithm' Package

Post by ahmedsalahais »

Okay, sorry guys. I, alhamdulellah, was able to get the design without any package at all. Simply using the command \twocolumn wherever i would like it to be.

Thanks.
Post Reply