Ok, there it goes. :)
Try to generate the PDF, then copy and paste the source code into an editor and it should look like here.
And thanks for your time.
example.tex
\documentclass[oneside,english]{book}
\renewcommand{\ttdefault}{lmtt}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc ...
Search found 3 matches
- Thu Aug 13, 2009 12:00 am
- Forum: Text Formatting
- Topic: copy & paste source code inserted using "listings" package
- Replies: 4
- Views: 9798
- Wed Aug 12, 2009 11:09 pm
- Forum: Text Formatting
- Topic: copy & paste source code inserted using "listings" package
- Replies: 4
- Views: 9798
Re: copy & paste source code inserted using "listings" package
Thanks Thorsten,
I have tried your approach and it doesn't fix my problem... Several blank spaces are still copied as a single one in acrobat reader, which breaks the indentation of the original source code.
it sounds like something related with how PDFs handles interword spaces. Don't know if ...
I have tried your approach and it doesn't fix my problem... Several blank spaces are still copied as a single one in acrobat reader, which breaks the indentation of the original source code.
it sounds like something related with how PDFs handles interword spaces. Don't know if ...
- Wed Aug 12, 2009 3:56 pm
- Forum: Text Formatting
- Topic: copy & paste source code inserted using "listings" package
- Replies: 4
- Views: 9798
copy & paste source code inserted using "listings" package
Dear all,
I am looking for the best way to create a programing toolkit manual using latex. In this manual, I will need to insert a lot of source code snippets. I found "listings" package the best way to do it, since it allows me to include syntax highlight, line numbering, etc. However, when I ...
I am looking for the best way to create a programing toolkit manual using latex. In this manual, I will need to insert a lot of source code snippets. I found "listings" package the best way to do it, since it allows me to include syntax highlight, line numbering, etc. However, when I ...