Re: insert listing so it can be copy/pasted from pdf

2019-05-21 Thread Dr Eberhard Lisse
Would something like this work? http://mirror.ufs.ac.za/ctan/macros/latex/contrib/attachfile/attachfile.pdf el On 06/05/2019 04:25, Joel Kulesza wrote: > On Sun, May 5, 2019 at 2:43 PM Bob Alvarez <4...@outlook.com> wrote: > >> >> I want to insert text code listings into Lyx so readers can c

Re: insert listing so it can be copy/pasted from pdf

2019-05-09 Thread Bob Alvarez
Here is an interesting discussion on the topic of this thread embed-non-pdf-files-e-g-bibtex-into-pdf-with-hyperlink-in-the-pdf The post lists 9 criteria for a useful embedded file tha

Re: insert listing so it can be copy/pasted from pdf

2019-05-09 Thread Bob Alvarez
It looks like this did not get on the mailing list so I am re-sending >Unless you will go through a publisher that will prevent it, I would still >encourage you to look at the approach I suggested. It is demonstrated here: >https://laws.lanl.gov/vhosts/mcnp.lanl.

Re: insert listing so it can be copy/pasted from pdf

2019-05-09 Thread Joel Kulesza
> On May 8, 2019, at 17:13, Bob Alvarez <4...@outlook.com> wrote: > > > So I expect this to be a problem of your PDF Viewer or clipboard or OS. > > I agree. As I mentioned in a previous post on this thread, putting the code > in the pdf is not reliable enough to be used. So I have decided not t

Re: insert listing so it can be copy/pasted from pdf

2019-05-08 Thread Bob Alvarez
> So I expect this to be a problem of your PDF Viewer or clipboard or OS. I agree. As I mentioned in a previous post on this thread, putting the code in the pdf is not reliable enough to be used. So I have decided not to attempt to do it. I will put the code in a supplementary information file f

Re: insert listing so it can be copy/pasted from pdf

2019-05-06 Thread Guenter Milde
On 2019-05-06, Bob Alvarez wrote: > [-- Type: text/plain, Encoding: quoted-printable --] >>Which fonts does your PDF use? > Here is what Pdf-Xchange viewer reported: > CMSY9 (Embedded Subset) > Type: Type 1 Encoding: Built-in Object Number: 5 > LMRomanlO-Regular (Embedded Subset) > Type: Type

Re: insert listing so it can be copy/pasted from pdf

2019-05-06 Thread Bob Alvarez
>Which fonts does your PDF use? Here is what Pdf-Xchange viewer reported: CMSY9 (Embedded Subset) Type: Type 1 Encoding: Built-in Object Number: 5 LMRomanlO-Regular (Embedded Subset) Type: Type 1 (CID) Encoding: Identity-H Object Number: 6 LMRoman9- Regular (Embedded Subset) Type: Type 1 (CID)

Re: insert listing so it can be copy/pasted from pdf

2019-05-06 Thread Guenter Milde
On 2019-05-06, Bob Alvarez wrote: > [-- Type: text/plain, Encoding: quoted-printable --] > Guenter and Joel > I appreciate your help but I am coming to the conclusion that the pdf > file format is not well enough defined to be able to reliably embed > software listings that the reader can copy/p

Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Bob Alvarez
Guenter and Joel I appreciate your help but I am coming to the conclusion that the pdf file format is not well enough defined to be able to reliably embed software listings that the reader can copy/paste into a file and then be able to compile the results. I will have to continue as I have don

Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Guenter Milde
On 2019-05-06, Bob Alvarez wrote: >>>Does using "non-TeX" fonts in Document>Settings>Fonts help?(This >>>allows all Unicode characters in listings and uses Unicode-encoded >>>fonts in the output.) > There was no change. The '-' character on the clipboard is still > encoded as 3f hex. Does it sho

Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Joel Kulesza
On Sun, May 5, 2019 at 2:43 PM Bob Alvarez <4...@outlook.com> wrote: > > I want to insert text code listings into Lyx so readers can copy and > paste from the pdf document into their plain text editor software. > Bob, This doesn't directly address your need, but to permit readers to obtain con

Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Bob Alvarez
>>Does using "non-TeX" fonts in Document>Settings>Fonts help?(This allows all >>Unicode characters in listings and uses Unicode-encoded fonts in the output.) There was no change. The '-' character on the clipboard is still encoded as 3f hex. Bob p.s. I copied the text at the bottom of my email

Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Guenter Milde
On 2019-05-05, Bob Alvarez wrote: > I want to insert text code listings into Lyx so readers can copy and > paste from the pdf document into their plain text editor software. > > To replicate my problem use the example lyx file belo. Export as pdf > (LuaTex). In the pdf select the listing text 'x-y

Re: insert listing so it can be copy/pasted from pdf

2019-05-05 Thread Bob Alvarez
Whoops--I inadvertently sent this before I finished. Here is the complete question ... I want to insert text code listings into Lyx so readers can copy and paste from the pdf document into their plain text editor software. To replicate my problem use the example lyx file belo. Export as pdf (L