Re: Ctrl+R and the little eyeballs icon can only display in qpdfview

2021-11-27 Thread Steve Litt
Paul A. Rubin said on Sat, 27 Nov 2021 17:57:57 -0500

>On 11/27/21 4:44 PM, Steve Litt wrote:
>>
>> Armed with the knowledge that reconfigure.py writes to
>> lyxrc.defaults, and the fact that I could find no other way to
>> change the PDF viewer, I edited reconfigure.py, changing the order
>> of the viewers in the array argument to subroutine CheckViewer(),
>> *only* for a filetype of PDF. Sure enough it worked, giving me the
>> first viewer, in the array, that was on my path.
>>  
>Was that viewer mupdf? Since the config script looks for mupdf and 
>apparently wasn't finding it (?), I'm wondering if the problem isn't 
>something to do with your command path.

Here's the thing. LyX exhibited this symptom for *every* previewer
except for qpdfview. When I temporarily uninstalled qpdfview so it
couldn't be found, it used a second viewer, and no attempt to use
any third viewer would displace the second viewer. LyX was obviously
going down a list and using the first viewer, on that list, that it
found. I found just such a list in reconfigure.py, reordered the list,
and changed it to use mupdf, and it used mupdf.

So until somebody can show me a way to select a viewer to assign to the
eyeballs, my conclusion is the only way to set the eyeballs viewer is
to go into reconfigure.py and rearrange the viewer array argument of
CheckViewer() in cases where the filetype is PDF.

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Ctrl+R and the little eyeballs icon can only display in qpdfview

2021-11-27 Thread Paul A. Rubin

On 11/27/21 4:44 PM, Steve Litt wrote:


Armed with the knowledge that reconfigure.py writes to lyxrc.defaults,
and the fact that I could find no other way to change the PDF viewer, I
edited reconfigure.py, changing the order of the viewers in the array
argument to subroutine CheckViewer(), *only* for a filetype of PDF.
Sure enough it worked, giving me the first viewer, in the array, that
was on my path.

Was that viewer mupdf? Since the config script looks for mupdf and 
apparently wasn't finding it (?), I'm wondering if the problem isn't 
something to do with your command path.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Ctrl+R and the little eyeballs icon can only display in qpdfview

2021-11-27 Thread Steve Litt
Paul A. Rubin said on Thu, 25 Nov 2021 23:11:34 -0500

>On 11/25/21 8:49 PM, Steve Litt wrote:
>> Hi all,
>>
>> No matter what I've tried, Ctrl+R and the little eyeballs icon
>> displays the PDF version of the document only in qpdfview. I changed
>> tools=>preferences=>output=>general=>PDF Command to  
>> mupdf "$$o#src:$$f:$$n:0"
>> and yet still, the eyeballs and Ctrl+R display in qpdfview.
>>
>> Why this matters is, alone in all my PDF viewers, qpdfview displays
>> links with annoying boxes around them, even though I did:
>>
>> \usepackage{hyperref }%  Colored, clickable URLs
>> \hypersetup{
>>hidelinks = true,
>>colorlinks   = true, %Colours links instead of ugly boxes
>>urlcolor = linkcolor, %Colour for external hyperlinks
>>linkcolor= linkcolor, %Colour of internal links
>>citecolor   = green %Colour of citations
>> }
>>
>> So, how does one set the viewer when presses Ctrl+R or clicks the
>> eyeballs?
>>
>> Thanks,
>>
>> SteveT

>Try Tools > Preferences... > File Handling > File Format, select in
>the "Format:" box the way you compile to PDF (so "PDF (pdflatex)" for
>me, since I'm old fashioned), then select your preferred PDF viewer in
>the "Viewer:" menu and click OK. If your preferred viewer is not
>there, select "Custom" and put the command to run the viewer in the
>box alongside the menu.

As I mentioned, the preceding didn't work because the
Tools=>Preferences=>File Handling=>Viewer dropdown gave only "None" and
"Custom" with an ability to fill in a field. Neither changed the
results at all. 

So I changed lyxrc.defaults, but that made no difference, and when I
did a Tools=>Reconfigure, lyxrc.defaults went back to its pre-edit
state.

No problem, I did chattr +i lyxrc.defaults, hard-wiring in mupdf. It
didn't work. So I did a reconfigure, which failed. lyxrc.defaults is
auto-generated, so it's not the proper place to do these things.

Armed with the knowledge that reconfigure.py writes to lyxrc.defaults,
and the fact that I could find no other way to change the PDF viewer, I
edited reconfigure.py, changing the order of the viewers in the array
argument to subroutine CheckViewer(), *only* for a filetype of PDF.
Sure enough it worked, giving me the first viewer, in the array, that
was on my path.

So my solution doesn't enable me to change my eyeball viewer without
editing reconfigure.py and then reconfiguring, but at least it enables
me to use a PDF viewer that correctly reflects the look of links.

Thanks,

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users