helpListings package for LaTeX - Support: sr #310, Listings not showing tabs in Beamer

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

sr #310: Listings not showing tabs in Beamer

Submitted by:  Brooks Moses <brooks>
Submitted on:  Wed Apr 13 05:10:25 2011  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Wed Apr 13 05:10:25 2011, original submission:

Carter N. wrote, on Tue, 10 Nov 2009 15:41:50 -0000:


Dear Mr Moses and Mr Tantau,

First of all, /many/ thanks for the time and effort you have put into
your truly excellent packages, which I gratefully use on a daily basis
to teach programming to our students.

Unfortunately, I have found what appears to be a bug (or just a normal
behaviour that is beyond my level of LaTeX knowledge!): tab symbols are
not displayed in Beamer mode, even when showtabs is set to true.

At the bottom of this message, you will find a small document that
demonstrates the problem (I trust that my email client will not
interfere with the spaces and tabs). If you change the document class to
"article" and remove the frame's begin-end pair, the problem goes away,
but no amount of my reading your (also excellent) documentation has
enabled me to resolve the problem for beamer mode.

Perhaps you could advise?

Yours sincerely,

Neil.


\documentclass{beamer}
\usepackage{listings}
\lstset{
showspaces=true,
showtabs=false,
tabsize=4,
tab=\rightarrowfill
}
\begin{document}

\begin{frame}[fragile]{Test}

spaces on, tabs off:

\begin{lstlisting}
Sp: a b c
Tb: 1 2 3
\end{lstlisting}

spaces off, tabs on:

\lstset{showspaces=false,showtabs=true}

\begin{lstlisting}
Sp: a b c
Tb: 1 2 3
\end{lstlisting}

\end{frame}
\end{document}

Brooks Moses <brooks>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by brooks (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray