GeneralLines border every row when i use a frame

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
meanmrmittens
Posts: 4
Joined: Wed Feb 10, 2010 11:54 pm

Lines border every row when i use a frame

Post by meanmrmittens »

Problem:
Lines border every row when i use a frame for my custom style
frame.png
frame.png (14.88 KiB) Viewed 3793 times
What I want:
a pure black background with white text
intendedFrame.png
intendedFrame.png (14.83 KiB) Viewed 3781 times
Code:

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{listings}
\usepackage{color}

\lstdefinestyle{terminal}
{
  frame=single,
  basicstyle=\footnotesize \ttfamily \color{white},
  showstringspaces=false,
  backgroundcolor=\color{black},
%framerule=0pt,
%rulecolor=\color{black},
%fillcolor=\color{black},
%rulesepcolor=\color{black},
}

\begin{document}

\begin{lstlisting}[style=terminal]
[USERNAME@HOSTNAME folder]$ ./a.out
[USERNAME@HOSTNAME folder]$ ./a.out
[USERNAME@HOSTNAME folder]$ ./a.out
\end{lstlisting}

\end{document}
Attempted Solutions:
I was reading "The Latex Companion" second edition p.150 which states '...there is no direct way to fill the entire background...(unless you use a few tricks)...'... im probably misinterpreting this... does this mean it is not possible to make everything in the background pure black...

i have seen other latex articles which have the same lines...
for example: the "listings.pdf" p.17

i tried to alter properties of the frame hoping one of them might work(in the code i have them commented out) none of them worked

when i add \pagecolor{black} the lines "dissapear" so i think it is the page color seeping through

im not sure how to search for a solution... im not sure what these lines are called... i searched the forum for: lines, frame, border... but i found none which looked relavent

kind regards,
Mean Mr Mittens

Recommended reading 2024:

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

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

meanmrmittens
Posts: 4
Joined: Wed Feb 10, 2010 11:54 pm

Lines border every row when i use a frame

Post by meanmrmittens »

UPDATE:
after exhausting all my research into this problem and finding no answers... i decided that the problem was not with LaTeX... but with the default linux pdf viewer (Evince)... so i installed Adobe Reader and the problem DISSAPEARED! GEESH!
However, there are still artifacts on the corners... this can be fixed by uncommenting some of the above code.
finalFrame.png
finalFrame.png (14.78 KiB) Viewed 3763 times
Solution:
install Adobe Reader
Last edited by meanmrmittens on Sat Feb 20, 2010 9:28 pm, edited 1 time in total.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Lines border every row when i use a frame

Post by frabjous »

Did you try printing the PDF from evince? I doubt the lines would have printed.

You might try Okular or something else as well. (Or even run PDF Xchange viewer through Wine.) Adobe Reader is beast of a memory and resource hog.
meanmrmittens
Posts: 4
Joined: Wed Feb 10, 2010 11:54 pm

Lines border every row when i use a frame

Post by meanmrmittens »

@frabjous
Did you try printing the PDF from evince? I doubt the lines would have printed.
unfortunately i just got a new printer and havent got it setup to work under linux... (the hassles im having of setting up an epson is left for another forum :))... so i am unable to confirm
You might try Okular
i never heard of okular... ill give it a try
Adobe Reader is beast of a memory and resource hog.
i agree. scrolling through pages is painfully slow

thank you very much for your input frabjous
ill definitely be taking you up on your advice
Last edited by meanmrmittens on Sat Feb 20, 2010 9:58 pm, edited 1 time in total.
meanmrmittens
Posts: 4
Joined: Wed Feb 10, 2010 11:54 pm

Lines border every row when i use a frame

Post by meanmrmittens »

UPDATE:
unfortunately Okular had the same problem... the interesting thing is zooming in out caused the lines to dissappear and reappear
okularFrame.png
okularFrame.png (6.03 KiB) Viewed 3748 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Lines border every row when i use a frame

Post by frabjous »

Evince and Okular are both poppler-based PDF viewers, so it may be understandable that they have the same problem.

Yet if the lines disappear on zoom, I'd again predict that they wouldn't show up when printed.

There's one more linux PDF viewer I know about xpdf -- which you might try, though I wouldn't expect different results.

As a service to the linux world, consider reporting a bug at the poppler/bugzilla page; I've found them very responsive.
Post Reply