Re: Suggestions for custom layouts/templates creation

2022-05-20 Thread Steve Litt
Rich Shepard said on Thu, 19 May 2022 13:39:14 -0700 (PDT)

>I've read the layout page in the Wiki and learned that I can create my
>own layouts. What I'd like from those of you who want to help are
>suggestions how to approach the project(s).
>
>All environmental regulators have forms that need to be filled by
>permit (or other approval) applicants then submitted to the agency. I
>don't do Windows and want to learn how to make LyX templates for those
>that clients pay me to prepare for them.
>
>I use the KOMA-Script classes and assume the KOMA-Script Article class
>would be the most appropriate. But, not before creating any LyX
>templates I would appreciate suggestions how to go about making this
>first one.

First, if the forms will be OCR'ed, you'd better have the right font
and spacing. Otherwise, it's pretty easy...

Your layout file defines environments and commands. Commands are the
basis of character styles, and can be used for other things too.

So invent a stylename (environment or command) for each appearance you
see on whatever form you're imitating, and then do a little trial and
error with the styles until yours looks exactly like the sample.

I haven't discussed the nuts and bolts of custom layout grammar. If you
need that, give me back a shout.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Top toolbar missing after switching from debian 10 to debian 11 (bullseye)

2022-05-12 Thread Steve Litt
John White said on Thu, 12 May 2022 09:56:08 -0700

>The main lyx tool bar is gone, the one with 
>
>File, Edit, View, Insert, Navigate, Document, Tools, Help.
>
>Any thoughts on how I might get it back?

I'd rather make a stupid suggestion than make a stupid mistake. Just
for fun, press the F11 key to toggle "full screen". If that doesn't
bring back the menu, you'll have wasted 10 seconds.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: License Agreement Entitlement Query

2022-05-02 Thread Steve Litt
I wouldn't suggest replying to these guys. They're trying to put the LyX
project in the role of their lawyer, without payment. Personally, I
think the GPL2 is clear enough for me to stake my business on, but if
they have questions, they can hire a lawyer.

Or, if they don't like the project not acting as their lawyer, they can
start using a proprietary substitute, and REALLY start paying lawyers.

SteveT


Service Centre Licensing said on Mon, 2 May 2022 04:45:07 +

>Dear LyX Team,
>
>
>
>We are writing to you in relation to the licensing for LyX.
>
>The University of Melbourne is currently working to modernize its
>approach to delivering computer labs across the campus and will be
>transitioning from physical computer lab delivery into a virtual
>platform based on Citrix technology.
>
>The new delivery model will shift from delivering software through a
>single physical Windows 10 endpoint to a shared virtual model using
>servers running Windows Server 2019, allowing multiple users to
>connect to one server using user sessions.
>
>As part of this transition, we wish to clarify with you the licensing
>terms and conditions for LyX to ensure we will remain complaint with
>our commitments.
>
>Can you please confirm that your license terms and conditions will
>allow the University to deliver LyX using this new model? Otherwise,
>if this does not comply with your current terms, can you please advise
>what changes are required to allow us to deliver LyX
>
>Regards,
>Dylan D’Cruz | Service Centre Consultant
>Client Services | Business Services
>Level 1, Building 266, 11 Barry St
>The University of Melbourne, Victoria 3010 Australia
>T: +61 3 8344 0888  E:
>dylan.dc...@unimelb.edu.au
>unimelb.edu.au |
>facebook.com/unimelb |
>twitter.com/unimelb
>
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Making first paragraphs not indented in exported HTML

2022-04-12 Thread Steve Litt via lyx-users
Dr Eberhard W Lisse via lyx-users said on Tue, 12 Apr 2022 14:22:21
+0200

>Because I am right and you are unnecessarily annoying?

A simple "Thank you" would have sufficed.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Making first paragraphs not indented in exported HTML

2022-04-12 Thread Steve Litt via lyx-users
Dr Eberhard Lisse via lyx-users said on Mon, 11 Apr 2022 18:22:54 +0200

>If you think other people have the time you don't maybe you
>also not waste their time by posting this.

Now how did I know that *you'd* be the guy to say this.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Making first paragraphs not indented in exported HTML

2022-04-11 Thread Steve Litt via lyx-users
Daniel via lyx-users said on Mon, 11 Apr 2022 08:13:43 +0200

>On 2022-04-11 03:44, Steve Litt via lyx-users wrote:
>> Hi all,
>> 
>> In the past, some exporters have implemented the custom of not
>> indenting the first of several successive paragraphs by using a
>> different class of paragraph for the first of a series of paragraphs.
>> This way of doing things makes more work for the person writing the
>> export, and more work for the person converting the export to
>> acceptable ePub, because those special classes will need to be backed
>> out or otherwise specially handled.
>> 
>> Not indenting the first of a series of paragraphs is easily
>> accomplished by the following two lines of CSS:
>> 
>> p::first-letter{margin-left: 3em;}
>> :not(p) + p::first-letter{margin-left:0.0001em;}
>> 
>> Let CSS decide which is the first of several consecutive paragraphs,
>> and let CSS define what to do with that paragraph. Make it easy on
>> everybody.
>> 
>> I took an hour to figure this out. Could somebody please take 3
>> minutes to forward it to the developer's list and also the person
>> who is writing the HTML export?
>> 
>> Thanks,
>> 
>> SteveT
>> 
>> Steve Litt
>> March 2022 featured book: Making Mental Models: Advanced Edition
>> http://www.troubleshooters.com/mmm  
>
>I'd suggest that you file a bug/enhancement report at 
>https://www.lyx.org/trac/wiki/BugTrackerHome (including the LyX
>version you are using and exact steps to reproduce the problem).

Like I said, I spent an hour getting that code just right. I did the
hard part, I did my part. In the time you took to respond to me, you
could have forwarded my email. 

I don't have time to learn the quirks of every project's bugtracker,
type in information that's not relevant, and hope somebody looks at it.
At a lot of projects, the bugtracker is where requests go to die
(Bluefish, you listening?).

If I could change one thing about FOSS it would be to get rid of
bugtrackers and work directly with the user. That's what we did at
VimOutliner, and bugs got solved and requests got implemented very
quickly.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Making first paragraphs not indented in exported HTML

2022-04-10 Thread Steve Litt via lyx-users
Hi all,

In the past, some exporters have implemented the custom of not
indenting the first of several successive paragraphs by using a
different class of paragraph for the first of a series of paragraphs.
This way of doing things makes more work for the person writing the
export, and more work for the person converting the export to
acceptable ePub, because those special classes will need to be backed
out or otherwise specially handled.

Not indenting the first of a series of paragraphs is easily
accomplished by the following two lines of CSS:

p::first-letter{margin-left: 3em;}
:not(p) + p::first-letter{margin-left:0.0001em;} 

Let CSS decide which is the first of several consecutive paragraphs,
and let CSS define what to do with that paragraph. Make it easy on
everybody.

I took an hour to figure this out. Could somebody please take 3 minutes
to forward it to the developer's list and also the person who is
writing the HTML export?

Thanks, 

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: [Important] New behavior for spam handling on this list

2022-04-07 Thread Steve Litt via lyx-users
Jean-Marc Lasgouttes via lyx-users said on Thu, 7 Apr 2022 12:23:13
+0200


>> And what's the supposed upside? So non-subscribers can post. Look at
>> any netiquette guide and they'll roundly catcall the clowns who begin
>> or end their message with "please CC me because I'm not on the
>> list."  
>
>The upside is to try to be more welcoming to new users. It is not like 
>we have too many users, do we? As in my answer above, I agree that we 
>shall reconsider if things become unpleasant.

I'm on tons and tons of FOSS mailing lists. From my perspective, the
LyX list is one of the most welcoming to users new and old, and has one
of the most constructive attitudes of all mailing lists. In my
opinion, this list is so welcoming that there's little remaining low
hanging fruit remaining to make the list even more welcoming, so I
still think enabling non-subscribers to post is unnecessary and has
downsides.


If we want to grow LyX usage and membership, and I'm not necessarily
saying we should, I think the way to do it is to grow the world's
impression of LyX beyond its perceived niche of scholarly thesis
production. As long as we speak only of PDF output, LyX is
spectacularly suitable for any consistent document beyond five a4 or
letter pages. When used with its defaults, *IT'S JUST EASY*. With
creative custom layouts, it can do almost anything. One of my fiction
books, which jumps all around in time, has the current date of the plot
printed in the header. Don't try this with Libreoffice.

Somebody could make a list of all types of possible long documents.
Legal documents. Books, articles. Specifications. Make a flowchart of
which document class to start out with.

Like every other free software project, LyX is underdocumented. The
lowest hanging fruit you have is to make a single index for all the
documents available under LyX' help menu. Every time I go there to look
something up, I spend 25 minutes going from document to document
looking for the subject. I'm sure I'm not alone. Armed with this index,
the project could credibly claim to have some of the FOSS world's best
documentation. Make the documentation good enough, and newbies will
quickly become evangelists. But wait: There's more...

I never learned to use LyX modules, and have always simply made complex
and detailed local layout files. Others should not follow in my
footsteps, because, from what I've heard, modules are a much easier way
to add specific document capabilities than layout files. There should
be a help=>modules, split into descriptions of how to use every
project-curated module, and how to make your own.

I can see value in a publicity campaign, beamed to the general populace
rather than current LyX users, explaining what fingerpainting is, why
it's bad, why styles-based authoring is good, what styles-based
authoring looks like in general, and how easy it is to do in LyX.

In this section I've merely scratched the surface of ways LyX could
become an everyday tool for millions of people. Just doing a few of
these things would go beyond making LyX welcoming --- they'd make LyX
extremely attractive for the general population.


SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: [Important] New behavior for spam handling on this list

2022-04-07 Thread Steve Litt via lyx-users
Jean-Marc Lasgouttes via lyx-users said on Wed, 6 Apr 2022 16:01:16
+0200

>Dear all,
>
>Until now, the handling of the list was like: messages from
>subscribers go through, other messages get discarded.
>
>There is actually a way to filter e-mails marked as spam, and I have 
>already changed all our other lists to take advantage of this
>information.
>
>Today it is lyx-users' turn. The new behavior is:
>* spams are automatically discarded; please notify the list if a
>message of yours just disappears. It seems to work correctly on the
>other lists that we have;
>* members posts not qualified as spam go through as usual;
>* remaining non-member posts are held for moderation.
>
>The big advantage is that now non-subscribers will be able to post 
>messages (with a low amount of manual moderation from my side).
>
>Comments welcome.

I'd suggest you put it back the way it was. I'm on 30+ FOSS mailing
lists, and can't police everything to see that it goes through. If some
AI algorithm somewhere decides I'm spam because of my email provider
or whatever, I'm just writing into the wind, wasting a lot of time.

And what's the supposed upside? So non-subscribers can post. Look at
any netiquette guide and they'll roundly catcall the clowns who begin
or end their message with "please CC me because I'm not on the list."

Let's not inconvenience valuable list members to accommodate those so
lazy they can't take 5 minutes to join the mailing list.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-25 Thread Steve Litt via lyx-users
Steve Litt via lyx-users said on Fri, 25 Mar 2022 18:09:56 -0400


>And please make the output well-formed XML as well as HTML5. HTML5 can,
>but doesn't have to be, well formed XML. It's a couple orders of
>magnitude easier to deal with if the exported HTML has all opening tags
>accompanied by closing tags, and for tags that both open and close
>( for instance), be sure to put the trailing slash.

The following simple Python3 program checks to make sure the file that
is its argument is well-formed XML. It's also attached as an
attachment. By using this program on LyX' HTML exports, you can verify
that the HTML is also well formed XML.

==
#!/usr/bin/python3

# Copyright 2017 by Steve Litt
# Expat license: https://directory.fsf.org/wiki/License:Expat

import sys
import re
import xml.etree.ElementTree as ET

fname = sys.argv[1]
print('\nTesting for well formedness {} ...\n'.format(fname))
try:
tree = ET.parse(fname)
except ET.ParseError as err:
(line, col) = err.position
code = str(err.code)
errmsg = 'ERROR: {}'.format(str(err))
print(errmsg)
if re.search('', errmsg):
print('Replace all  with  to solve problem.')
print('\n')
sys.exit(1)
else:
print('Congrats, {} is well formed!'.format(fname))
print('')

==

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
#!/usr/bin/python3

# Copyright 2017 by Steve Litt
# Expat license: https://directory.fsf.org/wiki/License:Expat

import sys
import re
import xml.etree.ElementTree as ET

fname = sys.argv[1]
print('\nTesting for well formedness {} ...\n'.format(fname))
try:
tree = ET.parse(fname)
except ET.ParseError as err:
(line, col) = err.position
code = str(err.code)
errmsg = 'ERROR: {}'.format(str(err))
print(errmsg)
if re.search('', errmsg):
print('Replace all  with  to solve problem.')
print('\n')
sys.exit(1)
else:
print('Congrats, {} is well formed!'.format(fname))
print('')
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-25 Thread Steve Litt via lyx-users
Pavel Sanda via lyx-users said on Fri, 25 Mar 2022 09:20:15 +0100


>That said, the unfortunate news is that speedy prototyping in external
>python script is probably going to share the fate of other scripts of
>this sort (elyxer being last but not the only one): cool and perhaps
>better than the output we currently have, but in long-term
>uncompatible and abandoned, because it does not internally share the
>codebase with LyX itself.

Or, the LyX project could fulfill their goal of making LyX' native
format an XML dialect, and then any developer could convert a LyX doc
to any other format quite easily.

The trouble is, in the early 00's, the LyX project decided to make the
LyX native format an XML dialect, which greatly increased the
difficulty of parsing a LyX file, but did not carry through in making
LyX files well formed XML. If they'd carried through with making it
XML, converting it to anything else would be relatively simple. As of
now, it's the worst of both worlds: Difficult parsing because of some
XMLisms, but not parsable by an XML parser because it's not well formed
XML.

One more thing. In my opinion LyX' HTML export suffers not from
technical deficiencies, but from deficiencies of specification. Please,
don't do us the "favor" of adding appearances to the HTML. Instead,
just pass the styles through as-is, and let people like Ken Kopelson
and me handle conversion of style to appearance, which is done simply
with CSS. When you pass appearances instead of styles into the HTML,
you're doing extra work, and sabotaging us.

And please make the output well-formed XML as well as HTML5. HTML5 can,
but doesn't have to be, well formed XML. It's a couple orders of
magnitude easier to deal with if the exported HTML has all opening tags
accompanied by closing tags, and for tags that both open and close
( for instance), be sure to put the trailing slash.

Also, please either give the output file an XML DTD/schema that defines
HTML characters like  , or else just output their numeric
equivalents, eg.  . Ken Kopelson, do you agree with this
paragraph?

If you want to go the extra mile in making things easier for people
writing LyXHTML to ePub converters, a nice but by no means necessary
favor you could do us is to output a CSS file listing all the styles in
the document, and perhaps giving some best-guess appearances for each.
Or else make them all big and red, so the self-published author can
easily specify each later on. But please, please, PLEASE, do not throw
in an all-possible-styles CSS file that bloats up our books and is
extremely difficult to deal with. I'd rather personally write an XML
parser that looks at the XHTML5 file and outputs the CSS.

All previous attempts have considered the exported HTML to be the final
file for reading. This is clearly false: It's an intermediate file, and
as such, should be very easy to parse (do the slight extra work to make
it well-formed XML), and pass ONLY styles into it, no appearances.

And this thing where standard paragraph environment translated to two
different , one for the first line and one for all the rest so that
the first line isn't indented, please don't. This is easily done in CSS,
and even if it weren't, we converter makers could easily write a
converter program to change it to two different , AT THE VERY LAST
PASS before outputting the file intended for the reader.

And please, don't throw in all sorts of extraneous  elements like
previous attempts have done. If fifteen consecutive paragraphs are in
the, let's say for example, "story" environment, just begin each
paragraph of the output with  instead of putting them
all in a . I've seen past LyXHTML go several levels
deep in unnecessary  elements. Life shouldn't be that difficult.

Once again, all past attempts at LyXHTML have unnecessarily bitten off
way more than they could chew. Just pass us the styles, and we'll take
care of the style to appearance translation, *at the right time*!

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: search in master

2022-03-08 Thread Steve Litt via lyx-users
Wolfgang Engelmann via lyx-users said on Mon, 7 Mar 2022 19:16:09 +0100

>Am 07.03.22 um 19:11 schrieb Steve Litt via lyx-users:
>> Wolfgang Engelmann via lyx-users said on Mon, 7 Mar 2022 18:46:39
>> +0100 
>>> It seems that I can't search for items in child documents in the
>>> master, but have to go to the various childs in the master and
>>> repeat there the search. Or is there something I missed?
>>> Wolfgang  
>> 
>> grep
>> 
>> 
>> SteveT

>do you mean I can use the grep in lyx?? How?
>Wolfgang

Not in LyX, from the command prompt. It will tell you which child
file(s) has the target string. Then you load that child file into LyX.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: search in master

2022-03-07 Thread Steve Litt via lyx-users
Wolfgang Engelmann via lyx-users said on Mon, 7 Mar 2022 18:46:39 +0100

>It seems that I can't search for items in child documents in the
>master, but have to go to the various childs in the master and repeat
>there the search. Or is there something I missed?
>Wolfgang

grep


SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-06 Thread Steve Litt via lyx-users
Dr Eberhard Lisse via lyx-users said on Sun, 6 Mar 2022 21:24:57 +0200

>Steve,
>
>Since it such a schlepp, why don't you participate in the development
>or support the developers?

LyX is great software by a great project. Great projects can be very bad
in certain respects, and that doesn't prevent them from being great
projects. As you read my response to your question, please keep in mind
that I'm very grateful to LyX for being the tool that created at least
8 of the books I currently offer. My responses merely point out how
LyX could be much better in the area of exports. Here are, my answers
are enumerated below.

1) The converter must be semantic. It must keep styles as styles til
   the very end, not prematurely convert to appearance. The LyX native
   format is hostile to that goal, and since 2007 the LyX devs have
   shown little interest in that goal.

2) File conversion software has no business being written in C++ plus
   Qt. Python, Lua, Ruby, Perl or *maybe* simple C are the right way to
   go, at least for version 1. If performance became a problem, and I
   doubt it would, it could be rewritten in C. Years ago I stopped
   using both C++ and Java because, in my opinion, they both suck.

3) Simplicity is an asset. Conceptually all that need be done is create
   Xhtml5 tags with the same names as the environments and insets. But
   that's not what I've seen from the LyX (X)HTML exports in the past
   decade. Simplicity is an asset: The conversion software should be
   separate and distinct from LyX, with a very thin interface.

  3.1: Content in semantic Xhtml5 can be converted to anything.

4) If I had time to help the LyX devs, I'd have time to singlehandedly
   create a Markdown=>Xhtml=>ePub and Markdown=>Xhtml=>PlainTeX=>PDF
   software stack. The QOwnNotes software is already a great typing
   front end for Markdown, which is why I chose Markdown. With the
   Markdown based converter done, I could turn around and easily create
   an Asciidoc version.

5) I could have, offered to, and would have written the converter for
   the LyX project, if only they had followed through with their mid
   00's plan of making LyX an XML dialect. They refused to do so.

Bottom line, in my opinion, the LyX project is the wrong project to
build the LyX to ePub (or to (X)HTML) converter. Alex Fernandez was
right about that when he built eLyXer, and IMHO eLyXer was better than
the native LyX converter at that time, but eLyXer was only half
semantic.

If the LyX project can export to some completely semantic XML, I'll be
glad to join the team who does the conversion from there.


>Never mind that LyX seems to predate the Kindle, this is a LaTeX issue
>rather than a LyX one (which, after all, just a front end).

Tragically, you've just uncovered the main problem. As long as LyX is
considered a front end to *LaTeX*, there will never be a good, robust
LyX=>ePub. Only when LyX is considered a front end to *everything*
will semantic ePub, as well as conversions to formats we haven't yet
dreamed of, be possible.

>As written numerous times I am very keen on on the new DocBook format
>but since I use LyX in production in my practice, I can't use two
>different formats, and my staff can't cope with alpha software.

If it's DocBook *xml* as opposed to sgml, and if the DocBook XML is
merely a representation of the environments and insets of LyX, that's a
perfect point of demarkation between LyX and (HTML | ePub | other).
You'd probably use Pandoc for DocBook=>ePub, I'd probably write my own,
but either way, it could work if DocBook *XML* and styles are kept as
styles.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: EPUB converter

2022-03-05 Thread Steve Litt via lyx-users
Hi Ken,

I suggest you put it out. The LyX project has a 15 year history of
outputting pidgeon HTML incapable of building a *semantic* ePub,
claiming what they've done is good enough, and treating with hostility
my observations that they're prematurely converting style to appearance.

The LyX project is the wrong project to do LyX=>ePub; ePub isn't in
their DNA, and until I'm shown otherwise, I'm treating any LyX=>ePub
capabilities from the LyX project as vaporware.

Where can I download your converter with instructions?

Thanks,

SteveT


Ken Kopelson via lyx-users said on Sat, 5 Mar 2022 12:47:52 -0800

>  Does anyone know how I can get in touch with the people who are
> working
>on the EPUB export in version 2.4? I want to gauge if it will be worth
>it for me to put my converter out. This will depend on:
>
>1) When 2.4 will be released
>2) How good the EPUB export will be
>
>Any help on this would be appreciated. Even telling who I can contact
>about this.
>
>Many thanks,
>*Ken Kopelson*
>(619) 733-3374
>
>
>On Thu, Mar 3, 2022 at 5:29 AM Dr Eberhard Lisse via lyx-users <
>lyx-users@lists.lyx.org> wrote:
>
>> Ken,
>>
>> where is the missing link :-)-O?
>>
>>
>> This is great news.
>>
>> I am actually waiting for 2.4 and DocBook to convert my 859
>> page "handbook" to EPUB so my staff and I can carry it around on our
>> Kindles (App on iPad actually).
>>
>> But, I would be very keen to see how your package works.
>>
>> My little handbook doesn't really need anything fancier than a few
>> images (JPG, PNG and PDF).
>>
>> I also use (in one (common) "include.tex") something like
>>
>>  \usepackage{etoolbox}
>>  \newbool{business}
>>  \boolfalse{business}
>>  \newbool{private}
>>  \booltrue{private}
>>
>> but if that (see your below remark) were not to work I can address
>> that via a Makefile and different include (front matter) files as
>> you seem to be doing.
>>
>> Maybe you can look into that, because then you can have a single
>> include file by putting something like this into a Makefile
>>
>> bus:
>>  @perl -i -p \
>>   -e
>> 's/\\boolfalse\{business\}/\\booltrue\{business\}/g;' \
>>   -e
>> 's/\\booltrue\{private\}/\\boolfalse\{private\}/g;' \ include.tex
>>  @lyx -f -e pdf5 handbook.lyx
>>
>> priv:
>>  @perl -i -p \
>>   -e
>> 's/\\booltrue\{business\}/\\boolfalse\{business\}/g;' \
>>   -e
>> 's/\\boolfalse\{private\}/\\booltrue\{private\}/g;' \ include.tex
>>  @lyx -f -e pdf5 handbook.lyx
>>
>> and then use something like
>>
>>  \ifbool{business}{}{\include{business.tex}}
>>  \ifbool{private}{\include{private.tex}}{}
>>
>> as ERT.
>>
>> Looks complicated, is complicated, but once it works no further
>> touching required.
>>
>>
>>
>> In the meantime I have pulled
>>
>>  http://www.editorium.com/ftp/LyXBookSampler.zip
>>
>> from
>>
>>  https://wiki.lyx.org/Layouts/Layouts
>>
>> and will start some RTFM :-)-O
>>
>> greetings, el
>>
>>
>> On 03/03/2022 00:58, Ken Kopelson via lyx-users wrote:  
>> > Hello LyX users,
>> >
>> > I am sending this email to let people know that I have produced a
>> > converter for LyX that produces an excellent quality EPUB/Kindle
>> > file.  
>> [...]  
>> > I love using LyX with the LyXBook theme (as it has the greatest
>> > number of paragraph formats), and I am able to set up a system of
>> > files, having different Front Matter versions.  
>> [...]  
>> > I know that the next version of LyX is supposed to produce EPUB,  
>> [...]  
>> > As one final problem, the LyXHTML export fails to include anything
>> > in the LaTeK code blocks,  
>> --
>> To email me replace 'nospam' with 'el'
>>
>> --
>> 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: Help! How do I get the File-Edit-View....Help menu back

2022-02-24 Thread Steve Litt via lyx-users
Kornel Benko via lyx-users said on Thu, 24 Feb 2022 18:03:27 +0100


>The next test would be to start lyx with different userdir
>   $ lyx -userdir ~/.newlyx

I wish I'd known about -userdir 21 years ago when I started using LyX.
Thanks for telling me now.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Help! How do I get the File-Edit-View....Help menu back

2022-02-24 Thread Steve Litt via lyx-users
Wolfgang Engelmann via lyx-users said on Thu, 24 Feb 2022 14:55:48 +0100


>did not help.
>Shall I wait for further proposals or use Kornels proposal to remove
>the confugure?
>Wolfgang

Move it, don't REmove it. You might need it later.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Help! How do I get the File-Edit-View....Help menu back

2022-02-24 Thread Steve Litt via lyx-users
Kornel Benko via lyx-users said on Thu, 24 Feb 2022 14:47:04 +0100

>Am Thu, 24 Feb 2022 14:43:25 +0100
>schrieb Wolfgang Engelmann via lyx-users :
>
>> Would like to add:
>> 
>> I worked with this lyx before and it worked alright.
>> 
>> Should I use the git-lyx for the lyx2.0.4dev version and compile
>> again?
>> 
>> Wolfgang  
>
>No. But you could try to remove
>   ~/.config/LyX/lyx*.conf


I'd suggest moving those files rather than RE-moving them, because they
might be needed later for "exploit the differences" type
troubleshooting, or just to restore the parts of the configuration that
work.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Inkscape Presentation at OCLUG 2/19/2022

2022-02-18 Thread Steve Litt via lyx-users
Hi all,

Many of you have various graphics and diagrams in your books, papers,
magazines, etc. If you've ever wondered about using Inkscape to make
them, I'm giving another Beginning and Intermediate Inkscape online
(Jitsi) presentation at the monthly Orange County (California USA) LUG
(OCLUG) meeting 2/19/2022 at 10am **Pacific Time** (California USA
time).

You can see details and URL at:
http://troubleshooters.com/lugs/oclug/

Thanks,

SteveT

Steve Litt  
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: question about "itemize"

2022-02-05 Thread Steve Litt via lyx-users
Paul A. Rubin via lyx-users said on Sat, 5 Feb 2022 16:04:28 -0500

>On 2/5/22 15:57, Daniel via lyx-users wrote:
>> On 2022-02-05 16:23, Daniel via lyx-users wrote:  
>>> On 2022-02-05 16:21, Daniel via lyx-users wrote:  
>>>> On 2022-02-05 07:25, Tom Goldring via lyx-users wrote:  
>>>>> Suppose I have an itemized list like
>>>>>
>>>>>     paragraph 1
>>>>>
>>>>>    - paragraph 2
>>>>>
>>>>>     paragraph 3
>>>>>
>>>>> where paragraph 2 is nested. If I enter this by choosing the 
>>>>> "itemize" environment, then typing

[snip]

>>>>
>>>> Try setting paragraph 3 with the Standard layout and indent it.
>>>> Hope I understood what you meant.  
>>>
>>> By "indent it", I meant "increase the depth" (by pressing the tab 
>>> key, for example).  
>>
>> Paul's answer makes me think that my answer wasn't fully clear. So, 
>> I'll attach an example document. Looks reasonable in LyX' work area
>> too.
>>
>> Daniel
>>  
>I grafted my answer onto Daniel's example (as paragraphs 4 through 6), 
>and the PDF output shows no differences that I can see between the two 
>approaches.
>
>Paul

The OP's question was ambiguous because he showed no bullets at level
1. He's received an easy and correct answer from three different
people, in a timely manner. The OP has not responded. This was the OP's
one and only post to this list. At this point I think we can mark this
issue as closed.

SteveT

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


Re: question about "itemize"

2022-02-05 Thread Steve Litt via lyx-users
Tom Goldring via lyx-users said on Sat, 5 Feb 2022 01:25:33 -0500

>Suppose I have an itemized list like
>
>    paragraph 1
>
>   - paragraph 2
>
>    paragraph 3
>
>where paragraph 2 is nested. If I enter this by choosing the "itemize" 
>environment, then typing
>
>paragraph 1   paragraph 2   paragraph 3
>
>LyX creates paragraph 3 as a new item. Is there a way to have
>paragraph 3 not be a new item? 

Yes. In the LyX environment, press the Enter key twice, and you'll
start a new paragraph. If for some reason that doesn't work, go to the
Environment dropdown and chooose Standard.

SteveT

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


Inkscape Presentation at Phoenix LUG 1/13/2022

2022-01-12 Thread Steve Litt via lyx-users
Hi all,

Many of you have various graphics and diagrams in your books, papers,
magazines, etc. If you've ever wondered about using Inkscape to make
them, I'm giving an Beginning and Intermediate Inkscape online (Jitsi)
presentation at the monthly Phoenix (Arizona USA) LUG (PLUG) meeting
1/13/2022 at 7pm **Mountain Time** (Phoenix, Denver, and Salt Lake City
USA time).

You can see details at http://troubleshooters.com/lugs/phoenixlug/

Thanks,

SteveT

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


Re: How would LyX perform?

2021-12-31 Thread Steve Litt via lyx-users
Herbert Voss via lyx-users said on Fri, 31 Dec 2021 11:36:44 +0100

>Am 31.12.21 um 01:41 schrieb Steve Litt via lyx-users:
>> Herbert Voss via lyx-users said on Thu, 30 Dec 2021 14:52:15 +0100
>>  
>>> Am 30.12.21 um 14:46 schrieb Steve Litt via lyx-users:  
>>>> Wolfgang Engelmann via lyx-users said on Mon, 27 Dec 2021 11:31:55
>>>> +0100  
>>>>> This has shocked me
>>>>> https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115069
>>>>>
>>>>> Would be interesting to see how LyX performs  
>>>> Plain TeX would be much better than LaTeX, as a native format, if
>>>> it could handle fonts well. Does anyone know of a Plain TeX to
>>>> LuaTeX or XeTeX converter?  
>>> What do you want to convert?? Every Plain TeX document runs with
>>> LuaTeX or XeTeX,
>>> but, of course, not vice versa!  
>> My thought is that I need to convert because I need to use the
>> tex-gyre-schola font, and as far as I know, Plain TeX won't
>> accommodate this font. So, as I understand it, my process would need
>> to be:
>>
>> 1: Write in Plain TeX with whatever font is available
>>
>> 2: Convert Plain TeX to LuaTeX  
>
>
>You only have to load the font, tha's all ...
>
>\input luaotfload.sty
>\font\rm="[texgyreschola-regular.otf]:+lnum;+dlig"
>\font\bf="TeXGyre Schola/B:+lnum;+dlig"
>\font\it="TeXGyre Schola/I:+lnum;+dlig"
>\font\bfit="TeXGyre Schola/BI:+lnum;+dlig" at 15pt
>
>\rm
>TeX Gyre Schola regular
>
>\bf TeX Gyre Schola bold
>
>\it TeX Gyre Schola italic
>
>\bfit  TeX Gyre Schola bolditalic
>\bye
>
>
>Herbert

Thanks Herbert!

This opens a whole new world for me. I'll experiment with it next year.

Happy New Years all!

SteveT

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


Re: How would LyX perform?

2021-12-30 Thread Steve Litt via lyx-users
Herbert Voss via lyx-users said on Thu, 30 Dec 2021 14:52:15 +0100

>Am 30.12.21 um 14:46 schrieb Steve Litt via lyx-users:
>> Wolfgang Engelmann via lyx-users said on Mon, 27 Dec 2021 11:31:55
>> +0100 
>>> This has shocked me
>>> https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115069
>>>
>>> Would be interesting to see how LyX performs  
>>
>> Plain TeX would be much better than LaTeX, as a native format, if it
>> could handle fonts well. Does anyone know of a Plain TeX to LuaTeX or
>> XeTeX converter?  
>
>What do you want to convert?? Every Plain TeX document runs with
>LuaTeX or XeTeX,
>but, of course, not vice versa!

My thought is that I need to convert because I need to use the
tex-gyre-schola font, and as far as I know, Plain TeX won't accommodate
this font. So, as I understand it, my process would need to be:

1: Write in Plain TeX with whatever font is available

2: Convert Plain TeX to LuaTeX

3: Use AWK to replace the font with tex-gyre-schola

4: Compile to PDF

The reason I need this is I could *easily* convert from (X)HTML5 to
Plain TeX. If I can go the rest of the way I can make a nice PDF from
XHTML5.

But I have neither the programming skills nor the LaTeX knowledge to
create LaTeX from XHTML5.

Thanks,

SteveT

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


Re: How would LyX perform?

2021-12-30 Thread Steve Litt via lyx-users
Wolfgang Engelmann via lyx-users said on Mon, 27 Dec 2021 11:31:55 +0100

>This has shocked me
>https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115069
>
>Would be interesting to see how LyX performs

My first two books were written in WordPerfect 5.1. The next one was
written in MS Word. All the rest were written in LyX. I was happy with
all of them.

My worst nightmare would be authoring in raw LaTeX. By the time I
remembered the necessary LaTeX tag, I would have forgotten the point I
was trying to make in my writing.

LaTeX is a *lousy* native format for a document. It's suitable only for
fixed line PDF/paper. It's extremely difficult to convert to flowing
text HTML or ePub, unless you want to (urk) use Pandoc, with all the
implied compromises on appearance. In my opinion LaTeX should be only
an intermediate component in the authoring stack, that component being
for creating fixed-line PDF/paper.

Plain TeX would be much better than LaTeX, as a native format, if it
could handle fonts well. Does anyone know of a Plain TeX to LuaTeX or
XeTeX converter?

I'm working on an authoring tool whose native format is a Markdown
superset, with complete support of arbitrary styles. It's pretty easy
to go from that format to HTML or ePub, but to go from there to
fixed-line PDF/paper without using (urk) Pandoc is a challenge. But not
nearly as big of a challenge as going from LaTeX to semantic HTML.

Getting back to LyX, one of my books, "Key to Everyday Excellence",
could not have been written in WordPerfect or MSWord because the
(fictional) plot is so date driven that the current plot date appears
in the header. And although I used styles-based authoring in
WordPerfect and MSWord, I like that LyX enforces styles-based
authoring. LyX is quite a fast authoring environment --- the only way
it could be faster is to get rid of mouse usage.

In my opinion, for a document over 10K words, LyX beats the authoring
speed and ease of MSWord.

This discussion wouldn't be complete without including LibreOffice.
LibreOffice is a style-losing piece of junk fit only for
fingerpainting. Those who characterize LibreOffice as a substitute for
MSWord either don't use styles-based authoring, or they're fooling
themselves, or they know something I don't know.

By the way, my new book, "Making Mental Models: Advanced Edition", just
came out yesterday. It's made almost exclusively with LyX, Inkscape,
and shellscripts. A big thank you goes out to the LyX team who made
this possible.

SteveT

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


Re: LuaTeX vs XeTeX

2021-12-22 Thread Steve Litt via lyx-users
Scott Kostyshak via lyx-users said on Wed, 22 Dec 2021 07:55:24 -0500

>On Wed, Dec 22, 2021 at 07:26:57AM -0500, Steve Litt via lyx-users
>wrote:
>> Scott Kostyshak via lyx-users said on Mon, 20 Dec 2021 20:55:18 -0500
>>   
>> >On Mon, Dec 20, 2021 at 03:49:33PM -0500, Steve Litt via lyx-users
>> >wrote:
>> >  
>> >> Because I
>> >> personalize every book, I need to recompile for every order, so I
>> >> might research using PDFTeX. Thanks for the tip.
>> >
>> >Does the personalization change every page or just a few?  
>> 
>> Almost every page. There's a command defined in the doc's preamble,
>> and before compilation, the person's name is substituted for a token
>> in the name. That command prints in the page footers on every
>> mainmatter page that isn't the first page of a chapter.
>> 
>> The footer says "Prepared exclusively for Scott Kostyshak",
>> discretely, in a red/maroon bar.  
>
>Thanks for those details. If the footer is in the same x,y location of
>every page, it might be fast to use a program like pdftk to overlay a
>"stamp" on each page, rather than recompiling.

I might be able to do it that way, but if I could, somebody else could
easily use the same technique to undo it.


SteveT

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


Re: LuaTeX vs XeTeX

2021-12-22 Thread Steve Litt via lyx-users
Scott Kostyshak via lyx-users said on Mon, 20 Dec 2021 20:55:18 -0500

>On Mon, Dec 20, 2021 at 03:49:33PM -0500, Steve Litt via lyx-users
>wrote:
>
>> Because I
>> personalize every book, I need to recompile for every order, so I
>> might research using PDFTeX. Thanks for the tip.  
>
>Does the personalization change every page or just a few?

Almost every page. There's a command defined in the doc's preamble, and
before compilation, the person's name is substituted for a token in the
name. That command prints in the page footers on every mainmatter page
that isn't the first page of a chapter.

The footer says "Prepared exclusively for Scott Kostyshak", discretely,
in a red/maroon bar.

SteveT

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


Re: Forest beyond basics

2021-12-20 Thread Steve Litt via lyx-users
Herbert Voss via lyx-users said on Mon, 20 Dec 2021 09:30:54 +0100

>Am 19.12.21 um 22:24 schrieb Steve Litt via lyx-users:

>> LyX and LaTeX were never intended to make drawings or diagrams. Not
>> really.  
>
>That is not true! From the beginning of LaTeX there was the picture
>environment with, of course, limited capability. But it was good enough
>for simple diagrams/graphics.

 ^^

And I'm pretty sure that just drawing it in Inkscape is a faster
workflow than repeatedly changing a number, compiling, and looking at
the result. I think the text based trial and error method would take an
awful lot of time for the following diagram:

http://troubleshooters.com/linux/presentations/golug_runit/images/runsv_supervision.svg

SteveT

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


Re: LuaTeX vs XeTeX

2021-12-20 Thread Steve Litt via lyx-users
Dr Eberhard Lisse via lyx-users said on Mon, 20 Dec 2021 08:49:24 +0200


>PDFLaTeX is much faster that LuaLaTeX but to be hoest, nowadays the
>day to day stuff is so fast anyway that that doesn't matter.

I noticed that my new book, which is much shorter than most, took about
triple the time, like about 20 seconds on a very fast machine, to
compile that books with LaTeX, XeTeX, and PDFTeX took. Because I
personalize every book, I need to recompile for every order, so I might
research using PDFTeX. Thanks for the tip.

SteveT

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


Re: Forest beyond basics

2021-12-19 Thread Steve Litt via lyx-users
Maria Gouskova via lyx-users said on Sun, 19 Dec 2021 12:20:15 -0500

>Dear LyX users,
>
>(Actually, I suspect this is a question for Jürgen S., but on the off
>chance that someone else knows the answer...)
>
>I need to produce a diagram with the structure shown here. It was
>produced using the obsolete xyling package 

Hi Maria,

LyX and LaTeX were never intended to make drawings or diagrams. Not
really. Just take 20 minutes to make your drawing in Inkscape, then put
it in your LyX document just like you'd put any old .png or more to the
point .svg. LyX automatically recompiles your Inscape-produced .svg
into a PDF suitable for LyX/LaTeX upon finding that the .svg has
changed.

You know what it's supposed to look like, so you can draw it yourself.
For new work where you need a new "forest", whatever this "forest"
thing is, find a forest making software that can export to .svg,
and then you can either use that .svg, or modify it a little in
Inkscape.

SteveT

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


What does tools=>reconfigure actually do?

2021-12-17 Thread Steve Litt via lyx-users
Hi all,

Exactly what is the difference between performing Tools=>Reconfigure
within the LyX IDE environment, and performing
/usr/local/share/lyx/configure.py at the command prompt? The former
makes LyX aware of new environments I've put in the layout file, the
latter for some reason does not.

Are there some arguments I need to add to the configure.py command
line? Does it need to be done in a specific directory? Are there any
environment variables that effect configure.py?
configure.py --help didn't appear to tell me anything useful.

I really need a way to do a proper reconfigure that makes new
environments from the layout file available within LyX, and I need to
do it from a shellscript.

Thanks,

SteveT

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


Re: User list server settings

2021-12-17 Thread Steve Litt via lyx-users
Paul A. Rubin via lyx-users said on Thu, 16 Dec 2021 12:23:48 -0500


>In any case, while I would prefer to have the proper sender display 
>back, if that can't be done I can accept the "new normal" as the price 
>of avoiding your being spammed. :-)

I know it's a lost cause but I'll say it anyway: A better cost would
have been just to ban email from yahoo and its ilk right from the
beginning. As a user, I've found Dmarc has been nothing but trouble from
the very beginning.

SteveT

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


Re: LuaTeX vs XeTeX

2021-12-17 Thread Steve Litt via lyx-users
Herbert Voss via lyx-users said on Thu, 16 Dec 2021 15:31:15 +0100


>- no more fiddling around with the encoding, everything is UTF-8
>- no more restrictions in using fonts, all current types are supported,
>    like pfb, ttf, utf, ttc, ...
>- easy integration of the script language Lua into a document

That's what brought me to LuaTeX and LuaLaTeX: The ability to use TeX
Gyre Schola font, which looks better than everything except its
lookalike Century Schoolbook, but somehow, about 6 years ago, Century
Schoolbook stopped working for me.

Since beginning to use LuaTeX, I've enjoyed that it does everything the
others do, and by using it all the time, I gain expertise and
everything's easier.


SteveT

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


Word wrap in a cell?

2021-12-15 Thread Steve Litt via lyx-users
Hi All,

If I remember correctly, you can specify that a column or a cell can
word-wrap, but I can't find a way to do it.

I faked it by Ert'ing \\{} in the text, but this made all the vertical
lines in the row incomplete and looked really ugly.

How do I enable word-wrap within a cell?

Thanks,

SteveT

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


Re: Bibliography not in ToC [RESOLVED]

2021-12-15 Thread Steve Litt via lyx-users
Rich Shepard via lyx-users said on Tue, 14 Dec 2021 13:23:05 -0800 (PST)


>Why it did not take when I changed the bibliography style I've no
>idea. But the reconfigure forced lyx to show me there were errors in
>the .bib file.

When troubleshooting, I always texhash;reconfigure; and then do
whatever. The extra 90 seconds is well worth it, because a misleading
diagnostic test can cost hours. By doing it this way, I never need to
tax my brain wondering whether a texhash and/or reconfigure is
necessary.

My troubleshooting is usually done from a looping shellscript.

SteveT

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


I think we need a better name than "MWE"

2021-12-14 Thread Steve Litt via lyx-users
Hi all,

Here on the LyX list we use the word MWE to mean the simplest example
that still exhibits the symptom. But MWE stands for Minimum *Working*
Example, and by definition, the file that exhibits the symptom does not
"work". Also, I think I've seen MWE used on various LaTeX venues to
mean the smallest file that works, for a specific feature you want to
incorporate.

Can anyone think of a better name for the tiniest file that exhibits a
symptom?

Thanks, 

SteveT

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


Re: Glitch (bug?) in 2.3.6.1 [FIXED]

2021-12-14 Thread Steve Litt via lyx-users
Dr Eberhard Lisse via lyx-users said on Tue, 14 Dec 2021 13:53:48 +0200

>Or use curly braces.
>
>But why would you do this with ERT in the first place?
>
>Instead of \textdegree{} I just used the first character from
>
>   Insert -> Symbols -> Superscripts
>
>and Subscripts and get ⁰C.

Maybe because he didn't know about Insert -> Symbols -> Superscripts. I
didn't know it either, but now I do, and will use it. Thanks for the
information!

SteveT

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


Re: MWE showing one of my indexing problems [ALL PROBLEMS SOLVED]

2021-12-11 Thread Steve Litt via lyx-users
Herbert Voss said on Fri, 10 Dec 2021 10:14:29 +0100

>Steve Litt via lyx-users schrieb:
>> Attached please find mwe.lyx and mwe.pdf, which was created by
>> mwe.lyx. This document is standard book class, sized 6 inches high
>> by 4 inches wide to fit on reasonably sized mobile devices. The
>> symptom is that index item "Incremental/Differential Learning" spans
>> about 35 pages, but there's no index begin tag on the first of those
>> pages, or anywhere near it. You can read the rest of the symptom
>> description as chapter 1 of the actual document.
>>
>> I could have refined it further, but after 3 days I'm so punch drunk
>> I was afraid I'd make the symptom vanish and have to start all over
>> again, so if some of you could take a look at it, I'd be very
>> grateful.  
>
>do not write an \index command into a sectioning command. Use it after
>such a command. See image
>
>Herbert

Thanks Herbert,

Moving all index commands from the headline to the text immediately
following solved most of of the problems.

And thanks to all the rest of you who helped me.

Stephan Witt recommended looking at the .ilg file. Unfortunately, for
some reason I haven't figured out yet, my shellscript didn't create a
.ilg file, so I just figured there were no warnings (bzzt, wrong).

Then I compiled using el's command:

lyx -f -e luatex lawnmower.lyx && latexmk -lualatex lawnmower.tex

The preceding command gave me a .ilg file with tens or maybe over 100
warnings, and I just didn't think that was possible, because I hadn't
wrongly interlaced anything or used a |( where I was supposed to use a
|).

After I fixed the MWE according to Herbert's advice and compiled with
el's command, I got no warnings in the .ilg. 

Armed with such knowledge, I pulled up the real file and, chapter by
chapter, moved any \index commands on headlines to the start of the
text immediately below them. With each chapter so fixed, there were
less and less warnings in the .ilg. Once I'd fixed all the chapters,
the .ilg contained no warnings.

But wait, there's more. Once I got to that point, I had to uncomment
the \input{./seealso.inc} from the layout file. This immediately
produced several warnings of the type:

"Conflicting entries: multiple encaps for the same page under same key"

Ugh! A suitable period of web searching and experimentation brought me
to the conclusion that the following seealso.inc lines, although they
appear logical and correct, produce the preceding error message:

\index{Mental Model!Runit|see{Runit}}
\index{Mental Model!Runit|seealso{ runsv}}

You can't have one lookup phrase produce multiple references. So
instead, you need to incorporate this one inobvious command to replace
the preceding two:

\index{Mental Model!Runit|see {Runit,}, \seealso{runsv}}

Notice the following:

* "Runit," contains a comma that shows through in the index.
* The comma after the closing brace on "{Runit,}," is necessary
* The space after the comma after the closing brace prevents the
  seealso from butting up against the comma in "Runit,"
* The seealso must be in command form (\seealso)

Ugly, but it works.

A slightly less challenging requirement is what seems like would be
expressed like the following:

\index{Runit|seealso{runsv}}
\index{Runit|seealso{Runit=>lessons learned}}

But once again, "Conflicting entries: multiple encaps for the same page
under same key", for the exact same reasons: One lookup phrase with
multiple references. Fortunately, because these are both seealso instead
of one of each, the solution is simpler:

\index{Runit|seealso{runsv, Runit=>lessons learned}}

For some reason I'll never understand, the following produces some, but
not all, pages that are off by a page or two:


lyx -f --export luatex lawnmower.lyx
lualatex lawnmower.tex
makeindex lawnmower.idx
luatex lawnmower.tex


So instead I use el's method, which appears to give correct page
numbers every time:


lyx -f --export luatex lawnmower.lyx
latexmk -gg -lualatex lawnmower.tex


One thing I learned the hard way is what Stephan Witt told me: From the
very first index mark or index range, look at your .ilg file and get
rid of all errors and warnings before going on. When warnings get too
numerous, debugging becomes like swimming through molasses.

I put this all into a shellscript, which repeatedly deletes all
intermediate files, does a texhash, a LyX reconfigure, lyx export and
latexmk, displaying the .ilg file with line numbering in the less
command on the CLI, and displaying the resulting PDF in the GUI. Each
compile takes a little longer with all that stuff in there, but I'm
guaranteed that whether the change I made was installation of a new TeX
package, ch

Re: MWE showing one of my indexing problems

2021-12-10 Thread Steve Litt via lyx-users
Herbert Voss said on Fri, 10 Dec 2021 10:14:29 +0100

>Steve Litt via lyx-users schrieb:
>> Attached please find mwe.lyx and mwe.pdf, which was created by
>> mwe.lyx. This document is standard book class, sized 6 inches high
>> by 4 inches wide to fit on reasonably sized mobile devices. The
>> symptom is that index item "Incremental/Differential Learning" spans
>> about 35 pages, but there's no index begin tag on the first of those
>> pages, or anywhere near it. You can read the rest of the symptom
>> description as chapter 1 of the actual document.
>>
>> I could have refined it further, but after 3 days I'm so punch drunk
>> I was afraid I'd make the symptom vanish and have to start all over
>> again, so if some of you could take a look at it, I'd be very
>> grateful.  
>
>do not write an \index command into a sectioning command. Use it after
>such a command. See image
>
>Herbert

Confirmed! Thank you Herbert.

I moved the two index opening commands from the end of the sectioning
command to the start of the standard text that follows the sectioning
command, which eliminated the symptom.

My one remaining worry is that, with bad luck and just the wrong
vertical alignment, the section header might fall at the bottom of the
page *before* the page pointed to by the index entry. But so far, I
seem to be having the opposite problem (section header falling *after*
the page pointed to by the index entry, but only with my compile
script, not with eyeballs) so I have to do more research.

Thanks for your help on this. It solved the worst of my two index
problems.

SteveT

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


Re: Graphic file formats

2021-12-08 Thread Steve Litt via lyx-users
Rich Shepard said on Wed, 8 Dec 2021 09:53:55 -0800 (PST)

>On Wed, 8 Dec 2021, Steve Litt wrote:
>
>> There are ways to shrink PDF size:
>> Web search: linux shrink pdf size  
>
>SteveT,
>
>First hit uses ghostscript; I never dove deep into gs and didn't know
>that it can effectively compress a PDF file. It compressed the
>original 3,704,503 byte file to 897,417 bytes; a reduction of 76%.
>That's impressive.

Hi Rich,

Did the shrunken PDF have a material effect on timing?

SteveT

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


Re: How to find LyX' compile strategy?

2021-12-08 Thread Steve Litt via lyx-users
Stephan Witt said on Wed, 8 Dec 2021 18:49:07 +0100

>Am 08.12.2021 um 18:16 schrieb Steve Litt :
>> 
>> Dr Eberhard Lisse said on Wed, 8 Dec 2021 17:22:34 +0200
>>   
>>> What's wrong with
>>> 
>>> lyx -f -e pdf5 lawnmower.lyx
>>> 
>>> or if you must, with
>>> 
>>> lyx -f -e luatex lawnmower.lyx && latexmk lawnmower.tex

Thanks Stephan!

The .ilg file revealed 125 lines of indexing errors, so that's probably
something like 40-50 errors. I'll fix those and see what happens.

It's been about 8 years since I indexed a book, and I'd forgotten about
the .ilg file.

Thanks,

SteveT

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


Re: Graphic file formatsx

2021-12-08 Thread Steve Litt
Rich Shepard said on Wed, 8 Dec 2021 07:51:56 -0800 (PST)

>On Wed, 8 Dec 2021, Dr Eberhard Lisse wrote:

>> For my big handbook (which takes 110 seconds to compile (70 on the
>> M1)) I have split this into child documents which compile
>> individually within 10 to 15 seconds.  
>
>How about loading a PDF image that's 3,704,503 bytes in size while
>reading your big handbook?

OK, 3,704,503 bytes got my attention. No wonder it's slow.

There are ways to shrink PDF size:

Web search: linux shrink pdf size

SteveT

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


Re: How to find LyX' compile strategy?

2021-12-08 Thread Steve Litt
Dr Eberhard Lisse said on Wed, 8 Dec 2021 17:22:34 +0200

>What's wrong with
>
>   lyx -f -e pdf5 lawnmower.lyx
>
>or if you must, with
>
>   lyx -f -e luatex lawnmower.lyx && latexmk lawnmower.tex
>
>el

Thanks el!

Aside from the fact that latexmk needed a -lualatex arg, nothing was
wrong with them. And they gave me additional evidence that the root
cause might not be about the difference in compile method between
internal LyX and external shellscripts or commands.

It turns out that, whether with eyeballs, my shellscript, or either of
your commands, one index item is spectacularly out of bounds,
supposedly covering pages 21-132, which is patently false. I'm now
going to use this one reproducible index error to create an MWE, either
for myself, or for review on the list after suitable Latin has been
substituted for the proprietary verbiage.

So thanks very much, because you helped get me over a serious stumbling
block.

SteveT

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


Re: Graphic file formatsx

2021-12-08 Thread Steve Litt
Dr Eberhard Lisse said on Wed, 8 Dec 2021 17:14:33 +0200

>What does "slowly" mean?
>
>One could try the "draft" option (of graphicx) which should speed
>things up until the production runs.
>
>For my big handbook (which takes 110 seconds to compile (70 on the M1))
>I have split this into child documents which compile individually
>within 10 to 15 seconds.

That's a lot of time. How many words is this book?

SteveT

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


Re: Graphic file formats

2021-12-07 Thread Steve Litt
Murat Yildizoglu said on Wed, 8 Dec 2021 08:49:14 +0700

>Dear Rich,
>If the plot has many points, the PDF may not be the best choice. I
>have even seen cases where the printer cannot process the page with
>such a plot   I generally choose to export such graphics as a bitmap
>(PNG) with a high definition for ensuring a sufficient quality for
>inclusion in the final pdf document or to be sent to the editor. --

I'm not sure what "inclusion in the final PDF means, but if it means
inclusion in the PDF representing the whole book, my understanding is
that he must make that .png exactly the right dimensions, because being
a bitmap, most scaling produces distortions.

My understanding is that in LuaTeX, in PDF mode, can *natively* handle
.png, so no conversion by LyX will be necessary. If this is true, and
if the .png is created with the exactly right dimensions to fit the
book page, then this would indeed be a possibility.

SteveT

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


How to find LyX' compile strategy?

2021-12-07 Thread Steve Litt
Hi all,

Please listen to my exact question, and then I'll elaborate. My exact
question is the following sentence...

How do I find out the exact commands LyX runs when I click the eyeballs
or press Ctrl+r?

As you read the rest of this email, please keep in mind this is an
almost 30K word book with proprietary information, so making an MWE
that I could give to others would take a huge, time consuming effort,
replacing things with Ipsum Lorum, etc.

Now for the symptom: When I compile my book with a shellscript, some of
the index entries point to a page one or two pages off. When I click
the eyeballs, all the index entries are accurate. So I have the root
cause trapped between one working and one non-working system, which
*should* enable me to quickly narrow it down. But I don't know what the
LyX Ctrl+r does, and I would need to know that to achieve this trap.

The following is my shellscript:

==
#!/bin/sh

namee="lawnmower"

zap_files(){
   dot="."
   for f in aux idx ilg ind log out pdf tex toc; do
  fname=$namee$dot$f
  rm $fname && echo "Deleted $fname."
   done
}

while /bin/true; do
  cd /d/at/books/mm_create
  zap_files
  /bin/texhash
  /usr/local/share/lyx/configure.py
  lyx --export luatex $namee.lyx
  lualatex  $namee.tex
  makeindex $namee.idx
  #texindy $namee.idx
  lualatex $namee.tex
  mupdf $namee.pdf &  #no box
  echo -n "Press Enter to do it again: "
  read junk
done
==

Changing the reader doesn't change the symptom. Any reader triggered by
the eyeballs has correct indexing. Any reader triggered by the
shellscript has some erroneous index page numbers. Switching between
makeindex and texindy doesn't affect the symptom. For readability
reasons, I am absolutely committed to TeX Gyra Schola, unless somebody
can show me how to use Century Schoolbook, which I haven't been able to
do in 8 years. I have not been able to compile books with TeX Gyra
Schola with anything but LuaTeX/LuaLaTeX for the same 8 years.

If somebody can tell me how to deduce what LyX does when I press the
Ctrl+r key combo, that will put me well on the way to solving this
problem.

Thanks,

SteveT

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


Re: Graphic file formats

2021-12-07 Thread Steve Litt
Rich Shepard said on Tue, 7 Dec 2021 16:05:09 -0800 (PST)

>On Tue, 7 Dec 2021, Steve Litt wrote:
>
>> As far as my diagrams created in Inkscape, I put them in the images
>> folder as .svg, and tell LyX to compile each to PDF. PDF completely
>> saves the vector information, so that you can resize without
>> significant jaggies.  
>
>Steve,
>
>I don't use Inkscape. My images are created by R and GRASS.

Same difference, as long as they're in SVG format. If they're not, what
format are they in?

SteveT

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


Re: Graphic file formatsx

2021-12-07 Thread Steve Litt
Rich Shepard said on Tue, 7 Dec 2021 09:33:56 -0800 (PST)

>Most of the graphics I import into a LyX document are PDFs. When the
>data sets are large they load slowly.
>
>When I create a figure float I see that it's converted to a preferred
>format.
>
>Would these figures load more quickly if they were pre-converted? What
>is the preferred format?

As far as my diagrams created in Inkscape, I put them in the images
folder as .svg, and tell LyX to compile each to PDF. PDF completely
saves the vector information, so that you can resize without
significant jaggies.

Obviously, if the .svg is huge, the PDF will be huge, and conversion
will take a long time. As far as I know, LyX only performs the
conversion when:

1) There's no PDF, or

2) The .svg is newer than the current PDF.

So if I were in your position, I'd set LyX to SVG=>PDF, and let LyX do
its job.

Now if by "load slowly" you mean five minutes or more, there's an
alternative. You can set up a shellscript to use Inkscape or something
else to convert SVG=>PDF, and then use software to shrink the PDF. Web
search "how to shrink PDFs in Linux" for the various alternatives. The
last step for the shellscript is to place the newly converted and
processed PDF in the images directory. To do this, of course, you need
to set your LyX document to load the PDF, not the SVG.

The benefit of the shellscript is you can continue to work while the
software converts and shrinks your image.

HTH,

SteveT

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


Re: Page numbers not showing in place

2021-11-30 Thread Steve Litt
Melvin Bolton said on Tue, 30 Nov 2021 10:00:54 +1000


>My problem is that the pagestyle settings that should place page
>numbers in the footer, are showing them in the output only on the
>first page of each chapter, which the User Guide says is treated by
>Lyx as a special environment.

Hi Melvin,

I might have given you wrong info on my last response when I said your
\fancy was working as designed. It turns out that *my* \fancy used the
techniques, that I suggested for you, to strongarm page numbers to the
top on non-chapter pages.

If you haven't already solved this, I'd suggest you do a few
experiments with page margins and foot-sep to make sure your page
numbers aren't printing below the document.

SteveT

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


Re: Page numbers not showing in place

2021-11-30 Thread Steve Litt
Melvin Bolton said on Tue, 30 Nov 2021 10:00:54 +1000

>I have in the past completed a lengthy book, using Lyx,  without
>needing to trouble anybody for help,  but I'm now baffled by what
>should be a simple, basic task and I have no idea what to try next.
>
>My problem is that the pagestyle settings that should place page
>numbers in the footer, are showing them in the output only on the
>first page of each chapter, which the User Guide says is treated by
>Lyx as a special environment.
>I began with KOMA-Script ( scrbook) with pagestyle set to 'plain' as
>I'd done previously. This places page numbers in the outer end of the
>footer as I prefer them. When I found them only appearing on the first
>page of each chapter I searched online and tried pasting a few
>commands in the preamble but nothing helped and mostly I got
>compilation errors. I've cleared the preamble.
>
>I tried Lyx Standard Class (Book) with pagestyle set to 'plain', which 
>centred the page numbers as it should, but still only on first pages
>of chapters. Neither was there any improvement after I tried pagestyle
>set to 'fancy' and tried to customize that. It's as though chapter
>footers are not accessible, except for first page.

Hmm, on my book fancy produces the page number in the footer of new
chapter pages, and the header on all other pages. So at least for
Standard Class (Book), it's behaving as designed.

Sometimes changing Document Class isn't enough, or is a bad move[1].
Sometimes you need to use a layout file to develop your own Document
Class, based on an existing one (I always base mine on LyX Standard
Class (Book) because less unpleasant surprises).

I wrote an article about making your headers and footers do *whatever*
you want. If you want page numbers at the bottom, you can do so with
your layout file. Here's the article:

http://troubleshooters.com/lpm/200210/200210.htm#_HeadersandFooters

Before going to all that trouble, make sure there's not a CTAN package
(not a document class, just a package) you can download to put the page
numbers on the bottom without further side effects. There are three
times more CTAN packages than stars in the universe, so it's likely
such a thing exists, *if* you can find it. But if you can't find it,
don't despair; you can always strongarm it as shown in the preceding
link.


>In my document, immediately before the first chapter, I have the 
>following ERT:  \mainmatter\pagestyle{plain} \setcounter{page}{1}

Anything's possible, but that shouldn't matter.

>
>The frontmatter is fine because I have don't want page numbers there
>and have pagestyle set to 'empty.' That, at least, has worked; there
>were Roman numerals there to begin with.

You might or might not need to tweak your layout file to *prevent* the
page numbers from printing at the bottom of your \frontmatter pages
after making the changes.

[1] Much too often, people recommend changing your document class to
achieve one feature. Invariably, that new class lacks some needed
features of the first one. I'm not sure if it's Koma or Memoir, but
one of them clashes with \hyperref, requiring all sorts of hoop
jumping. In my opinion, the document class should be chosen based
on the overall look you want to achieve, and then tweak the rest of
the features you absolutely need "your way". Also, if you intend to
write multiple books, I'd suggest choosing one and becoming an
expert at it.


SteveT

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


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

2021-11-28 Thread Steve Litt
Paul A. Rubin said on Sun, 28 Nov 2021 09:40:07 -0500



>Very odd. The config script should check for all the viewers in the 
>list, and all the ones it finds should appear in the select box for
>the corresponding file type. That works on my system (Linux Mint); I
>get three viewers sandwiched between None and Custom.
>
>Might be worth filing a bug report.
>
>Paul

Thanks Paul,

I don't file bug reports anymore. Every project has its own bug report
software, with its own questions, many of which I can't answer, at its
own URL that I need to locate. And on all too many projects, when you
look at the bug list, a lot of them are over a year old, marked
unimportant, or marked wontfix.

If this isn't happening to anyone else, then there's no need to fix
anything; I fixed my copy. If other people start reporting it, everyone
can look back at this thread and see a very thorough symptom
description from me.

Thanks,

SteveT

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


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

2021-11-28 Thread Steve Litt
Kornel Benko said on Sun, 28 Nov 2021 11:58:56 +0100

>Am Sat, 27 Nov 2021 20:53:34 -0500
>schrieb Steve Litt :
>
>> Here's the thing. LyX exhibited this symptom for *every* previewer
>> except for qpdfview. When I temporarily uninstalled qpdfview so it
>> couldn't be found, it used a second viewer, and no attempt to use
>> any third viewer would displace the second viewer. LyX was obviously
>> going down a list and using the first viewer, on that list, that it
>> found. I found just such a list in reconfigure.py, reordered the
>> list, and changed it to use mupdf, and it used mupdf.
>> 
>> So until somebody can show me a way to select a viewer to assign to
>> the eyeballs, my conclusion is the only way to set the eyeballs
>> viewer is to go into reconfigure.py and rearrange the viewer array
>> argument of CheckViewer() in cases where the filetype is PDF.
>> 
>> SteveT  
>
>You could check your new lyxrc.default for all lines containing "mupdf"
>and add them to the file 'preferences'. This file is not changed by
>reconfigure. Any entry in preferences will be preferenced over the
>ones in lyxrc.default.

Thanks Kornel,

Before making a move like that, I'd need to see some documentation
spelling out exactly how to do it. There are many different definitions
of "copy a line"; where, in what context, etc. I already spent 6 hours
getting past this problem, and I don't want to spend another 6 because
I blew up my LyX system doing the wrong thing.

Thanks,

SteveT

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


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

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

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

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

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

SteveT

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


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

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

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

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

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

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

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

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

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

Thanks,

SteveT

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


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

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

>On 11/25/21 8:49 PM, Steve Litt wrote:
>> Hi all,
>>
>> No matter what I've tried, Ctrl+R and the little eyeballs icon
>> displays the PDF version of the document only in qpdfview. I changed
>> tools=>preferences=>output=>general=>PDF Command to  
>> mupdf "$$o#src:$$f:$$n:0"
>> and yet still, the eyeballs and Ctrl+R display in qpdfview.
>>
>> Why this matters is, alone in all my PDF viewers, qpdfview displays
>> links with annoying boxes around them, even though I did:
>>
>> \usepackage{hyperref }%  Colored, clickable URLs
>> \hypersetup{
>>hidelinks = true,
>>colorlinks   = true, %Colours links instead of ugly boxes
>>urlcolor = linkcolor, %Colour for external hyperlinks
>>linkcolor= linkcolor, %Colour of internal links
>>citecolor   = green %Colour of citations
>> }
>>
>> So, how does one set the viewer when presses Ctrl+R or clicks the
>> eyeballs?
>>
>> Thanks,
>>
>> SteveT
>>
>> Steve Litt
>> Spring 2021 featured book: Troubleshooting Techniques of the
>> Successful Technologist http://www.troubleshooters.com/techniques  
>Try Tools > Preferences... > File Handling > File Format, select in
>the "Format:" box the way you compile to PDF (so "PDF (pdflatex)" for
>me, since I'm old fashioned), then select your preferred PDF viewer in
>the "Viewer:" menu and click OK. If your preferred viewer is not
>there, select "Custom" and put the command to run the viewer in the
>box alongside the menu.

Thanks Paul,

Tools=>Preferences=>File Handling=>File Formats=>Viewer: is a list box
that gives me only two choices: None and Custom. It was on None, so I
switched to Custom and put mupdf, and left and restarted LyX. No
change, still rendered in qpdfview. So I went into
~/.lyx/lyxrc.defaults and added 
\viewer_alternatives pdf  "mupdf"
for pdf thru pdf8. But when I exited and restarted LyX, the Viewer
dropdown still only offered Custom and None.

So as a Hail Mary, after adding all the mupdf lines, I performed a
Tools=>Reconfigure, and it replaced all my mupdf with qpdfview. :/-)

At this point it was 3:30AM and I decided to save it for another day.

Thanks,

SteveT

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


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

2021-11-25 Thread Steve Litt
Hi all,

No matter what I've tried, Ctrl+R and the little eyeballs icon displays
the PDF version of the document only in qpdfview. I changed 
tools=>preferences=>output=>general=>PDF Command to
mupdf "$$o#src:$$f:$$n:0"
and yet still, the eyeballs and Ctrl+R display in qpdfview.

Why this matters is, alone in all my PDF viewers, qpdfview displays
links with annoying boxes around them, even though I did:

\usepackage{hyperref }%  Colored, clickable URLs
\hypersetup{
  hidelinks = true,
  colorlinks   = true, %Colours links instead of ugly boxes
  urlcolor = linkcolor, %Colour for external hyperlinks
  linkcolor= linkcolor, %Colour of internal links
  citecolor   = green %Colour of citations
}

So, how does one set the viewer when presses Ctrl+R or clicks the
eyeballs?

Thanks,

SteveT

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


Re: How to paste into LyX-Code ?!!

2021-11-18 Thread Steve Litt
Daniel said on Thu, 18 Nov 2021 08:48:07 +0100

>On 2021-11-17 23:28, Steve Litt wrote:
>> Daniel said on Wed, 17 Nov 2021 10:44:23 +0100
>>   
>>> On 17/11/2021 10:01, Steve Litt wrote:  
>>>> Hi all,
>>>>
>>>> I have a C program I want to show in a book. So I use the LyX-Code
>>>> environment, but when I copy the C file to the clipboard and paste
>>>> it into the LyX-Code environment, all the newlines are removed.
>>>> What's the right way to show a C program file within LyX?
>>>>
>>>> Thanks,
>>>>
>>>> SteveT
>>>>
>>>> Steve Litt
>>>> Spring 2021 featured book: Troubleshooting Techniques of the
>>>> Successful Technologist http://www.troubleshooters.com/techniques
>>>>  
>>>
>>> You could try
>>>
>>> "Edit" > "Paste Special" > "Plain Text" or Ctrl+Shift+V.  
>> 
>> The preceding worked. Thank you!  
>>>
>>> I never understood what "Plain Text" does not among other things it
>>> should keep the line breaks. I guess keeping line-breaks should be
>>> the default...  
>> 
>> It's ridiculous that it's not the default, you're right.
>> 
>> Thanks also to Norman Dunbar who suggested the same things.
>> 
>> Thanks also to Hartmut Hasse and Stephan Witt for their suggestions,
>> which I didn't try for lack of time once the Shift+Ctrl+v worked.
>> 
>> I spent 2 hours trying to find a method last night, before figuring
>> I'd be better off asking the list. Thanks for your suggestions!
>> 
>> SteveT  
>
>Sorry to hear that you wasted so much time. 

Thanks Daniel. I'm not sorry: It's adventures like this that keep me on
my toes. Also, I don't ask on the list until I've done significant
research.

> Others seem to have been 
>there before as well:
>
>https://www.lyx.org/trac/ticket/8026

Until somebody gets around to "fixing" it, which at this point would
mess up those used to the current behavior, it could be treated as a
documentation problem.

It would be interesting to put it on a page titled "The Top 20
Unexpected Behaviors in LyX". That page could be prominently linked to
by many other pages.

I'm so used to LyX that I long ago forgot the other 19 :-).

SteveT

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


Re: How to paste into LyX-Code ?!!

2021-11-17 Thread Steve Litt
Daniel said on Wed, 17 Nov 2021 10:44:23 +0100

>On 17/11/2021 10:01, Steve Litt wrote:
>> Hi all,
>> 
>> I have a C program I want to show in a book. So I use the LyX-Code
>> environment, but when I copy the C file to the clipboard and paste it
>> into the LyX-Code environment, all the newlines are removed. What's
>> the right way to show a C program file within LyX?
>> 
>> Thanks,
>> 
>> SteveT
>> 
>> Steve Litt
>> Spring 2021 featured book: Troubleshooting Techniques of the
>> Successful Technologist http://www.troubleshooters.com/techniques
>>   
>
>You could try
>
>"Edit" > "Paste Special" > "Plain Text" or Ctrl+Shift+V.

The preceding worked. Thank you!
>
>I never understood what "Plain Text" does not among other things it 
>should keep the line breaks. I guess keeping line-breaks should be the 
>default...

It's ridiculous that it's not the default, you're right.

Thanks also to Norman Dunbar who suggested the same things.

Thanks also to Hartmut Hasse and Stephan Witt for their suggestions,
which I didn't try for lack of time once the Shift+Ctrl+v worked.

I spent 2 hours trying to find a method last night, before figuring I'd
be better off asking the list. Thanks for your suggestions!

SteveT

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


How to paste into LyX-Code ?

2021-11-17 Thread Steve Litt
Hi all,

I have a C program I want to show in a book. So I use the LyX-Code
environment, but when I copy the C file to the clipboard and paste it
into the LyX-Code environment, all the newlines are removed. What's the
right way to show a C program file within LyX?

Thanks, 

SteveT

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


Re: LuaTeX vs XeTeX

2021-11-08 Thread Steve Litt
Saša Janiška said on Mon, 8 Nov 2021 08:51:26 +0100

>Hello,
>
>just curious which engine do you recommend to be used with Lyx: LuaTeX
>or XeTeX?

These days, I always opt for luatex and lualatex. They just always
work, and if they don't, I know enough Lua that I might be able to
strongarm things.

SteveT

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


Re: Compile error [FIXED]

2021-10-14 Thread Steve Litt
Rich Shepard said on Wed, 13 Oct 2021 08:10:57 -0700 (PDT)

>On Wed, 13 Oct 2021, Dr Eberhard Lisse wrote:
>
>> But it does make sense not to put Apostrophes into the labels.  
>
>Tell Irish authors that. :-)
>
>Rich

Rich,

I'm not taking sides in this too-heated argument, but my practice is to
make every variable and filename consist of the characters that in
ASCII would be 32 to 126, and except for underscore I never put
punctuation nor spaces in variable names and filenames. When somebody
sends me a file whose filename has spaces, I just delete it unless it's
important enough for me to remove all punctuation and replace spaces
with underscores. Unless I remember to quote every variable in every
shellscript, space or punctuation within filenames cause malfunction.
Life's too short.

SteveT

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


Re: Bibliography styles

2021-10-12 Thread Steve Litt
Rich Shepard said on Tue, 12 Oct 2021 07:17:34 -0700 (PDT)

>On Tue, 12 Oct 2021, Rich Shepard wrote:
>
>> More importantly, that article is not cited in the document; the
>> only two citations from JabRef refer to salmon migration.  
>
>And I forgot to mention that there's no Bibliography in the PDF.

Did you remember to compile it twice?


SteveT

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


Re: How to convert LyX doc to LaTeX

2021-10-12 Thread Steve Litt
typ...@mac.com said on Tue, 12 Oct 2021 17:41:01 +1100

>I am looking for a step-by-step guide that shows how to convert my LyX
>document to LaTeX.
>
>That is: a Journal, having approved my PDF, now wants a LaTeX version
>of it.
>
>I use: macOS Big Sur, version 11.6. LyX version 2.3.6.2 (7 January
>2021)

lyx --export latex myfile.lyx

or, if you're using lualatex to compile:

lyx --export luatex myfile.lyx

Be sure your journal knows which program to compile it with, and that
they have to compile to get your index and bibliography right.

SteveT

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


Re: END-OF-FRAME, once again..

2021-10-12 Thread Steve Litt
UD K said on Mon, 11 Oct 2021 17:47:46 +0200

>I SHOULD know this, because it came up in the (distant) past, but
>either I forgot, or Lyx has changed-- probably a little of both.
>    I wanted to cut a frame from a lyx/beamer presentation and put it
> in 
>another place in the presentation. Control-X, and Control-V failed. So
>I tried to insert a new frame, but that came without an end-of-frame,

I like LyX as much as the next guy --- I'm selling about 9 books
authored in LyX. But when it comes to putting together a slide
presentation with Beamer, I think LyX adds more complexity than it
removes. When I use Beamer at all, I just edit the LaTeX in an editor.
Doing that would be the kiss of death writing a book, but Beamer/LaTeX
uses only a small subset of LaTeX.

SteveT

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


Re: LibreOffice to LyX

2021-10-10 Thread Steve Litt
Alan Tyree said on Sun, 10 Oct 2021 08:06:24 +1100

>Oh, Steve, how I wish that were true!
>
>What really happens is that they see a word they would like to
>emphasise, so they use direct formatting to do it. No need to use a
>style when you only want to change one word, right?  Then another
>word. Then a paragraph. And this one page should be different from the
>others.
>
>Pretty soon you have 15 different fonts on every page, because if you
>give these people 15 fonts, they will use them all.

:-)

One of my buddies once told me there's an idiot born every minute.
Perhaps that's an explanation. :-)

SteveT

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


Re: Preamble header issues

2021-10-10 Thread Steve Litt
Rich Shepard said on Fri, 8 Oct 2021 12:33:00 -0700 (PDT)

>On Fri, 8 Oct 2021, Paul A. Rubin wrote:
>
>> Your last \usepackage has an opening parenthesis that should be an
>> opening brace.  
>
>Paul,
>
>Ah, they are difficult to distinguish with the light typeface stroke
>on a white background.

I don't know about the other threads in this thread, but long ago I
solved the light typeface on white background by switching to TeX Gyre
Schola, TeX Gyre Heros, and TeX Gyre Cursor fonts. On the Doc settings
fonts window, I had to check "Use non-TeX fonts", and had to compile it
with LuaTeX and LuaLaTeX.

These Century Schoolbook lookalikes look great on paper too.

SteveT

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


Re: LibreOffice to LyX

2021-10-09 Thread Steve Litt
Alan Tyree said on Fri, 8 Oct 2021 12:44:22 +1100

>I know that this is preaching to the choir here, but I wondered if
>anyone had a strategy that convinced others to work with styles.

Have them write a book without styles, then show them what styles do
for them, and they'll use styles for the rest of their lives.


SteveT

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


Re: LibreOffice to LyX

2021-10-06 Thread Steve Litt
Virgil Arrington said on Tue, 5 Oct 2021 13:24:04 +

> LibreOffice makes learning new things much
>easier than LyX/LaTeX. Generally speaking, every LO function can be
>found by exploring its extensive menus and/or toolbars. Like a
>multiple choice test, the right answer is somewhere on the page, and
>such exploration is generally how I learn new things in LO. I just
>search the menu structure until I find what I need. 

After importing my 300 page book from MS Word to LibreOffice, I
looked extensively in the menu system, in the help docs, and on the
Internet to resolve my magically changing styles problem, all to no
avail. 

LibreOffice is just fine if you don't use styles, but who would not use
styles when working with a large document?

Working with LibreOffice reminds me of programming with gotos: It's
easy and obvious, but as the things scale, at a certain point it
collapses under its own weight.

SteveT

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


Re: LibreOffice to LyX

2021-10-04 Thread Steve Litt
Virgil Arrington said on Mon, 4 Oct 2021 12:55:34 +


>On the flip side, I have had to learn that LO Impress doesn’t like
>having slide formats changed *after* the presentation substance has
>been composed. While my styles haven’t suddenly changed on me, I have
>learned that changes made to Impress master slides do not always get
>to all slides in a presentation. Through painful experience, I have
>learned that, if I ever make any direct changes to a particular
>slide’s format, it seems to disassociate that slide from the master
>slide. So, after hours of composing and wrestling with Impress’s
>master slides trying to get it all to behave, I find I often just give
>up and move it all to LyX/Beamer just to get the job done.

Yes, I seem to remember that part of my problem was different styles
had different appearances on different slides, which is bizarre,
because the entire purpose of styles is to keep appearances consistent
throughout the whole document.

>
>And in those cases where my slide design needs are particularly
>simple, I run to Rstudio and Slidy to create a quick and dirty (and
>well behaved) slide presentation.

I'll check out Rstudio and Slidy. Thanks!

[snip]

> Sometimes it’s LyX, sometimes it’s LibreOffice and sometimes
>it’s RMarkdown.

Speaking of Markdown (in general), in theory I have a process stack
that can add custom styles to Markdown (or Asciidoc if the programs are
written differently). This brings the real possibility of writing
fairly simple books in Markdown, which would be fast as a bat out of
hell.

If there's a markdown to slide conversion, my stack could also be used
to create slides with styles.

In theory, I think Beamer is best for slides, but sometimes Beamer can
get difficult.


SteveT

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


Re: LibreOffice to LyX

2021-10-03 Thread Steve Litt
Tobias Hilbricht said on Fri, 01 Oct 2021 19:07:02 +0200

>Am Donnerstag, den 30.09.2021, 21:38 -0400 schrieb Steve Litt:
>> 
>> converting to LyX, the answer is don't. LibreOffice is a bug ridden
>> program that tries to be all things to all people and fails
>> miserably.
>> You need a 170 IQ and a doctorate to be able to deal with the quirky,
>> often disappearing or changing styles in LibreOffice.
>>   
>This list should be kept free from remarks such as the one above,
>because for many people it is just not true. Abstain from trying to
>ignite stupid flame wars.

I'm sorry I offended you, Tobias, and thank you for letting me know the
LyX list is an NLZ (No Laughing Zone) and an NHZ (No Hyperbole Zone),
and that disappearing or automodifying styles in LibreOffice are my
personal problem. So allow me to rephrase...

Several times, on long wordprocessing documents, I personally have had
LibreOffice writer styles spontaneously change. At one point my
personal problem with LibreOffice style prevented me from converting a
300 page doc made in MS Word to LibreOffice. The import went just fine,
but the styles kept changing, and keeping them all intact was like
playing whack-a-mole.

I had an even worse personal failure involving changing styles in
LibreOffice's Impress, which contained the 90+ slide presentation I
license to companies for their internal Universal Troubleshooting
Process course, that now I need to rewrite the entire thing in Beamer.

So, based on my personal problems, my advice remains the same: If your
document exceeds a couple thousand words, I'd recommend LyX over
LibreOffice Writer, and if your presentation file exceeds four pages,
I'd recommend Beamer over LibreOffice Impress.

Hopefully, by posting this clarification, I've avoided the flame war
you were concerned with.

SteveT

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


Re: LibreOffice to LyX

2021-09-30 Thread Steve Litt
Osman Kemal Kadiroğlu said on Thu, 30 Sep 2021 08:21:46 +

>Hi,
>
>I am a bit inexperienced LyX user. I have a letter format with a
>header and a graphical signature created with LibreOffice. How can I
>convert it to a LyX letter template?
>
>Best regards
>
>Osman Kemal Kadiroğlu

If you're asking as a one-off, one time thing, just copy and paste
everything into LyX's letter writing facility. Treat the graphic as you
would treat any other graphic within LyX.

If you're asking because you want to keep using LibreOffice and
converting to LyX, the answer is don't. LibreOffice is a bug ridden
program that tries to be all things to all people and fails miserably.
You need a 170 IQ and a doctorate to be able to deal with the quirky,
often disappearing or changing styles in LibreOffice.

If a letter is short enough, informal enough, and not of vital value,
and you want to author it in LibreOffice, just print it from
LibreOffice. LibreOffice is a great quick and dirty for anything below
1000 words. If there's any chance a document will grow beyond 1000
words, use LyX or some other genuine authoring environment right from
the start.

SteveT

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


Re: How to assign a key code to a local layout

2021-08-08 Thread Steve Litt
Tobias Hilbricht said on Sun, 08 Aug 2021 19:48:21 +0200

>Am Sonntag, den 04.07.2021, 11:53 -0400 schrieb Richard Kimberly Heck:
>> On 7/4/21 9:50 AM, Tobias Hilbricht wrote:  
>> > Dear readers of this list,
>> > 
>> > I created a local layout (Document -> Settings -> Local layout)
>> > which I
>> > can invoke via the menu (Insert -> User defined insert -> Local
>> > insert)
>> > and which works as expected.
>> > How can I assign a key code to this local layout?  
>> 
>> Probably "flex-insert INSETNAME" is what you want. Just assign that
>> command to a key combination.
>> 
>> Riki
>> 
>> 
>>   
>Just in case somebody comes across this thread in quest of an answer to
>the question how to make the assigned key code appear together with the
>entry in the menu  - here something I found out accidentally and which
>I did not find documented:
>
>If I type 
>
>flex-insert "mycustominsert"
>
>- note the quotation marks - and assign a key code, then the key code
>appears in the menu Insert -> Custom insert -> mycustominsert.

If I understand the preceding several posts correctly, this can give me
a capability I've been wanting for years. If anybody has the code to
make a custom insert in a local layout file, could you please post it so
I can replicate your work? To me, it's not at all obvious how to do
this.

Thanks,

SteveT

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


Re: How to superscript within a date environment

2021-07-27 Thread Steve Litt
Daniel said on Tue, 27 Jul 2021 07:34:05 +0200

>On 2021-07-25 07:22, Daniel wrote:
>> On 2021-07-25 07:09, Steve Litt wrote:  
>>> Hi all,
>>>
>>> On my book, I used the date environment to write "A
>>> Troubleshooters.Com(R) book, except I used \textregistered. I wanted
>>> the (R) superscripted, and couldn't find ways that didn't involve
>>> math. So I finally put the following in ERT (TeX)
>>>
>>> $^{\footnotesize\textregistered}$  
>> 
>> This gave me a "Missing glyphs!" error.
>> 
>> Without using math, couldn't you insert a superscript (Insert > 
>> Formatting > Superscript) and then \textregistered in ERT (Insert >
>> TeX Code)?
>> 
>> Daniel
>>   
>
>I am still a little puzzled what the original problem was. But you can 
>even skip the use of ERT (in the second step I mentioned) and just 
>insert the (R) via Insert > Special Character > Symbol...

The original problem was that I didn't know how to do what you mention
in the preceding paragraph. One question remains: Will what you
reveal in the preceding paragraph also make the (R) smaller and raise
it to superscript? If so, I'll document it. 

Thanks,

SteveT

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


How to superscript within a date environment

2021-07-24 Thread Steve Litt
Hi all,

On my book, I used the date environment to write "A
Troubleshooters.Com(R) book, except I used \textregistered. I wanted
the (R) superscripted, and couldn't find ways that didn't involve math.
So I finally put the following in ERT (TeX)

$^{\footnotesize\textregistered}$

I'm sure most of you know this already, but for anyone who doesn't,
this is how it's done.

SteveT

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


Click feedback for reconfigure

2021-07-21 Thread Steve Litt
Hi all,

When you click Tools->Reconfigure, the computer appears to hang because
reconfigure takes many seconds. I'd suggest some feedback to the user
so he/she doesn't worry about the computer being hung. Best would be a
progress bar or a little window showing the actual reconfigure output.
Second best would be at least a window somewhere saying "This process
takes up to one minute to complete", and have that message pop up the
instant the person clicks reconfigure.

SteveT

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


Re: SOLVED> Libertinus font and AnonymousPro

2021-07-09 Thread Steve Litt
Herbert Voss said on Fri, 9 Jul 2021 14:41:30 +0200


>with lualatex you can use _all_ fonts, the ones from the system
>_and_ the ones from the TeX distribution. This works with symbolic
>font names and font file names.
>
>But with xelatex it works only if your system knows the TeX fonts,
>otherwise xelatex finds only the fonts by its file name and _not_
>by the symbolic name.

Herbert, given the preceding two paragraphs, is there any reason to use
anything BUT lualatex?

Thanks,

SteveT

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


Re: SOLVED> Libertinus font and AnonymousPro

2021-07-09 Thread Steve Litt
Wolfgang Engelmann said on Fri, 9 Jul 2021 14:30:38 +0200

>> Uff, done
>> 
>> Thanks all who helped with the Fonts and the bibliography.
>> Wolfgang  
>
>Addendum: I had forgotten to select in
>Document Settings > Formats > Output Format > PDF (Luatex)
>That caused the export failure in LyX.
>Wolfgang

:-)   :-)   I've made that mistake several times :-)   :-)   

SteveT

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


Solution: Section numbers don't reset

2021-07-04 Thread Steve Litt
Hi all,

I'll describe a set of symptoms, and then I'll tell how I fixed it...

SYMPTOM: Section numbers did not reset after each chapter. Each section
had just the section number not preceded by the chapter number and a
dot.

SITUATION: I was using a local layout, derived from standard "Book"
layout.

SOLUTION: I added a line containing "Input book.layout".

HOW I FOUND IT: After a half hour of futzing around, in preparation to
ask you guys, I made a Minimum Working Example by copying my layout
file to test.layout, and starting with a new document using
test.layout, I was able to toggle the symptom by switching between Book
and my layout. I started removing stuff from my layout file until there
was nothing there, and the symptom persisted. So I looked at my other
layout files and saw that they contained "Input book.layout", so I
inserted that and fixed the symptom. So then I went to the original
layout file and document, inserted "Input book.layout" into the layout
file, re-compiled the document, and bang, the symptom was gone.

SteveT

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


Re: Empty backup directory

2021-06-29 Thread Steve Litt
Daniel said on Tue, 29 Jun 2021 14:26:20 +0200

>On 28/6/21 16:40, Steve Litt wrote:
>> Daniel said on Mon, 28 Jun 2021 14:58:10 +0200
>> 

>
>I am actually also in the habit of saving files regularly via shortcut 
>mainly because I don't fully understand/trust LyX's auto saving 
>function. However, one case where this often fail is when I start a
>new document of which I am don't expect it to end up being useful
>after all. 

:-) We've all been there. :-)

If I had a dime for every time a file called junk.py suddenly became
important, I'd be a rich man.


> So, I don't want to clutter my storage by saving the
>document. 

The cool thing about my bupsky script is it automatically backs up the
whole tree of the current directory, even things called junk.jnk. I
have 14TB disk space so I never thought about the cost of backing up
temporary files, but this thread has made me realize that a simple
script to delete all trees not containing a file less than X days old
would lessen the temptation to not back up junk files.

I'll show you something:

[slitt@mydesk ~]$ du -hs /scratch/bup
48G /scratch/bup
[slitt@mydesk ~]$ 

Consuming 48G with ancient backups that are already backed up by my
main backup system is inexcuseable. Soon I'll need to write a program
to tree delete all trees with no files under X days old. The big
challenge will be to include barriers to prevent deletion of young
files if my clock goes bad, and also to prevent deletion of random
directories (like /home/slitt for instance) if something bogus happens.

Thanks for the idea.

SteveT

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


Re: Empty backup directory

2021-06-28 Thread Steve Litt
Daniel said on Mon, 28 Jun 2021 14:58:10 +0200


>
>Thanks. I'll see whether I can make use of this. And indeed, as you 
>mention, it seems not help with my original problem with backups
>before even saving a file in LyX.

:-)

I have the advantage of being old. Using Primos on a Prime computer in
my youth, I learned to save on document creation, and then every 5
minutes thereafter, because I never knew when things would go south. So
I never got in the habit of letting an application back up a document
for me, and indeed am always confused when it offers to restore.

Contrast this with applications' ability to undo multiple times, which
saves my bacon every day of my life.

By the way, on most applications save is either Ctrl+S or Alt+F->Save ,
so saving every few minutes doesn't interfere with my workflow or my
concentration.

SteveT

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


Re: Empty backup directory

2021-06-27 Thread Steve Litt
Daniel said on Sat, 26 Jun 2021 09:29:29 +0200

>Hi,
>
>After installing LyX, the backup directory is empty (Preferences > 
>Paths). Does that mean that no backups are created by default or that 
>the backups are created even though "Backup documents, every ... 
>minutes" is checked (Preferences > Look & Feel > Document Handling) 
>(btw. Look & Feel seems a misnomer for backup settings). Or is a
>backup created in the directory of the lyx file (the title bar shows a 
>directory even for new not yet saved files, so I suppose these files
>are backup there as well)?

Hi Daniel,

This isn't responsive to your exact question, but it still might be
helpful...

The way I've designed my workflow, backup is a multi-pronged strategy
not depending on any one application (such as LyX).

Obviously, one must regularly and frequently make complete backups of
all their data, data being stuff they can't reinstall or re-download.
This is the foundation of all backup.

But you can't do that every hour, or every 10 minutes when you're
working on a project. Git's pretty good for making backups every time a
milestone is reached (perhaps completion of another chapter). But git
isn't perfect: It takes an amount of time and concentration that could
cause you to forget what you were writing about.

I use a shellscript, called "bupsky", to back up at arbitrary moments
so I don't get knocked back more than a few minutes when working
continuously on a project. Here's bupsky:

==
#!/bin/sh

buptrunk=/scratch/bup
curdir=$(pwd | sed -e "s/.*\///")
bupdir=$buptrunk/$curdir
now=$(date +%Y%m%d_%H_%M_%S)
src=../$curdir
dst=$bupdir/${curdir}_$now

if test ! -d $bupdir; then
mkdir $bupdir
fi

cp -RpL $src $dst
echo backup written to $dst
==

The preceding shellscript takes the current directory and the whole
tree below it, can copies it. For instance, with my system, If I were
working in ~/docs/mynewbook, then bupsky would take that directory and
everything below it, and copy it to a directory something like
/scratch/bup/mynewbook_20210627_16_01_21 . The timestamp enables me to
roughly isolate *which* version is what I need. I'd anticipate bupsky
being good between git commits, or between real backups when git or
some other version control program isn't being used.

Bupsky isn't optimal for trees containing huge files. Then again,
backing up huge files in any way is suboptimal. 

Obviously, bupsky will eventually fill the disk if things aren't
pruned. No problem, once every 2 weeks, run a program that searches
every directory under the backup root (/scratch/bup in my case), and rm
-rf on any tree not containing a file less than 8 days old, on the
theory that by that time, you will have backed up all your data and
don't need the bupsky-created directories anymore.

Like I said, this isn't responsive to your question, but might be handy.

SteveT

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


Re: LyX says Tex Gyra Schola is not installed, but I installed it

2021-06-22 Thread Steve Litt
Baris Erkus said on Mon, 21 Jun 2021 09:22:11 +0300

>On 18-Jun-21 9:35 AM, Wolfgang Engelmann wrote:
>> Hi, Steve,
>> if you have solved the font questions for your book, could you
>> kindly give a summary for those who might like to try it?
>> Thanks,
>> Wolfgang  
>+1

Please view the documentation at
http://www.troubleshooters.com/linux/lyx/texgyre.htm .

Thanks,

SteveT

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


Re: Command to put string in both the LyX authoring environment and the finished PDF?

2021-06-22 Thread Steve Litt
Richard Kimberly Heck said on Tue, 22 Jun 2021 11:16:56 -0400


>>
>> I changed the [0] number of arguments in the LaTeX command to [1] in
>> order to consume the argument. Once I did that, whatever I put in the
>> character style does not show up in the PDF.  
>
>There's a long-standing request for non-math macros, which is exactly
>what's needed here. Someday when I have time to work on LyX again, I
>might take that on.

Nice!


SteveT

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


Re: Command to put string in both the LyX authoring environment and the finished PDF?

2021-06-22 Thread Steve Litt
Steve Litt said on Sun, 20 Jun 2021 17:39:52 -0400

>Hi all,
>
>I have a local layout, based on Book-extsizes, for my new book. I have
>no idea what the book's title will be yet, and I sure nuff don't want
>to have to search all instances of that title and replace them every
>time I get a better idea for the title.
>
>S, what I want to do is put something in my local layout to
>articulate the title, both in the LyX authoring environment and in the
>compiled PDF, showing the title in a specific appearance. I tried to do
>it as a character style, as follows:
>
>
>\definecolor{titlebodytextcolor}{HTML}{cc}
>
>% ### Character style for book title within body text
>\newcommand{\chartitlebodytextL}[0]{{\color{titlebodytextcolor}My
>Current Title As Of Today}}%
>
>CharStyle CharTitleInBody
>Font
>   Series  Bold
>   Color   Red
>EndFont
>LabelFont
>   Series  Bold
>   SizeLarger
>   Color   Red
>EndLabelFont
>LatexName  chartitlebodytextL
>LatexType  Command
>LabelString "My Current Title As Of Today"
>End
>
>
>If I apply the character style CharTitleInBody to an empty string in
>LyX, the exact right thing happens in the PDF, but in the LyX
>authoring environment the title appears under the character style inset
>and also under the following text, which is very disturbing if you're
>trying to copy-edit your book in the LyX environment.
>
>Does anybody know what I can do to make the text appear inline, instead
>of underneath, within the LyX authoring environment?

My workaround is as follows:

I changed the [0] number of arguments in the LaTeX command to [1] in
order to consume the argument. Once I did that, whatever I put in the
character style does not show up in the PDF.

Next, I changed the LyX label font size from Larger to Small, so it
wouldn't take up as much line length. Finally, I put a bunch of z
characters in the inset, so the inset and the label would be
approximately the same length. What this accomplished is that the title
actually looks reasonable in a line in the LyX authoring environment,
and the correct title shows up in the PDF.

Several of you had excellent ideas, including ERT LaTeX command, a Perl
script, and some other ideas. Thanks for the great ideas. Ultimately, I
decided that my workaround best meets my workflow needs for this
project.

Thanks,

SteveT

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


Command to put string in both the LyX authoring environment and the finished PDF?

2021-06-20 Thread Steve Litt
Hi all,

I have a local layout, based on Book-extsizes, for my new book. I have
no idea what the book's title will be yet, and I sure nuff don't want
to have to search all instances of that title and replace them every
time I get a better idea for the title.

S, what I want to do is put something in my local layout to
articulate the title, both in the LyX authoring environment and in the
compiled PDF, showing the title in a specific appearance. I tried to do
it as a character style, as follows:


\definecolor{titlebodytextcolor}{HTML}{cc}

% ### Character style for book title within body text
\newcommand{\chartitlebodytextL}[0]{{\color{titlebodytextcolor}My
Current Title As Of Today}}%

CharStyle CharTitleInBody
Font
Series  Bold
Color   Red
EndFont
LabelFont
Series  Bold
SizeLarger
Color   Red
EndLabelFont
LatexName   chartitlebodytextL
LatexType   Command
LabelString "My Current Title As Of Today"
End


If I apply the character style CharTitleInBody to an empty string in
LyX, the exact right thing happens in the PDF, but in the LyX
authoring environment the title appears under the character style inset
and also under the following text, which is very disturbing if you're
trying to copy-edit your book in the LyX environment.

Does anybody know what I can do to make the text appear inline, instead
of underneath, within the LyX authoring environment?

Thanks,

SteveT

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


Re: LyX says Tex Gyra Schola is not installed, but I installed it

2021-06-18 Thread Steve Litt
Wolfgang Engelmann said on Fri, 18 Jun 2021 08:35:39 +0200

>Hi, Steve,
>if you have solved the font questions for your book, could you kindly 
>give a summary for those who might like to try it?

Yes. If I don't announce it within 5 days, please remind me again.

SteveT

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


Re: LyX says Tex Gyra Schola is not installed, but I installed it

2021-06-17 Thread Steve Litt
Kornel Benko said on Thu, 17 Jun 2021 16:35:01 +0200

>Am Thu, 17 Jun 2021 10:14:18 -0400
>schrieb Steve Litt :
>
>> Hi all,
>> 
>> The only font readable enough for my books is Century Schoolbook. All
>> the rest are too faint. Most Century Schoolbook implementations don't
>> work with LyX, or at least I haven't been able to get them to work.
>> With one exception...
>> 
>> Tex Gyra Schola is a Century Schoolbook implementation that has been
>> working for me for the past 5 years. But now, When I 
>> Document->Settings->Fonts and select a Serif font, Tex Gyre Schola is
>> listed, but the words "(not installed)" are appended, and in fact
>> when I compile the document, the font in the PDF is definitely not
>> TeX Gyre Schola.
>> 
>> I installed the tex-gyre and tex-gyra-math packages with the
>> following command:
>> 
>> tlmgr install tex-gyre
>> tlmgr install tex-gyre-math
>> 
>> After those commands, I performed a texhash command. I then
>> terminated LyX and did a reconfigure. Still "(not installed)". 
>> 
>> The other relevant settings on Document->Settings->Fonts are "Use
>> Non-TeX Fonts" is unchecked, LaTeX font encoding is Default.
>> 
>> What can I do to start to figure out this
>> problem?/etc/fonts/conf.d/09-texlive-fonts.conf
>> 
>> Thanks,
>> 
>> SteveT
>> 
>> Steve Litt 
>> Spring 2021 featured book: Troubleshooting Techniques of the
>> Successful Technologist http://www.troubleshooters.com/techniques  
>
>You have to add these texlive fonts to your system.
>
>1.) create file "/etc/fonts/conf.d/09-texlive-fonts.conf"
>e.g.
>   $ sudo cp `kpsewhich -var-value
>   TEXMFSYSVAR`/fonts/conf/texlive-fontconfig.conf
>   /etc/fonts/conf.avail/09-texlive-fonts.conf
>make a symbolic link for your system
>   $ sudo ln
>   -s ../conf.avail/09-texlive-fonts.conf
>   /etc/fonts/conf.d/09-texlive-fonts.conf
>The content should be something like:
>   
>   
>   
> /usr/local/texlive/2021/texmf-dist/fonts/opentype
> /usr/local/texlive/2021/texmf-dist/fonts/truetype
> /usr/local/texlive/2021/texmf-dist/fonts/type1
> /usr/local/texlive/texmf-local/fonts/opentype
> /usr/local/texlive/texmf-local/fonts/truetype
> /usr/local/texlive/texmf-local/fonts/type1
>   
>provided you installed texlive under /usr/local/texlive/2021
>2.) Make your system aware of this
>$ sudo fc-cache -fsv
>
>3.) Reconfigure lyx
>
>   Kornel


Thanks Kornel,

I *almost* followed your instructions, and added in Ricardo Berlasso's
suggestion of using non-TeX fonts, and now my TeX Gyre Schola no longer
says "(not installed)" and the book printed from it looks like Century
Schoolbook, and not one of those thin, reedy fonts meant for people
with great eyes reading on 1200dpi laser printed Letter paper. Thanks
to both of you!

However, I accidentally ran fc-cache without arguments, then Ctrl+C'ed
out, then ran it with -fsv, and now, in LyX, when I go to select a
font, there are about three zillion arcane fonts to choose from. I
suspect my running fc-cache without arguments caused the three zillion.
Is there a way I can properly rebuild my font cache?

By the way, the only way I can compile it now is with 

lyx -e luatex myfile.lyx
lualatex myfile.tex

I don't know how to set LyX to do that instead of using XeTeX, which no
longer works on this book.

Thanks,

SteveT

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


Re: LyX says Tex Gyra Schola is not installed, but I installed it

2021-06-17 Thread Steve Litt
Ricardo Berlasso said on Thu, 17 Jun 2021 19:02:08 +0200

>El jue, 17 jun 2021 a las 16:15, Steve Litt
>() escribió:
>
>> Hi all,
>>
>> The only font readable enough for my books is Century Schoolbook. All
>> the rest are too faint. Most Century Schoolbook implementations don't
>> work with LyX, or at least I haven't been able to get them to work.
>> With one exception...
>>
>> Tex Gyra Schola is a Century Schoolbook implementation that has been
>> working for me for the past 5 years. But now, When I
>> Document->Settings->Fonts and select a Serif font, Tex Gyre Schola is
>> listed, but the words "(not installed)" are appended, and in fact
>> when I compile the document, the font in the PDF is definitely not
>> TeX Gyre Schola.
>>  
>
>While there are metafont versions out there, all TexGyre fonts are
>distributed as opentype fonts. In the font settings dialogs, select to
>use non-TeX fonts and then you'll see it.

When I checked the non-TeX fonts box, the TeXGyre fonts went away. They
only appear when that box is unchecked.

Thanks,
SteveT

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


Re: LyX says Tex Gyra Schola is not installed, but I installed it

2021-06-17 Thread Steve Litt
Ricardo Berlasso said on Thu, 17 Jun 2021 19:02:08 +0200

>El jue, 17 jun 2021 a las 16:15, Steve Litt
>() escribió:
>
>> Hi all,
>>
>> The only font readable enough for my books is Century Schoolbook. All
>> the rest are too faint. Most Century Schoolbook implementations don't
>> work with LyX, or at least I haven't been able to get them to work.
>> With one exception...
>>
>> Tex Gyra Schola is a Century Schoolbook implementation that has been
>> working for me for the past 5 years. But now, When I
>> Document->Settings->Fonts and select a Serif font, Tex Gyre Schola is
>> listed, but the words "(not installed)" are appended, and in fact
>> when I compile the document, the font in the PDF is definitely not
>> TeX Gyre Schola.
>>  
>
>While there are metafont versions out there, all TexGyre fonts are
>distributed as opentype fonts. In the font settings dialogs, select to
>use non-TeX fonts and then you'll see it.

I'll try again. I just uninstalled all my distro's texlive package and
installed straight from CTAN. But earlier today when I selected non-TeX
fonts, my document didn't compile.

[snip]


>BTW, you can also try Michael Sharp's ScholaX, which is an extension of
>TeXGyre Schola
>
>https://ctan.org/pkg/scholax
>
>This is also an opentype font. I briefly reviewed it in my blog
>
>https://frommindtotype.wordpress.com/2020/07/02/scholax-a-new-version-of-century-schoolbook/

:-) I went there earlier while researching Century Schoolbook, and
based on your blog entry, I installed Scholax. But now I reinstalled
texlive, so I'll need to do it again.

Thanks for your help!

SteveT

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


LyX says Tex Gyra Schola is not installed, but I installed it

2021-06-17 Thread Steve Litt
Hi all,

The only font readable enough for my books is Century Schoolbook. All
the rest are too faint. Most Century Schoolbook implementations don't
work with LyX, or at least I haven't been able to get them to work.
With one exception...

Tex Gyra Schola is a Century Schoolbook implementation that has been
working for me for the past 5 years. But now, When I 
Document->Settings->Fonts and select a Serif font, Tex Gyre Schola is
listed, but the words "(not installed)" are appended, and in fact when
I compile the document, the font in the PDF is definitely not TeX Gyre
Schola.

I installed the tex-gyre and tex-gyra-math packages with the following
command:

tlmgr install tex-gyre
tlmgr install tex-gyre-math

After those commands, I performed a texhash command. I then terminated
LyX and did a reconfigure. Still "(not installed)". 

The other relevant settings on Document->Settings->Fonts are "Use
Non-TeX Fonts" is unchecked, LaTeX font encoding is Default.

What can I do to start to figure out this problem?

Thanks,

SteveT

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


Re: Converting markdown to PDF

2021-06-17 Thread Steve Litt
Dr Eberhard Lisse said on Thu, 17 Jun 2021 13:03:39 +0200


>I wrote a 15 line template file, 

Could you please post the template file, as well as the exact command
you used to implement the template file for conversion?

Thanks,

SteveT

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


Re: Converting markdown to PDF

2021-06-17 Thread Steve Litt
Jean-Marc Lasgouttes said on Thu, 17 Jun 2021 10:24:06 +0200

>Le 17/06/2021 à 03:24, Steve Litt a écrit :
>> What we need, and we've needed for over a decade is a real, style for
>> style, syntactically complete HTML export, or lacking that, finally
>> finish the job, started a decade ago, of making LyX' native language
>> format valid and well formed XML. Do that and I'll make a LyX to
>> (x)HTML converter that drops no styles nor adds styles for silly
>> stuff like not indenting the first paragraph in a sequence of
>> same-styled paragraphs, and is suitable for a high quality ePub and
>> other flowing text eBooks.  
>
>DocBook5 is coming. Does this fit your needs?

Probably not. Nothing depending on Pandoc fits my needs. Also, the LyX
to Pandoc conversion would need to preserve styles.

The proposition is simple. LyX allows any sort of character or
paragraph style (environment). Documents consist of text with styles
applied, NOT text with appearance applied. The styles should be passed
through all the way to the exported format.

SteveT

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


Re: Converting markdown to PDF

2021-06-16 Thread Steve Litt
Paul Smith said on Wed, 16 Jun 2021 22:13:15 +0100

>On Wed, Jun 16, 2021 at 9:48 PM Paul A. Rubin 
>wrote:
>>  
>> > Using R is a little overkill in my view, but if it works it works
>> > :-)-O  
>> It's a bit indirect, but for users of the RStudio IDE, you just open
>> RStudio, open the .md file and click the "Knit to PDF" toolbar button
>> and you're done (unless you don't like the way the PDF turned out).
>> In my case, it would save having to look up the command syntax.  
>
>I believe that a much needed development avenue that LyX could take is
>to become able to export to markdown. Something like the following,
>but builtin natively:
>
>https://wiki.lyx.org/Tips/ConvertMarkdown

Just understand that you'll lose a lot of styles information in a
conversion of LyX to Markdown. LyX enables you to create and use any
number of arbitrary character and paragraph styles. Markdown allows
only a short list of predefined styles, so the LyX styles must be
shoehorned into Markdown.

What might be more interesting is a Markdown *import*. LyX, equipped
with a Markdown layout file, could easily print Markdown to pdf, or use
it as part of a larger LyX work.

What we need, and we've needed for over a decade is a real, style for
style, syntactically complete HTML export, or lacking that, finally
finish the job, started a decade ago, of making LyX' native language
format valid and well formed XML. Do that and I'll make a LyX to
(x)HTML converter that drops no styles nor adds styles for silly stuff
like not indenting the first paragraph in a sequence of same-styled
paragraphs, and is suitable for a high quality ePub and other flowing
text eBooks.


SteveT

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


I need an environment similar to, but not identical to LyX-Code

2021-06-10 Thread Steve Litt
I need an environment similar to, but not identical to the LyX-Code
environment. Specifically, I need the page margins to be the same as
regular text, and I'd also like a smaller font.

So I figured I'd find the LaTeX definition of LyX-Code and work from
there, possibly using CopyStyle. But I've searched for 1/2 hour and
cannot find the TeX definition of the latexname part of LyX-Code, nor
can I find the LyX user interface part of LyX-Code.

So where can I find the definition of LyX-Code?

SteveT

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


New document on colored and clickable wrapping URLs

2021-05-03 Thread Steve Litt
Hi all,

Clickable URLs in a LyX doc can sometimes be frustrating, because there
are a heck of a lot of variables involved, and there's lots of
contradictory and Internet inaccurate information on the subject.

So I made a complete, tech-edited document on the subject. You can see
it at:

http://troubleshooters.com/linux/lyx/urlwrap.htm

SteveT

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


Why can't I post to #lyx on freenode?

2021-05-01 Thread Steve Litt
Hi all,

I tried to ask a question on #lyx on freenode, but no matter what I
tried to post, it gave an error of:

##unavailable :Cannot send to nick/channel

Apparently this is happening because freenode's #lyx group is invite
only. Could somebody please invite me to #lyx ? My freenode username is
stevelitt

Thanks,

SteveT

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


Re: Installing LyX from (stable) source?

2021-05-01 Thread Steve Litt
Richard Kimberly Heck said on Sat, 1 May 2021 20:30:51 -0400

>On 5/1/21 7:43 PM, Steve Litt wrote:
>> Hi all,
>>
>> I use Void Linux and am not satisfied with their LyX package, because
>> it apparently contains hard links to the 2020 TeXLive, which of
>> course is giving me errors. I'd prefer to handle my LyX and TeXLive
>> myself, without Linux distribution packages.
>>
>> Are there any special gotchas I should know about
>> ./configure;make;make install that might mess me up?  
>
>None that I know of, though of course you'll need the dependencies.
>The big one is Qt, and you can choose between Qt 4.x and Qt 5.x. If
>you use the latter, you'll need the switch --enable-qt5.

Thanks Riki!

I ./configure --enable-qt5, and got the following errors:

checking for Qt library name... failed
configure: error: cannot compile a simple Qt executable. Check you have
the right $QTDIR.

Well, on the command line I have no $QTDIR, as proved by echo $QTDIR.
Is there some other switch I needed to use on the ./configure line? By
the way, I have both qt5 and qt5-devel installed.

Thanks,

SteveT

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


Installing LyX from (stable) source?

2021-05-01 Thread Steve Litt
Hi all,

I use Void Linux and am not satisfied with their LyX package, because
it apparently contains hard links to the 2020 TeXLive, which of course
is giving me errors. I'd prefer to handle my LyX and TeXLive myself,
without Linux distribution packages.

Are there any special gotchas I should know about ./configure;make;make
install that might mess me up? Where should I procure the latest
*stable* LyX --- I don't want to download the latest Git thing that
will change tomorrow.

Thanks,

SteveT

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


Re: Layout based on "Book (Standard Class with Extra Font Sizes)"

2021-04-29 Thread Steve Litt
Richard Kimberly Heck said on Wed, 28 Apr 2021 10:33:28 -0400

>On 4/28/21 2:52 AM, Steve Litt wrote:
>> Hi all,
>>
>> I'm making a layout file, based on Document Class "Book (Standard
>> Class with Extra Font Sizes)". After investigation on my Void Linux
>> computer with TeXLive, I found that 
>> /usr/share/texmf-dist/tex/latex/extsizes/extbook.cls 
>> provides class "extbook" and has code for sizes 8,9,10,12,14,17 and
>> 20. Indeed, it works when I make a document with it as the document
>> class.
>>
>> But when I derive a class called mm_create from it, using the
>> following lines at the top of the layout file:
>>
>> #% Do not delete the line below; configure depends on this
>> #  \DeclareLaTeXClass[extbook]{mm_create}
>>
>> and then use mm_create.layout as my local layout, the base size on my
>> document->settings->fonts only lists default, 10, 11 and 12.
>>
>> I repeatedly used texhash, configure.py and restarted LyX, all to no
>> avail. I even tried manually using Tools->reconfigure, same symptom.
>>
>> What do I need to do so I can get the sizes afforded by extbook.cls?
>>  
>
>Have a look at extbook.layout.

Thanks much Riki!

For anyone following in my footsteps, the solution to the lack of
extended fonts for a layout derived from extbook is to add the
following line as the first non-comment line of your layout file:

Input extbook.layout

Then close LyX, run texhash again, then run configure.py again, then
open the LyX file set to your home grown layout, and you'll now see all
the font sizes in Default Family of Document Settings/fonts.

SteveT

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


Layout based on "Book (Standard Class with Extra Font Sizes)"

2021-04-28 Thread Steve Litt
Hi all,

I'm making a layout file, based on Document Class "Book (Standard Class
with Extra Font Sizes)". After investigation on my Void Linux computer
with TeXLive, I found that 
/usr/share/texmf-dist/tex/latex/extsizes/extbook.cls 
provides class "extbook" and has code for sizes 8,9,10,12,14,17 and 20.
Indeed, it works when I make a document with it as the document class.

But when I derive a class called mm_create from it, using the following
lines at the top of the layout file:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[extbook]{mm_create}

and then use mm_create.layout as my local layout, the base size on my
document->settings->fonts only lists default, 10, 11 and 12.

I repeatedly used texhash, configure.py and restarted LyX, all to no
avail. I even tried manually using Tools->reconfigure, same symptom.

What do I need to do so I can get the sizes afforded by extbook.cls?

Thanks,

SteveT

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


  1   2   3   4   5   6   7   8   9   10   >