Re: LyX under WSL2 using VcXsrv (sharing clipboard problems)

2020-11-30 Thread Cris Fuhrman
On Mon, Nov 30, 2020 at 10:03 AM Pavel Sanda  wrote:

> On Fri, Nov 27, 2020 at 02:47:34PM -0500, Cris Fuhrman wrote:
> > Sadly, I can't get the clipboard to work consistently outside of X. For
> > example:
> >
> >
> >1. In Windows, start the VcXsrv
> >2. In WSL2, start LyX, create New file
> >3. In Windows, copy some text (e.g., from Notepad++)
> >4. In LyX paste (this works)
> >5. In LyX, change the text, then Copy
> >6. In Notepad++, paste (no effect). Windows-V (to show the clipboard
> >history) shows no trace of the newly copied text from LyX.
> >7. Try steps 2-4 again and it no longer works, implying something
> >"breaks" the Xserver in those steps.
> >
> > I'm able to do copy/paste with other applications such as xfe (file
> > explorer) and gedit (text editor), so I know my XServer can work properly
> > (at least sometimes).
>
> It would be interesting to try different apps than xfe or gedit, some which
> use Qt framework as does LyX.
>

Any suggestions? I'm happy to try them, but I don't use X11 applications
much apart from LyX these days.


> Qt's handling of clipboard can be tricky and buggy at times, but if other
> Qt
> based apps do work we should have a look at it.
>

I actually found a work-around to make LyX work by turning off "primary"
clipboard in VcXsrv. I'm not sure if other X11 apps work properly, however.
So far it's OK with xterm. Here's how I'm starting VcXsrv in a batch file
that runs when I boot Windows 10:

REM Change E:\VcXsrv to your VcXsrv installation folder
START /D "E:\VcXsrv" /B vcxsrv.exe -multiwindow -clipboard -noprimary
-nowgl -ac -displayfd 720

Anyway, if LyX reasonably works under WSL2 it would be worth to create LyX
> wiki page
> with intructions how to set it up and then I can make direct link from our
> official
> Download pages.
>
> I am thinking for some while that WSL-based LyX could become in longterm
> the best
> way how to get LyX working under Windows -- all the LaTeX/python deps and
> security
> updates for ghostscript and imagemagick solved at one shot by the
> underlying
> distribution... In more than decade we lost so much energy in dicussions
> and
> fights about the windows installers and associated MikTeX bugs which could
> be
> avoided this way.
>

I think it's worth considering. WSL2 is fast-moving and requires some
configuring to make X11 work. I think it's better than running Linux in a
VirtualBox because of disk space (images are pretty huge, compared to
dumping a save of your distro in WSL). But all the tweaking I had to do on
linux seems to have lots of accidental complexity. For example, I still
can't type accents in LyX in WSL2 as I do in Windows when I have selected
an International keyboard. I know it's possible in WSL2, but I have to
Google it, set up the keyboard properly and that's a whole rabbit hole (WSL
isn't like a distro with a nice set of configuration tools for the GUI --
you have to hack to make X11 work). Also, there's still not an official
WSL2 for Ubuntu 20.04 LTS (you can make it work, but it's a tweak). LyX
isn't ready out of the box...

When you add up all the Googling, the 'sudo apt install ...' commands you
have to type, etc., I'm not sure those are overall less than the headaches
of configuring the python path, etc., in Windows. As you say, with a Wiki
it could be less painful. I know I didn't have to touch the texlive install
so far. But, I can definitely see how it would be better for LyX devs to
not have to support Windows 10.

Honestly, I've moved away from LyX to markdown/pandoc/latex for newer
content. It's not as much control as LyX, but it's good enough for me to
produce documentation useful in my courses. I've invested in LyX for one
set of course notes, so I will still maintain it. But the markdown/pandoc
solutions are easier to maintain on GitHub with the various collaborators I
work with.

Cris


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


LyX under WSL2 using VcXsrv (sharing clipboard problems)

2020-11-27 Thread Cris Fuhrman
Hello,

I recently started using LyX  on my Windows 10 via WSL2 (Ubuntu) with
VcXsrv. The application is snappy and I like configuring the supporting
tools in linux (especially the tex configurations).

Sadly, I can't get the clipboard to work consistently outside of X. For
example:


   1. In Windows, start the VcXsrv
   2. In WSL2, start LyX, create New file
   3. In Windows, copy some text (e.g., from Notepad++)
   4. In LyX paste (this works)
   5. In LyX, change the text, then Copy
   6. In Notepad++, paste (no effect). Windows-V (to show the clipboard
   history) shows no trace of the newly copied text from LyX.
   7. Try steps 2-4 again and it no longer works, implying something
   "breaks" the Xserver in those steps.

I'm able to do copy/paste with other applications such as xfe (file
explorer) and gedit (text editor), so I know my XServer can work properly
(at least sometimes).

Is there some option I need to configure in LyX to get it to use the proper
clipboard that can be shared outside (assuming that is how it's working
with xfe and gedit), or is this a bug?

Here's the build info:

LyX 2.3.5.2 (2020-06-25)
Configuration
  Host type:   x86_64-pc-linux-gnu
  Special build flags:  build=release std-regex use-hunspell use-aspell
use-enchant
  Bundled libraries:   (none)
  C++ Compiler:g++ (7.5.0)
  C++ Compiler flags:   -fPIC -O2 -std=c++14
  C++ Compiler user flags:  -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14  -g
-O2 -fdebug-prefix-map
=/build/lyx-aqV8hd/lyx-2.3.5.2=. -fstack-protector-strong -Wformat
-Werror=format-security
  Linker flags:
  Linker user flags:   -Wl,-z,defs -Wl,--as-needed
-Wl,-Bsymbolic-functions -Wl,-z,relro
  Qt Frontend:
  Qt version:  5.9.5
  Packaging:   posix
  LyX binary dir:  /usr/bin
  LyX files dir:   /usr/share/lyx

Regards,

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


More obvious feedback when a reconfigure is in process

2019-10-26 Thread Cris Fuhrman
Hello,

While trying some various installs of MiKTeX recently, I had to reconfigure
LyX several times. At one point, I was trying to change the settings and
the menu wasn't working. Finally I realized that the reconfigure was still
running, and that I had just been duped by the fact that the only feedback
is on a status line at the bottom of the window (which wasn't changing
because the step the reconfigure on was one that takes more than 10 seconds
on my machine sometimes (fonts?)).

Anyway, I wondered why there isn't an progress-bar type dialog or something
with more feedback when doing a reconfigure? It can take as long as a
minute on one of my machines.

Cheers,

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


Re: Reuse MikTeX from Win10 in WSL

2019-10-23 Thread Cris Fuhrman
Posting a status of what I tried:

I followed  https://miktex.org/howto/install-miktex-unx to install MiKTeX
for Ubuntu (under WSL).

I managed to get MiKTeX installed in WSL (with the "shared" option, and
using the common-X options described at
https://docs.miktex.org/manual/miktexsetup.html) to see the packages
installed already in Windows (miktex-console sees them in the list, I
didn't need to download them again).

However, I had to delete the filename databases, whose process is described
at https://miktex.org/kb/fix-fndb-damaged

Sadly, I could not get MiKTeX console to run in Admin mode (this may be a
problem with WSL). Whenever I tried (even with sudo to launch the console),
the program just exits and I saw no errors that were obvious. Also, LyX
wasn't finding biber correctly, which turned out to be a symbolic link
issue in MiKTeX.

I had posted an issue on the MiKTeX github
https://github.com/MiKTeX/miktex/issues/400 and got a quick response that
solved the above problems.

Conclusion for today: It's working on my current system, for a complex
document that uses biblatex and lots of packages (not a complete test, but
encouraging nonetheless). I will delete my redundant TexLive install in WSL
to save the gigs of SSD.


On Fri, Oct 18, 2019 at 5:54 AM Kees Zeelenberg (kzStats) <
kzsta...@gmail.com> wrote:

> Thanks for sharing - this is interesting. Did you turn off the option on
> the Linux side to install automatically missing modules (assuming that such
> an option exists there, too)? One of the nice things about MikTeX in
> Windows is that the modules are loaded dynamically inside of LaTeX (or even
> LyX). TeXLive has huge "chunks" for modules (via apt-get), at least as
> far as I can tell.
>
>
>
> If you turn it on, then missing packages might be installed twice. I am
> not sure if you can configure MikTeX such that packages are installed in
> the common package directory (if I remember correctly, you cannot move it
> up above the Linux root directories in the MixTeX console).  If you turn it
> off, then you must either install the packages by hand or switch to
> Windows, which may not be such a problem when using WSL. You might also try
> to add the Linux package directory to the list of root directories under
> Windows; I haven’t tried this but perhaps it works.
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Reducing document figures size

2019-10-17 Thread Cris Fuhrman
On Thu, Oct 17, 2019 at 1:19 PM Rich Shepard 
wrote:

> Thanks, Chris. Over the past couple of decades I've used gs primarily to
> convert .ps to .pdf (or the reverse) and have never dug deeply into all its
> capabilities. And it hadn't occurred to me to look at it.
>

I recently had to submit a paper to an IEEE conference and there was a
missing embedded font in the PDF (coming from a figure created in R). I
spent an hour trying to play around with the fonts in R, etc. with no
results. Finally I googled the problem and found that GS was able to solve
it (even using the fonts on my Windows 10 machine!). Like for you, gs has
helped me many times over the years, even before PS/PDF was a mainstream
format. Much like you, I was surprised... but not.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Reducing document figures size

2019-10-17 Thread Cris Fuhrman
GhostScript has lots of features. There are some hints at this GIST:
https://gist.github.com/firstdoit/6390547

On Thu, Oct 17, 2019 at 10:45 AM Rich Shepard 
wrote:

> I have a 37-page report and the pdf size is 7.3M because it includes 34
> figures. Some of these figures are digital photographs (720x480dpi, .png),
> some are spatial maps produced by GRASS (.pdf), and some are lattice plots
> produced by R (large amounts of data display slowly, .pdf).
>
> Is there a format that would preserve image quality but consume less space?
> I'm sure that ImageMagick's 'convert' will do the job. I've tried
> converting
> PDF files to EPS but the quality is noticeably degraded.
>
> Ideas most welcome.
>
> Regards,
>
> Rich
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Reuse MikTeX from Win10 in WSL

2019-10-17 Thread Cris Fuhrman
On Thu, Oct 17, 2019 at 9:44 AM Kees Zeelenberg (kzStats) <
kzsta...@gmail.com> wrote:

> Yes, this is possible; that is to say I once did this under a dual boot of
> W10 and Lubuntu. Install MikTeX in the usual way under one system, say W10,
> then install the basics under the other system, WSL, and add the W10
> install TEXMF root directory, where the packages are, as user root
> directory under WSL.  Of course, in this construct, packages can only be
> updated under W10.
>

Thanks for sharing - this is interesting. Did you turn off the option on
the Linux side to install automatically missing modules (assuming that such
an option exists there, too)? One of the nice things about MikTeX in
Windows is that the modules are loaded dynamically inside of LaTeX (or even
LyX). TeXLive has huge "chunks" for modules (via apt-get), at least as
far as I can tell.


> It should also be possible to share between TeXLive and MikTeX in a
> similar way.
>
> I don’t do this anymore, since HD are cheap nowadays.
>

True, but the same is not true about SSDs. My main machine is a Surface Pro
and it's very snappy, but the SSD has ~250Gb - I'm not hurting for space
yet, which is why I asked the question. My home desktop has a 2TB HD that
is a performance bottleneck when I run LyX.

I will give it a try and report back. Cheers!
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to keep versions of a paper in different formats

2019-09-09 Thread Cris Fuhrman
On Mon, Sep 2, 2019 at 8:04 PM  wrote:

> Sure. But there’s always the final rejection. :-( FWIW, IEEE Access
> operates very close to a binary model, thumbs-up or -down with little
> chance for modifications. They did allow me one round of changes, however.
>

I got the impression from my interaction that it's a binary model because
they want to improve publishing times: They officially say it's a reject
and you get feedback. But then you are free to resubmit with the feedback,
only as a "new" submission. That way if they decide to publish the second
revision, it was published in only the time since that submission (any
prior submissions were "rejections" of a different paper, so that "time"
doesn't count). It's good, since you're free to publish somewhere else when
it's a binary decision (you're not in a gray "accepted with major
revisions" area). But the times to publish are somewhat debateable, since
nobody knows how many prior rejections were involved.

What is there to  not appreciate about LyX? A missing layout file would be
> the only problem, right? And mental inertia of your colleagues.


Have you seen ShareLaTeX? It is a big reason people stick to LaTeX for
papers they write together, and I have to admit it's a good argument.

Installing LyX on Windows is also more of a pain than ever. I'm using LaTeX
Workshop plugin in Visual Studio Code, and it's very slick. There's a huge
community supporting it.


Re: How to keep versions of a paper in different formats

2019-08-30 Thread Cris Fuhrman
On Fri, Aug 30, 2019 at 8:04 AM  wrote:

> I have a manuscript which I plan to submit for publication. In its current
> form, it is in a format different from what the journal expects and as such
> must be converted to the format (IEEE) expected by the journal. (I normally
> do this  by copy-pasting large sections of text.)


I have done that, too, as it's pretty sketchy to try to copy/paste the
whole document (now I don't remember why, anymore; perhaps LyX would crash
on my Windows?).


> If the manuscript is rejected by the journal then I will have to either
> revert to the original format or convert to a third format for another
> journal.


I think I understand in theory what you want to do, but wonder if it's
useful or makes sense in practice. Every time I had a paper rejected from a
journal, there were changes to be made for good reasons. That is, I never
resubmitted the original manuscript to another venu without taking at least
some of the feedback into consideration.

I have a version control problem across formats if I make further edits to
> any version in any format. Besides tediously manually editing all versions,
> making the same changes, is there any way to keep a master document and
> spawn one or more alternately-formatted versions with the same content,
> thus saving the headache of manually editing each version?


Child documents? See https://wiki.lyx.org/FAQ/Multidoc#input-include - I've
used this to reuse stand-alone problem statements inside exam documents
(that latter of which have formatting requirements), but I never tried it
in the context of an IEEE publication. I think it's going to depend on the
formatting.

The last three journal/conference papers I worked on were done in LaTeX
because not enough of my co-authors appreciate LyX. I'm still keeping LyX
for my course notes (like a book), where I'm the sole author.


Re: LyX & svg files

2018-11-26 Thread Cris Fuhrman
Replying to the list...

On Fri, Nov 23, 2018 at 3:14 PM Bernt Lie  wrote:

> I use LyX 2.3.1 on Windows 10, 64 bit.
>
>
>
> It seems like LyX sometimes has problems handling SVG files, specifically
> lines with arrow heads.
>
>
>
There was a bug about this that was closed (fixed in 2.2.4 for which there
is no binary I could find on LyX.org): https://www.lyx.org/trac/ticket/9778

Anyone know if it's the same thing showing up in 2.3.x?

Also, I'd love to get an installer for the 2.2.4 on Windows 10 if possible
(I downgraded from 2.3.x because it breaks my custom file formats and I
could not find a work-around: https://www.lyx.org/trac/ticket/11087).


Re: you say install latest version of MiKTeX before installing LyX - what is the minimal version needed?

2018-09-09 Thread Cris Fuhrman
I also updated my MikTeX 2.9 with two installs of 2.2.x under Windows 10 in
the past 10 days and had no problems. Is this a LyX 2.3.x problem only?

On Sun, Sep 9, 2018 at 12:54 PM Daniel  wrote:

> On 09/09/2018 18:05, Richard Kimberly Heck wrote:
> > On 09/08/2018 09:15 PM, Peter Taylor wrote:
> >>
> >> Hi,
> >>
> >> I have upgraded MiKTeX relatively recently – I don’t want to upgrade
> >> again if I don’t have to upgrade – so please could you update your
> >> webpage which says:
> >>
> >> (start quote)
> >>
> >> Due to a bug in MiKTeX, installation of LyX 2.3.0 can sometimes cause
> >> the MiKTeX installation to be corrupted. (See
> >> https://github.com/MiKTeX/miktex/issues/82.) If you run into problems,
> >> the solution will be to uninstall MiKTeX and then re-install.
> >>
> >> We highly recommend that MiKTeX users update to the latest version
> >> *before* installing LyX 2.3.0. If you have any questions about how to
> >> update MiKTeX, you can email lyx-users@lists.lyx.org for help. (You do
> >> not need to be subscribed to the mailing list to do so, but you may
> >> wish to do that anyway. See this page
> >>  for information on
> subscribing.)
> >>
> >> (end quote)
> >>
> >> This information does not mention specific versions – just says
> >> “latest version of MiKTeX”. My MiKTeX console window tells me it is
> >> version 2.9.6751.
> >>
> >> I am actually using another TeX editor which works fine for me but I
> >> want to collaborate with a colleague and I heard that LyX might be an
> >> easier editor for him to use on shared documents. Before doing that I
> >> want to check that LyX is something I can recommend to him.
> >>
> >> However seeing this message on your website has made me reluctant to
> >> try out LyX in case my MiKTeX installation gets corrupted.
> >>
> >
> > There is currently some major bug in MiKTeX that is preventing any kind
> > of update. You might want to wait a little bit before doing anything.
>
> Isn't it already working again? I had no problems today.
>
> Daniel
>
>


Re: Gothic style fonts in LyX/MikTeX

2018-08-26 Thread Cris Fuhrman
On Sun, Aug 26, 2018 at 12:35 PM Ricardo Berlasso 
wrote:

> If you are willing to use XeTeX instead of plain LaTeX, setting up a new
> font-family that uses ...
>

Thanks for the pointer - that option finds my Windows fonts, one of which
is Old English Text MT, and it shows nicely in the PDF. It's easy enough to
make sure that's installed on the system. Cheers!


Gothic style fonts in LyX/MikTeX

2018-08-26 Thread Cris Fuhrman
Hello,

For a project, I wanted to use an old-English/Germanic style font. I found
some in yfonts, but it's tricky to install/setup with MikTeX (not
automatic) because it requires a local tex install. There are instructions
at https://wiki.lyx.org/Tips/InstallType1Fonts and also on StackOverflow
for Type1 installs. Not impossible, but less easy to reproduce between my
PC at home and work.

Is there a gothic-like font that will work well with LyX/MikTeX
automagically?


Re: pdfcomment

2018-08-14 Thread Cris Fuhrman
Hi Frank,

This seems to be a pdfcomment question rather than one about LyX.

I tried markup=Underline,linewidth=29bp,color=red to no avail (the line
width of the underline is not affected). PDF might support various
thicknesses, but I can't see a way to do it in pdfcomment.

On Tue, Aug 14, 2018 at 7:29 AM F M Salter 
wrote:

> Hi
>
> Clearly pdf's can have underlines of differing thickness'.  Is there
> a  way of increasing the thickness of underlines created by pdfcomments?
>
> Regards
>
> Frank Salter
>
>
>


Re: How do I bring the QUANTA journal template into LyX?

2018-08-01 Thread Cris Fuhrman
On Wed, Aug 1, 2018 at 6:52 AM Daniel Kian Mc Kiernan <
daniel@oeconomist.com> wrote:

> Versions of perl have long been available for Windows.
>

There is also Linux Subsystem for Windows (LSW), which I recently tried.
One still must update the perl environment to get the tex2bib script to
run, as the latest perl under Ubuntu doesn't have Perl4::CoreLibs by
default, which is required in tex2bib.

However, before anyone tries this lengthy install process of perl under
windows, it's important to realize that tex2bib is very limited if your
\bibitem elements don't follow certain conventions (from the perl comments):

# Assumes that bibitems are formatted as follows:
> #  -- {key}author(s), (date) at the beginning
> #  -- titles of books or names of journals: {\em title}
> #  -- article titles:  after date, `` '' quotes optional
> #  -- volume, pages:  {\it vol}, nnn-nnn.
> #  -- publisher/address:address:publisher


In the case of the manuscript.tex from Quanta, because the data aren't
formatted that way, it catches only a few of the fields in the conversion.
IMO it's not a useful tool.

Cheers,

C. Fuhrman


Re: How do I bring the QUANTA journal template into LyX?

2018-07-30 Thread Cris Fuhrman
Indeed there is no trace of any LyX layout file for Quanta. However, I
don't think you have to go the customized layout route.

I tried (with LyX 2.2.3) to import (File > Import > LaTeX (plain)) the
LaTeX template called Manuscript.tex (it's available on the quanta site)
and it creates a LyX file that's not too bad as a start.

When I generated the PDF, it took some time to install the missing
packages/fonts on my MikTeX install, and it resulted in a few errors with
"Option clash" for both babel and graphicx. There are several packages that
seem to be superfluously loaded in the preamble (Document > Settings >
LaTeX preamble). Commenting them out worked.

The result looks close to what is on their site, with figures, etc. One
problem I spotted was with the bibliography/citations that are not correct
(the template has \bibitem and I think LyX works best with a separate file,
especially if you want to have [4-7] instead of [4, 5, 6, 7] citations).
Converting the \bibitem in the template is not trivial (there is tex2bib,
but it's perl and needs Linux or a Mac probably). You likely have your own
database of references?




On Fri, Jul 27, 2018 at 2:17 PM Paul A. Rubin  wrote:

> On 07/27/2018 12:31 AM, e...@me.com wrote:
> > See
> > http://quanta.ws/ojs/index.php/quanta/about/submissions#authorGuidelines
> .
> >
> > 5-lines from top it mentions the Journal’s LaTeX template.
> >
> > 11-lines from top it mentions their approval of LyX.
> >
> > I would like to bring the QUANTA journal template into LyX, so that is
> > available when required (from within LyX).
> >
> > Thank you.
> You will need to find (or create) a LyX layout file, which tells LyX how
> to map elements of their template to GUI elements. See Chapter 5 of the
> LyX Customization manual for the gory details. Since they mention that
> they accept LyX files, it is possible that a layout file already exists
> ... but it does not seem to be one of the layouts included with LyX, and
> they make no mention of it on their site. You might email their
> editorial office and ask whether they know of one before going through
> the hassle of building your own.
>
> Paul
>
>


Re: Where is the Plain-TeX IRC channel and mailing list?

2018-05-28 Thread Cris Fuhrman
Hi Steve - I don't have a direct answer to your question about IRC, but
there is a TeX Stack Exchange, which has chat. There have been some Eplain
questions/answers in the past (I'm not a TeX expert):
https://tex.stackexchange.com/questions/tagged/eplain

Cheers,

C. Fuhrman

On Sun, May 27, 2018 at 12:16 PM, Steve Litt 
wrote:

> Hi all,
>
> I frequently need help on plain TeX, **NOT** on LaTeX or ConTeXT. 95 %
> of the web's docs retrieved by a search on "plain tex" are really
> about LaTeX. From my research on the web, there are maybe 10 docs on
> Plain TeX or Eplain (I'm using Eplain too),  and those docs are
> insufficient to tell you how to achieve simple things.
>
> I'm sorry to have to ask this here. Twice I've asked on Freenode
> #latex, and twice nobody answered.
>
> Thanks,
>
> SteveT
>
> Steve Litt
> June 2018 featured book: Twenty Eight Tales of Troubleshooting
> http://www.troubleshooters.com/28
>
>
>


Re: The tortured release of 2.3.0 Windows binaries

2018-05-15 Thread Cris Fuhrman
I started out using TRS-DOS in the 80s and have been on all operating
systems over the years. ;-)

I'm primarily a Windows user today, because of the work culture and the
hardware I have (Surface Pro). But I've always believed that any kind of
dogma regarding the "best flavor" of IT is dangerous because, well, it's
ephemeral. Even if you're right today...

That said, LyX under Ubuntu seems less flexible than under Windows, since
it's not using MikTeX but TeXLive. As such, when a new package or something
is needed, it can't install it on the fly. Perhaps I missed something about
my Ubuntu install?

Cheers,

Cris

On Tue, May 15, 2018 at 3:15 PM, Jim Rockford 
wrote:

>
> People are still taunting about this like schoolyard infants?  Well,
> here's a few reasons for you that apply to my case, Johnny boy:
>
> (1)  I work in a scientific field and a specific laboratory that uses data
> analysis software for which there are only Windows versions.  I used Linux
> exclusively prior to joining this lab.  I'd rather not quit this job
> because of a Linux snobbery affliction.
> (2)  Gaming.  I have a Windows machine at home because I like to play
> modern video games.  Good luck trying to get them to run on WINE, which is
> a cheat anyway if you're a Linux purist.
> (3)  There's nothing wrong with having a dual boot Windows/Linux system
> for the sake of convenience.  I'm not going to waste time booting into
> Linux just to write scientific documents if I'm already in Windows.
>
> Jim
>
>
> On Sat, May 12, 2018 at 11:03 PM, John White 
> wrote:
>
>> Why are people still using Windows?  My firm gets along without Gates
>> just fine.
>>
>> John White
>>
>>
>>
>>
>


Re: Formatting name/date to be filled by others

2018-04-11 Thread Cris Fuhrman
Hi Rich,

An alternative is to use a table. The labels (Name, Date, etc) are in cells
that have no borders, and the other parts are in cells with borders on the
bottom. Of course you have to play with widths of columns, but this
approach is more form-like and it's easier to perceive (WYSIWYM) in LyX
than ERTs that won't show till you view in PDF or whatever.

Cheers,

C. Fuhrman

On Tue, Apr 10, 2018 at 7:18 PM, Rich Shepard 
wrote:

>   Before I re-invent the wheel I want to discover if there are existing
> tools to provide for entry of name, signature, and date to be filled in on
> a
> printed copy of the document page. Specifically, this is for project
> proposal acceptance and should look something like this (in fixed-space
> font):
>
> Name (printed): ___ Date: _
>
> Signature: 
>
>   Of course, \hspace{} and \vspace{} will place these appropriately. What I
> seek is a way to add the solid underline for a defined length and at a
> specified place. Would \hfill{} be the appropriate macro? I've used it to
> place spaces but not baselines.
>
> Rich
>


Re: MikTeX problem...

2018-04-03 Thread Cris Fuhrman
Hi Bernt,

I googled the error and found this:
https://tex.stackexchange.com/q/18144/17868

Is it helpful?

C. Fuhrman

On Mon, Apr 2, 2018, 09:52 Bernt Lie  wrote:

> I just updated MikTeX after some problems with LyX lately. (LyX 2.2.3,
> Windows 10, 64 bit).
>
>
>
> When trying to preview a LyX document, I get the following error message:
>
>
>
>
>
> When clicking on “Yes”, the following detail pops up:
>
>
>
>
>
> Anyone got a clue?
>
>
>
> -Bernt
>


Re: LyX 2.3.0 Ubuntu possible bug with custom file format

2018-03-22 Thread Cris Fuhrman
My initial response was only to Riki. This one is to the whole list
(slightly clarified):

On Thu, Mar 22, 2018 at 2:36 PM, Richard Kimberly Heck 
wrote:

>
> It looks to me as if maybe there is a difference between 2.2.x and 2.3.0
> in whether
> it was packed with the "magic" mime-type library. The magic-related code
> seems to have been
> skipped in the 2.2.x version.
>
> In any event, this looks like a bug in the magic library. That's where we
> are getting the
> file type from.
>

For the record, the particular .plantuml file *could* be a html_table,
because it has HTML table data embedded in it. So, I'm not sure I'd call it
a bug in that library. It's trying to guess, and it's doing a pretty good
job.

The bug (to me) is that LyX is giving priority to the magic detection
(guessing) over the actual filetype, defeating the rule.

I would think that it should trust filetypes that have defined rules first,
then use magic if it doesn't know the file type.

Cheers,

C. Fuhrman


LyX 2.3.0 Ubuntu possible bug with custom file format

2018-03-22 Thread Cris Fuhrman
I'm testing 2.3.0 on my Ubuntu VM (didn't want to break my Windows install)
with a document that has a lot of PlantUML files (which have a custom
conversion rule to SVG that works well most of the time).

One of the files has some embedded HTML in it, and LyX seems to decide
(despite the .plantuml extension and conversion rule) to process it has an
html_table extension.

I tracked down the log messages whenever I try to reload the image. Note
the fact that it gets some mime type of *text/html* and having determined
the content, it ignores the extension (and thus the rule). This seems like
a bug.

13:38:01.770: (graphics-reload)graphics/GraphicsCacheItem.cpp (421): Converting
> it to  format.
> graphics/GraphicsCacheItem.cpp (391):
> [CacheItem::Impl::convertToDisplayFormat]
> Attempting to convert image file:
> /home/cfuhrman/Documents/mgl843-notes-de-cours/figures/RFC_example.plantuml
> with displayed filename:
> ~/Documents/mgl843-notes-de-cours/figures/RFC_example.plantuml
> Format.cpp (438): got format from MIME type: text/html -> html_table


Here's what a successful reload of a .plantuml image reloads as. You'll
note that the *getFormatFromContents* first fails before it uses the file
extension:

13:47:50.702: (graphics-reload)graphics/GraphicsCacheItem.cpp (421): Converting
> it to  format.
> graphics/GraphicsCacheItem.cpp (391):
> [CacheItem::Impl::convertToDisplayFormat]
> Attempting to convert image file:
> /home/cfuhrman/Documents/mgl843-notes-de-cours/figures/RFC_class.plantuml
> with displayed filename:
> ~/Documents/mgl843-notes-de-cours/figures/RFC_class.plantuml
> Format.cpp (389): filetools(getFormatFromContents)
> File type not recognised before EOF!
> Format.cpp (396): filetools(getFormatFromContents)
> Couldn't find a known format!
> Format.cpp (507): will guess format from file extension: plantuml ->
> PlantUML
> graphics/GraphicsCacheItem.cpp (398):
> The file contains PlantUML format data.
> graphics/GraphicsCacheItem.cpp (347): Unable to convert from PlantUML to
> bmp
> graphics/GraphicsCacheItem.cpp (347): Unable to convert from PlantUML to
> gif
> graphics/GraphicsCacheItem.cpp (347): Unable to convert from PlantUML to
> jpg
> graphics/GraphicsCacheItem.cpp (347): Unable to convert from PlantUML to
> pbm
> graphics/GraphicsCacheItem.cpp (347): Unable to convert from PlantUML to
> pgm
> graphics/GraphicsCacheItem.cpp (410): No conversion needed (file in file
> cache)!
> graphics/GraphicsCacheItem.cpp (301): Loading image.
> graphics/GraphicsCacheItem.cpp (307): Image loading succeeded.


Is this a bug or a feature? How can I force LyX not to try to be smart
about the file content? This problem didn't happen on Windows 10 with 2.2.x.

Cheers,

C. Fuhrman


Re: Small poll - download speed of LyX installers

2018-02-21 Thread Cris Fuhrman
On Fri, Feb 16, 2018 at 11:20 AM, Pavel Sanda  wrote:

> 1. time to download (/ download speed)
>

I'm using Chrome on Windows at my university which has a pretty fast
connexion normally. However, it's telling me 40 minutes left (pretty
consistent time, not going to wait for it to finish, however).


> 2. country (and/or domain) where you download from
>

Montreal, Quebec, Canada.


> 3. whether you download from home/academic network/large company...
> (you don't have to report more details than it feels comfortable...)
>

ETSMTL.CA is the domain. It's my university.


>
> Both good and bad answers matter, we want to know whether this is sporadic
> or widespread problem.
>
> In case your download of the link above is more than couple seconds, it
> would
> be useful if you also reported whether some of the mirror servers listed at
> http://www.lyx.org/Download#toc11 which are closer to your geographical
> location perform better.
>

The mirror at ftp://ftp.ucsd.edu/LyX/devel/lyx-2.3/lyx-2.3.0rc2/ indicates
4 minutes (consistently, but the other download is ongoing).

Cheers!

C. Fuhrman


Re: BibTeX issue: journal name not seen by LyX

2018-02-08 Thread Cris Fuhrman
>  I use bibtex and that's the way both JabRef and LyX are configured.
> Yes, so does version 3.8.2 that I use and none of the 'quality' checks do
anything.

The Check Integrity function I use is in JabRef 4.1 (the latest).

I'd suggest making sure your bibtex file is 100% bibtex as follows:

   1. In JabRef, create a new "bibtex" library.
   2. Copy all the entries from the existing "biblatex" library and paste
   them in the library created above.
   3. Run "Quality > Check Integrity" and resolve any "biblatex field only"
   issues.
   4. Save the library as the converted "bibtex" library.

Cheers,

C. Fuhrman

On Thu, Feb 8, 2018 at 10:52 AM, Rich Shepard <rshep...@appl-ecosys.com>
wrote:

> On Thu, 8 Feb 2018, Cris Fuhrman wrote:
>
> If your JabRef format is biblatex, are you using LyX appropriately?
>> https://wiki.lyx.org/BibTeX/Biblatex
>>
>
> Chris,
>
>   No. I use bibtex and that's the way both JabRef and LyX are configured.
>
>  Otherwise, make sure you've updated to the latest Jabref.
>>
>
>   I cannot do this because it requires openjfx and that's available for
> only 64-bit processors. My desktop has a 32-bit CPU and this issue has come
> up only in this document and with references (now 2) from only a single
> author.
>
> It has some tools to validate the bib(la)tex files (Menu Quality > Check
>> Integrity, and Menu Quality > Cleanup entries > Convert to biblatex), etc.
>>
>
>   Yes, so does version 3.8.2 that I use and none of the 'quality' checks do
> anything.
>
> But beware of the many warnings about small things like non-standard
>> author formatting which doesn't matter (the integrity check can produce a
>> lot of noise). I had a problem once with a badly encoded accented
>> character in the .bib file that caused LyX to just not finish; it took me
>> hours to find it (before I knew that Jabref had those tools).
>>
>
>   I've checked each journal title field for unprintable characters and
> re-written them but nothing makes a difference.
>
> Rich
>


Re: BibTeX issue: journal name not seen by LyX

2018-02-08 Thread Cris Fuhrman
Hi Rich,

If your JabRef format is biblatex, are you using LyX appropriately?
https://wiki.lyx.org/BibTeX/Biblatex

Otherwise, make sure you've updated to the latest Jabref. It has some tools
to validate the bib(la)tex files (Menu Quality > Check Integrity, and Menu
Quality >  Cleanup entries > Convert to biblatex), etc. But beware of the
many warnings about small things like non-standard author formatting which
doesn't matter (the integrity check can produce a lot of noise). I had a
problem once with a badly encoded accented character in the .bib file that
caused LyX to just not finish; it took me hours to find it (before I knew
that Jabref had those tools).

Cheers,

C. Fuhrman

On Thu, Feb 8, 2018 at 8:37 AM, Rich Shepard 
wrote:

> On Thu, 8 Feb 2018, Scott Kostyshak wrote:
>
>   journaltitle = {Chemosphere},
>>>
>>
>> I know nothing about this, but should this be "journal = " ?
>>
>
> Scott,
>
>   I wondered about this, but JabRef is set for bibtex, not biblatex, and
> all
> articles, including the other two Helsel's in that series, have the same
> form for the journal's name.
>
> Thanks,
>
> Rich
>


Re: LyX-to-LyX pasting from "English" to "English (USA)" annoyances

2018-01-21 Thread Cris Fuhrman
On Sat, Jan 20, 2018 at 5:39 PM, Scott Kostyshak  wrote:

> I do this maneuver enough times that I find it annoying.
>

I'd map the command to change language text to a hot key (I'm pretty sure I
did this before with one of the text formatting things I found myself doing
often).

A possibly cool feature would be for LyX to detect that a user is often
doing the same (uncommon) command and propose mapping it to a hot key? I'm
sure some software somewhere does this...


> Thoughts?
>

Asking people how often it happens (in the users forum) is likely to
generate more heat than light, mainly because it's only from folks who are
subscribed. A more precise way to know would be to collect usage metrics
for LyX, which was not a well liked idea from my recollection of that in
the forum.


Re: LUAtodonotes (was: fontsize for the TODO Module)

2018-01-18 Thread Cris Fuhrman
I'm not sure of the LUA context. However, I've tweaked todonotes in LyX by
going to

Document > Settings > Local layout

and adding the following line:

PackageOptions todonotes
"colorinlistoftodos,backgroundcolor=green!40,textsize=tiny"



On Thu, Jan 18, 2018 at 5:14 AM, Dr Eberhard Lisse  wrote:

> I have submitted Ticket #10984 to request that luatodonotes.sty be added.
>
> Can someone in the meantime tell me how I can use that instead of
> todonotes.sty?
>
> greetings, el
>
> On 18/01/2018 10:15, Dr Eberhard Lisse wrote:
> > Hi,
> >
> > is there a way of changing the font size for all margin notes in one
> > fell swoop from the GUI?
> >
> > Or do I have to mess with the module?
> >
> > el
> >
> >
>
>


Re: LyX error: "No information for converting svgz format files to pdf6. Define a converter in the preferences.”

2017-12-11 Thread Cris Fuhrman
I'm not a Mac user, but it sounds like an SVG support problem. I personally
like Inkscape for SVG, but there are other solutions.

I would try to

   - install inkscape on MacOS
   - make sure LyX sees the directory for it in the path section of the
   settings
   - do the "configure" command. My understanding is that it will create
   the SVGx to Y converters.

Hope this is useful!

On Mon, Dec 11, 2017 at 2:13 PM, Chandler1,D (pgr) 
wrote:

> Hello,
>
> I installed LyX on my MacBook Pro (10.12.5) today.
>
> I want to work through the tutorial, and decided it would be useful to
> have a pdf version. However, when I click the View button to create a pdf I
> get the following error message:
>
> "No information for converting svgz format files to pdf6.
> Define a converter in the preferences.”
>
> If I tell LyX to go ahead and create a PDF anyway, then various bits come
> out a mess (see attached, p8-9 for example). The issue seems to be with
> “toolbar buttons”.
>
> I have searched for forums discussing this issue but cannot find anything
> that resolves my problem. One forum suggested installing “homebrew" and
> then typing in the command “brew install librsvg” but this didn’t help.
>
> I would be very grateful for any advice. I am wary of continuing with LyX
> if this means I won’t be able to format any files.
>
> Thanks,
>
> Daniel
>
>


Re: LyX 2.2.3, Windows 10 and showing SVG in the editor

2017-06-26 Thread Cris Fuhrman
On Sun, Jun 25, 2017 at 7:41 PM, Scott Kostyshak  wrote:

> I'm not sure exactly what happens and if there is platform-specific
> behavior. To see the discussion I was referencing, see:
>
> https://www.lyx.org/trac/ticket/9778


Thanks for the details. Clearly LyX is trying to render SVG without using
conversion rules. In https://www.lyx.org/trac/ticket/9778#comment:10 a
work-around to force LyX to use the conversion rules is to remove a library
file. I tried this on my Windows 10 (it's a DLL) and it breaks the GUI of
LyX.

Because SVG is a moving standard (1.1 is last official one and was released
in 2011, 1.2 is still a draft, Tiny 1.2 exists as a separate standard, 2.x
is still in draft mode, etc.), LyX users should have more control over how
SVG is rendered with the tool they prefer. SVG is not like GIF or JPEG
(yet).

I see there was already a patch
https://www.lyx.org/trac/changeset/6bd5263405/lyxgit that was supposed to
make this work. But from my experiences with 2.2.3 in Windows, it doesn't
seem to be working (anymore).

Would it be constructive to make a feature request in LyX to allow the
option of bypassing native SVG rendering?


Re: LyX 2.2.3, Windows 10 and showing SVG in the editor

2017-06-25 Thread Cris Fuhrman
On Sun, Jun 25, 2017 at 4:24 PM, Scott Kostyshak  wrote:

> Qt has
> problems with some (valid) SVG files and only supports a certain
> implementation of the SVG fileformat.
>

Can you confirm that Qt is overriding the SVG -> PNG conversion in LyX
2.2.3? This seems like a bug to me, for reasons that I pointed out here.
Not the end of the world, but 2.2.3 is a small step back for me if this is
something new.


Re: how to input Chinese in ERT?

2017-06-23 Thread Cris Fuhrman
Hello Su Baochen,

What operating system are you running? I think the answer will depend on
that.

Cheers,

C. Fuhrman

On Fri, Jun 23, 2017 at 6:34 AM, subaochen  wrote:

> hi all,
>
> I can not input any Chinese in ERT, but can copy from others, if I missing
> some tricks to handle Chinese in ERT?
>
> Thanks in advance!
>
>
> --
> Best regards,
>
> Su Baochen
> ---
> wiki:http://softlab.sdut.edu.cn
> blog:http://soft.sdut.edu.cn/blog/subaochen
> 
> wechat:baochensu
>
>
>
>


Re: Issues using lyx

2017-06-23 Thread Cris Fuhrman
On Thu, Jun 22, 2017 at 10:12 PM, Mr William Balthes <
william.balt...@uqconnect.edu.au> wrote:

> A suggestion from the list is that I use linux.
>
> I know nothing about it.  Does it have automatic updates that you can't
> avoid where the system restarts.
>
I've not had any data loss on my Windows 10 due to automatic updates, but I
tend to always save my files before going away from my PC. In defense of
auto-updates as a Win10 mechanism, a power loss overnight would also put
you at risk if you didn't save your LyX file properly and use a reliable
backup system, even in linux.

Using a cloud file service, e.g., Dropbox or Google drive, etc. is a way to
have a copy of your file in case something weird happens. I'm pretty sure
that Google Drive has a way (albeit cryptic) to recover versions of the
same file for up to 30 days.

Finally, I also remember how much of my own procrastination was involved
with the technical aspects of my dissertation (LaTeX vs Word vs FrameMaker
was the topic we would spend hours debating online in the mid 90s). Try not
to let it take up too much of your energy.

Regards,

C. Fuhrman


LyX 2.2.3, Windows 10 and showing SVG in the editor

2017-06-22 Thread Cris Fuhrman
Hello,

While debugging some issues with SVG converters, I'm a bit confused now. I
had configured an SVG -> PNG conversion rule in my preferences, hoping to
control the tool that will visualize my SVG images when editing in LyX.
Sadly, it seems that LyX is not applying the rule anymore. Here's the
message log info:

graphics/GraphicsCacheItem.cpp (416): Converting it to format.
>
> Format.cpp (393): filetools(getFormatFromContents)
>
> Couldn't find a known format!
>
> Format.cpp (504): will guess format from file extension: svg -> svg
>
> graphics/GraphicsCacheItem.cpp (386):
> [CacheItem::Impl::convertToDisplayFormat]
>
> Attempting to convert image file: C:/REDACTED.svg
>
> with displayed filename: C:/REDACTED.svg
>
> Format.cpp (393): filetools(getFormatFromContents)
>
> Couldn't find a known format!
>
> Format.cpp (504): will guess format from file extension: svg -> svg
>
> graphics/GraphicsCacheItem.cpp (393):
>
> The file contains svg format data.
>
> graphics/GraphicsCacheItem.cpp (398): No conversion needed (from == to)!
>
> graphics/GraphicsCacheItem.cpp (295): Loading image.
>
> graphics/GraphicsCacheItem.cpp (301): Image loading succeeded.
>
>
>
Here are my questions:

   - Which tool is converting my SVG to show on the screen if the log says
   "No conversion needed"? Are SVG files now somehow "native" to LyX 2.2.3?
   - Is it not the SVG -> PNG rule I should be overriding?
   - Why is my SVG -> PNG converter (the one I thought should be executed)
   being ignored?

The reason I need to do this is that the rendering of flowed (wrapped) text
in SVG (something I use quite a lot in figures) is very dependent on the
converter. Inkscape lets me edit pretty well, but I'd been having issues
with it hanging and so I switched it to rsvg-convert while debugging. That
tool doesn't quite handle wrapped text so well, as it is a controversial
(moving target) part of the standard. See
http://wiki.inkscape.org/wiki/index.php/Frequently_asked_questions#What_about_flowed_text.3F

My SVG -> PDF (pdf2latex) etc. overrides seem to work just fine when I
test.


Re: Issues using lyx

2017-06-18 Thread Cris Fuhrman
On Sun, Jun 18, 2017 at 2:36 PM, Cris Fuhrman <fuhrmana...@gmail.com> wrote:

> I just tried this in LyX 2.3.3 on one of my big exam files...
>

Correction: I'm  running LyX 2.2.2 on my computer at home where this crash
was.


Re: Issues using lyx

2017-06-18 Thread Cris Fuhrman
I use LyX a lot with Windows 10, and have had some spontaneous crashes that
are hard to reproduce in small documents. They have happened when selecting
large parts of a document (the selection scrolling beyond the current
window is expanded super fast downward, across many parts of a document
including figures, appendix, and then... boom!).
[image: Inline image 1]

I just tried this in LyX 2.3.3 on one of my big exam files, and it's still
a problem. I tend to NOT use the emergency file, and I've learned NOT to do
big mouse selections (I select only with shift and arrow keys). This may
not be William's problem, but could be related to it.

On Sun, Jun 18, 2017 at 9:58 AM, David L. Johnson  wrote:

> On 06/17/2017 11:58 PM, Mr William Balthes wrote:
>
> I am using lyx to write my thesis and having major problems.
>
> The program continually crashes and mostly forms an emergency file but
> sometimes not.
>
> The document seems to get messed up regardless.
>
> I have never had any such problems, so let's find out what is going on.
>
>
> The document class is American Mathematical Society (AMS) Article
>
> Which I use all the time.
>
>
> I can send a document sample if this helps
>
> I would guess this is a configuration issue.  Are you new to LyX?  Send me
> a minimal file that shows the problem.  One way to do that is to take the
> file that is causing problems, cut it in half, and see which half continues
> to be a problem.  Continue until you can isolate the problem area (and of
> course remove anything you want to keep private).  Send that to me.
>
> Now, I don't use Windows, and have version 2.2.2 of LyX, but this would be
> a first test to see where the problem is.
>
> --
> David L. Johnson
> Department of Mathematics
> Lehigh University
>
>


Re: Google Analytics (or other)

2017-06-03 Thread Cris Fuhrman
On Jun 3, 2017 19:23, "Joel Kulesza"  wrote:

However, I would want to see an option in the installation process to
disable "anonymous usage statistics" from being collected.


I totally agree. I mentioned this point in my first post in the other
thread about the preferences file. Many applications have a preference to
turn on or off usage data collection (it's often phrased "help improve this
application by contributing anonymous usage data").


Google Analytics (or other)

2017-06-03 Thread Cris Fuhrman
On Jun 3, 2017 15:50, "Scott Kostyshak"  wrote:

Thanks for this idea, Cris. Would this be only to see how many people
are using LyX or for something in addition to that? Every time I think
about something like that, I challenge myself and ask: "Why do I want to
know how many people use LyX?" and my answer is always just that I would
be curious. Since I don't think it would lead to any improvement in LyX,
my train of thought stops there.


GA (as far as I understand it) can track usage within any app. For example,
each time a user selects New, the app can "click" a link via GA that
signifies New. It's up to the developer to determine granularity of usage
stats. In theory you could collect preference data at every
closing/applying of the preference dialogue (it could be arguments to a
tracking URL). I'm not an expert in how best to do it, but it's "usage
data" that many apps already collect. GA is but a means to that end. There
are other options: https://stackoverflow.com/q/1554062/1168342


Re: Help improve LyX's defaults by sharing your preferences

2017-06-01 Thread Cris Fuhrman
Hi Scott,

I'm attaching my "anonymized" prefs file.

Did you ever consider using Google Analytics to track LyX usage? Of course,
it's ethical (and probably required in the TOS of GA) that you have it
deactivated by default and that you request permission from users to turn
it on. I played around with it before on a plug-in I made for Word and it
gives you live data. There might be other ways to track usage that don't
have to go through Google. See
https://stackoverflow.com/questions/4338557/track-c-application-with-google-analytics
for a starting point.

C. Fuhrman

On Thu, Jun 1, 2017 at 4:07 PM, Scott Kostyshak  wrote:

> Dear all,
>
> There are many different preferences that the user can customize. It is
> difficult to think about what is the best default preferences for the
> most amount of users. One way I've thought of to get an idea of this is
> to start collecting user's preferences. If we see that a lot of users
> have changed a certain preference, we might think about changing the
> default. Of course, for you this won't make much of a difference since
> you have that setting set anyway. But it could make a difference for the
> out-of-the-box experience of new LyX users.
>
> Just to set realistic expectations, I would say that the chance of us
> changing a default preference are pretty low (see, for example, [1], for
> why this is complicated). In order to tak a rist, we need to have a lot
> of evidence about the average user; and since you are on a LyX mailing
> list that means you are not an average user in my opinion :).
>
> Preferences in particular that I'm curious about are:
>
>   screen zoom
>   continuous spellcheck
>   math preview
>
> Before posting, please check your preferences file manually for any
> information that you prefer not to be made public.
>
> Your preferences are in a file called "preferences", stored in your user
> directory. To locate your user directory, see Help > About (I think on
> Mac this is LyX > About?). If you go to your user directory and there is
> no "preferences" file, that means that you have not changed any of the
> defaults. I still want to know in this case. If you could just respond
> "default", then that would be helpful.
>
> Please state your OS with the categories of Windows, Mac, or Linux. This
> is important because it is possible to have different default
> preferences on different platforms.
>
> Attached is my preferences file.
>
> Scott
>
>
> [1] https://www.mail-archive.com/search?l=mid=
> CAO7dr0isQTesZ9cJeobrA0vYFr3ctUMA-JWTPDx677tjz286Ew%40mail.gmail.com
>
# LyX 2.2.2 generated this file. If you want to make your own
# modifications you should do them from inside LyX and save.

Format 19


#
# MISC SECTION ##
#

\path_prefix "C:/Python27;C:/Program 
Files/ImageMagick-7.0.3-Q16;$LyXDir/bin;$LyXDir/Python;$LyXDir/Python/Lib;$LyXDir/Perl/bin;$LyXDir/imagemagick;C:/Program
 Files/MiKTeX 2.9/miktex/bin/x64;C:/Program Files/Ghostgum/gsview;C:/Program 
Files/gs/gs9.18/bin;C:/Program Files (x86)/JabRef;C:/Program 
Files/Inkscape;C:/Program Files/SumatraPDF;C:/Program Files/Git/mingw64/bin"
\serverpipe "\\.\pipe\lyxpipe"
\user_name "Christopher Fuhrman"
\user_email "christopher.fuhr...@gmail.com"
\preview on

#
# SCREEN & FONTS SECTION 
#

\screen_zoom 200
\screen_font_sizes 5 7 8 9 10 12 14.4 17.26 20.74 24.88
\single_instance false
\forward_search_pdf "SumatraPDF -reuse-instance \"$$o\" -forward-search \"$$t\" 
$$n"

#
# COLOR SECTION ###
#


#
# PRINTER SECTION ###
#


#
# TEX SECTION ###
#


#
# FILE SECTION ##
#

\example_path "C:\Users\fuhrm\Google Drive\Lyx\Resources\examples\"
\template_path "C:\Users\fuhrm\Google Drive\Lyx\Resources\templates\"
\thesaurusdir_path "C:\Users\fuhrm\Google Drive\Lyx\Resources\thes\"
\hunspelldir_path "C:\Users\fuhrm\Google Drive\Lyx\Resources\dicts\"

#
# PLAIN TEXT EXPORT SECTION ##
#


#
# SPELLCHECKER SECTION ##
#


#
# LANGUAGE SUPPORT SECTION ##
#

\spellcheck_continuously true

#
# 2nd MISC SUPPORT SECTION ##
#


#
# FORMATS SECTION ##
#

\format "bmp" "bmp" "BMP" "" "auto" "auto" "" "image/x-bmp"
\format "dia" "dia" "DIA" "" "auto" "auto" "vector,zipped=native" 
"application/x-dia-diagram"
\format "dvi" "dvi" "DVI" "D" "yap" "" "document,vector,menu=export" 
"application/x-dvi"
\format "dvi3" "dvi" "DVI (LuaTeX)" "V" "yap" "" "document,vector,menu=export" 
""
\format "docbook-xml" "xml" "DocBook (XML)" "" "" "notepad" 
"document,menu=export" "application/docbook+xml"
\format "eps" "eps" "EPS" "" "gsview64" "" "vector" "image/x-eps"
\format "eps3" "eps" "EPS (cropped)" "" "gsview64" "" "document" ""
\format "eps2" "eps" "EPS (uncropped)" "" "gsview64" "" "vector" 

What's your preferred way to merge changes and manage conflicts in LyX files under git?

2017-04-20 Thread Cris Fuhrman
I'm collaborating using git on bitbucket (for a free private cloud
repository) and SourceTree for Windows on an article in LyX (2.2.2). There
are multiple image files (e.g., generated by R in SVG) and a big .bib file.
For the record, I'm not really using LyX's built-in version control, as it
doesn't recognize the other files that might change. SourceTree is very
visual and saves you from memorizing the cryptic git command lines;
although when you get stuck, you can still type them in a git bash window.

Yesterday, I had to merge some changes from another author, which took
(too) much of my time using the git-oriented way. We had both (somewhat
simultaneously) updated the same section of the article, and that section
got moved in one version. But resolving merge conflicts is also harder
because LyX source is not really meant to be human readable (and I use LyX
for the precise reason that I don't want to look at typesetting source). I
wonder, too, if git doesn't use syntax hints to help identify blocks of
code (e.g., balanced parentheses and brackets, which are used in many
programming languages but not so much in .lyx files).

When I pulled the changes (my local branch was out of sync by half a day),
there were conflicts. I'm not new to merging, but it's the first time I've
done it with a LyX file. I have configured SourceTree to use the kdiff3
tool, which did a great job to help me out (it resolved most of the
conflicts, but about 20% required manual intervention, where you basically
have to decide between version A, B or C in three separate windows for each
conflict). In the end, I was very conservative and wound up with some
duplication in the final document (the section that was moved). Finally, I
met with the co-author in person and was able to resolve some conflicts
that were redundant. I was actually just happy the LyX file wasn't corrupt
after the merge! I suppose this same problem would occur in source code,
but given that code has to function to pass tests, it's not quite the same
work flow. Editing academic publications is different than writing software
in this way. But I digress...

Alternatively, I could have cloned the head origin version before I merged
and and just resolved the differences in separate LyX windows using
copy/paste by hand, But with no tool to show differences, that is also not
ideal. The other strategy is to agree ahead of time not to touch the same
parts of the document in parallel. But these just seems counterproductive
when you're using source code control! Related humor: https://xkcd.com/1597/

What's your preferred way to merge changes and manage conflicts in LyX
files under git?


Re: Lyx 2.2 errors w/ miktex 2.9.6 (on win10)

2017-04-16 Thread Cris Fuhrman
I can share a bit as a win10 user of 2.2.2.

One annoying quirk of LyX and MikTeX is the fact that MikTeX on-the-fly
installs can sometimes fail for weird but not rare reasons. For example,
you configured MikTeX to use server ABC but for some strange reason that
server's archive is broken and the package LyX needs fails a sanity check.
When these failures occur, LyX gives a vague answer, probably due to the
level of nesting. It wasn't until I ran MikTeX update as administrator that
I got the helpful message that let me know to switch servers. The average
user might not be so tolerant or persistent.  It's too bad the MikTeX
redundant system is not more robust.

Another problem I encounter is with long file paths, but only when using,
say, PNG images in my LyX files. LyX again fails with an obscure error.
Debugging the image conversion in the cache showed that my the filename was
really long and at some point the converted image was "not found". I moved
my LyX file directory to a path closer to the root, thus making the cache
file names shorter, and the errors stop. I can probably reproduce this
easily, if more info is needed.

On Apr 13, 2017 09:53, "Stephan Witt"  wrote:

> Am 13.04.2017 um 15:44 schrieb Mitch Gusat :
> >
> > Seen the same issues on Mac and Linux, but it's particularly vexing on
> Windows since the recent (April'17) Miktex 2.9 release: Lyx 2.0/1/2 used to
> work flawlessly for years before the new miktex release.
>
> Hi Mitch,
>
> I’d like to get more detailed infos regarding the problems you’ve
> mentioned for LyX on Mac.
>
> Thank you
> Stephan
>
>


Re: Lyx-Miktex problems on Windows 10

2016-12-09 Thread Cris Fuhrman
I had a similar problem this morning again. Here's what I think is an
example of where LyX doesn't handle well the MikTeX on-the-fly updates in
Windows 10:

10:56:36.699: downloading
> http://ctan.math.ca/tex-archive/systems/win32/miktex/tm/packages/dvips.tar.lzma.
> ..
> 10:56:36.701: 32074 bytes, 17.82 KB/Sec
> 10:56:36.703: extracting files from dvips.tar.lzma...
> 10:56:36.704:
> ==
> 10:56:37.241: The process crashed some time after starting successfully.


LyX proceeded, but later failed in the 'pdflatex' command with an error.

When I loaded the MikTeX package manager manually, it appeared that
dvips.tar.lzma was correctly installed (perhaps the process continued to
run even though LyX reported it had crashed). Doing a View (Ctrl-R) again
in LyX worked, so the dvips was there the second time. LyX did not try to
install it.

This may not be so much a LyX problem in Windows 10 as it is a MikTeX
updater problem in Windows 10. MikTeX is known for not always clearly
giving you errors properly. One of my favorites is this one:
http://tex.stackexchange.com/a/254393/17868 (the error is about too many
connections from your IP address, but the server is intentionally down).

One suggestion might be to have an option for LyX to stop processing (fatal
error) when packages don't install properly, with a recommendation of the
user to install manually.

Another question: is it mandatory in LyX to run "reconfigure" after
updating MikTeX? Updates sometimes cause obsolete packages to be removed
and replaced. Could LyX detect this and suggest running "reconfigure"?


On Fri, Dec 9, 2016 at 2:34 AM, Cris Fuhrman <fuhrmana...@gmail.com> wrote:

> I had a similar problem earlier this week. The cause was the MikTeX mirror
> I was using was reporting that versions of LaTeX elements were present, but
> when the updater would run from LyX to install missing things, it would
> fail. The errors show in LyX message console, but they aren't fatal. I
> discovered this by running the update/package manager myself outside of
> LyX.
>
> The short term solution was to choose another LaTeX distribution mirror in
> MikTeX updater by running it outside LyX.
>
> On Thu, Dec 8, 2016, 23:35 Scott Kostyshak <skost...@lyx.org> wrote:
>
>> On Sun, Nov 27, 2016 at 04:20:22PM +, Guillermo Cruces wrote:
>> > Hi everyone, I have been a Lyx user for years. Awesome program! Every
>> version change has been a bit bumpy, but a reconfigure used to work. Not
>> now. Here are my issues, just posted on stackexchange too:
>> >
>> > I have issues with packages with Lyx 2.2 on Windows 10. I have updated
>> packages on MikTex as admin, I have changed the option to ask me first
>> instead of update packages on the fly (even though I selected ask me first
>> during install, it still got set at on the fly), I have updated directories
>> on miktex options (admin), I have reconfigured lyx, and nothing. When I
>> open a beamer file, it says the beamer.cls (and set space and many others
>> are available) and while it asks for downloading them within lyx, they
>> don't seem to "stick".
>> >
>> > I have managed to compile my file by going to the Miktex package
>> manager (as admin) and installing manually every package that lyx
>> complained was not available. I get a PDF (although it complains the PDF
>> viewer is missing...). While it compiles, it still complains that the
>> beamer class, xcolor, etc., are not available when opening the file.
>> > It seems to me something in the settings/update/confir of Lyx+Miktex is
>> not working. Anyone can confirm this? Any solutions? I'll try running Lyx
>> as admin just in case...
>>
>> Hi Guillermo,
>>
>> I'm CC'ing Uwe, who is our only developer on Windows. Hopefully he has
>> an idea of what's going on.
>>
>> Sorry for the frustration.
>>
>> Scott
>>
>


Re: Lyx-Miktex problems on Windows 10

2016-12-08 Thread Cris Fuhrman
I had a similar problem earlier this week. The cause was the MikTeX mirror
I was using was reporting that versions of LaTeX elements were present, but
when the updater would run from LyX to install missing things, it would
fail. The errors show in LyX message console, but they aren't fatal. I
discovered this by running the update/package manager myself outside of
LyX.

The short term solution was to choose another LaTeX distribution mirror in
MikTeX updater by running it outside LyX.

On Thu, Dec 8, 2016, 23:35 Scott Kostyshak  wrote:

> On Sun, Nov 27, 2016 at 04:20:22PM +, Guillermo Cruces wrote:
> > Hi everyone, I have been a Lyx user for years. Awesome program! Every
> version change has been a bit bumpy, but a reconfigure used to work. Not
> now. Here are my issues, just posted on stackexchange too:
> >
> > I have issues with packages with Lyx 2.2 on Windows 10. I have updated
> packages on MikTex as admin, I have changed the option to ask me first
> instead of update packages on the fly (even though I selected ask me first
> during install, it still got set at on the fly), I have updated directories
> on miktex options (admin), I have reconfigured lyx, and nothing. When I
> open a beamer file, it says the beamer.cls (and set space and many others
> are available) and while it asks for downloading them within lyx, they
> don't seem to "stick".
> >
> > I have managed to compile my file by going to the Miktex package manager
> (as admin) and installing manually every package that lyx complained was
> not available. I get a PDF (although it complains the PDF viewer is
> missing...). While it compiles, it still complains that the beamer class,
> xcolor, etc., are not available when opening the file.
> > It seems to me something in the settings/update/confir of Lyx+Miktex is
> not working. Anyone can confirm this? Any solutions? I'll try running Lyx
> as admin just in case...
>
> Hi Guillermo,
>
> I'm CC'ing Uwe, who is our only developer on Windows. Hopefully he has
> an idea of what's going on.
>
> Sorry for the frustration.
>
> Scott
>


Re: TODO notes (double entries) in LyX 2.2.2 on Windows 10

2016-12-07 Thread Cris Fuhrman
My first email had an attachment of a lyx file (perhaps it didn't go
through?)

Anyway, it's definitely a bug in TODO notes... I even think I found the bug
in the source at https://github.com/henrikmidtiby/todonotes/issues/22 (see
my comment).

On Wed, Dec 7, 2016 at 6:43 PM, Richard Heck <rgh...@lyx.org> wrote:

> On 12/01/2016 11:14 AM, Cris Fuhrman wrote:
>
> I've recently noticed an odd behavior of TODO Notes in LyX 2.2.2. I
> enabled the fancyline option, and I saw I was getting two lines. Upon
> further debugging (using author= and size=\tiny), I can prove that it's
> actually generating two TODO notes at the same place. Here's a screen grab:
>
> [image: Inline image 1]
> I'm attaching the minimal example (used in LyX 2.2.2 under Windows 10). I
> updated my MikTeX yesterday to see if it would go away, but no luck. It's
> reproducible on BOTH my Windows 10 machines with LyX.
>
> I searched for todonotes modules (as I used it before prior to LyX 2.2
> before it was part of the distribution), but I couldn't find anything in my
> LyX path directories that looked like a duplicate. I'm not sure how this is
> happening.
>
> When I paste the LaTeX source from LyX (pasted below) into a TeXstudio
> document, it works perfectly, so I don't think it's my TeX installation.
>
>
> That's pretty strange. Can you post an example file?
>
> Richard
>
>


Re: Troubleshooting BibTeX in LyX

2016-12-05 Thread Cris Fuhrman
It's working again. I re-installed LyX, but that didn't fix the problem. I
didn't want to re-install MikTeX for obvious reasons (it is working fine in
TeXStudio and it's slow to install).

Googling, I saw someone recommended using biber instead of bibtex in
Preferernces > Output > LaTeX > Bibliography Generation > Processor when
LyX gives "?" in its citations. So I tried that, but it didn't work either.
However, I was at least getting warnings in the LaTeX log that my
references were undefined.

Frustrated, I again tried "Reconfigure" and... surprisingly it started
working. I believe reconfigure re-set the default bibliography generator to
bibtex, as that is what it is now, and it's working. Hope this is helpful
to someone.

On Sun, Dec 4, 2016 at 5:20 PM, Cris Fuhrman <fuhrmana...@gmail.com> wrote:

> Hello,
>
> I'm using Windows 10, LyX 2.2.2 on an article I've been working on for
> months, and all my citations started to appear as question marks (?) and no
> References section is produced. It was working before, so something got
> hosed on my machine.
>
> I tried the LyX file on another Windows machine with LyX/MikTeX and it is
> working fine, so I'm certain it's the config of my machine. The LaTeX code
> generated by LyX works fine in TeXStudio, so I think my MikTeX installation
> is OK.
>
> I tried LyX "Reconfigure" many times, but it seems to change nothing.
>
> There are no BibTeX errors that appear in logs (that I can see), and I'm
> at a loss of where to start troubleshooting. I did try a new document with
> a minimal BibTeX example and it's the same problem, yet no clues about why
> it's happening.
>
> Do I have to turn on some debug messages? Which ones? Any reason why LyX
> is not catching the error? Shouldn't there be one?
>
> Cheers,
>
> C. Fuhrman
>
>


Troubleshooting BibTeX in LyX

2016-12-04 Thread Cris Fuhrman
Hello,

I'm using Windows 10, LyX 2.2.2 on an article I've been working on for
months, and all my citations started to appear as question marks (?) and no
References section is produced. It was working before, so something got
hosed on my machine.

I tried the LyX file on another Windows machine with LyX/MikTeX and it is
working fine, so I'm certain it's the config of my machine. The LaTeX code
generated by LyX works fine in TeXStudio, so I think my MikTeX installation
is OK.

I tried LyX "Reconfigure" many times, but it seems to change nothing.

There are no BibTeX errors that appear in logs (that I can see), and I'm at
a loss of where to start troubleshooting. I did try a new document with a
minimal BibTeX example and it's the same problem, yet no clues about why
it's happening.

Do I have to turn on some debug messages? Which ones? Any reason why LyX is
not catching the error? Shouldn't there be one?

Cheers,

C. Fuhrman


TODO notes (double entries) in LyX 2.2.2 on Windows 10

2016-12-01 Thread Cris Fuhrman
I've recently noticed an odd behavior of TODO Notes in LyX 2.2.2. I enabled
the fancyline option, and I saw I was getting two lines. Upon further
debugging (using author= and size=\tiny), I can prove that it's actually
generating two TODO notes at the same place. Here's a screen grab:

[image: Inline image 1]
I'm attaching the minimal example (used in LyX 2.2.2 under Windows 10). I
updated my MikTeX yesterday to see if it would go away, but no luck. It's
reproducible on BOTH my Windows 10 machines with LyX.

I searched for todonotes modules (as I used it before prior to LyX 2.2
before it was part of the distribution), but I couldn't find anything in my
LyX path directories that looked like a duplicate. I'm not sure how this is
happening.

When I paste the LaTeX source from LyX (pasted below) into a TeXstudio
document, it works perfectly, so I don't think it's my TeX installation.

% Preview source code


%% LyX 2.2.2 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{article}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{todonotes}

\usepackage{babel}

\begin{document}

This is \todo[fancyline,size=\tiny,author=Me]{Here's a long comment that
wraps around in the margin}a

test

\end{document}


newfileTodo.lyx
Description: application/lyx


Re: Recommended PDF viewer?

2016-10-24 Thread Cris Fuhrman
On Friday, 21 October 2016, Wierdl Máté  wrote:

> So then what is the recommended PDF previewer for LyX on Windows 10
>

I use Sumatra PDF. LyX can be configured for it with synctex for forward
and backward search. https://wiki.lyx.org/LyX/SyncTeX#toc2 That feature is
a huge help with the non WYSIWYG aspect of TeX.


Re: Forward search with Sumatra stopped working

2016-08-18 Thread Cris Fuhrman
When I upgraded/updated to LyX 2.2.0/2.2.1 forward search stopped working.
I found that the syncTeX settings were hosed (maybe set to some defaults by
the installer, maybe by reconfigure command?).

I set them again following the instructions for Windows/Sumatra below, and
forward/backward search work again:

https://wiki.lyx.org/LyX/SyncTeX#toc2

On Wed, Aug 17, 2016 at 2:46 PM, Scott Kostyshak  wrote:

> On Wed, Aug 17, 2016 at 08:44:47PM +0200, racoon wrote:
> > Forward search with Sumatra stopped working.
>
> "stopped" with respect to what? Meaning did you change your LyX version?
> Are you using the master branch? Did you update anything else?
>
> Scott
>