Re: Paths forgotten?

2020-05-07 Thread David Mertens
Kaplan,

Are you opening this file in LyX from two different operating systems (or
two different machines), synchronized via Dropbox? Otherwise I cannot
fathom any circumstances that LyX would even think to use a Windows-based
path and then a Linux-based path. Maybe running LyX under Cygwin, and then
not under Cygwin?

If you are looking at files using two different operating systems (or
shared across two different computers with different users, so different
absolute paths to files), you can manually enter a relative path to the
figures. LyX will always store that relative path just fine. The only issue
arises if you decide to change the figure file and use the "Browse" button
to find the file. But again, once you have found that file, you can alter
the beginning (absolute) part of the path and replace it with the
appropriate relative path with ".." and the like.

David

On Thu, May 7, 2020 at 10:22 AM UD Kap  wrote:

> Pavel,
>
> When you shoot in the dark you come close to the target (I think), so I
> should be more careful ;-)
> When I look at the path of the "confusing" image files (in the Lyx file),
> it says: C:/Users/Gabriel.000/Dropbox
>
> The beginning of that path (C:/Users/Gabriel.000) is the path to the
> *Windows* partition on my disk. If I then click on that path in the Lyx
> file, I get the usual Linux path (/home/udi/Dropbox...) which then works
> fine, until the next visit to the Lyx file (might require a boot to show
> the issue-- I shall check)..
>
>So this exercise showed me that when I exit from the Lyx file, and
> perhaps reboot, the beginning of the path for the confusing image files
> changes from /home/udi/Dropbox... to c:/gabriel.000/Dropbox... for
> reasons known only to the Gods of Lyx.  That path confuses Lyx.
>
>
> Yours,
>
> E. Kaplan
>
>
> On 5/6/20 3:38 PM, Pavel Sanda wrote:
>
> On Wed, May 06, 2020 at 12:45:34PM -0400, UD Kap wrote:
>
>Pavel, I think you are getting close-- the line says:** \origin
>unavailable
>
>What now?
>
> Unfortunately no, this was not fruitful direction, that value is pretty 
> normal.
> Can you answer my other questions (see below)?
>
>
> Reading one more time the original report, I have two additional questions:
> - when you say that you return to your presentation day(s) later does it mean
>   that LyX was running the whole time or you launch LyX anew?
>
> - you report the error "cannot determine the size of the graphics..".
>   But if you click on that image and check in the dialog field "File:"
>   do you still see correct path or is it lost?
>
> Pavel
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
*David Mertens*
Assistant Professor of Physics
727.864.8521

Office Hours can be made by appointment Tuesdays and Thursdays between 10
and 2.

Eckerd College <http://www.eckerd.edu>
4200 54th Avenue South
St. Petersburg, Florida 33711
[image: Eckerd College logo]
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Capabilities for navigating my trove of LyX documents

2019-11-05 Thread David Mertens
On Tue, Nov 5, 2019 at 10:22 AM Paul A. Rubin  wrote:

> On 11/5/19 8:15 AM, David Mertens wrote:
>
> Hello Paul, list,
>
> Thank you for your ideas. The batch file/bash script for keeping a set of
> tabs coherent is an excellent idea!
>
> Unfortunately, the bookmarks suggestion won't work for me. Most of my
> notebooks have figures generated by analysis scripts (usually PNG these
> days). When LyX opens a symbolic link, it will look for relative paths
> relative to the symbolic link's directory. I use relative paths all over
> the place because I synchronize my notebooks across two different machines
> with different usernames, and thus different full paths. If I use relative
> figure filenames, LyX can find the figures whether I open them on my laptop
> of the lab machine, but that would break bookmarking.
>
> Note: I tried using a tilde to represent the home directory for figures,
> something like "~/projects/2019/.../some-figure.png". This works in LyX,
> but the way it works is that LyX replaces the tilde with my current user's
> home directory as soon as I close the Graphics dialog. If LyX kept the
> tilde in the path to the file, I would be able to express "absolute" paths
> across my two different users.
>
> Upon further reflection, I feel like at least some fraction of this
> behaviour could be implemented use lyxpipe if lyxpipe could speak to all
> open sessions. For example, if there were a command-line option to give the
> LyX session a name, then I could use the batch-file trick to save tabs
> *and* associate a name with the session. I could then implement a
> third-party GUI program that handles bookmarked notebooks and could speak
> to the different sessions as needed.
>
> David
>
> On Sat, Nov 2, 2019 at 4:49 PM Paul A. Rubin  wrote:
>
>> On 11/2/19 12:04 PM, David Mertens wrote:
>>
>> Hello everyone,
>>
>> After years of using LyX for research notebooks, I find myself these days
>> working with sets of documents much like I have sets of tabs in my browser.
>> I would really, really like to be able to open up sets of documents just
>> like I can open up sets of tabs in a browser, and I would also really like
>> to be able to bookmark documents much like I can bookmark web pages.
>> Finally, it would be really nice if I could embed LyX links to other
>> documents to refer to previous calculations or experimental results, so
>> that I could click on it and LyX would open the document in a new tab. This
>> would really, really facilitate my scholarly work.
>>
>> Apart from the bookmarking, most of these are "solved" by opening
>> multiple LyX sessions with the tabs I need, then never restarting my laptop
>> for weeks on end. However, when my laptop inadvertently loses power, all of
>> that "state" is lost and I have to recreate it from scratch.
>>
>> I have looked into implementing some of these ideas with lyxpipe
>> programming, but as I said I use multiple LyX sessions for different kinds
>> of work: one research project, another research project, one class, and
>> another class all need their own tab sets, so they go in different
>> sessions. lyxpipe can only talk with the first LyX process that starts.
>>
>> As far as I can tell, LyX does not have any of these capabilities and
>> lyxpipe is not the way to implement them. Am I wrong? If I wanted to
>> implement them, what is the most sensible way to do so? Is there an
>> extension mechanism for this kind of thing besides lyxpipe? Finally, what
>> are the tools that others use to organize large collections of notebook-ish
>> files?
>>
>> Thanks!
>> David
>>
>> P.S. I am not (yet) subscribed to the user list, so I'd appreciate if
>> replies included my email address explicitly. Thanks!
>>
>> --
>> *David Mertens*
>> Assistant Professor of Physics
>> 727.864.8521
>>
>> Office Hours can be made by appointment within the following time blocks:
>>
>>- Tuesday 11:30 a.m. to 4:00 p.m., MPC 213
>>- Thursday 11:30 a.m. to 2:00 p.m., MPC 107
>>- Friday 1:00 p.m. to 2:00 p.m., MPC 107
>>
>>
>> Eckerd College <http://www.eckerd.edu>
>> 4200 54th Avenue South
>> St. Petersburg, Florida 33711
>> [image: Eckerd College logo]
>>
>> At least part of this is fairly easy to implement.
>>
>> Opening sets of documents: You can set up a one-line batch file to open a
>> particular bunch of documents. Omitting the path info for brevity, "lyx
>> file1.lyx file2.lyx ..." will open all the files listed in one LyX window.
&

Re: Capabilities for navigating my trove of LyX documents

2019-11-05 Thread David Mertens
Hello Paul, list,

Thank you for your ideas. The batch file/bash script for keeping a set of
tabs coherent is an excellent idea!

Unfortunately, the bookmarks suggestion won't work for me. Most of my
notebooks have figures generated by analysis scripts (usually PNG these
days). When LyX opens a symbolic link, it will look for relative paths
relative to the symbolic link's directory. I use relative paths all over
the place because I synchronize my notebooks across two different machines
with different usernames, and thus different full paths. If I use relative
figure filenames, LyX can find the figures whether I open them on my laptop
of the lab machine, but that would break bookmarking.

Note: I tried using a tilde to represent the home directory for figures,
something like "~/projects/2019/.../some-figure.png". This works in LyX,
but the way it works is that LyX replaces the tilde with my current user's
home directory as soon as I close the Graphics dialog. If LyX kept the
tilde in the path to the file, I would be able to express "absolute" paths
across my two different users.

Upon further reflection, I feel like at least some fraction of this
behaviour could be implemented use lyxpipe if lyxpipe could speak to all
open sessions. For example, if there were a command-line option to give the
LyX session a name, then I could use the batch-file trick to save tabs *and*
associate a name with the session. I could then implement a third-party GUI
program that handles bookmarked notebooks and could speak to the different
sessions as needed.

David

On Sat, Nov 2, 2019 at 4:49 PM Paul A. Rubin  wrote:

> On 11/2/19 12:04 PM, David Mertens wrote:
>
> Hello everyone,
>
> After years of using LyX for research notebooks, I find myself these days
> working with sets of documents much like I have sets of tabs in my browser.
> I would really, really like to be able to open up sets of documents just
> like I can open up sets of tabs in a browser, and I would also really like
> to be able to bookmark documents much like I can bookmark web pages.
> Finally, it would be really nice if I could embed LyX links to other
> documents to refer to previous calculations or experimental results, so
> that I could click on it and LyX would open the document in a new tab. This
> would really, really facilitate my scholarly work.
>
> Apart from the bookmarking, most of these are "solved" by opening multiple
> LyX sessions with the tabs I need, then never restarting my laptop for
> weeks on end. However, when my laptop inadvertently loses power, all of
> that "state" is lost and I have to recreate it from scratch.
>
> I have looked into implementing some of these ideas with lyxpipe
> programming, but as I said I use multiple LyX sessions for different kinds
> of work: one research project, another research project, one class, and
> another class all need their own tab sets, so they go in different
> sessions. lyxpipe can only talk with the first LyX process that starts.
>
> As far as I can tell, LyX does not have any of these capabilities and
> lyxpipe is not the way to implement them. Am I wrong? If I wanted to
> implement them, what is the most sensible way to do so? Is there an
> extension mechanism for this kind of thing besides lyxpipe? Finally, what
> are the tools that others use to organize large collections of notebook-ish
> files?
>
> Thanks!
> David
>
> P.S. I am not (yet) subscribed to the user list, so I'd appreciate if
> replies included my email address explicitly. Thanks!
>
> --
> *David Mertens*
> Assistant Professor of Physics
> 727.864.8521
>
> Office Hours can be made by appointment within the following time blocks:
>
>- Tuesday 11:30 a.m. to 4:00 p.m., MPC 213
>- Thursday 11:30 a.m. to 2:00 p.m., MPC 107
>- Friday 1:00 p.m. to 2:00 p.m., MPC 107
>
>
> Eckerd College <http://www.eckerd.edu>
> 4200 54th Avenue South
> St. Petersburg, Florida 33711
> [image: Eckerd College logo]
>
> At least part of this is fairly easy to implement.
>
> Opening sets of documents: You can set up a one-line batch file to open a
> particular bunch of documents. Omitting the path info for brevity, "lyx
> file1.lyx file2.lyx ..." will open all the files listed in one LyX window.
> Similarly, "lyx *.lyx" will open all the .lyx files in the directory where
> the command is being run (at least on Linux, but I imagine also on MacOS
> and Windows).
>
> Bookmarks: LyX lets you open files from a list of recently opened ones. If
> that's not sufficient, one possibility is to create a folder (directory)
> someplace for "bookmarks". In that folder, put a link to each file you
> would like to bookmark. (On Linux, this is known as a symlink

Capabilities for navigating my trove of LyX documents

2019-11-02 Thread David Mertens
Hello everyone,

After years of using LyX for research notebooks, I find myself these days
working with sets of documents much like I have sets of tabs in my browser.
I would really, really like to be able to open up sets of documents just
like I can open up sets of tabs in a browser, and I would also really like
to be able to bookmark documents much like I can bookmark web pages.
Finally, it would be really nice if I could embed LyX links to other
documents to refer to previous calculations or experimental results, so
that I could click on it and LyX would open the document in a new tab. This
would really, really facilitate my scholarly work.

Apart from the bookmarking, most of these are "solved" by opening multiple
LyX sessions with the tabs I need, then never restarting my laptop for
weeks on end. However, when my laptop inadvertently loses power, all of
that "state" is lost and I have to recreate it from scratch.

I have looked into implementing some of these ideas with lyxpipe
programming, but as I said I use multiple LyX sessions for different kinds
of work: one research project, another research project, one class, and
another class all need their own tab sets, so they go in different
sessions. lyxpipe can only talk with the first LyX process that starts.

As far as I can tell, LyX does not have any of these capabilities and
lyxpipe is not the way to implement them. Am I wrong? If I wanted to
implement them, what is the most sensible way to do so? Is there an
extension mechanism for this kind of thing besides lyxpipe? Finally, what
are the tools that others use to organize large collections of notebook-ish
files?

Thanks!
David

P.S. I am not (yet) subscribed to the user list, so I'd appreciate if
replies included my email address explicitly. Thanks!

-- 
*David Mertens*
Assistant Professor of Physics
727.864.8521

Office Hours can be made by appointment within the following time blocks:

   - Tuesday 11:30 a.m. to 4:00 p.m., MPC 213
   - Thursday 11:30 a.m. to 2:00 p.m., MPC 107
   - Friday 1:00 p.m. to 2:00 p.m., MPC 107


Eckerd College <http://www.eckerd.edu>
4200 54th Avenue South
St. Petersburg, Florida 33711
[image: Eckerd College logo]
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx webpage doesn't load

2009-02-16 Thread David Mertens
I can confirm this.  Can't say anything more useful, but I can confirm it.
:]

David

On Mon, Feb 16, 2009 at 8:23 AM, Erez Yerushalmi  wrote:

> Hi all,
>
> have others noticed that the LyX webpage doesn't load??
>
> Erez
>
>
>
>
> --
> Erez Yerushalmi
> PhD Student
> Warwick University, UK
>
> http://www2.warwick.ac.uk/fac/soc/economics/research/phds/3rd_year/yerushalmi
>


Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-06 Thread David Mertens
>
> It would be great if ... the .lxy document would be bundled with all images
> in a .zip file.
>

Great idea, but not trivial.  Has this been discussed on the lists before?
If it has, I couldn't find it.

We would probably want a portable LyX format (.plyx) that would be a
tarrball or zip of the .lyx file and the various images, possibly including
their .png previews (used by LyX) and possibly including a finished pdf
output so the collaborator could view the latest compiled version.  This
would make document exchange, and therefore collaboration, *much* easier.
I'm not sure how easily we could encorporate tarring or zipping capabilities
into the LyX binary itself, but I suspect it's not terribly difficult.

The problem is that LyX is designed to handle all of the images as external
documents, so adding 'internal' image capabilities would mean creating lots
of gui to manage those options.  What if a user wanted to save in internal
image as an external file on their HD?  That's a new dialog.  Also, you'd
want to be able to manage internal vs external settings, but how would that
effect LyX's Graphics dialog box?  You'd have to add a few new elements to
the Document Settings dialog if you wanted to modify include/exclude
settings for a compiled .pdf or .ps, or preview .png files.

And of course, .lyx -> .plyx -> .lyx would be nontrivial and the .plyx ->
.lyx would in the very least require a new set of dialog boxes to handle
internal images that don't have a counterpart on the user's HD.  Trying to
minimize the programming load by only allowing import/export would seems
attractive but comes with its own set of problems, particularly for
collaboration (which was the point to begin with).  Native support seems
like the best option.

As you can see, the notion of a new portable file type is a good idea and is
a valid point of discussion for document collaboration, but it is a thorny
issue when you get up close to it.

David


Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-05 Thread David Mertens
>
> I'm a bit puzzled about this, because python is needed to run the
> configure.py script that checks for installed programs and the like. Are you
> sure the installer didn't install python?
>
> rh


I looked a bit closer and you are correct.  Python was installed in my LyX
program folder, not in 'C:\Program Files\', which is what I expected.  The
same holds for ghostscript and image magick.  I presumed that the LyX
developers had put python scripting into LyX itself, but clearly I was
mistaken.

David


Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-05 Thread David Mertens
(Forgot to reply to the full list again.  My apologies Helge.)

@ Vincent - The installer would be different, and LyX would have to not give
error messages for messed-up layout files.  See my notes below.

@all - Regarding MicroLyX (tested on Windows) -

I recalled that LyX could be run without a LaTeX distro installed, so I
tried it.  I ran Win XP in my virtualbox and tried installing a light-weight
LyX with the current binary installer.  Here's how it went:

   1. Downloaded the install binary, about 20 Mb, which is fine as far as
I'm concerned.
   2. Started the installer.  I was only asked three things: (a) do I want
latex (no), (b) what language should LyX use (English) and (c) what language
dictionaries do I want (I chose English).
   3. After installing most of what I needed, it downloaded the aspell
software and installed it.  I thought that Python was required for LyX (it
used to be required), but this apparently is no longer the case, which is
nice.

Overall, the full-LyX installer had no trouble installing a minimal LyX
system.

Then I tried running LyX.  I got an error saying:

The layout file requested by this document, article.layout, is not
usable.  This is probably because the LaTeX class or style file required is
not available.  See the Customization documentation for more information.
LyX will not be able to produce output.


Once I clicked out of that, I was able to work within the document just
fine.  You can only view those document types you can create.  Therefore, I
was not given the option to view a pdf or postscript version of the
document, so I was not able to bother LyX asking it to do something it
couldn't do.  I did not text image viewing/conversion, but in my experience
when you insert an image that LyX does not know how to convert, it
automatically displays a message along the lines of "Could not convert this
image for display."

Conclusion: for windows, installing a stripped-down LyX is easy except that
it always complains about the layout file.  MicroLyX could easily just be a
recompilation of LyX that does not generate those warnings (and uses a
different title), accompanied by a separate installer.

Any thoughts?

David


Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-04 Thread David Mertens
>
> 3. (optional, and not so inmediate) A light-weight full-view (and
> idiot-proof as well) LyX version, (I have the name: LyteX or LyghtX!) which
> is able to edit text (and structure) of conventional LyX docs, without the
> possibility of  editing ERT or items explicitly banned by the original
> author, no need to DVIize or PDFize them (WYSIAYNTK: what you see is all you
> need to know), but with the full version control system activated. This
> software should be  completely LaTeX independent and, if possible, to have
> an alternate output system for printing a simple representation of the
> content. Citation dialogs  and any other stuff which do not need LaTeX
> should work. It doesn't seem to me something so difficoult to develop, and
> it could help in 80% of cases in some of Peter's scenarios.


This would be perfect for me!  I envision a stripped-down version of the
current LyX project, without export.  Since LyX is really close to a WYSIWYG
editor (close enough for my purposes) I could probably just send the .lyx
file to my advisor without the PDF.  The only issue would then be making
sure that I sent the images along with the .lyx file.  In fact, is there any
reason we couldn't create an installer for "LyX without LaTeX", except of
course finding the manpower to do it?

Yeah, a LyX viewer/editor without document processing back-end (and the
associated 800Mb download) would be great.

David


Re: some questions on page numbering (pages BEFORE chapter 1)

2009-02-04 Thread David Mertens
Oops.  I only sent this to Joe.  Resending to LyX list.


> Well that and how to get Lyx to position the "by authorname" & copyright
> information at the bottom of an otherwise blank page instead of at the
> top of one???
> (there has to be a better way than inserting a bunch of hard returns.
> I mean that method would have to be re-tweaked every time the output
> page size changed.)
>

Did you try using a vertical fill via Insert->Formatting->Vertical Space,
select Vertical Fill?  This seemed to work for me:

[ some text at top, at least a protected space ]
^
 |
Vertical Fill
 |
V
[ text at bottom of page ]


Re: Question on whitespace at the end of raw TeX - inserts

2008-12-22 Thread David Mertens
>
> What Dieter refers to is that TeX is interpreting a blank as the end of a
> command. I.e., "\TeX and friends" will be parsed as
> "TeXand
> friends". If you want a blank after the command, you must either write
> "\TeX\ and friends" or "\TeX{} and friends" (in ordinary LaTeX), and I
> think
> Dieter wants us to automatically insert "\ " at the end of each ERT (or
> transform subsequent blanks to "\ " automatically). However, as I argued
> earlier, I think such magic will fall back on us, since ERT is used in many
> different ways (not mentioning all the backwards compatibility issues
> involved).
>

Jürgen and Steve -

You are correct that I misunderstood.  So I guess I sympathise with Dieter,
in as much as what follows:

As far as I am concerned by
abc\TeX def
I *mean*
abc\TeX\ def

However, when I tyop a command in powerdot like
\twocolumns{ my first column }{ my second column
}
I *mean*
\twocolumns{ my first column }{ my second column }

Perhaps we could add an option to ERT boxes to "respect spaces afer this
ert", in which case a space after the close of an ert would be replaced with
a '\ '?

David


Re: Question on whitespace at the end of raw TeX - inserts

2008-12-21 Thread David Mertens
>
> 1.) put automatically a blank as whitespace at the end of each TeX-insert
> before closing it.
> 2.) protect a whitespace follwing a TeX-insert if there is one - assume
> that
> the user intentionally puts a whitespace there.
>

Something tells me this has been discussed before, but since Dieter posted
on it... I'm going to second Dieter's curiosity and vote for #2.  I had lots
of trouble with this when creating a presentation using powerdot, in which
case (for my particular use) the ert was meant to modify the normal text
that followed, but for which I needed a space between the tex and the
regular text.  I eventually figured it out, but I never understood why my
space had to be in the ert.

David


Double click LyX on Mac doesn't open LyX

2008-12-19 Thread David Mertens
Hello -

I have a rather circuitous issue.  I'm a grad student.  My advisor is
generally a word guy but has agreed to use LyX at my request.  He's followed
the installation instructions multiple times (I've watched).  However, when
he double-clicks on the LyX listing in the Applications folder, we see the
icon fly-out (indicating to me that Mac has started the program) but it
never shows up, either on the screen or in the active-apps sidebar.  I would
troubleshoot this myself, but I'm a Linux/Windows guy and have no knowledge
of Macs.

So, where do I start?

Mac OS: 10.3.9
LyX Ver: 1.6.1