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


Section references

2021-07-21 Thread Steve Hnizdur

Hi

I would like to show in

- TOC,
- Headings and
- the heading to a section

a simple number , but when referencing it in the text body, 
display it as .. I have tried titleformat which just 
affects the heading to a section and overrides the setting \thesection 
which affects all of TOC, Headings (using fancyhdr) and references.


Neither prettyref or refstyle seem to provide this facility.

Ideally it would be nice to set \thesection and have some way to just 
format the references.


There is an obvious clunky way of putting "Section  of Chapter 
" in the text but I would like to avoid this if possible.


Hopefully this makes sense and any thoughts would be very welcome.

I'm using 2.3.6.1 on Ubuntu 18.04.
--

Steve Hnizdur
--
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


Re: Nomenclature with Sections

2021-04-14 Thread Steve Litt
Wolfgang Engelmann said on Wed, 14 Apr 2021 09:07:09 +0200

>Am 13.04.21 um 22:44 schrieb Steve Litt:
>> Wolfgang Engelmann said on Mon, 12 Apr 2021 10:06:08 +0200

>> 
>> One happy prospect I see is that it can be done in LaTeX, and the
>> Additional Features manual seems to say it's needed and would be
>> easy to implement in LyX. If there's no other way, you could
>> implement it in LyX, thereby solving your problem and also getting a
>> tickertape parade from the LyX community. I think you're already
>> better at LaTeX than I, but if you need some assistance, perhaps I
>> could provide some.


>Steve, I am quite low-brow in latex. What I did was following the
>hints given in the list and try it out. I have put it together in the
>text file in the annex of this mail.
>It works as an appendix behind a chapter, but not behind a section.
>Wolfgang

Hi Wolfgang,

I'm pretty good at turning LaTeX stuff to LyX in a layout file, but
unfortunately, I have to have several medical procedures, I have to
do *substantial* repairs to our house and that's proving difficult and
time consuming, our kids are coming to visit at the end of May, I have
to write a new book that's only in the beginning outline stage so far,
and (fortunately), I've had a substantial influx of paying work.

But if I ever get a few hours to rub together, I'll try very hard to
help you.

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: 3D graphics for LYX

2021-04-14 Thread Steve Litt
Andreas Plihal said on Wed, 14 Apr 2021 21:18:14 +0200

>Hi folks,
> 
>Is there anybody going to listen to my story
>All about the PROBS who came to stay?

I see what you did there Andreas.

Do I get my Boomer credentials now?

:-)

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: Nomenclature with Sections

2021-04-13 Thread Steve Litt
Wolfgang Engelmann said on Mon, 12 Apr 2021 10:06:08 +0200

>Am 11.04.21 um 03:23 schrieb Steve Litt:
>> Wolfgang Engelmann said on Sat, 10 Apr 2021 09:09:48 +0200
>>   
>>> I would like to have parts of the nomenclature as a separate
>>> section,  
>> 
>> I know the word "nomenclature" means "a system of names", but what
>> does it mean as applied in LyX?
>> 
>> Thanks,
>> 
>> SteveT  
>
>If you want to explain words in your document, you use
>outline > nomenclature entries
>behind the word. It shows the word as a symbol and you add a
>description underneath.
>I am used to Glossary instead of nomenclature, which you get with
>
>\AtBeginDocument{\def\nomname{Glossary}}
>%leads to bold nomenclature title in entries >
>\renewcommand{\nomlabel}[1]{\textsf{\textbf{#1}}}
>\renewcommand{\nomname}{Glossary
>}
>
>in the preamble of > Document
>
>One can also create a part of the nomenclature as a separate section,
>e.g. Abbreviations
>
>That is what I am after.
>
>there is a nomenclature manual for latex, but I would like to know for
>LyX
>
>Perhaps somebody can help me.
>
>Wolfgang

:-)

I've needed both those things for 20 years. Thank you!!!

If I understand your situation, you already know how to do what you
need in LaTeX, and then make LyX commands and environments to make it
accessible in LyX, and now you're trying to see if there's a native LyX
way to do it. Being less than a newbie when it comes to nomenclatures,
and not understanding *exactly* what you're looking to do, I did a quick
look and found stuff you probably already know about, but just in case I
found something new, here it is:

The LyX functions manual has the following:
* dialog-show appears to take a nomenclature argument
* Ditto with inset-insert
* There's a nomencl-insert command
* There's a nomencl-print command

The Additional LyX Features manual contains the following sentence:
There is at present no support for glossaries. Adding it would
be fairly trivial, and welcome.

The User's Guide contains a special environment called Verbatim, which
can contain "index- and nomenclature entries".

The Embedded Objects manual contains nothing about Nomenclature

The User Guide contains a section on using Nomenclature/Glossary.

As you already mentioned, when I search CTAN for "nomenclature", I get
8 results.

===

One happy prospect I see is that it can be done in LaTeX, and the
Additional Features manual seems to say it's needed and would be easy to
implement in LyX. If there's no other way, you could implement it in
LyX, thereby solving your problem and also getting a tickertape parade
from the LyX community. I think you're already better at LaTeX than I,
but if you need some assistance, perhaps I could provide some.

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: Nomenclature with Sections

2021-04-10 Thread Steve Litt
Wolfgang Engelmann said on Sat, 10 Apr 2021 09:09:48 +0200

>I would like to have parts of the nomenclature as a separate section, 

I know the word "nomenclature" means "a system of names", but what does
it mean as applied in 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: best route for org-mode --> LyX

2021-02-07 Thread Steve Litt
On Sat, 6 Feb 2021 17:40:25 +0100
Saša Janiška  wrote:

> Hello,
> 
> I'm about to start taking notees using org-roam
> (https://www.orgroam.com/) to be used for articles/presentations
> along with the Bib(la)tex bibliography.
> 
> Considering that org-roam is depending on Emacs' org-mode, I wonder
> what would be recommended way to utilize those notes and use them in
> LyX?

I can't answer for org-mode, but I can answer it for VimOutliner, which
uses a simple tab indented outline as its native format, plus any line
prefaced with a colon and space is body text.

In the case of VimOutliner, you make a program to count tabs, use the
tab count to select the proper header for your Document Class (for
instance, in the Book class 0 tabs is part, 1 tab is chapter, 2 tabs is
section, ...

You basically have a canned LyX header, then make the body with your
program. I've done this to make most of the headers in a 50,000 word
book.

I suspect it would be as easy to write such a program for org-mode as
it would be for VimOutliner. I'd recommend using Python3 to write the
program.

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


LyX will be mentioned at the 2/3/2021 GoLUG meeting

2021-02-02 Thread Steve Litt
Hi all,

The 2/3/2021 GoLUG meeting highlights about 10 web authoring tools,
with a considerable emphasis on Inkscape. LyX will be mentioned and
briefly demonstrated.

Details on the meeting  are at http://golug.info .

Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Unwanted spacing in Table of Contents

2021-01-25 Thread Steve Litt
On Sun, 24 Jan 2021 10:12:45 +1100
Anthony Macks  wrote:

> Dear All,
> 
> I have attached my LyX file and its pdf output.
> 
> For some reason, the spacing between sections  and subsections in my
> table of contents is very large.
> 
> In fact, it appears that the items in the TOC are being distributed
> evenly over the length of the page.
> 
> I am running Lyx 2.3.5.2 on Windows 10 on a Surface Pro.
> 
> Any help is much appreciated.
> 
> Kind Regards,
> Anthony

This is how I vertically condense the Table of Contents:

% ### Modify table of contents to be more vertically condensed. ###
\renewcommand\tableofcontents{%
\if@twocolumn
  \@restonecoltrue\onecolumn
\else
  \@restonecolfalse
\fi
\chapter*{\contentsname
\@mkboth{%
   \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
{
  \small\setlength{\parskip}{4pt}\setstretch{0.8}%
  \@starttoc{toc}%
}
\if@restonecol\twocolumn\fi
}


I just put it in my layout file and I'm good to go.

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Please make LyX native language well formed and valid XML

2021-01-23 Thread Steve Litt
On Thu, 21 Jan 2021 00:48:43 +0200
Dr Eberhard W Lisse  wrote:

> While,
> 
> I like XML out of principle, but besides that I find the tone of the
> request a bit over the top, especially for such a huge undertaking, it
> is rare to require LyX documents to be both manually and
> programmatically editable.

You're right, the tone was over the top. That being said:

1) The initial reason for complexifying the LyX native format back
   around 2012 was to make it XML. I was opposed to the complexity at
   the time. Now they have the complexity, but because it's not real
   XML, you can't even parse it.

2) For a decade, LyX has all but ignored exporting **semantic**
   HTML that can be used to create an realistically sized ePub with a
   reasonable appearance and the ability of the author to change that
   ePub with styles.

I'd say I've been pretty patient.

> Messing with the LyX file is admittedly difficult, why do it in the
> first place?

* Personalizing books I sell.

* VimOutliner to LyX converter.

* Renumbering of entities using Python scripts.

Another thing: The first 9 years I worked with LyX, altering a LyX file
programmatically was the simplest thing in the world.

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Please make LyX native language well formed and valid XML

2021-01-20 Thread Steve Litt
On Tue, 19 Jan 2021 13:30:00 +0100
Pavel Sanda  wrote:

> On Sun, Jan 17, 2021 at 12:30:10PM +0100, Jean-Marc Lasgouttes wrote:
> > Le 17/01/2021 ?? 00:36, Steve Litt a écrit :  
> > >Having LyX native language be XML would allow write once, publish
> > >anywhere, with programming a mere mortal could do. It was your
> > >goal a decade ago --- could you please finish the transition?  
> > 
> > Dear Steve,
> > 
> > LyX 2.4.0 will be able to export to DocBook5. I hope you will find
> > it useful.  
> 
> Even better, you could give it a shot while 2.4 is in alpha stage a
> write us feedback about possible bugs. The main docbook developer is
> now pretty active and changes to 2.4 once getting stable tag would be
> harder anyway.

Even if the Docbook exporter were perfectly semantic and kept styles
intact, unlike the HTML exporter, Docbook is just a lillypad in the
middle of the stream, and to reach LaTeX, PDF, HTML or ePub, I'd need to
use the infamous black box Pandoc. Yuck!

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Please make LyX native language well formed and valid XML

2021-01-16 Thread Steve Litt
Over 10 years ago, the LyX native language was substantially
complexified, making programmed modification, in the name of turning it
into XML. But in the past decade, the move to XML was never finished,
leading to the worst-of-both-words situation where the native language
is very complicated to handle with a text editor or programmatically,
yet it can't be handled with an XML processor.

I'd always hoped that some day LyX would be a "write once, publish
everywhere" tool, so a single LyX document could be used for PDF, HTML,
XML, ePub, and anything else coming down the pike. And please don't
talk about LyX' html exports: The html they export is horrible,
bloated, non-semantic pidgeon HTML.

Having LyX native language be XML would allow write once, publish
anywhere, with programming a mere mortal could do. It was your goal a
decade ago --- could you please finish the transition?

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: help with error message

2021-01-05 Thread Steve Litt
On Mon, 4 Jan 2021 13:43:26 +0200
Dr Eberhard W Lisse  wrote:

> Heba,
> 
> download BasicTeX from the MacTex site. And then use tlmgr from the
> command line to install missing packages individually. Before an
> update it is trivial to save the list of installed packages so that
> one can re-install them afterwards.

In the past, I've had a lot of problems operating with both upstream
tex, and package installed tex. So I recommend removing the package
installed tex, and installing the upstream. See
https://tug.org/texlive/acquire-netinstall.html for how to install from
upstream. 

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Has anybody lost their book's index when switching to lualatex?

2021-01-02 Thread Steve Litt
> 
> On 2020-12-31 18:24 , Steve Litt wrote:
> > Hi all,
> > 
> > I switched from compiling with LaTeX to compiling with LuaLaTeX,
> > and my book's index went away. Upon further research, I found that
> > I had forgotten to run makeindex between the first and second
> > LuaLaTeX compile. So if you ever lose your index, look to see if
> > you perform a makeindex in between your two compiles.
> > 
> > SteveT
> > 
> > Steve Litt 
> > Autumn 2020 featured book: Thriving in Tough Times
> > http://www.troubleshooters.com/thrive
> >   

On Fri, 1 Jan 2021 23:42:47 +0200
Dr Eberhard W Lisse  wrote:

> LyX does this automatically, doesn't it?

Perhaps. I should add that I was speaking about compilation via
shellscripts, which is much more determinate than letting LyX do it,
given that LyX' converters are changed from time to time.

> 
> Or do you export to TeX and then run lualatex?

I export to luatex.
 
SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Has anybody lost their book's index when switching to lualatex?

2020-12-31 Thread Steve Litt
Hi all,

I switched from compiling with LaTeX to compiling with LuaLaTeX, and my
book's index went away. Upon further research, I found that I had
forgotten to run makeindex between the first and second LuaLaTeX
compile. So if you ever lose your index, look to see if you perform a
makeindex in between your two compiles.

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


You might like texlive.sh

2020-12-18 Thread Steve Litt
Hi all,

This only applies to people using Linux and the upstream texlive, not
texlive from a distro package.

First of all, don't make the mistake I made for years: Either have
texlive from a distro package, or have it from CTAN (the one that is in
/opt/texlive and descendant directories).

As you know, every year you get a new texlive version, in directory
/opt/texlive/$YEAR , where $YEAR is the current year (currently 2020).
Texlive binaries in /opt/texlive/$YEAR/bin refer to texlive packages in
/opt/texlive/$YEAR. This is important, considering that previous
years are left intact. And you know that /opt/texlive/$YEAR/bin is
generally not on your executable path, which can lead to problems.

So I created texlive.sh, residing on my executable path, which serves as
a precommand to all commands in /opt/texlive/$YEAR:


=
#!/bin/sh
YEAR=2020
PATH=/opt/texlive/$YEAR/bin/x86_64-linux:$PATH
export PATH
"$@"
=

Be sure to doublequote the $@, or you can have problems in some usages
with multiple arguments.

So, to update all my Texlive stuff, I just do this (as root):

texlive.sh tlmgr update --all

To install a new Texlive package, let's say fancybox, I do the
following as root:

texlive.sh tlmgr install fancybox

And to compile my books and make sure the right package set is used, I
just do the following:

texlive.sh compile_books.sh

The only maintenance I have to do is, every year, I need to update the
YEAR= line in texlive.sh.

Obviously, you can rename texlive.sh to anything. For instance, my
computer has no commands starting with "tx", so I could have named it
just tx for faster typing and more convenience.

For many years I've had trouble with texlive. I think by uninstalling
my distro's texlive package, relying entirely on the one from cpan, and
creating my texlive.sh shellscript, I've eliminated 90% of my problems
with texlive.

Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to make an A4 presentation with Beamer?

2020-12-13 Thread Steve Litt
On Sun, 13 Dec 2020 14:54:37 +0300
Baris Erkus  wrote:

> On 13-Dec-20 2:52 PM, Steve Litt wrote:
> > Hi all,
> >
> > I live in the US, so all my computer's defaults are set to the US,
> > including paper size. I have a customer in Europe for whom I need to
> > make a presentation, using Beamer (alone, not with LyX), printable
> > on A4 paper.
> >
> > I've tried various combinations and variants of the following :
> >
> > \usepackage{geometry}
> > \special{papersize 29.7cm, 21cm}
> > \hsize 29.7cm
> > \vsize 21.0cm
> > \usepackage[a4paper, total={29.5cm, 20.8cm}]{geometry}
> > \geometry{letterpaper, landscape, total={11.5in, 8in}}
> >
> > Some forced the latex program to abort with error, some caused only
> > a tiny rendering of the slide on a big A4 paper, some caused the
> > printing to be portrait, when I could print landscape it printed
> > upside down, what a mess.
> >
> > Does anyone have a way to use Beamer (not LyX/Beamer) to create a
> > PDF that can print correctly on a European printer?
> >
> > Thanks,
> >
> > SteveT
> >
> > Steve Litt
> > Autumn 2020 featured book: Thriving in Tough Times
> > http://www.troubleshooters.com/thrive  
> 
> Could you please send a MWE, so that we can have a look at it?
> 

That's a good idea, Baris, and I already sent the MWE files to you. In
case anyone else wants to take a crack at it, I'm attaching four MWE
files:

mwe.beamer is the MWE source

mwe.pdf is my attempt at A4. It's upside down, and the print is way
smaller than it's supposed to be.

kk is the shellscript that compiles mwe.beamer into mwe.pdf.

All 3 files go in a single directory, and assuming you have the same
texlive packages I have, it should compile to the same result mine did.

What I want is a PDF, printable on A4, that has the right sized print
and is right side up instead of upside down.

Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive


kk
Description: Binary data


mwe.beamer
Description: Binary data


mwe.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


How to make an A4 presentation with Beamer?

2020-12-13 Thread Steve Litt
Hi all,

I live in the US, so all my computer's defaults are set to the US,
including paper size. I have a customer in Europe for whom I need to
make a presentation, using Beamer (alone, not with LyX), printable on A4
paper.

I've tried various combinations and variants of the following :

\usepackage{geometry}
\special{papersize 29.7cm, 21cm}
\hsize 29.7cm
\vsize 21.0cm
\usepackage[a4paper, total={29.5cm, 20.8cm}]{geometry}
\geometry{letterpaper, landscape, total={11.5in, 8in}}

Some forced the latex program to abort with error, some caused only a
tiny rendering of the slide on a big A4 paper, some caused the printing
to be portrait, when I could print landscape it printed upside down,
what a mess.

Does anyone have a way to use Beamer (not LyX/Beamer) to create a PDF
that can print correctly on a European printer?

Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: change superscript or subscript to normal font

2020-11-25 Thread Steve Litt
On Tue, 24 Nov 2020 17:01:14 +0100 (CET)
Csikos Bela  wrote:

> Hello:
> 
> Accidentally I changed some text to superscript. How can I change it
> back to normal font? I tried to reset all properties in font dialogue
> but none of them had the required effect. This is  in lyx 2.0.6 (I
> know it's old but works for me.)
> 
> Thanks,
> 
> bcsikos

Be sure to back up that file before trying any extraordinary measures!

After backing it up, you could always try a text editor.

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Changes to LaTeX

2020-10-15 Thread Steve Litt
On Wed, 14 Oct 2020 11:25:08 +0200
Dr Eberhard Lisse  wrote:

> Hi,
> 
> I have come across some really obscure errors when trying to compile
> my previously mentioned handbook after upgrading LaTeX with the tlmgr
> which I do at least weekly (on the Mac).

I had no idea you were supposed to upgrade with tlmgr once a week. I've
been upgrading only when things went wrong.

Could you please tell me the exact tlmgr command to use in this once a
week upgrade so I can do it too?

Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX --> markdown

2020-08-18 Thread Steve Litt
On Tue, 18 Aug 2020 16:49:14 +0200
Saša Janiška  wrote:

> On Tue, 18 Aug 2020 03:05:21 -0400
> Steve Litt  wrote:
> 
> > One man's opinion: If you don't need write once display everywhere,
> > use LyX for PDF and Bluefish for HTML.   
> 
> Bluefish is still alive? Amazing!
> 
> > Life will be much simpler, and your HTML will be much less
> > junkified.  
> 
> I still think about the possibility to write Markdown and use ConteXt
> for high-quality typesetting. Have you ever used it?

No. If I were writing Markdown, I'd use Vim or Emacs or Bluefish. That
way I'd have complete control of what little semantic distinctions
Markdown gives me.

In my opinion, using LyX to write HTML that isn't intended to also be
written to PDF is like using a fine woodworking knife to cut 2x4" beams
to length. 

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX --> markdown

2020-08-18 Thread Steve Litt
On Sun, 16 Aug 2020 10:46:04 +0200
Saša Janiška  wrote:

 
> I do *not* want HTML & PDF for the same document, but want to use the
> *same* editor for creating both HTML content (to be pasted into Tiki
> CMS) as well as PDF for everything else. ;)

One man's opinion: If you don't need write once display everywhere, use
LyX for PDF and Bluefish for HTML. Life will be much simpler, and your
HTML will be much less junkified.
 
SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX --> markdown

2020-08-15 Thread Steve Litt
On Sat, 15 Aug 2020 10:19:19 +0200
Saša Janiška  wrote:

> On Tue, 11 Aug 2020 19:32:19 +0200
> Peter GAAL  wrote:
> 
> > Once pandoc <https://pandoc.org/installing.html> installed, it’s
> > fairly easy to define a markdown converter  based on it. In LyX,
> > that configuration is done in /Tools› Preferences› File Handling ›
> > File Formats/ respectively /Converters/; cf. the screenshots (you
> > should set the markdown viewer to an editor of your choice):  
> 
> Thank you - it works nicely!

Could you please share the shellscript with which you converted LyX to
HTML via Pandoc and Markdown? I'll try it, and if it works well for my
purposes, I'll use it and quit griping about LyX' horrible HTML export.


Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX --> markdown

2020-08-15 Thread Steve Litt
On Tue, 11 Aug 2020 14:50:10 +0200
Saša Janiška  wrote:

> Hello!
>  
> More than 20 yrs ago I did a 2-part full-fledged books using
> LyX/LaTeX/xindy and akthough in the meantime I was experimenting with
> several light markups (Asciidoc, rst, markdown..) now I'd čike to
> write all my study notes, articels, blog posts, slide-show
> presentations...using LyX editor, but for the web part I use Tiki CMS
> where I can copy & paste markdown code for the content, so wonder what
> would be recommended way to get from LyX to markdown?

I wouldn't. You'd lose a heck of a lot of semantics going from LyX,
which allows all the arbitrary paragraph and character styles you need,
to Markdown, whose motto is "my way or the highway."

The real problem is that, as far as I know, after more than 10 years,
LyX' html and xhtml exports change a lot of styles to appearances
prematurely. When I asked about making a truly semantic (x)html export,
the response I received was basically "hey, we're just interested in
making our master theses, so you book authors just have to wait." Or
"do it yourself", which I probably would have except LyX's code is,
shall I say, hairy.

It's really too bad, because all LyX needs to do is export *text
within styles*, and have the author sort out the appearance with CSS.
One export, I don't know if it's still alive, had two normal paragraph
styles, one for the first paragraph not to indent, and the other for
succeeding paragraphs that should be indented. This needless
complication is unnecessary, the indent-on-succeeding-paragraphs can be
done quite well in CSS.

It's not even necessary for LyX to write the CSS because most likely
you won't want the same appearance in HTML that you wanted in PDF. All
that's necessary is a list of all styles in the document so the author
can create the CSS for each.

Things like indexing, references and bibliographies will present more of
a challenge, but geez, it's been ten years.

From what I've seen of Markdown, anything from Markdown is going to be
pretty cookie-cutter. You might be better writing Asciidoctor with an
editor.

You haven't said why you want HTML and PDF from the same document. If
your intent is to create content for mobile devices, another
possibility is a 5.5" x 3.5" PDF made from LyX. It's kinda sorta
readable on a mobile device for those with good vision: I've been
selling them for years. 

It wouldn't even be too difficult to create a shellscript to convert
the 8.5"x11" or A4 to 5.5x3.5", so you maintain one source and run
several places. It won't wrap on the fly like ePub, and it's not hip
like ePub, but it's readable, and IMHO a lot less pain than trying to
make high quality ePubs with LyX in any part of the stack.
 
SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


LyX not completely importing new class/layout

2020-08-08 Thread Steve Burnham
I have attempted to create my own CV Latex class based on another template
I downloaded and incorporate it into LyX. I've done this before with my
School's dissertation class long ago. I have done the following (Linux):

   1. I downloaded the CV .cls file and I placed it in my LaTeX directory
   2. I ran texhash to update
   3. I created a LyX layout file (text below) and placed it in
   ~/.lyx/layouts/ and then reconfigured LyX and restarted the program
   4. Created a new file and under Document>Settings>Document Class I
   selected my new CV class called "resume" and hit apply. LyX then says it's
   converting the document to the new document class.

After these steps the pull down menu for the layout list does not populate
according to the new class. It appears populated as a standard article
class rather than the custom layout options from the CV class. If I add in
front matter and compile the document it does compile successfully and
things like name, address, phone are formatted correctly. So I know that
LyX can see the class and is using it to compile the document. I can also
import plain LaTeX and everything works but this just turns LyX into a
glorified TeX editor rather than what it should be doing. Below is the
contents of my layout file which is quite minimal:

#% comment line
# \DeclareLaTeXClass{resume}
Input stdclass.inc

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


Re: A LyX success

2020-07-25 Thread Steve Litt
Nice!

SteveT



On Fri, 24 Jul 2020 10:55:37 -0500
Les  wrote:

> My memoir "Blizzards and Broken Grousers -- a Year of Antarctic
> Glaciology" has been accepted in its final form for publication by the
> Society of Exploration Geophysicists (SEG).
> 
> The form in which it has been accepted is a single 348-page PDF file
> containing all of the book except the cover and a title page, ready
> for printing. I requested this, because I did not want to scour proofs
> someone else had typeset, taking into consideration 110 figures, a
> five-page glossary, and an 18-page index.
> 
> The PDF is generated from LyX.
> 
> I used the Memoir class, adjusting text layout to match exactly the
> specifications SEG supplied. This required quite an extensive
> preamble, and some TeX within the document. The most difficult parts
> were getting the chapter pagestyle exactly as requested, and getting
> the bibliography format exactly as requested.
> 
> I have a Master document and eleven Child documents. The figures
> include scanned paper originals (PNG), photographs (JPEG), graphs
> (Grace), and maps (PDF generated using Generic Mapping Tools).
> 
> The editing process involved me sharing my PDF on Dropbox. The editor
> marked corrections (using Adobe, I think) and I changed the LyX files
> to make the corrections, and generated a new PDF. She was particularly
> grateful that I could use the correct symbol (\textminus) for
> negative temperatures. Apparently most authors settle for an en-dash.
> The last correction made was replacing a non-standard degree symbol I
> had included in a quote copied and pasted from the Australian
> Antarctic Division website.
> 
> Initial approval of the book was determined last December. I
> reformatted it to the SEG specification I sent the first reformatted
> PDF the first week in January, and received the first corrections in
> March (with an apology for delays due to the pandemic). I have
> received two more sets of corrections, and sent two more revisions,
> before receiving the publication agreement for me to sign on Monday.
> 
> I have been using LyX for about twenty years, and am extremely
> grateful to the volunteers who have made it what  it is today.
> 
> Thanks,

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


Re: How to break long equations with LyX

2020-06-20 Thread Steve Litt
On Fri, 19 Jun 2020 07:26:30 -0600
Joel Kulesza  wrote:

> On Fri, Jun 19, 2020 at 5:51 AM  wrote:
> 
> > I have tried mightily to get LyX to break long equations. I’ve
> > studied multiple pages at stackexchange, both LaTeX and LyX, and
> > can’t seem to get anything to work.
> >
> > ...
> >
> > How do LyX-ers handle this? Is there “LyX” solution to breaking long
> > equations? I’m OK with some ad hoc solution for now, or some ERT if
> > it works.
> >  
> 
> Jerry,
> 
> I regret that I don't have any good guidance to satisfy your desire to
> automatically break equations.  One benefit to LaTeX is the aesthetic
> as a result of the underlying algorithms, but I know of no automatic
> algorithms to universally break equations well.  I suspect this is
> the case because each component in the equation has distinct meaning
> and how the equation is broken and aligned can help the reader
> interpret it (e.g., breaking at "logical" places).

One thing I've been known to do is to put in a lot of intermediate
steps, so each equation is short.

SteveT

Steve Litt 
May 2020 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 change paragraph spacing of Standard paragraph style in UI only?

2020-06-11 Thread Steve Litt
Confirmed! Thanks Riki!

I removed the CopyStyle and it changed nothing. And like you said, I
had long ago removed the ex unit so it was 5, not 5ex. And by the way,
I settled on 0.7, not 5, because 5 would have been ridiculous.

Thanks for your help.

SteveT

On Fri, 12 Jun 2020 00:41:58 -0400
Richard Kimberly Heck  wrote:

> On 6/12/20 12:07 AM, Steve Litt wrote:
> > Hi all,
> >
> > I think I knew this once, but long since forgot. For the style of
> > readability optimal for me, I need paragraphs of Standard paragraph
> > style to be both indented and separated, *in the LyX User
> > Interface*. I tried doing it in my existing layout file, like this:
> >
> > Style Standard
> >   CopyStyle Standard
> >   ParSep -5ex
> > End
> >
> > Is the preceding correct? It did the right thing in the UI while
> > leaving the PDF unchanged. Was the use of CopyStyle necessary or
> > even correct? Is there a better way to do it?  
> 
> You don't need CopyStyle here. If the style already exists, then it is
> modified rather than re-defined. CopyStyle is useful when you want to
> mostly mimic some other style.
> 
> ParSep here is just given as a float, and it's treated (I think) as a
> multiple of the line height. So try something like "ParSep 2". You
> might also want to give ParSkip, which works the same way, but
> applies to the distance between Standard paragraphs and ones of other
> layout types. ParSep, on the other hand, applies to paragraphs of the
> same type. See
> Help> Customization, section 5.3.7.  
> 
> Riki
> 
> 



-- 
SteveT

Steve Litt 
May 2020 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 change paragraph spacing of Standard paragraph style in UI only?

2020-06-11 Thread Steve Litt
Hi all,

I think I knew this once, but long since forgot. For the style of
readability optimal for me, I need paragraphs of Standard paragraph
style to be both indented and separated, *in the LyX User Interface*. I
tried doing it in my existing layout file, like this:

Style Standard
  CopyStyle Standard
  ParSep -5ex
End

Is the preceding correct? It did the right thing in the UI while
leaving the PDF unchanged. Was the use of CopyStyle necessary or even
correct? Is there a better way to do it?

Thanks,

SteveT

Steve Litt 
May 2020 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: Let it run

2020-05-02 Thread Steve Litt
On Sat, 2 May 2020 07:16:25 +0200
Daniel  wrote:

> On 2020-05-01 21:18, Steve Litt wrote:
> > On Fri, 1 May 2020 12:12:39 +0200

> > If doing all these things doesn't bring it down to under a minute,
> > try to eyeball where in the compile it slows down, and investigate
> > that.  
> 
> How can I "eyeball" it?

Watch the messages as they scroll by, see what takes a long time, and
what repeats hundreds of times.

The log you sent earlier probably won't help, because few folks have
the time to scroll through hundreds of lines of logs. What WOULD help
is to make a Minimum Working Example (MWE) of the bug. After thoroughly
backing up the document, rename it and keep removing halves until all
of a sudden it compiles a lot faster. Go back one step, and keep
eliminating other things until you come up with a small document that
takes 1 to 10 minutes to print. 

It's possible (though I doubt it) that your whole compile process
really is that slow, in which case when you remove half, compilation
takes half the time.

Also, try the compile with an earlier and if possible later version of
LyX. Occasional versions of LyX have performance problems, which are
fixed very quickly and put out as a newer version.

SteveT

Steve Litt 
May 2020 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: Let it run

2020-05-01 Thread Steve Litt
On Fri, 1 May 2020 12:12:39 +0200
Daniel  wrote:

> On 2020-05-01 09:10, Steve Litt wrote:
> > On Thu, 30 Apr 2020 22:29:04 +0200
> > Daniel  wrote:
> >   
> >> Hi
> >>
> >> I have a large document that takes more than 10 minutes to compile.
> >> In between LyX seems to stop the process to ask me whether I want
> >> to "Let it run" or "Stop it". Is there a way to turn this dialog
> >> off? Otherwise, I always have to attend to LyX while waiting for
> >> the typesetting to finish.  
> > 
> > When you say "large" document, what do you mean? How large is large?
> > Are you doing graphical conversions on huge graphical files? Is this
> > thing the size of the Encyclopedia Britannica?
> > 
> > I have a LyX source document for a 309 page book that compiles to
> > PDF in ten seconds. The source file is 1.23MB. Here are my
> > computer's stats:
> > 
> > 2 core, 65 watt AMD A6-6400K 2core that runs at about 3Ghz, 16GB
> > RAM, lots and lots and lots of disk space, with /usr being an SSD,
> > about 5 years old now. Void Linux. Not an ancient cripple, but by
> > no means state of the art.
> > 
> > I think your first question isn't "how can I turn off the dialog",
> > but "why does this compile take so long, and what can I do about
> > it?" 
> > SteveT
> > 
> > Steve Litt
> > March 2020 featured book: Troubleshooting: Why Bother?
> > http://www.troubleshooters.com/twb
> >   
> 
> It's 250 pages. A lot of inkscape graphics, tables, a huge amount of 
> cross references, biblatex/biber references. 2.2 GHz Quad-Core Intel 
> Core i7, 16 GB ram, 15 GB disk space. I thought about bisecting the 
> document but didn't have the time yet because compiling the
> bisections takes so long. I compile it rather rarely these days and
> work mainly just in LyX.
> 
> Daniel
> 

Now we're getting somewhere. LyX can't use .svg (Inkscape) directly, so
it must convert them on compile. I'd define the graphics as something
LyX *can* deal with directly, like .pdf and others, and just do .svg
conversions when an inkscape file changes.

The fact that it's 2.2GHz in this day and age tells me it's probably a
laptop. Are you by any chance running Windows? If so, you need to speed
up your software by removing all that krap your hardware vendor
"helpfully" placed on the computer at time of sale. You probably need
to trim down and optimize the registry. Defrag frequently, optimize
your virtual memory, and use the Windows equivalent of fstrim if you
have a SSD drive.

If doing all these things doesn't bring it down to under a minute, try
to eyeball where in the compile it slows down, and investigate that.

If you do all this and it still takes several minutes, you might do
better to split the book into chapters, and have the Windows equivalent
of the make utility compile only what has had its dependencies change.

If you have a friend running Linux on a fairly new and robust DESKtop
computer, try compiling it there. If it's 10 seconds on your friend's
comptuter, and ten minutes on yours, then a few hardware or software
tweaks can probably fix your problem.

SteveT

Steve Litt
March 2020 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Let it run

2020-05-01 Thread Steve Litt
On Thu, 30 Apr 2020 22:29:04 +0200
Daniel  wrote:

> Hi
> 
> I have a large document that takes more than 10 minutes to compile.
> In between LyX seems to stop the process to ask me whether I want to
> "Let it run" or "Stop it". Is there a way to turn this dialog off?
> Otherwise, I always have to attend to LyX while waiting for the
> typesetting to finish.

When you say "large" document, what do you mean? How large is large?
Are you doing graphical conversions on huge graphical files? Is this
thing the size of the Encyclopedia Britannica?

I have a LyX source document for a 309 page book that compiles to PDF
in ten seconds. The source file is 1.23MB. Here are my computer's stats:

2 core, 65 watt AMD A6-6400K 2core that runs at about 3Ghz, 16GB RAM,
lots and lots and lots of disk space, with /usr being an SSD, about 5
years old now. Void Linux. Not an ancient cripple, but by no means
state of the art.

I think your first question isn't "how can I turn off the dialog", but
"why does this compile take so long, and what can I do about it?"
 
SteveT

Steve Litt
March 2020 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Brazilian Portuguese

2020-04-01 Thread Steve Hnizdur

Hi

Solved. Needed texlive-lang-portuguese. Thought I had it but apparently not!

Thanks for your help.

On 01/04/2020 09:34, José Abílio Matos wrote:

On Wednesday, 1 April 2020 09.21.39 WEST Steve Hnizdur wrote:

 > Hi

 >

 > Attached is a MWE.

 >

 > Error is:

 >

 > "! Package babel Error: You haven't defined the language brazil yet.

 >

 > See the babel package documentation for explanation.

 > Type H  for immediate help.

 > ...

 >

 > l.12 \selectlanguage{brazil}"

 >

 > heers

That works for me flawlessly. :-)

What is your Operating System and latex distribution?

For me, in linux and texlive, the support for Brazilian Portuguese is in 
babel.


$ ll /usr/share/texlive/texmf-dist/tex/generic/babel/locale/pt/
total 48
-rw-r--r--. 1 root root  129 Jan  4  2018 babel-brazilian.tex
-rw-r--r--. 1 root root  339 Jun 26  2017 babel-portuguese-brazil.tex
-rw-r--r--. 1 root root  129 Jan  4  2018 babel-portuguese-br.tex
-rw-r--r--. 1 root root  339 Jun 26  2017 babel-portuguese-portugal.tex
-rw-r--r--. 1 root root  131 Jan  4  2018 babel-portuguese-pt.tex
-rw-r--r--. 1 root root  336 Jun 26  2017 babel-portuguese.tex
-rw-r--r--. 1 root root 4333 Sep 19  2017 babel-pt-BR.ini
-rw-r--r--. 1 root root 4150 Sep 19  2017 babel-pt.ini
-rw-r--r--. 1 root root 4260 Sep 19  2017 babel-pt-PT.ini

--

José Abílio




--

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


Re: Brazilian Portuguese

2020-04-01 Thread Steve Hnizdur

Hi

I'm using Ubuntu 18.04 with all updates. Also

apt-cache policy texlive
texlive:
  Installed: (none)
  Candidate: 2017.20180305-1
  Version table:
 2017.20180305-1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 
Packages
500 http://gb.archive.ubuntu.com/ubuntu bionic/universe i386 
Packages


I get

ls -l /usr/share/texlive/texmf-dist/tex/generic/babel/locale/pt/
total 48
-rw-r--r-- 1 root root  129 Jan  4  2018 babel-brazilian.tex
-rw-r--r-- 1 root root  339 Jun 26  2017 babel-portuguese-brazil.tex
-rw-r--r-- 1 root root  129 Jan  4  2018 babel-portuguese-br.tex
-rw-r--r-- 1 root root  339 Jun 26  2017 babel-portuguese-portugal.tex
-rw-r--r-- 1 root root  131 Jan  4  2018 babel-portuguese-pt.tex
-rw-r--r-- 1 root root  336 Jun 26  2017 babel-portuguese.tex
-rw-r--r-- 1 root root 4333 Sep 19  2017 babel-pt-BR.ini
-rw-r--r-- 1 root root 4150 Sep 19  2017 babel-pt.ini
-rw-r--r-- 1 root root 4260 Sep 19  2017 babel-pt-PT.ini

which is identical to yours.

Hope that helps, thanks for your speedy replies.


On 01/04/2020 09:34, José Abílio Matos wrote:

On Wednesday, 1 April 2020 09.21.39 WEST Steve Hnizdur wrote:

 > Hi

 >

 > Attached is a MWE.

 >

 > Error is:

 >

 > "! Package babel Error: You haven't defined the language brazil yet.

 >

 > See the babel package documentation for explanation.

 > Type H  for immediate help.

 > ...

 >

 > l.12 \selectlanguage{brazil}"

 >

 > heers

That works for me flawlessly. :-)

What is your Operating System and latex distribution?

For me, in linux and texlive, the support for Brazilian Portuguese is in 
babel.


$ ll /usr/share/texlive/texmf-dist/tex/generic/babel/locale/pt/
total 48
-rw-r--r--. 1 root root  129 Jan  4  2018 babel-brazilian.tex
-rw-r--r--. 1 root root  339 Jun 26  2017 babel-portuguese-brazil.tex
-rw-r--r--. 1 root root  129 Jan  4  2018 babel-portuguese-br.tex
-rw-r--r--. 1 root root  339 Jun 26  2017 babel-portuguese-portugal.tex
-rw-r--r--. 1 root root  131 Jan  4  2018 babel-portuguese-pt.tex
-rw-r--r--. 1 root root  336 Jun 26  2017 babel-portuguese.tex
-rw-r--r--. 1 root root 4333 Sep 19  2017 babel-pt-BR.ini
-rw-r--r--. 1 root root 4150 Sep 19  2017 babel-pt.ini
-rw-r--r--. 1 root root 4260 Sep 19  2017 babel-pt-PT.ini

--

José Abílio




--

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


Re: Brazilian Portuguese

2020-04-01 Thread Steve Hnizdur

Hi

Attached is a MWE.

Error is:

"! Package babel Error: You haven't defined the language brazil yet.

See the babel package documentation for explanation.
Type  H   for immediate help.
 ...

l.12 \selectlanguage{brazil}"

heers

On 01/04/2020 09:05, José Abílio Matos wrote:

On Wednesday, 1 April 2020 08.55.06 WEST Steve Hnizdur wrote:

 > Hi

 >

 > I need to included some Brazilian Portuguese in an English document.

 > When I do this through standard Lyx methods, Lyx automatically adds the

 > option "brazil" to the document class in the preamble. Unfortunately

 > this stops the document compiling to a PDF with an error of Unknown 
option.


 >

 > The same error occurs if the whole document is set in Brazilian 
Portuguese.


 >

 > Any way round this other than editing the tex file or using another

 > language?

 >

 > Cheers.

It seems difficult to understand the cause without further information:

What document class are you using?

What is the precise error message you are getting?

Regards, :-)

--

José Abílio




--

Steve Hnizdur


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


Brazilian Portuguese

2020-04-01 Thread Steve Hnizdur

Hi

I need to included some Brazilian Portuguese in an English document. 
When I do this through standard Lyx methods, Lyx automatically adds the 
option "brazil" to the document class in the preamble. Unfortunately 
this stops the document compiling to a PDF with an error of Unknown option.


The same error occurs if the whole document is set in Brazilian Portuguese.

Any way round this other than editing the tex file or using another 
language?


Cheers.
--

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


Re: Hyperref support

2020-03-26 Thread Steve Hnizdur

On 19/03/2020 13:55, Daniel wrote:

On 2020-03-19 14:42, Richard Kimberly Heck wrote:

On 3/19/20 3:01 AM, Daniel wrote:

On 2020-03-18 14:59, Steve Hnizdur wrote:

Hi

When "Use Hyperref Support" is checked in PDF properties Lyx
automatically inserts

\usepackage[unicode=true,
   bookmarks=false,
   breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false]
   {hyperref}

in the preamble. Any ideas where all these options come from? are
they hard coded?

Setting "unicode=false" in additional options doesn't seem to
override the "unicode=true". So if unicode=true is causing a problem
(in particular trying to redefine \C or \G) then this all has to
added manually.

MWE attached. Using Lyx 2.3.4.2 on Ubuntu 18.04



Hi

Yes, these options come from settings in the Hyperref dialog.

"bookmarks=..." = "Generate bookmars (toc)"
"breaklinks=..." = "Break links over lines"
"pdfborder=..." = "No frames around links"
"colorlinks=..." = "Color links"
"backref=..." = "Backreferences"

However, there seems to be no option for the "unicode=..." which seems
like an oversight. And the biggest problem is that according to the
manual:

Note however that some options (for example unicode) can only be used
as packge options,and not in \hypersetup as the option settings are
processed as the package is read. (p. 6)

So, unicode=false has no effect as an additional option.

My guess is that this is a bug in LyX but others might know better.


Well, the code is:

 // Since LyX uses unicode, also set the PDF strings to unicode 
strings

 // with the hyperref option "unicode". (With Xe/LuaTeX and pTeX,
 // unicode=true is the default, with Japanese (platex), the option
 // leads to errors (even if the input encoding is UTF-8).)
 if (!runparams.isFullUnicode() && !runparams.use_japanese)
     opt += "unicode=true,";

That is: LyX outputs unicode itself in some cases, so setting
unicode=false could lead to errors. Still, it might be worth a document
preference on this.

Riki




An alternative might be to set the "Additional Options" via the package 
options rather than hypersetup.


Daniel



Thank you for your responses. I can't say I fully understand why Lyx 
needs to be as it is; I'm generally against hard coded parameters.


I will work round by manually coding the preamble.

Cheers

--

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


Hyperref support

2020-03-18 Thread Steve Hnizdur

Hi

When "Use Hyperref Support" is checked in PDF properties Lyx 
automatically inserts


\usepackage[unicode=true,
 bookmarks=false,
 breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false]
 {hyperref}

in the preamble. Any ideas where all these options come from? are they 
hard coded?


Setting "unicode=false" in additional options doesn't seem to override 
the "unicode=true". So if unicode=true is causing a problem (in 
particular trying to redefine \C or \G) then this all has to added manually.


MWE attached. Using Lyx 2.3.4.2 on Ubuntu 18.04
--

Steve Hnizdur


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


Re: Problem with quotes signs in Pandoc conversion

2020-02-06 Thread Steve Litt
On Wed, 5 Feb 2020 16:23:14 +0100
Jean-Marc Lasgouttes  wrote:

> Le 05/02/2020 à 16:05, V K a écrit :
> > So it is obvious that Pandoc understands only quotes signs, but
> > not, how to say, commands, it doesn't convert all the \og,
> > \guillemotleft, \quotesinglbase, \glqq and so on, but perfectly
> > convert signs `` '' << etc. Using csquotes package change
> > nothing.Maybe I should load other package?  
> 
> Hello,
> 
> While there could be a case made for exporting more portable LaTYeX
> when the target is a converter, I think that in this case it makes
> sense to open a andoc issue asking for support of these extra macros.
> 
> You can see a list of macros used for quotes here:
> https://git.lyx.org/?p=lyx.git;a=blob;f=src/insets/InsetQuotes.cpp;h=d34efa48cd4ed07d920c8c4d969f41e9b286da04;hb=HEAD#l337

I know nothing about Pandoc at all, but the preceding URL, which
conveniently lands on the exact subroutine appearing to give
translations of quote type UTF-8's, seems the perfect place to just add 

else if (op == "pandoc")

or some other branch that outputs the needful for pandoc. If there
isn't a variable representing a pandoc-interfacing output, why not make
one and at least have it triggered by a LyX command line argument? Once
there's such a variable, VK himself could put in the exact best quote
representations for Pandoc, I believe 21 in total, put it back in, and
bang, problem solved.

Perhaps it's pandoc's job to fix this problem. But if it's as simple as
I think it is, it's just too easy to do it on the LyX end to wait for
pandoc to do their job.

SteveT

Steve Litt 
February 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to suppress blank page before graphic

2019-11-24 Thread Steve Litt
On Sun, 24 Nov 2019 05:46:05 -0800
John White  wrote:

> I am starting a koma script article with a graphic and exporting to
> lautex.  Lyx prints a blank page before printing the graphic. How do
> I suppress the blank page?

Three experiments:

1) Set the document \raggedbottom and see if pagebreaks are more what
you expect.

2) Substitute a 1 millimeter graphic for your graphic, and see if the
pagebreak goes away.

3) Try various combinations of \emergencystretch and \tolerance and see
their effect on page breaking. See
https://tex.stackexchange.com/questions/241343/what-is-the-meaning-of-fussy-sloppy-emergencystretch-tolerance-hbadness
. Experiment with exact placement of these codes.

 
SteveT

Steve Litt
November 2019 featured book: Manager's Guide to Technical
Troubleshooting Second edition
http://www.troubleshooters.com/mgr
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: fixing tiny font on laptop

2019-11-16 Thread Steve Litt
On Fri, 15 Nov 2019 17:45:40 -0800
John White  wrote:

> For some unknown reason, my lyx fonts on all files suddenly 
> became too tiny to read. Internet says use mouse wheel to fix, 
> which works fine (I borrowed one).  But my laptop doesn't have a 
> mouse or a mouse wheel.  Any alternative way of getting normal 
> font size back on a mouse-less laptop? I may not be able to 
> borrow a mouse next time this happens.
> 
> John

>From your past posts I know you use Debian, but not what WMDE. When I'm
in LyX, the mouse wheel doesn't magnify, it scrolls the text. See if
the following happened around the time of the shrinkage: Update of Debian, 
your WMDE, or your LyX.

You can buy a very high quality wireless USB mouse for twenty bucks.
You don't need to borrow one. My favorite is this one: I have a bunch,
they work on any kind of mouse pad or lack thereof, the pointer is fast
and crisp and needs no acceleration, and it's under ten bucks:

https://www.walmart.com/ip/Blackweb-Bluetrace-Weighted-Mouse/44459955

Obviously you need to wait for it to come back in stock.  Nowadays I
use only Blue Trace mice. Linux' mouse pointer handling is bad, but
with Bluetrace mice Linux performs brilliantly.

SteveT

Steve Litt
November 2019 featured book: Manager's Guide to Technical
Troubleshooting Second edition
http://www.troubleshooters.com/mgr
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Adding label to all headings automatically

2019-09-19 Thread Steve Litt
On Thu, 19 Sep 2019 10:18:55 +0100
Paul Evans  wrote:

> Hi 
> 
> I would be grateful for advice on how to enter labels automatically
> in all headings (Chapter, Section etc).
> 
> I wanted to achieve this as I am starting up a new document with
> multiple sections etc with the expectation that there will be
> multiple cross references.
> 
> I use the keyboard to start a new section or subsection. The obvious
> (!) solution seemed to be to change the relevant key shortcuts. I
> tried out the change in the mini buffer. Instead of 
> 
>  layout Section (as used for Crtl-P-2)
> 
> I tried 
> 
> command-sequence layout Section ; label-insert ; 
> 
> This opened the dialogue and pressing return completed the process,
> accepting the default label. However as I am happy with the defaults
> I tried to find a further command to add to the sequence to close and
> apply the dialog. I have found lots of options being used in similar
> cases but none does the job in this sequence. The various commands
> about paragraphs etc do not impact on the dialog and variations using
> inset-insert label seem to require explicit stating of the label
> required. 
> 
> This is my first serious venture into the world of LFUN and I assume
> I am missing something straightforward. Ultimately I can live with
> the solution I have got so far but it is frustrating not to find the
> necessary steps for a fully automatic solution.
> 
> So I have three questions:
> 
> Is there a simple command to close and apply the dialog that opens
> with the sequence I have? If not, is there a different command
> sequence that will do the job? Or, am I missing some other route or
> setting that would achieve the same ends? I am using Lyx2.3.0 with
> memoir class  for this document and running on OSX Mojave.
> 
> Many thanks
> 
> Paul Evans

The first thing that I think of when confronted with this question is
to make an AWK or Python program to go through the LyX file and add an
intelligently named label to each heading that doesn't yet have a
label. Such a program would probably take 1 to 4 seconds to run,
depending on the size of the LyX file.

Obviously, you'd need to close the document in LyX before running the
external program on it.

SteveT

Steve Litt
Author: The Key to Everyday Excellence
http://www.troubleshooters.com/key
Twitter: http://www.twitter.com/stevelitt



Re: Configuration of LyXHTML

2019-08-15 Thread Steve Litt
On Mon, 12 Aug 2019 07:28:27 +
Baris Erkus  wrote:

> On 12-Aug-19 4:48 AM, Steve Litt wrote:
> > On Sat, 10 Aug 2019 14:42:40 -0300
> > Rudi Gaelzer  wrote:
> >  
> >> I have just tested LyXHTML with a complex document (lots of childs,
> >> cross- references, listings, etc) and found that the result is
> >> fairly good. However, all the files that were generated were
> >> stored in the same directory as the sources.
> >> Is there a way to configure LyXHTML to change the following:
> >> 1. Write the files in another directory.
> >> 2. Color of the items in TOC.  They are black by default.  Can I
> >> change the color?
> >> 3. Using the "Fancy Colored Boxes" module.  I inserted a Custom
> >> Color Box in the master document and the configuration of said
> >> custom box was rendered at the top of the xhtlm page.  That
> >> configuration should not have been printed. 4. Also using the
> >> "Custom Header/Footerlines" module.  The field titles: "Left
> >> Header:", "Right Footer:", etc, were also included in the xhtml.
> >> They should be invisible.
> >>
> >> Any tips?  
> > My best tip for rendering HTML or ePub would be to use something
> > besides LyX.
> >
> > Lately, I've been writing a book in Asciidoctor. Once I scaffolded
> > it with a few shellscripts, it converted to *clean* and *styleful*
> > (X)HTML5: Much higher quality than anything I remember from LyX
> > converters like LyXHTML. Via Pandoc I've also gotten it to write to
> > PDF via LaTeX, although the look and quality of the PDF isn't yet
> > good enough that I'd sell the PDF version of this book.
> >
> > The array of things Asciidoctor can do is breathtaking, and I'll be
> > happy to help anyone wanting to get into Asciidoctor.
> >
> > SteveT  
> 
> Hello,
> 
> This is a comment that I have interest in. I was wondering something 
> special to bibliography. Is there a tool that can dynamically
> generate the bibliography from a given biblatex .bib database? I know
> now that I can generate my LyX file and convert to HTML, which will
> have the bibliography in it, but it would be only static text.

I wasn't clear on what you had in mind, but check this out:

https://github.com/asciidoctor/asciidoctor-bibtex

By the way, in one of my newest books, authored in Asciidoctor, I do
the citations in each chapter instead of at the end of the book. It
seems to work, at least in HTML. I'm not using bibtex because LaTeX is
only used as an intermediate file,  produced by pandoc, and
consumed by lualatex.

I have one completed book produced via asciidoctor: It's a
free-as-in-beer book called "Rules of the Happiness Highway" available
at
http://troubleshooters.com/bookstore/place2b/ptb_zx4.epub . 

I produced this eBook with asciidoctor-epub3 and a home-made 22 line
shellscript. Years ago I produced the same eBook, written in LyX, with
LyXHTM plus several hundred lines of awk and python, and my scripts
were good only for that one book. Both the LyX produced and the
Asciidoctor produced versions passed epubcheck with flying colors.

Thanks,
 
SteveT

Steve Litt 
August 2019 featured book: Twenty Eight Tales of Troubleshooting
http://www.troubleshooters.com/28




Re: Configuration of LyXHTML

2019-08-11 Thread Steve Litt
On Sat, 10 Aug 2019 14:42:40 -0300
Rudi Gaelzer  wrote:

> I have just tested LyXHTML with a complex document (lots of childs,
> cross- references, listings, etc) and found that the result is fairly
> good. However, all the files that were generated were stored in the
> same directory as the sources.
> Is there a way to configure LyXHTML to change the following:
> 1. Write the files in another directory.
> 2. Color of the items in TOC.  They are black by default.  Can I
> change the color?
> 3. Using the "Fancy Colored Boxes" module.  I inserted a Custom Color
> Box in the master document and the configuration of said custom box
> was rendered at the top of the xhtlm page.  That configuration should
> not have been printed. 4. Also using the "Custom Header/Footerlines"
> module.  The field titles: "Left Header:", "Right Footer:", etc, were
> also included in the xhtml.  They should be invisible.
> 
> Any tips?

My best tip for rendering HTML or ePub would be to use something
besides LyX.

Lately, I've been writing a book in Asciidoctor. Once I scaffolded it
with a few shellscripts, it converted to *clean* and *styleful*
(X)HTML5: Much higher quality than anything I remember from LyX
converters like LyXHTML. Via Pandoc I've also gotten it to write to
PDF via LaTeX, although the look and quality of the PDF isn't yet good
enough that I'd sell the PDF version of this book.

The array of things Asciidoctor can do is breathtaking, and I'll be
happy to help anyone wanting to get into Asciidoctor.

SteveT


More input problems with xy-pic

2019-07-19 Thread Steve Hnizdur

Hi

Following on from my last post about Lyx not allowing certain characters 
with xy-pic in math mode, I am now trying to use this MWE code to 
produce a label with an embedded linefeed.


\xymatrix{A\ar[r]^*+\txt{X\\Y}}

It should produce a label with X on top of Y. It works in an ERT fine.

The problem is with Lyx math mode. I can get over the ^ character by 
entering


A\ar[r]\sp*+\txt{XY}

but Lyx will not allow the \\ between the X and Y and so the linefeed 
doesn't work.


Is there some Lyx magic I'm missing or do I just need to ERT.

Many thanks
--

Steve Hnizdur


Re: pdfoutput user guide error

2019-07-17 Thread Steve Litt
On Wed, 17 Jul 2019 09:59:30 +0200
Jürgen Spitzmüller  wrote:


> > ! LaTeX Error: File `footnotehyper.sty' not found.
> >  
> 
> Install the LaTeX package footnotehyper. It's part both of MikTeX and
> TeXLive.

This stuff happens all the time. Like most other Linux people, I use
TeXLive, which has a program called tlmgr. So when I see something that
says:

! LaTeX Error: File `footnotehyper.sty' not found.

I right away, logged in as root, perform the following two commands:

tlmgr install footnotehyper
texhash

I'm not even sure the second command is necessary.

Anyway, the operant fact is that if any LaTeX compiler says you're
missing a file, you're probably missing a package of the same name
(minus the extension),  and if you're lucky enough to use TeXLive, you
can install it quickly with tlmgr.

One more thing about TeXLive. Once a year it needs a complete overhaul
to bring it up to the next year's code. I'll leave it to others on this
list to give the tlmgr commands to make that happen.

SteveT

Steve Litt 
July 2019 featured book: Troubleshooting Techniques
 of the Successful Technologist
http://www.troubleshooters.com/techniques


Re: Spaces in math formulae

2019-07-01 Thread Steve Hnizdur




On 01/07/2019 18:50, Paul A. Rubin wrote:

On 7/1/19 2:43 AM, Steve Hnizdur wrote:

On 01/07/2019 00:58, Paul A. Rubin wrote:

On 6/30/19 3:55 AM, Steve Hnizdur wrote:

On 29/06/2019 17:24, Paul A. Rubin wrote:

On 6/29/19 7:43 AM, Steve Hnizdur wrote:

Hi

I need to use this code

\[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d]  & 
Y\ar@{ >->}[d]\\Z \ar[r]  & W}\]


in order to move the tail of the vertical arrows away from the 
entries X and Y. This works in an ERT but when inputting in native 
LYX it strips out the important spaces in \newdir{ >} and @{ >->}. 
Is there any way to force LYX to accept these spaces.


Many thanks
I think the problem is that you named your new arrowhead " >" 
(meaning the name contains a space). Changing that to something 
else seems to fix the problem. Based on an example in the LyX 
xy-pic help file, I used a vertical bar (so the first argument to 
\newdir is "|>"). I've attached a working (for me at least) LyX file.


Paul >


Hi

Thanks for that. I had taken the code directly from the XY-pic 
User’s Guide. Now, having played with it ANY allowable LYX character 
seems to work e.g. x.


There have been other instances where LYX will not allow input of 
characters, for instance the tilde ~. I needed this in \ar@{~>}[r] 
in xy-pic to produce a squiggly arrow. I eventually forced it in by 
pasting into the maths environment. The screen shows LYX thinks 
there is a space, the code view shows a tilde, but when trying to 
input tilde from the keyboard LYX converts it to \sim which then 
throws a compile error.


Cheers


What happens if you escape the tilde (with a backslash)?



I get this

"Xy-pic error: illegal : macro:->\T1-cmd \~\T1\~ not valid."


Yeah, that one's definitely weird. I had to reverse engineer the wiggly 
arrow in the LyX xy-pic manual. It turns out that you need to use Insert 
 > Formatting > Protected Space where you want the tilde. In the math 
inset, you'll see the marker for a space, but if you look at the LyX 
code in the Code Preview pane, it will be a tilde ... plus, when you 
compile you'll see that it worked.


Paul



Yes its annoying. I achieved the right code by cutting ~> from normal 
text and pasting it into the maths environment. This seems to stop the 
shortcut mechanism changing the tilde to \sim.


--

Steve Hnizdur


Re: Spaces in math formulae

2019-07-01 Thread Steve Hnizdur

On 01/07/2019 00:58, Paul A. Rubin wrote:

On 6/30/19 3:55 AM, Steve Hnizdur wrote:

On 29/06/2019 17:24, Paul A. Rubin wrote:

On 6/29/19 7:43 AM, Steve Hnizdur wrote:

Hi

I need to use this code

\[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d]  & 
Y\ar@{ >->}[d]\\Z \ar[r]  & W}\]


in order to move the tail of the vertical arrows away from the 
entries X and Y. This works in an ERT but when inputting in native 
LYX it strips out the important spaces in \newdir{ >} and @{ >->}. 
Is there any way to force LYX to accept these spaces.


Many thanks
I think the problem is that you named your new arrowhead " >" 
(meaning the name contains a space). Changing that to something else 
seems to fix the problem. Based on an example in the LyX xy-pic help 
file, I used a vertical bar (so the first argument to \newdir is 
"|>"). I've attached a working (for me at least) LyX file.


Paul >


Hi

Thanks for that. I had taken the code directly from the XY-pic User’s 
Guide. Now, having played with it ANY allowable LYX character seems to 
work e.g. x.


There have been other instances where LYX will not allow input of 
characters, for instance the tilde ~. I needed this in \ar@{~>}[r] in 
xy-pic to produce a squiggly arrow. I eventually forced it in by 
pasting into the maths environment. The screen shows LYX thinks there 
is a space, the code view shows a tilde, but when trying to input 
tilde from the keyboard LYX converts it to \sim which then throws a 
compile error.


Cheers


What happens if you escape the tilde (with a backslash)?



I get this

"Xy-pic error: illegal : macro:->\T1-cmd \~\T1\~  not valid."


--

Steve Hnizdur


Re: Spaces in math formulae

2019-06-30 Thread Steve Hnizdur

On 29/06/2019 17:24, Paul A. Rubin wrote:

On 6/29/19 7:43 AM, Steve Hnizdur wrote:

Hi

I need to use this code

\[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d]  & Y\ar@{ 
>->}[d]\\Z \ar[r]  & W}\]


in order to move the tail of the vertical arrows away from the entries 
X and Y. This works in an ERT but when inputting in native LYX it 
strips out the important spaces in \newdir{ >} and @{ >->}. Is there 
any way to force LYX to accept these spaces.


Many thanks
I think the problem is that you named your new arrowhead " >" (meaning 
the name contains a space). Changing that to something else seems to fix 
the problem. Based on an example in the LyX xy-pic help file, I used a 
vertical bar (so the first argument to \newdir is "|>"). I've attached a 
working (for me at least) LyX file.


Paul >


Hi

Thanks for that. I had taken the code directly from the XY-pic User’s 
Guide. Now, having played with it ANY allowable LYX character seems to 
work e.g. x.


There have been other instances where LYX will not allow input of 
characters, for instance the tilde ~. I needed this in \ar@{~>}[r] in 
xy-pic to produce a squiggly arrow. I eventually forced it in by pasting 
into the maths environment. The screen shows LYX thinks there is a 
space, the code view shows a tilde, but when trying to input tilde from 
the keyboard LYX converts it to \sim which then throws a compile error.


Cheers

--

Steve Hnizdur


Spaces in math formulae

2019-06-29 Thread Steve Hnizdur

Hi

I need to use this code

\[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d]  & Y\ar@{ 
>->}[d]\\Z \ar[r]  & W}\]


in order to move the tail of the vertical arrows away from the entries X 
and Y. This works in an ERT but when inputting in native LYX it strips 
out the important spaces in \newdir{ >} and @{ >->}. Is there any way to 
force LYX to accept these spaces.


Many thanks
--

Steve Hnizdur


Re: Does LyX have an xhtml *import*?

2019-06-17 Thread Steve Litt
On Mon, 17 Jun 2019 15:14:56 +0200
Dr Eberhard Lisse  wrote:

> There are some mentions on google about converting XHTML to Markdown.
> That you can get into any form of LyXable TeX with Pandoc.
> 
> el

Hi el,

I want to make sure I understand you...

Are you saying that any XHTML style I create can be represented, as a
style and not as an appearance, in Markdown? How?
 
SteveT

Steve Litt 
June 2019 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive


Does LyX have an xhtml *import*?

2019-06-15 Thread Steve Litt
Hi all,

Does LyX have an xhtml import? If so, does it keep styles as styles, or
does it try to apply appearances to those styles on the way in?

Thanks,

SteveT

Steve Litt 
June 2019 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive


Re: foldable sections

2019-05-28 Thread Steve Litt
On Mon, 27 May 2019 18:16:19 +0200
Roberto  wrote:

> Hi, is there a way sections can be made foldable? I am thinking
> something similar to the folding it can be attained by clicking the
> handle of boxes such as the LyXNote or the GrayedOut.
> Thanks for your inputs.
> Roberto

That's an excellent idea!

Vim and VimOutliner have section folding, and it's very, very handy.

Of course, I have no idea how difficult it would be to implement.

SteveT

Steve Litt 
June 2019 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive


Re: One more thing about LyX compile speed

2019-04-26 Thread Steve Litt
On Fri, 26 Apr 2019 07:00:16 +
Baris Erkus  wrote:

> On 25-Apr-19 2:55 PM, Steve Litt wrote:
> > Hi all,
> >
> > My 377 page "Troubleshooting Techniques of the Successful
> > Technologist", compiled from a shellscript that starts by adding
> > customization material and ends by displaying the finished PDF,
> > takes 18 seconds on my 16GB RAM, AMD A6-6400K APU with Radeon(tm) HD
> > Graphics, dual core at 3.9Ghz.
> >
> > This document consists of one LyX file. I've always used one LyX
> > file and never a master/children document setup. The reasons I
> > never went master/children are:
> >
> > 1. At the >500 page docs I do, a single file compiles well and
> > presents no problems with viewing or editing.
> >
> > 2. I don't split books between authors.
> >
> > 3. During the many years I've been on this list, I've seen a heck
> > of a lot of people posting strange problems with master/children
> > document setups.
> >
> > I don't know whether compiling single file would be significantly
> > faster, significantly slower, or for practical purposes equal to
> > master/children. But I imagine it would take about 1/2 hour to find
> > out, simply by copying the master to a different filename, and then
> > replacing each child reference with that child's LyX text.
> >
> > Doing it this way leaves the original master/children version
> > untouched, so if there's no difference it can continue to be used.
> > If the one-file method is significantly faster, a regression test
> > and a few renames enable the one-file method to be used into the
> > future, with the master/children as a backup.
> >
> > SteveT  
> 
> I wonder the content of the document. Do you have many equations, 

Zero.

> figures, 

Ten or so.

> cross-references, 

A few. Plus a very extensive index.

> citations etc?

I don't remember, but certainly less than ten.

> Do you turn the instant 
> preview on?

No.

SteveT


Re: One more thing about LyX compile speed

2019-04-26 Thread Steve Litt
On Thu, 25 Apr 2019 21:30:54 - (UTC)
Guenter Milde  wrote:

> On 2019-04-25, Steve Litt wrote:
> > Hi all,  
> 
> > My 377 page "Troubleshooting Techniques of the Successful
> > Technologist", compiled from a shellscript that starts by adding
> > customization material and ends by displaying the finished PDF,
> > takes 18 seconds on my 16GB RAM, AMD A6-6400K APU with Radeon(tm) HD
> > Graphics, dual core at 3.9Ghz.  
> 
> I suppose you don't use LuaTeX.

No. It turns out that some time in the past, I changed my shellscript
to do:

lyx --export pdf4 $1.lyx

A look into configure.py indicates that pdf4 means Xetex, and pdf5
means LuaTeX. So I changed between pdf4 and pdf5 a few times, and it
takes about 15.5 seconds for pdf4, and 24 seconds for pdf5 (LuaTeX).

My shellscript does more than just export from LyX. It first puts
customer info into the LyX file itself, then it compiles LyX to PDF,
then it checks the PDF metadata to make sure everything's OK, and then
it displays the PDF file, finishing after I quit out of mupdf.

SteveT


One more thing about LyX compile speed

2019-04-25 Thread Steve Litt
Hi all,

My 377 page "Troubleshooting Techniques of the Successful
Technologist", compiled from a shellscript that starts by adding
customization material and ends by displaying the finished PDF, takes
18 seconds on my 16GB RAM, AMD A6-6400K APU with Radeon(tm) HD
Graphics, dual core at 3.9Ghz.

This document consists of one LyX file. I've always used one LyX file
and never a master/children document setup. The reasons I never went
master/children are:

1. At the >500 page docs I do, a single file compiles well and presents
   no problems with viewing or editing.

2. I don't split books between authors.

3. During the many years I've been on this list, I've seen a heck of a
   lot of people posting strange problems with master/children document
   setups.

I don't know whether compiling single file would be significantly
faster, significantly slower, or for practical purposes equal to
master/children. But I imagine it would take about 1/2 hour to find
out, simply by copying the master to a different filename, and then
replacing each child reference with that child's LyX text.

Doing it this way leaves the original master/children version
untouched, so if there's no difference it can continue to be used. If
the one-file method is significantly faster, a regression test and a
few renames enable the one-file method to be used into the future, with
the master/children as a backup.

SteveT


Re: Quicker build

2019-04-24 Thread Steve Litt
On Tue, 23 Apr 2019 14:54:10 +0200
Daniel  wrote:

> On 23/04/2019 14:09, Steve Litt wrote:
> > On Sat, 20 Apr 2019 15:51:11 +0200
> > Daniel  wrote:
> >   
> >> Hi,
> >>
> >> My manuscript takes very long to fully compile, a couple of
> >> minutes.  
> > 
> > We don't know how long it is. If it's a thousand pages, 2 minutes
> > sounds about right on my computer.  
> 
> I did not have the computer I am working on available when I wrote
> this. It takes about 5 minutes for 200 pages.

In another post you said your 5 minute computer is a Intel m3 from 2015
(900 MHz, 4 GB RAM).


[snip]

> > Why not try a shellscript (or if you Windows, batch file or
> > powerscript) to build it. Also, just for fun, try using LuaTeX
> > instead of LaTeX, and see if there are changes. Note that to use
> > LuaTeX, you might need to change a few settings in your
> > manuscript.  
> 
> Yes, I am on windows. I don't know how to create a batch file that
> does the job.
> 
> LuaTeX is still typesetting my document. Seems to take ages.

I meant LuaLaTeX. Try pdfLaTeX also.

But here's the thing. You have an ancient, anemic machine, which spends
much of its puny power running Windows. You don't know how to make a
batch file or powerscript, and don't seem amenable to learning how to
do so. In another of your posts you seem lukewarm about compiling
subdocument combinations to try to profile where the slowdown is. You
say you can't reduce your huge number of references. 

Frankly, this sounds like a problem of your priorities. You're not
willing to spend a few hundred on a modern 3Ghz 8GB machine, you won't
install minimal Linux with a lightweight window manager to get the most
out of your m3, you won't whittle it down to a Minimal Working Example
whose compile time is insane compared to its size, you don't know and
won't learn batch files/powerscript, you refuse to alter your document
either as a solution or as a diagnostic test. You ask others incomplete,
ambiguous questions with only partial context. This problem just isn't
worth solving to you, and for some reason you think it will be worth it
to others to solve your problem.

Speaking for myself, I'm usually willing to help, but in the end
analysis, this is your problem, not mine. If you want *my* help, you're
going to need to take over the busywork, reserving my input to helpful
hints. 

SteveT


Re: Quicker build

2019-04-23 Thread Steve Litt
On Sat, 20 Apr 2019 15:51:11 +0200
Daniel  wrote:

> Hi,
> 
> My manuscript takes very long to fully compile, a couple of minutes.

We don't know how long it is. If it's a thousand pages, 2 minutes
sounds about right on my computer.

> I have already tried to only compile parts of it but there was not
> much difference.

There's your first hint. One of the parts you tried compiling is taking
the majority of the time. Compile the other parts and see if they go
faster. If so, find which part takes all the time, then what section of
that part, etc.

> 
> Since LaTeX is running several rounds in order to get all the
> references and such right, is there a way to get LyX to run less
> rounds?

I'm pretty sure you need exactly two runs of LaTeX.

Why not try a shellscript (or if you Windows, batch file or
powerscript) to build it. Also, just for fun, try using LuaTeX instead
of LaTeX, and see if there are changes. Note that to use LuaTeX, you
might need to change a few settings in your manuscript.

SteveT


Re: Module allocating variable in preable

2019-02-26 Thread Steve Litt
On Tue, 26 Feb 2019 11:22:37 -0500
Richard Kimberly Heck  wrote:

> Please reply to the list. Please also do not top post, but append your
> response where it naturally goes.

And one more thing: Delete all irrelevant quoted text. Before your final
response replace any deleted text with [snip]. After your final
response, delete all quoted text.

Doing these things: The result will be clear communication with no
ambiguity. In this particular (long) thread, someone top-posted:
"Sorry, but I don't see how this solves the problem." To what does
"this" refer? We need to parse the whole email and guess. If the same
text were entered directly below what "this" referred to, everything
would be crystal clear.

SteveT


Re: Module allocating variable in preable

2019-02-25 Thread Steve Litt
On Tue, 26 Feb 2019 01:35:52 -0500
Christian  wrote:

> Sorry, but I don't see how this solves the problem. This solution
> assumes that the variable allocation is always fixed, so that loading
> the module would be equivalent to have a set of variables
> automatically allocated by "% some stuff to go in the preamble". This
> is not what I was aiming for. The idea is to create some LyX layout
> (environment, or similar, like "Author", or "Abstract"). Is it
> possible to do it?

If all you want to do is define an environment within a layout, here's
how I do it:


Preamble
\newenvironment{storyL}{
\par
\begingroup
\leftskip 0.4in\rightskip 0.4in
\it
\noindent{.\dotfill{}.\par}
%~\vskip -0.3in
}{
%~\vskip -0.05in
\par\noindent{.\dotfill{}.\par}
\endgroup
%~\vskip 0.0in
~\\
}

%%% Other LaTeX stuff necessary for LyX environments
%%%  and character styles

EndPreamble

Style Story
  LatexType Environment
  LatexName storyL
  LeftMargin"MM"
  RightMargin   "MM"
  ParSkip   0.7   
  ParSep0.7  
  TopSep0.7 
  BottomSep 0.7

  Font
   Series   Medium 
   ShapeItalic
   Size Normal
  EndFont
End


The preceding is directly from the layout file for my book, "Key to
Everyday Excellence." I made a lot of appearance modifications for both
LyX's authoring environment (Story) and the output appearance (StoryL).
It could be much simpler. The main thing is that the LyX environment be
LateXType "Environment"  and have a LatexName identical to a LaTeX
environment coded between a Preamble and an EndPreamble.

SteveT


Re: Question: how to run Reconfigure without GUI

2019-02-05 Thread Steve Litt
On Tue, 5 Feb 2019 13:49:31 -0500
Scott Kostyshak  wrote:

> On Tue, Feb 05, 2019 at 12:35:55PM +0200, Dr Eberhard Lisse wrote:
> > Scott,
> > 
> > this is very helpful for my alias file on the Mac.
> > 
> > function lyxconfigure
> > {
> > pushd ~/
> > python -tt
> > "/Applications/LyX.app/Contents/Resources/configure.py" popd
> > }  
> 
> Nice. Thanks for sharing I actually never saw that trick for saving
> the directory in a bash function (I've only used pushd and popd
> interactively). I am used to saving "$(pwd)" to a variable and then
> "cd" back to it. I like your trick instead.

Beware that pushd and popd are bash-only, and do not appear in dash or
any /bin/sh one should be using for shellscripts. I'm of the opinion,
especially after the Heartbleed fiasco, that bash is just too big an
attack surface to use for shellscripts.

In more lightweight shells, it's done more like this:

#!/bin/sh
orgdir=`pwd`
cd /home/you/application/directory
./my_special_application arg1 arg2 arg3
cd $orgdir

SteveT
-- 
Steve Litt 
January 2019 featured book: Troubleshooting: Just the Facts
http://www.troubleshooters.com/tjust


  1   2   3   4   5   6   7   8   9   10   >