Linked Questions

20 votes
1 answer
9k views

I'm trying to write code in a LaTeX document that can be copy/pasted from an outputted pdf using Adobe Reader and that also word wraps, rather than breach the right margin. I've found that in ...
maurera's user avatar
  • 391
0 votes
1 answer
82 views

I'm using TexMaker with PDFLatex. My problem is that the code lines in the listing ress := 'articles'; test := 'something'; test := 'somethingarticles'; test := 'arrtticclleess'; are ...
stuhlterror's user avatar
2 votes
0 answers
84 views

Possible Duplicate: Phantom spaces in listings (pdf) I would like to create PDF using luatex and it's important that listings where copied from this PDF in the original form (to keep them working)....
SadChi's user avatar
  • 167
0 votes
0 answers
42 views

I use \texttt{} and lstlisting in Beamer to make text look like code in fixed-width font. But when I copy-paste it, it gets altered and fails to run. Here is a minimal example: \documentclass[xcolor=...
ginjaemocoes's user avatar
31 votes
4 answers
16k views

So I am using listings package for code examples. But there is a problem. When I copy the code examples from the final PDF document, they are usually not the same - the indentation is gone, there are ...
user avatar
13 votes
4 answers
5k views

I'm using lstlisting to create course notes from which I am hoping that code can be copy&paste'd I've already implemented the suggestions in Phantom spaces in listings (pdf) to make sure that ...
Yossi Farjoun's user avatar
12 votes
2 answers
7k views

I'm trying to use the listings package to typeset some code in a PDF document, in a way that allows me to copy-paste the resulting code. This mostly works well, if basicstyle=\ttfamily,columns=...
Mqrius's user avatar
  • 291
3 votes
0 answers
2k views

We are writing a PDF document in LaTeX that contains various installation instructions and other technology text. Our idea is that the user reads various instructions in Serif font and then there's ...
Geek's user avatar
  • 31
2 votes
1 answer
154 views

I'm generating a LaTeX document as so: \documentclass{article} \usepackage[letterpaper, margin=0.75in]{geometry} \usepackage[tocindentauto]{tocstyle} \usetocstyle{standard} \usepackage{parskip}% http:...
Benjamin Damm's user avatar
1 vote
0 answers
196 views

I have this latex code \documentclass{article} \usepackage[lmargin=2.5cm,rmargin=2.5cm,tmargin=1.5cm,bmargin=3.5cm]{geometry} \usepackage{listings} % Environment meant for source code (useful for ...
user69507's user avatar
  • 123