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


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: 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


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: 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


Re: Would LyX be a lot more popular if it were marketed as a note taking app?

2019-01-11 Thread Steve Litt
On Thu, 10 Jan 2019 16:50:13 -0500
Amir Michail  wrote:

> I find it really nice to use for that purpose. And there’s no need to
> install TeX and/or export to LaTeX if all you are using it for is to
> take notes.
> 
> Anyone else think LyX is great for taking notes and should be
> marketed as such?

No. VimOutliner (VO) is a much faster and handier note taking device,
and it's easy to write a VO to LyX converter so you can turn your VO
outline into the structure of an article or a book.

For those wanting the ultimate in outlining, there's Leo, which has
gone where no other outliner has gone before. Not as fast in authoring
as VO, but very complete, and probably as fast for notetaking as LyX.
 
SteveT

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


Re: Breaking long URL

2019-01-03 Thread Steve Litt
On Wed, 2 Jan 2019 20:10:07 +0100
Léo Rebetez  wrote:

> Hi,
> 
> I'm new on lyx, I'll use it mainly for publishing books. I'm
> searching how to break a too long url like this one:
> 
> http://www.guardian.co.ukuk2012jun12policestopandsearchblackpeople

There are two different accommodations:

1. Breaking other lines to accommodate a well-behaved URL
2. Breaking the URL itself

On my computer with LyX 2.3.1, a long URL walks beyond the right margin
if I usepackage{hyperref}, which of course we all do. However, if I put
\sloppy at the end of the paragraph with the URL, that paragraph breaks
lines so as to put the whole URL on a line without busting the right
margin (xetex), or breaks the whole URL itself (LuaTeX). Then you put
\fussy and the end of the next paragraph to bring back the nice
typesetting you expect from LyX.

If the result is too ugly, you might be able to make it a little bit
better by cutting down on the % \tolerance that \sloppy implies:

\sloppy\tolerance=1000%

The point is, *anything* is better than letting a URL or any other text
walk off the right edge of the paper, and these techniques prevent that
unless the URL is longer than the paper is wide. Getting it to actually
be pretty is lt as an exercise to the readder , but never forget
legible trumps pretty every time.

I'm attaching a 2.8K MWE (Minimum Working Example) with the preceding
accommodations.
 
SteveT

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


steve.lyx
Description: application/lyx


Re: Use LARGE font size for entire document

2018-12-11 Thread Steve Litt
On Mon, 10 Dec 2018 11:14:04 -0800 (PST)
Rich Shepard  wrote:

>I tried placing ERT boxes with \LARGE{ at the beginning of the
> document and } at the end of the document but it doesn't seem to
> affect the compiled font size. What is the recommended way to have a
> document with body text larger than 12 point?
> 
> Rich
> 

Standard document classes Book, Report, Article and Letter all have
versions that are "with extra font sizes". Choose one of those extra
font size document classes and you have what you need.
 
SteveT

Steve Litt 
December 2018 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


Re: LyX & svg files

2018-11-26 Thread Steve Litt
On Mon, 26 Nov 2018 14:07:54 +
Bernt Lie  wrote:

> I'm a little confused. I have LyX 2.3.1 installed on two computers,
> both running 64bit Windows 10, latest update, and the samve version
> of Inkscape. Some arrows show up with "broken neck" on one computer,
> but not on the other. I sync the LyX documents and the figures among
> my computers using OneDrive.
> 
> On the computer where the "broken neck" persists, if I open the
> drawing in Inkscape, ungroup elements, and group them again before
> saving the drawing, then the drawing becomes ok. Puzzling. --
> Occationally, the arrows are "broken" also in Inkscape. This
> typically happens if I have slanted lines, typically different from a
> multiple of 45 degrees, and sometimes if I select several lines and
> chose arrow on all lines simultaneously. So probably there is
> something flaky in Inkscape, too.

Something I always do, and it might help you too. Before including any
Inkscape-constructed image in LyX or HTML, I always
File->Clean_up_document and File->Save_as->Plain_SVG. This tends to get
all the "inkscapisms" out of the image. Whenever I have problems with
text not fitting in boxes in the ultimate viewer (a web page or PDF), I
always convert text to curves and then once again clean up and save as
plain.

SteveT

Steve Litt
November 2018 featured book: Manager's Guide to Technical
Troubleshooting Brand new, second edition
http://www.troubleshooters.com/mgr


Re: LyX on iPad

2018-11-08 Thread Steve Litt
On Tue, 6 Nov 2018 18:51:50 +0200
Dr Eberhard Lisse  wrote:

> On 2018-11-05 23:45 , Steve Litt wrote:

> > Retina display and iOS and all this Apple compatibility is nice, but
> > I'll repeat, it's not 2008 and PDF is no longer the only game in
> > town, and I think priority should be placed on finishing what was
> > started in July of 2008.  
> 
> So you are joing the development team?

A timely question. I've joined the development team, just not the *LyX*
development team.

Instead, I'm developing Stylz, a native format dedicated to fast
authoring via an editor, dedicated to easily enabling the author to
declare and use custom styles, and dedicated to be exportable, *with
semantic completeness and correctness*, to any conceivable output
format.

Stylz is new and raw, but right now it does an excellent job of
outputting HTML and ePub. The PDF export (via Plain TeX plus a small
handful of addons) currently gives wrong results, and I need help on
the PDF export.

Unlike LyX' "HTML export", Stylz' style to appearance conversion
happens via style files such as CSS for HTML and TeX macros for PDF.
Styles are preserved to the very last moment, and Style to appearance
conversion is different on each output format. So, for instance, an
emphasis character style could be italic in PDF, but straight and
backgrounded by light yellow in HTML or ePub.

To assist the author in style definitions, Stylz includes a style
lister that lists every style used in a document. It also includes a
CSS boilerplate maker that makes boilerplate CSS for every style in the
document. I'll probably do the same thing for boilerplate Plain TeX
style-implementing macros.

Like all software, Stylz fills a niche. If you know for sure your
document will never need to be in a format other than PDF/paper, use
LyX. As many have noted in this thread, LyX is dedicated to being a
front end to LaTeX for the purpose of PDF/paper output. If you want
some degree of choice in output format, including PDF and HTML, and
your output needs are so simple as not to require custom styles, use
asciidoc. And if you need exportability to PDF, HTML, ePub, and
anything in the future for which a Stylz export has been authored, and
you also need to make and use customized styles, Stylz fills your needs.

Stylz works as follows: stylz2xml parses the author-friendly Stylz
format and converts to XML, from where anything can be done. The XML
has *all* information contained in the Stylz file, with absolutely no
regard to its own viewability. xml2html converts the XML to HTML. From
there, html2epub converts it to ePub. It takes less than a second for
my dual core AMD with 16GB RAM to convert all the way from stylz to
ePub,  and as I mentioned, for the most part the produced ePub is ready
for prime time.

Where I need help is xml2tex, or, if you choose, perhaps a pandoc or
XSLT solution if it's reasonably simple and well documented and
commented. I want to avoid using LaTeX in the conversion because it
would require too much "other peoples code", increasing the error
surface, and making troubleshooting harder.

I'm only one guy, wedging Stylz development between my other activities
and responsibilities, so in most cases I did what seemed the quickest,
so Stylz is a mix of Python, awk, sed, and /bin/sh. Python has some
great XML parsers, which is what I really needed. I anticipate the
license will be either GPL2 or Expat
(https://directory.fsf.org/wiki/License:Expat).

So anyone interested in writing the Stylz XML to PDF converter, please
get in touch with me.

SteveT

Steve Litt
November 2018 featured book: Manager's Guide to Technical
Troubleshooting Brand new, second edition
http://www.troubleshooters.com/mgr


Re: LyX on iPad

2018-11-06 Thread Steve Litt
On Mon, 5 Nov 2018 18:55:34 -0600
Christopher Menzel  wrote:

> I might well just be naive but I'm not getting this line of criticism
> at all. LyX has always been a frontend to LaTeX, right? That's it's
> raison d'etre. It's still the only game in town to that end, and it's
> fabulous at it. LaTeX creates PDFs. So you use LyX to create PDFs.
> Seems to me if you're using LyX with the intention of getting an ePub
> or mobi doc, you're expecting it to do something it wasn't — by its
> nature — designed for. You want ePub or mobi, use something else.

True that. Until you want to offer the same book in both PDF and ePub
formats. What then? Make parallel changes on two separate source files?


SteveT


Re: LyX on iPad

2018-11-06 Thread Steve Litt
On Tue, 6 Nov 2018 11:05:39 +1100
Alan Tyree  wrote:

> Hi Steve,
> Could you elaborate a bit on your pandoc/markdown comments? What kind
> of formatting is it that you find difficult/deficient. My impression
> is that it creates pretty clean HTML so that the formatting is via
> CSS.

Hi Alan,

Show me. I'd love to have my mind changed. Show me code to produce
**semantic,styled** HTML from LaTeX or LyX via pandoc.

As far as Markdown, if you're writing a simple fiction book with no
appearance needs beyond bold, underline and italic, then yeah, Markdown
and Asciidoc are both sufficient. My needs surpass that.

[snip]

> 
> Of course, I wouldn't start from LyX/LaTeX to produce these things
> since the pandoc LaTeX -> HTML usually requires a lot of massaging.

Precisely my point. There should be no massaging. Run one command on
the LyX file, output a semantically correct ePub or xhtml or html5
that's well formed xml.


> 
> Cheers,
> Alan
> 
> On Tue, 6 Nov 2018 at 08:46, Steve Litt 
> wrote:
> 
> > On Mon, 5 Nov 2018 00:36:13 +0200
> > Dr Eberhard Lisse  wrote:
> >  
> > > Steve,
> > >
> > > I fundamentally disagree about the relevance.
> > >
> > > LyX is a front end for LaTeX, not a document format. And it is a
> > > FANTASTIC front end, which can be twsited to do a lot of
> > > things :-)-O  
> >
> > Sure, but LaTeX isn't the only game in town the way it was 10 years
> > ago (unless you took Docbook seriously a decade ago). Most new
> > books are ePubs or derivative mobis or whatever.
> >
> >  
> > >
> > > pandoc can produce an epub from (reasonable) LaTeX (exported from
> > > LyX), which kindlegen can translate into mobi.  
> >
> > Yeah. I've had hundreds of people recommend pandoc and XSLT and the
> > like. Have *you* ever successfully used pandoc to create HTML or
> > ePub or mobi formatted to your desires? If you have, you're one in
> > five hundred. Everyone recommends Pandoc, but finding people who
> > have used it is like finding a needle in a haystack, and when you
> > find such people and ask them how to do the conversion, they point
> > you to Internet sites with procedures that make installing Gentoo
> > or Arch a one click process.
> >
> > By the way, same thing goes for Asciidoc, Asciidoctor, Markdown, and
> > Multimarkdown. Evvverybody recommends it, but few have used it to
> > make books in which the author declares and uses styles.
> >  
> > > For LaTeX there is lwarp at
> > >
> > >   https://ctan.org/pkg/lwarp
> > >
> > > which also looks interesting.  
> >
> > I wish I had a dime for every hour I spent, on solutions to this
> > problems, that "look interesting". 99% of them turn out to be
> > converters whose first step is to convert your styles into
> > appearance, guaranteeing garbaged up output.
> >
> >  
> > >
> > > XML would be a great step, and not only for epub. But that would
> > > be a fundamental change, and who's going to do it?  
> >
> > And that's where the rubber meets the road. Look back to the thread,
> > starting on 7/22/2008, subject "Progress on the MS Word to LyX
> > conversion". In that thread, against my warnings, by the way,
> > several top Lyx developers promised an XML native format for LyX
> > 1.7x. Not pidgeon XML. Not almost XML. Not halfassed XML. They
> > promised XML. With a DTD, no less.
> >
> > Now my position was that XML is much harder to parse with Unix core
> > utilities, so I was against it. But at least I figured that if it
> > went XML, I could find an XML parser to do what I had been doing.
> > With much more difficulty. But doable.
> >
> > But they went only half way, harming the inherent coreutils
> > parsability without enabling the file to be processed by an XML
> > parser.
> >
> > If memory serves me, 1.6 already had some XML-ish changes to the
> > native format, I don't remember a 1.7, and 2.0 introduced the
> > pidgeon XML we know today. Over 7 years have elapsed since 2.0's
> > introduction, over a decade has elapsed since it was decided to
> > have a well formed XML native format validated with a DTD.
> >
> > Retina display and iOS and all this Apple compatibility is nice, but
> > I'll repeat, it's not 2008 and PDF is no longer the only game in
> > town, and I think priority should be placed on finishing what was
> > started in July of 2008.
> >
> > SteveT
> >  
> 
> 



-- 
SteveT

Steve Litt 
September 2018 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


Re: LyX on iPad

2018-11-05 Thread Steve Litt
On Mon, 5 Nov 2018 00:36:13 +0200
Dr Eberhard Lisse  wrote:

> Steve,
> 
> I fundamentally disagree about the relevance.
> 
> LyX is a front end for LaTeX, not a document format. And it is a
> FANTASTIC front end, which can be twsited to do a lot of things :-)-O

Sure, but LaTeX isn't the only game in town the way it was 10 years ago
(unless you took Docbook seriously a decade ago). Most new books are
ePubs or derivative mobis or whatever.


> 
> pandoc can produce an epub from (reasonable) LaTeX (exported from
> LyX), which kindlegen can translate into mobi.

Yeah. I've had hundreds of people recommend pandoc and XSLT and the
like. Have *you* ever successfully used pandoc to create HTML or ePub
or mobi formatted to your desires? If you have, you're one in five
hundred. Everyone recommends Pandoc, but finding people who have used
it is like finding a needle in a haystack, and when you find such
people and ask them how to do the conversion, they point you to
Internet sites with procedures that make installing Gentoo or Arch a one
click process.

By the way, same thing goes for Asciidoc, Asciidoctor, Markdown, and
Multimarkdown. Evvverybody recommends it, but few have used it to make
books in which the author declares and uses styles.

> For LaTeX there is lwarp at
> 
>   https://ctan.org/pkg/lwarp
> 
> which also looks interesting.

I wish I had a dime for every hour I spent, on solutions to this
problems, that "look interesting". 99% of them turn out to be
converters whose first step is to convert your styles into appearance,
guaranteeing garbaged up output.


> 
> XML would be a great step, and not only for epub. But that would be a
> fundamental change, and who's going to do it?

And that's where the rubber meets the road. Look back to the thread,
starting on 7/22/2008, subject "Progress on the MS Word to LyX
conversion". In that thread, against my warnings, by the way, several
top Lyx developers promised an XML native format for LyX 1.7x. Not
pidgeon XML. Not almost XML. Not halfassed XML. They promised XML. With
a DTD, no less.

Now my position was that XML is much harder to parse with Unix core
utilities, so I was against it. But at least I figured that if it went
XML, I could find an XML parser to do what I had been doing. With much
more difficulty. But doable. 

But they went only half way, harming the inherent coreutils parsability
without enabling the file to be processed by an XML parser.

If memory serves me, 1.6 already had some XML-ish changes to the native
format, I don't remember a 1.7, and 2.0 introduced the pidgeon XML we
know today. Over 7 years have elapsed since 2.0's introduction, over a
decade has elapsed since it was decided to have a well formed XML
native format validated with a DTD.

Retina display and iOS and all this Apple compatibility is nice, but
I'll repeat, it's not 2008 and PDF is no longer the only game in town,
and I think priority should be placed on finishing what was started in
July of 2008.

SteveT


Re: LyX on iPad

2018-11-04 Thread Steve Litt
On Fri, 2 Nov 2018 21:48:56 -0700
"Daniel Kian Mc Kiernan (the best Daniel of the bunch)"
 wrote:

> On 11/2/18 9:57 AM, Steve Litt wrote:
> > 
> > Perhaps this is why LyX becomes less relevant every year.   
> 
> I don't think that peer-reviewed academic publication is going to
> vanish anytime soon; and, over about the last decade, 

Exactly! A decade ago LyX was about a lot more than peer-reviewed
academic publications, and 15 years ago it was safe to assume that
paper and PDF were enough output formats. More and more, LyX is
relegated to peer-reviewed academic publication, blissfully ignorant
that phones and tablets use flowing text documents like, and
convertable from, ePub. 

SteveT


Re: LyX on iPad

2018-11-02 Thread Steve Litt
On Thu, 1 Nov 2018 19:41:00 + (UTC)
Anders Host-Madsen  wrote:

> Perhaps beating a dead horse, but I really wish there would be a LyX
> for iPad. 

Perhaps this is why LyX becomes less relevant every year. Here, in
2018, LyX *still* cannot produce an semantically reasonable ePub,  and
even the semantically unreasonable ePubs require tons of human
intervention. LyX can't produce docs easily readable on iPads and other
portable devices because no ePub (and thus no Kindle). A decade ago it
was decided to make the (then) easily parsable LyX native format into
XML, but the transition stopped halfway, so it's unparseable by XML
parsers, and yet it's miserable to parse with a Python program.

And all this while, where's the priority? LyX for Retina displays. LyX
for iPad (like anyone is capable of pounding out 2K words per day with
an iPad). All sorts of lilly-gilding, but LyX still can't do a
reasonable job of exporting the format used by portable devices, and
LyX' native format is still a jumble unparsable by an XML parser.

I have nothing against Apple afficianados getting their every dream,
but if there's not the programmer-power to do everything, then for gosh
sakes, first make LyX native format truly XML and produce a 1 click ePub
converter that creates **semantic** ePubs.

SteveT


Re: Replace list x by list y

2018-10-11 Thread Steve Litt
On Thu, 11 Oct 2018 13:22:19 +0200
Daniel  wrote:

> Hi,
> 
> Is there a way to replace let's say all enumerate lists by itemize
> lists?

Why in the WORLD would you want to do that? Were you mistaken that some
lists needed numbers? Or do you just like the look of itemize better?
If the latter, tweak the appearance of the of enumerate to look how you
want.
 
SteveT

Steve Litt 
September 2018 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


Re: New CC Book about LyX (PDF)

2018-10-03 Thread Steve Litt
On Wed, 3 Oct 2018 11:19:05 -0400
Scott Kostyshak  wrote:

> On Wed, Oct 03, 2018 at 03:59:44AM -0400, Steve Litt wrote:
> 
> > but LyX' html and xhtml exporters
> > export pidgeon xhtml and html that requires all sorts of human
> > intervention and garbage removal.  
> 
> Have you reported bugs for this or are all of the bugs covered by
> existing reports? LyX HTML export is slowly improving, especially when
> bugs with minimal examples are reported.

I reported them on this list, many, many times, and was shouted down as
people priortized just-right rendering of Apple Retina Displays over
any sane way of LyX authoring 21st century flowing text books (ePub,
for instance) without repeated human intervention.

I was told that the xhtml and html export mechanisms were "just fine"
for ePub. They use different styles for the first paragraph after a
heading, for gosh sakes. They almost completely converted styles to
inline appearance codes so I couldn't customize my ePubs via CSS. The
HTML they put out wasn't WYSIWYM, it was 100% pure fingerpainting. The
files were therefore HUGE.

Understanding that xhtml/html exports would never be adequate for ePub,
I begged for the transition of LyX's language to well-formed XML to be
completed so I could write my own LyX to ePub converter. No. Too much
work.

After years of begging and pleading, I created Stylz to author both PDF
and ePub. I am writing two different books written in Stylz.
It's not easy for one developer to develop an authoring tool and write
books at the same time, but I'm doing it. Stylz already renders HTML
beautifully, does ePub pretty darn well, but its rendering in PDF is
defective and needs several repairs.

I had given up on LyX, because it's important I be able to have one
document render both PDF and *high quality* ePub, without human
intervention. If lwarp can *correctly and semantically* export LyX to
HTML5 *as XML*, I might write the HTML5 to ePub converter and return to
the LyX fold.

But if you're asking me to report the inadequacies of LyX' html and
xhtml exports for the purpose of ePub, I've done my time. And nobody
cared. And I've moved on.
 
SteveT

Steve Litt 
September 2018 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


Re: New CC Book about LyX (PDF)

2018-10-03 Thread Steve Litt
On Wed, 3 Oct 2018 08:57:47 +0200
Ricardo Berlasso  wrote:

> El mié., 3 oct. 2018 a las 1:55, Dr Eberhard Lisse ()
> escribió:
> 
> > Ricardo,
> >
> > have you tried to use lwarp on this to make a Kindle out of this?
> >  
> 
> I did not know about that package. Really interesting! Now I need to
> explore it!

Ricardo,

Please keep us all apprised of your work using lwarp to convert
LyX-derived LaTeX to ePub (and then to Kindle if required). I don't
have a whole lot of time but I might be able to help. I once built a
LyX-derived xhtml to ePub converter, but LyX' html and xhtml exporters
export pidgeon xhtml and html that requires all sorts of human
intervention and garbage removal. They convert styles to appearances
way too early.

I have a fairly complete Stylz to ePub converter that works pretty well.

So if lwarp's special ePub version of HTML is semantically sound, this
might be a possibility. See chapter 10 of
http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/lwarp/lwarp.pdf

 
SteveT

Steve Litt 
September 2018 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


Re: New CC Book about LyX (PDF)

2018-10-02 Thread Steve Litt
On Mon, 1 Oct 2018 21:09:24 +0200
Ricardo Berlasso  wrote:

> Hi, list!
> 
> I've finally translated my book about LyX, XeTeX and OpenType to
> (something similar to) English. I'm not a native English speaker, so
> be aware that there will be grammar errors! Lots of them!
> 
> If you find something that need correction, please let me know! I
> hope you enjoy reading it as much as I enjoyed writing it.
> 
> Announcement:
> https://frommindtotype.wordpress.com/2018/10/01/announcement-lyx-the-other-way-of-writing/
> 
> Project Page:
> https://frommindtotype.wordpress.com/lyx-book/

Very, very nice! I wish this book had been available in 2001 --- it
would have made my entry into LyX much easier. Today, I know
everything, having written 8 books in LyX, so I don't need to read your
book. 

Well, except for the entirety of your Chapter 8, which today I know
nothing about, but in a few days will be an expert in thanks to your
book. And 4.1.4, Math, which will improve my very shaky LyX math
skills. And OpenType, which I didn't know existed until skimming your
book.

The book is aesthetically beautiful, something I usually don't care
about. But in the case of your book, it proves you eat your own dog
food (American idiom for using what you claim authority over), and do
it well.

Speaking of American idioms, the fact that you're a non-native English
speaker was almost impossible to detect. In no place did I find text
that was ambiguous, unclear, or not understandable. The very few places
where your non-English origins showed through made the book more
interesting and kept me on my toes, so I didn't start skipping over
huge sections of text. I'd recommend you not try to Anglicize the book
further: It's very readable to a monolingual American, and I'd imagine
Brits and Aussies and Canadians and New Zealanders and South Africans
and Liberians and people from Belize would have the same opinion.

The book's layout and organization make it appropriate for those new to
LyX to read straight through, while LyX cognoscenti can skip around to
grab what they haven't learned yet.

N I C E   B O O K !

=
NOTE: I give you permission to use any or all parts of this email
in the marketing of this book. I have not been given any payment or
consideration to write my opinions.
=====

SteveT

Steve Litt 
September 2018 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


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

2018-09-14 Thread Steve Litt
On Fri, 14 Sep 2018 12:56:25 -0700
Hal Kierstead  wrote:

> > 
> > True. I don't think that we have as a goal for LyX users never to
> > learn LaTeX. In fact, I usually advocate learning LaTeX well before
> > using LyX, because I agree with you that eventually the user will
> > need to learn it anyway.
> > 
> > 
> > Scott  
> 
> I think people should be encouraged to use LyX to learn LaTeX. The
> code window is very useful! In a collaborative world, it is
> impossible to only use LyX, but you can get started only using LyX.
> For instance students should be encouraged to use LyX for homework
> problems, and then their theses, and then editing other peoples
> LaTeX, etc.
> 
> Hal

I'd add to learn Plain-TeX too. Plain-TeX is much more straightforward,
has less exceptions and depends much less on huge arrays of packaged
addons. I can take Plain TeX, with csplain, eplain, kpfonts plus
cs-schola, plipsum, and opmac, and create almost anything except a
colored background (that's the one thing that still eludes me).

Yeah, I could do all that with LaTeX too, but it requires you to either
evaluate and remember sooo many addon packages, or to jump through
some amazing hoops to undo some of LaTeX' defaults.

Also, if one learns Plain-TeX, one is in a much better position to
learn the ins and outs of LaTeX.

SteveT

Steve Litt 
September 2018 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


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

2018-09-09 Thread Steve Litt
On Sun, 9 Sep 2018 12:05:36 -0400
Richard Kimberly Heck  wrote:

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

As far as I know, my LyX has been working perfectly, with TeXLive, for
many years. Why would someone choose MiKTeX?

[slitt@mydesk linux]$ uname -a
Linux mydesk 4.17.14_1 #1 SMP PREEMPT Sat Aug 11 18:42:04 UTC 2018
x86_64 GNU/Linux [slitt@mydesk linux]$ tex -v
TeX 3.14159265 (TeX Live 2018)
kpathsea version 6.3.0
Copyright 2018 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
[slitt@mydesk linux]$ latex -v
pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018)
kpathsea version 6.3.0
Copyright 2018 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.34; using libpng 1.6.34
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.00
[slitt@mydesk linux]$


SteveT

Steve Litt 
September 2018 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz


How to populate ~/.texlive2018/texmf-var/fonts

2018-07-21 Thread Steve Litt
My new computer has $HOME/.texlive2018/texmf-var but not
$HOME/.texlive2018/texmf-var/fonts . What do I do to install and
populate $HOME/.texlive2018/texmf-var/fonts? I'm using TeXLive 2018 on
64 bit Void Linux.

Thanks,

SteveT


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



Re: graphics question

2018-06-24 Thread Steve Litt
On Sat, 23 Jun 2018 14:34:50 -0400
"Paul A. Rubin"  wrote:

> On 06/21/2018 02:05 PM, John White wrote:
> > When inserting a pdf graphic into a template, and saving the file,
> > the next time I open the template, I have to re-insert the graphic,
> > even though the graphic is in the same template folder.
> >
> > However, if I open the same lyx template in dolphin, it opens with
> > the graphic shown.
> >
> > Anyone know how I can save the template in such a manner as will
> > show when opened from lyx' with  "new from template"?
> >
> > John  
> Are you using absolute (not relative) paths to the graphics? Relative 
> paths will not work, because the new document you are creating will
> live in the LyX temp directory, not in the templates directory. I
> don't seem to have a problem as long as I use absolute paths.
> 
> Paul

IMHO using absolute paths is a bad solution. Some of my books are in
git now, and sometimes I clone them into laptop directories with paths
different from the one on my desktop. I'd greatly prefer that a
document's dependencies travel with it.

SteveT

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




Re: Figure captions

2018-06-09 Thread Steve Litt
On Sat, 9 Jun 2018 12:43:47 +0200
Ricardo Berlasso  wrote:

> 2018-06-09 11:50 GMT+02:00 F M Salter :
> 
> > Hi
> >
> > Is it possible to place captioned figures side by side rather
> > than vertically?  
> 
> 
> Yes, but you need to use the sidecap package. To integrate it on LyX
> you can use a "Local format" (Document → Settings → Local format),
> something like this (I'm using 2.3 here, for 2.2 use "Format 60"
> instead)

Hi Richard,

How did you know that the sidecap package would do this? It seems like
every desire anyone has in LaTeX, somebody pops up with a package to do
it. But how does one discover that package? Is there an algorithm to go
from a need to solution by package discovery?

Given LaTeX code, I can hammer away at it, do research, and eventually
modify it to do what I need. I can describe the process pretty much in
English. But I don't begin to understand how people can hear a need and
instantly know "you need the XYZ package." That process should be
articulated so that all of us can do it.

Thanks,

SteveT

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




Re: Pleading Paper / TOC question

2018-06-03 Thread Steve Litt
On Thu, 31 May 2018 07:49:01 -0700
John White  wrote:

> On Thursday, May 31, 2018 6:58:43 AM PDT Rich Shepard wrote:
> > On Wed, 30 May 2018, John White wrote:  
> > > lawlist was kind enough to send me the code which, he says,
> > > produses a table of contents and list of authorties in latex,
> > > using pdflatex. But it does not work in lyx. Do you have a
> > > suggestion regarding how I could get TOC and indexes to work in
> > > lyx documents which have numbered lines along the left-hand side
> > > of the paper? It is apparently not an easy thing to do. Yet every
> > > lawyer who uses lyx to produce a brief with indexes and a table
> > > of contents needs this function.  
> > 
> > John,
> > 
> >I'm far from a LaTeX expert, nor do I know how LyX might differ
> > from the LaTeX verson of the class. I don't know how to look at the
> > source to figure out why it's not working for you.
> > 
> >My suggestion is to post the code as an attachment to the mail
> > list and ask the devs and other LaTeX-perts if they could make it
> > work as you (and other attorneys need it to) with LyX. Seems to me
> > that would be a reasonable request and a useful extension to LyX's
> > capabilities. CTAN shows 16 packages for legal documents, but all
> > in Europe.
> > 
> > Best regards,
> > 
> > Rich  
> 
> Would the Devs and other lyx/LaTeX experts please take a look at the
> attached code.  Though I know little about LaTeX, I am told by
> lawlist that it works fine with pdflatex, generating pleading paper
> numbered along the left side, plus a table of authorities.  
> 
> And the same code works fine in a new blank lyx document.  However,
> as soon as I try to insert an index list in lyx 2.2.2, it blows up.
> It would be most appreciated if the code could be altered so that it
> a lyx document could print lined pleading paper AND a table of
> contents and index list.
> 
> I am also attaching the pleadingpapercode I normally use.  It works
> fine and prints the TOC and inserting an index list does not blow it
> up.  However, actually indexing (insert/index entry) blows it up.
> 
> Thanks for assistance or suggestions.
> 
> John 

Hi John,

If you can do it in LaTeX, why not author your pleadings in LaTeX? Is
the problem that people with less technical chops than you will be
typing in the content of the pleadings?

LyX is spectacular for writing books, but there are some usages better
addressed by LaTeX, or even Plain TeX, or Asciidoc or Stylz or who
knows what.

SteveT

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




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

2018-05-27 Thread Steve Litt
Hi all,

I frequently need help on plain TeX, **NOT** on LaTeX or ConTeXT. 95 %
of the web's docs retrieved by a search on "plain tex" are really
about LaTeX. From my research on the web, there are maybe 10 docs on
Plain TeX or Eplain (I'm using Eplain too),  and those docs are
insufficient to tell you how to achieve simple things.

I'm sorry to have to ask this here. Twice I've asked on Freenode
#latex, and twice nobody answered.

Thanks,

SteveT

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




How do I join the Freenode #lyx channel?

2018-05-27 Thread Steve Litt
Hi all,

I tried to join the #lyx IRC channel on Freenode, but when I joined,
the channel was labeled "unavailable" and I couldn't post to it. Is
there a different IRC channel for LyX? If not, what special techniques
do I need to do to join the #lyx IRC channel on Freenode?

Thanks,

SteveT

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




Split documents: was: problems with documents produced with earlier

2018-05-25 Thread Steve Litt
On Wed, 23 May 2018 13:52:29 +0200
Michael Berger <id...@online.de> wrote:

> Hello dear Lyxers,
> 
> after upgrading LyX to version 2.2.3 opening and editing (linguistic) 
> papers made with earlier versions of LyX does work.
> Conversion to PDF of each single child document works as well. But 
> trying to generate a PDF from the master document results in an
> endless loop.

In the 17 years I've used LyX, I've always put my whole book in one
file (well, plus the layout file and any graphics), and everything
worked beautifully. Most compiles less than 5 seconds, even on books
exceeding 100K words.

Meanwhile, in those 17 years, time after time I've heard people have
trouble with master and child documents. 

If you're a publisher farming out individual chapters to individual
authors, I understand the need for child documents. If you're writing a
book exceeding 1000K words (this would be about 3000 standard paper or
PDF pages), and you need to compile the document often, then I could
see the need for master and children. Otherwise, I don't get it. Single
LyX files work exceedingly well, while every couple months a report of
trouble with master/children documents appears on this list. Why would
one try master/children?

SteveT

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




Re: Help: Latex stack size limit

2018-05-15 Thread Steve Litt
On Tue, 15 May 2018 22:52:47 -0400
Scott Kostyshak <skost...@lyx.org> wrote:

> On Wed, May 16, 2018 at 02:26:35AM +, Robert Kern wrote:
> > Dear lyx-users,
> > 
> > I'm writing a book, and this evening I decided to export it to
> > a .pdf file to check it out. I went to File->Export->PDF (pdflatex)
> > and hit Enter. A few seconds later I received an error message
> > which said,
> > 
> > "! TeX capacity exceeded, sorry [parameter stack size=1].
> > 
> > If you really absolutely need more capacity,
> > 
> > you can ask a wizard to enlarge me."
> > 
> > I'm running LyX on Linux and have plenty of memory and disk space,
> > so I wondered where I could find a "wizard" to increase the Tex
> > stack size. I went to www.lyx.org, but found nothing there, so I
> > went to www.ctan.org and searched for "wizard" and "stack size."
> > 
> > So, can anyone tell me how to increase the Tex stack size, or where
> > I can find a "wizard" that can help me? Otherwise, I'm stuck with a
> > three-quarter completed book which I can't complete using LyX.
> > 
> > Thanks in advance,  
> 
> Hi Robert,
> 
> Ouch, that sounds frustrating. Usually this message occurs not because
> of lack of RAM or disk space, but because of an error in LaTeX code.
> Can you create a minimal example that still generates the error? For
> more info, see:
> 
>   https://wiki.lyx.org/FAQ/MinimalExample
> 
> Do you have a previous version of your book that does compile? If the
> differences are not too big, you might get a hint at what addition
> caused the change. If you're not using version control, and you're
> interested in more information, let us know. It is very helpful for
> situations like this. And yes, unfortunately, a similar situation will
> happen again in the future.
> 
> I hope that we can help figure this out!

What Scott said.

I've had 100,000 word books with graphics, indices and table of
contents compile just fine in LyX. Except for those times I made an
error (usually something with LaTeX or ERT).

When that stuff happens to me (and it happens to me all the time
because I'm not careful), I archive the current document, then keep
cutting it half until I get it compile, then add stuff til it bombs,
and take stuff away, and I can usually get it down to a paragraph and
some document settings. At that point, my mistake is usually obvious,
but if not, I can send that tiny document (called a Minimum Example) to
the list and somebody will instantly diagnose the problem.

One thing I do is compile early and often, so that the number of causes
is limited. When working on a long term project like a book, I usually
compile via a shellscript (or if you're Windows, I think it's called
Powerscript). Much faster, easier, and informative.

HTH,

SteveT

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




Outputting LaTeX from XML

2018-05-14 Thread Steve Litt
Hi all,

I've got the conversion programs for Stylz to intermediate XML, and to
html and epub. Not a lot of features, but ePubs produced this way are no
fatal errors, no errors, no warnings.

Next step is to convert the intermediate XML to LaTeX. I'm not
interested in xslt or docbook and the like, I mean taking an XML parser
(probably Python's xml.etree.ElementTree) to parse the intermediate
XML, which has every single bit of the book's information, and
outputting LaTeX. If anybody has experience doing this, please email me
offlist.

Thanks,

SteveT

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




Re: The tortured release of 2.3.0 Windows binaries

2018-05-14 Thread Steve Litt
On Mon, 14 May 2018 06:58:30 +
Baris Erkus  wrote:

> On 13-May-18 3:16 PM, Bernt Lie wrote:
> 1: I agree, and I didn't say so. Essentially, my point is that
> developers can not do that without compromising its OS agnostics. For
> various reasons, I use Windows myself. And I have full respect for
> others making different choices. I don't think the LyX list should be
> used for negative description of OSes not used by oneself.
> 
> 2: I see the point. If there are no negative side effects of
> upgrading to the latest version of MikTeX, I'd do the following:
> * Put in a LyX 2.3.0 installation link.
> * Start by checking if the latest MikTeX version is installed. If
> yes, proceed and install LyX 2.3.0
> * If not, explain why, and point to a link (youtube, or whatever) on
> how the user can upgrade MikTeX and say "retry after you have
> upgraded MikTeX".
> 
> Maybe a solution?
> B

Your plan outlined in point #2 above seems like a great idea to me.
Disclaimer: I don't use Windows, so I might not know the full extent of
the problem.

SteveT


Re: The tortured release of 2.3.0 Windows binaries

2018-05-12 Thread Steve Litt
ROFLMAO, I ask myself this all the time, on multiple mailing lists.

On the bright side, 90% of the heartache doesn't apply to me.

SteveT


On Sat, 12 May 2018 20:03:09 -0700
John White  wrote:

> Why are people still using Windows?  My firm gets along without Gates
> just fine.
> 
> John White
> 
> On Friday, May 11, 2018 4:18:17 PM PDT Richard Kimberly Heck wrote:
> > On 05/11/2018 03:37 PM, Jim Rockford wrote:  
> > > In my 20+ years in the world of science, I have not known a single
> > > user of Lyx (~50 in total) who wasn't computer savvy.  Why not
> > > just include a warning message that Lyx 2.3.0 may not function
> > > properly with MiKTeX distributions that have not been updated as
> > > recently as some specific date?  
> > 
> > That is more or less what was proposed by most of the development
> > team: A warning at start-up, that LyX was going to update MikTeX,
> > with an option for the user to abort the install if they wish. The
> > person responsible for the Windows packages refused to include such
> > a warning, and we did not think updating people's other software
> > without asking permission to do so was something we should do. So
> > that has left us in a bad position.
> > 
> > We are working now to try to produce a Windows installer.
> > Unfortunately, none of the active development team use Windows, so
> > it is taking longer than it otherwise might. We'd certainly welcome
> > help from someone who does use Windows.
> > 
> > Riki  
> 



Re: Formatting of Outline view: Intentional or side-effect of native themes?

2018-04-26 Thread Steve Litt
On Thu, 26 Apr 2018 15:02:09 +
Klaus-Dieter Bauer <bauer.klaus.die...@gmail.com> wrote:

> Hello!
> 
> Before submitting an enhancement request, I wanted to ask if there
> already *are* possibilities to customize how the outline view looks.
> 
> [image: lyx-tree.png]
> (mirror for image: https://imgur.com/a/OFAVJCS)
> 
> I could imagine that there's some utility that allows changing the Qt
> theme or something like that, but I wouldn't even know where to start
> looking.
> 
> I generally find tree-views with lines as visual guides vastly more
> useful than the "modern" style of indicating the tree only by
> indication. My best guess here is, that Qt choosed a style that
> mimicks the native style of modern Windows, which I dislike in this
> particular case.
> 
> I'm certain others will prefer the "line-less" styles, but for me
> having the lines would be very helpful in navigating large documents.
> 
> - Klaus

I'm an outline junkie, and after viewing your side-by-side outline
views, I strongly agree lines are better. Outlines are meant for quick
human comprehension: Lines accentuate that, lineless doesn't.

Of course, I could be called a hipocryt because the VimOutliner
software I originated doesn't have lines. But that decision was made
for simplicity's sake, and LyX long ago left the simplicity track.

I very much prefer the lines.
 
SteveT

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


Re: Metadiscussion

2018-04-24 Thread Steve Litt
On Tue, 24 Apr 2018 23:17:00 +0200
Michael Berger <id...@online.de> wrote:

> Hi Wolfgang,
> 
> as you can see it is our own mistake and stupidity if we get Dr.
> Lisse's messages twice.

I'm getting dupes of his messages, and didn't notice it til I got
called mistaken and stupid.

Personally, I reply only to the mailing list, which is getting harder
and harder as time goes on. But by replying only to the mailing list, I
guarantee nobody gets dupes of my messages, and therefore nobody is
called stupid and mistaken.
 
SteveT

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


Re: How to properly rotate float sideways

2018-04-17 Thread Steve Litt
On Tue, 17 Apr 2018 13:25:52 +0200
racoon <xraco...@gmx.de> wrote:

> Hi,
> 
> I have some wide figures and tables that don't fit on a portrait page.

Your afterpage solution sounds good to me, but that sounds like
strongarming a symptom rather than fixing the root cause. The root
cause is using anything, in a book, that is wider than a small phone
turned sideways. The days we could assume a 20" screen (or letter or a4
paper) are gone, and with them, the use of tables, and big
complex diagrams or pictures.

Isn't there a way you could refactor your tables to make them into
several skinny tables? Also, with complex graphics, is there a way to
present the full picture in miniature, with clickable areas to bring up
sub-pictures? I know I can do this with html+svg, and it would be very
handy with LyX too.

What I try to do these days, with new construction, is to make try to
make sure nothing I use is more than 300 to 500 pixels wide. By
filtering the big stuff out at the authoring stage, I don't need to
jump through hoops at the publishing stage.
 
SteveT

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


Re: Formatting name/date to be filled by others

2018-04-11 Thread Steve Litt
On Tue, 10 Apr 2018 16:18:41 -0700 (PDT)
Rich Shepard <rshep...@appl-ecosys.com> wrote:

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

Why not use sixteen consecutive underscores?

SteveT

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


Re: which document class?

2018-04-11 Thread Steve Litt
On Tue, 10 Apr 2018 13:41:52 +0200
Aaron Brülisauer <aaron.bruelisa...@automatic-server.com> wrote:

> Hello
> 
> Right now I'm still reading the Tutorial and I reached the section
> "Document Classes". I have tried multiple ones with my
> "first_document.lyx". I'll have to write a documentation for system
> engeneer degree. I have to documentate a installation and
> configuration of a document sync solution (Nextcloud). I'm new to LyX
> and don't know much about LateX. What class would you choose? It
> should just do the work and nothing more. Simple, easy to use. The
> right thing for a beginner. I have found some Classes which look like
> something I could use: Report, Paper, Article.
> What are "KOMA-script-"?
> 
> Salutations
> Aaron
> 

If you're writing a book-like thing, I'd highly recommend the Book
document class over stuff like Memoir and Koma. My experience is that
Memoir and Koma are nice at first, but start conflicting with stuff
when you go to further customize your Document Class.

If you learn the Book class thoroughly, you'll get to the point where
you can make layout files to modify and add what you need for your
particular book.

I used Memoir as the basis for my 2007 "Twenty Eight Tales of
Troubleshooting", and had so much trouble that from then on I made it a
policy to base all my books off the Book document class, and modify it
from there.

If you're writing an article, use Article. If you're writing a letter,
use Letter (or better yet imho use LibreOffice). 

If your documentation is more than 50K words, I'd recommend the Book
class, with your own customizations as specified by those your handing
your documentation to.

SteveT

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


Re: Recommendations for metadata storage in Stylz

2018-04-02 Thread Steve Litt
On Mon, 2 Apr 2018 10:34:19 +1000
Alan Tyree <alanty...@gmail.com> wrote:

> Hello Steve,
> I would think YAML is the best choice here. It is easy to type and
> easy for the beginner to understand. You could provide simple
> templates for the most common cases. My own feeling is that anything
> more complicated is going to turn off would-be authors.

Thanks Alan (and you too Shay)!

Both of you recommended for YAML and against JSON, made your points
powerfully, and convinced me not to go with JSON (at least directly).

I decided not to go with YAML because it's to easy to forget a colon or
a dash and crash the program. The program would need to be too much of
a mind reader.

Instead I'm using several files consisting either of key-value pairs
separated by an equal sign (people are used to those), or a few of the
files are lists. I wrote a Python program to turn those files into a
big, deeply nested dict that can run the program. Also, it will probably
output a JSON file of the big, deeply nested dict, so all the other
programs can use it.

Thanks,
 
SteveT

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


Recommendations for metadata storage in Stylz

2018-04-01 Thread Steve Litt
As many of you know, I'm in the middle of creating an authoring format
called Stylz. You author Stylz docs in any old editor. Think of an
Asciidoc knockoff which greatly prioritizes styles based authoring at
the expense of Asciidoc's "we do it all for you."

One of my tasks in order to reach Minimum Viable Product (MVP) status
is to give the author a way of storing the book's metadata. By metadata
I mean stuff like author, title, copyright, etc, combined with build
info like CSS files to be inserted to link styles with their
appearances in HTML and ePub outputs, or LaTeX layout files (similar to
those in LyX) to link styles with their appearances in PDF and paper.
The metadata is not, not, NOT going to be in the .stylz file itself:
The .stylz file names styles and assumes somebody else will define them.

So I need a format in which the author can put the metadata/buildinfo.
Because I'm not a fan of dependencies, I right away ruled out mysql,
Postgres, SQLite or MongoDB. From my perspective, this leaves Yaml,
JSON, directory trees with leaf filenames being keys and their contents
being values. Can anyone think of other alternatives?

Do you think an author would prefer JSON or Yaml? I used key/value
directory trees on UMENU2, and as a practical matter they turn out to
be very tedious to author. Any other ideas besides JSON and Yaml?

Thanks,

SteveT

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


How to add/change/delete styles, the new way?

2018-03-05 Thread Steve Litt
Hi all,

I've used LyX since 2001 so I got used to adding, changing and deleting
environments and paragraph styles by using a separate layout file to
create a new document class based on the document class I want to
modify (typically Book). It works.

But now I'm presenting Linux Content Editing at GoLUG, LyX is a part of
it, and I'd like to present the newer method of adding, changing and
deleting styles (environments and paragraph styles). I forgot what that
new way was, how to use it, and where to learn about it. Could you
refresh my memory?
 
SteveT


Re: Long preview compilation due to unnecessarily often calling pdflatex?

2018-02-28 Thread Steve Litt
On Wed, 28 Feb 2018 14:59:54 +0100
Klaus-Dieter Bauer  wrote:

> Hello!
> 
> I'm recently having problems with LyX compiling exceptionally slowly
> (compared to plain latex editors). Checking the log, I noticed that
> LyX calls pdflatex a full 5 times for my thesis 

First question is whether this long compile significantly slows your
workflow. If not, just keep things as they are.

If the compile significantly impedes your workflow, I'd suggest making
yourself a compile shellscript having lyx --export and other commands.
You can pretty much take LyX config out of the picture by exporting to
LaTeX, and then running [pdfla|la|lua]tex once for the document, and
once more for table references. It's a lot easier to optimize a
shellscript than trial-and-error LyX's conversion technique, which in
my opinion is more a convenience than a tool for quality.

SteveT


Re: Problem: version control suddenly no longer works in LyX 2.2 and 2.3rc1

2018-02-20 Thread Steve Litt
On Tue, 20 Feb 2018 14:12:01 -0800 (PST)
Rich Shepard  wrote:

> On Wed, 21 Feb 2018, Dr Eberhard Lisse wrote:
> 
> > Maybe one can take the time to look at one of the already existing
> > converters from RCS (CVS?) to SVN/GIT or whatever else LyX can
> > handle, but to be honest, why bother?  
> 
> el,
> 
>Even as a single user I've found git better suited to my needs
> than svn. Shrug.
> 
> Regards,
> 
> Rich

Git's the bomb. If you're having your editor review your LyX doc, there
could be two special paragraph styles that doesn't show up on the PDF:
Query and Answer: Your editor queries you why you don't do something
different, and you either answer "Agreed", or you say why you think it
should stand. The discussion might go another couple rounds. If you both
push and pull from the same Git repo, then you have a history of the
whole thing, and a very easy way to collaborate.

SteveT


Re: LyX: LaTeX failed

2018-02-16 Thread Steve Litt
On Fri, 16 Feb 2018 02:49:59 -0800
Daniel Kian Mc Kiernan  wrote:

> [I don't know why this person posts this query repeatedly, without 
> apparently reading any of the responses.  I have CC'd this message to 
> him, but his handler or server may be configured such that everything 
> is going into the spam bucket.]

Same reason a dog runs to get a thrown ball, and brings it back to you,
time after time. I was telling one of my buddies how dumb dogs are:
They will keep bringing the ball back forever, as long as you keep
throwing it.

Then one day I overheard my dog talking to the next door neighbor's
dog. My dog said "I can't believe how dumb humans are:  They'll keep
throwing that ball forever as long as I bring it back."

SteveT


Re: Chicago-Style Citations and Bibliography

2018-02-14 Thread Steve Litt
On Wed, 14 Feb 2018 19:35:04 -0800
Daniel Kian Mc Kiernan <daniel@oeconomist.com> wrote:

> On 02/14/2018 06:43 PM, Steve Litt wrote:
> > On Wed, 14 Feb 2018 03:30:13 -0800
> > Mc Kiernan Daniel Kian <mc_kier...@oeconomist.com> wrote:
> >   
> >>>> I've an article, prepared in LyX, whose citations and
> >>>> bibliography I need to have rendered in Chicago style.  (Indeed,
> >>>> If I can get the sections titles  to conform automatically to
> >>>> Chicago-journal style, that would be great.)
> >>>>
> >>>> I'd like to avoid a process of tweaking a .tex file.
> >>>>
> >>>> When I try to handl things by way of the preamble, LyX yowls
> >>>> about conflicting specifications.  If I have to do everything
> >>>> through the preamble or by tweaking a .tex file, then I'd like
> >>>> to know how to disable the build-in Bibliography processing.
> >>>> 
> >   
> >> On 02/14/2018 03:11 AM, Dr Eberhard Lisse wrote:  
> >>>
> >>> As a general rule,
> >>>
> >>> provide a Minimal Working Example, ie the shortest LyX file with
> >>> the shortest BIB file that demonstrates the issue.
> >>>
> >>> greetings, el
> >>>
> >>> On 14/02/2018 02:13, Daniel Kian Mc Kiernan wrote:  
> > 
> >   
> >> That is a signally absurd response.
> >>
> >> A minimal example would be an empty LyX document.  I could show
> >> you a screen-shot of an empty preamble, but you presumably know
> >> how that looks.  Likewise for the Bibliography dialog.
> >>
> >> I could go a bit further, and post a bibtex file, and a LyX
> >> document with a cite element and bibligraphy element, and ask
> >> “What do I do to get LyX to render that cite element and the
> >> bibliogrpahy in Chicago style?”  But, again, you presumably know
> >> how bibtex files, cite elements, and bibliography elements look.
> >>
> >> So far, I've seen you post one willfully passive-aggressive
> >> response to one person, and then this foolish response to me.
> >> This list begins to look to be a source of abuse, rather than
> >> constructive response.  
> > 
> > I've rearranged the thread as bottom posted, so when somebody says
> > "this" is absurd, we all know what "this" refers to, and when
> > someone recommends a minimum working example, we all know what
> > situation a MWE is supposed to improve. If we're going to criticize
> > communication styles, let's go for clarity ourselves.
> > 
> > Anyway, regardless of Eberhard Lisse's tone, the Minimum Working
> > Example (MWE) is one of your most powerful tools for diagnosing LyX
> > problems. Remember, he said " ie the shortest LyX file with the
> > shortest BIB file that ***demonstrates the issue***." (emphasis
> > mine).
> > 
> > If the issue occurs on a blank document, start removing stuff from
> > the document properties. At some point you're going to be able to
> > toggle the problem on and off. Then, keep removing more stuff until
> > the only stuff left is stuff that will toggle the problem. This is
> > a true MWE.
> > 
> > Once you have your true MWE, either the cause will be obvious to you
> > and you'll fix it, or you can submit it and it will be obvious to
> > your fellow listmates, or the LyX developers will tell you "whoops,
> > that's a bug, let us fix that, and thank you so much for narrowing
> > it down for us."
> > 
> > The way I make MWEs is I keep dividing the remaining root cause
> > scope of the document in half and seeing whether the symptom is
> > still there, and continue until all that's left is maybe a sentence
> > plus what is necessary to produce the symptom. Likewise, I keep
> > simplifying the document preamble/properties until there's nothing
> > there that won't flip the symptom  if I remove/change it.
> > 
> > A year ago I has a problem in which I couldn't produce my books on
> > my new Void Linux computer if I used Century Schoolbook type, which
> > is a must. Even a Minimal Working Example would fail if I used
> > Century Schoolbook. So for LyX had I had to use a Ubuntu virtual
> > machine guest: Inconvenient!
> > 
> > Then one day a fellow author let me read his LyX produced book,
> > which obviously had Century Schoolbook type. I made an MWE of his,
> > and MWE of mine, compared, and the difference was obvious: He was
> > 

Re: Chicago-Style Citations and Bibliography

2018-02-14 Thread Steve Litt
On Wed, 14 Feb 2018 03:30:13 -0800
Mc Kiernan Daniel Kian  wrote:

> >> I've an article, prepared in LyX, whose citations and bibliography
> >> I need to have rendered in Chicago style.  (Indeed, If I can get
> >> the sections titles  to conform automatically to Chicago-journal
> >> style, that would be great.)
> >>
> >> I'd like to avoid a process of tweaking a .tex file.
> >>
> >> When I try to handl things by way of the preamble, LyX yowls about
> >> conflicting specifications.  If I have to do everything through the
> >> preamble or by tweaking a .tex file, then I'd like to know how to
> >> disable the build-in Bibliography processing.
> >>  

> On 02/14/2018 03:11 AM, Dr Eberhard Lisse wrote:
> >
> > As a general rule,
> > 
> > provide a Minimal Working Example, ie the shortest LyX file with the
> > shortest BIB file that demonstrates the issue.
> > 
> > greetings, el
> > 
> > On 14/02/2018 02:13, Daniel Kian Mc Kiernan wrote:  


> That is a signally absurd response.
> 
> A minimal example would be an empty LyX document.  I could show you a 
> screen-shot of an empty preamble, but you presumably know how that 
> looks.  Likewise for the Bibliography dialog.
> 
> I could go a bit further, and post a bibtex file, and a LyX document 
> with a cite element and bibligraphy element, and ask “What do I do to 
> get LyX to render that cite element and the bibliogrpahy in Chicago 
> style?”  But, again, you presumably know how bibtex files, cite 
> elements, and bibliography elements look.
> 
> So far, I've seen you post one willfully passive-aggressive response 
> to one person, and then this foolish response to me.  This list
> begins to look to be a source of abuse, rather than constructive
> response.

I've rearranged the thread as bottom posted, so when somebody says
"this" is absurd, we all know what "this" refers to, and when someone
recommends a minimum working example, we all know what situation a MWE
is supposed to improve. If we're going to criticize communication
styles, let's go for clarity ourselves.

Anyway, regardless of Eberhard Lisse's tone, the Minimum Working
Example (MWE) is one of your most powerful tools for diagnosing LyX
problems. Remember, he said " ie the shortest LyX file with the
shortest BIB file that ***demonstrates the issue***." (emphasis mine).

If the issue occurs on a blank document, start removing stuff from the
document properties. At some point you're going to be able to toggle
the problem on and off. Then, keep removing more stuff until the only
stuff left is stuff that will toggle the problem. This is a true MWE.

Once you have your true MWE, either the cause will be obvious to you
and you'll fix it, or you can submit it and it will be obvious to your
fellow listmates, or the LyX developers will tell you "whoops, that's a
bug, let us fix that, and thank you so much for narrowing it down for
us."

The way I make MWEs is I keep dividing the remaining root cause
scope of the document in half and seeing whether the symptom is still
there, and continue until all that's left is maybe a sentence plus what
is necessary to produce the symptom. Likewise, I keep simplifying the
document preamble/properties until there's nothing there that won't
flip the symptom  if I remove/change it.

A year ago I has a problem in which I couldn't produce my books on my
new Void Linux computer if I used Century Schoolbook type, which is a
must. Even a Minimal Working Example would fail if I used Century
Schoolbook. So for LyX had I had to use a Ubuntu virtual machine guest:
Inconvenient!

Then one day a fellow author let me read his LyX produced book, which
obviously had Century Schoolbook type. I made an MWE of his, and MWE of
mine, compared, and the difference was obvious: He was using the TeX
Gyre Schola variant

SteveT


MWE isolation: was Puzzling compile error

2017-12-28 Thread Steve Litt
On Thu, 28 Dec 2017 11:50:27 -0800 (PST)
Rich Shepard <rshep...@appl-ecosys.com> wrote:

> On Thu, 28 Dec 2017, Scott Kostyshak wrote:
> 
> > Rich, it would be great if you could send MWE for messages like
> > this. The first step is: remove all text and just put "hello". Does
> > that compile? If so, then figure out the smallest .lyx file that
> > can give the same error.  
> 
> Scott,
> 
>The .lyx file is 8912 lines and the only strings shown in the error
> message lower window are the years 2004 and 2005. They are nowhere
> near the highlighted text so I've no idea how to create a MWE that
> includes an error I cannot find based on what lyx shows me.

I can answer that. You get the message. Then you delete half the
document, and see if the error still happens. If it does not, replace
the half deleted and delete the other half. If it still happens you
have multiple instances of the root cause.

Anyway, you keep deleting about 1/2 of the remaining document until you
can toggle the symptom on or off with one paragraph. Then you start
doing the same thing with the paragraph until you get the paragraph
down to a few words. By then the root cause will probably be obvious,
but if not, send in the pared down document.

I'm not saying this just for you Rich. Most people could benefit from
creating an MWE, and I bet in half the cases people would find their
own solutions before anybody could possibly reply. Besides being the
best and most considerate way to ask for help, the MWE is a powerful
troubleshooting tactic.
 
SteveT

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


F/OSS software choices: was Creating a statement of account

2017-12-24 Thread Steve Litt
On Sun, 24 Dec 2017 12:47:51 -0800 (PST)
Rich Shepard <rshep...@appl-ecosys.com> wrote:

> Grahame,
> 
>And that's one of the reasons we run F/OSS software: choices.
> There are always multiple ways of accomplishing any task.

Quoted For Truth! The absolute truth!

Choice and DIY-ability (which is another aspect of choice) is the
major reason I use F/OSS. Before getting involved in F/OSS in 1998, I
used to pay about $2K per year for software, and I had no problem doing
so. With most of my proprietary software, I got my money's worth and
more.

But you had to do everything the software's way. You couldn't
shellscript everything into exactly what you wanted. Often you couldn't
add or change features. And all too often, native formats were secret
binary that you couldn't mess with.

Now I create my UMENU2 lightning fast menu system with tab indented
outlines made in VimOutliner.  I put tokens in a LyX file and run a
Python program against it to get the exact heading numbers I want in
my trainer instruction document. I have a diploma, made in Inkscape,
whose .svg contains tokens so that I can fill out a YAML file and print
diplomas for the whole class, with each student's name, the instructor
name, dates, course name, and company name. Scripts personalize my LyX
files with the customer's name. A script reads my Gnumeric book order
file, deduces which books are print instead of eBooks, and prints
mailing labels in the proper fonts for mailing. 

To me, this customization opportunity to implement my choice of
workflow and product is what makes F/OSS so wonderful.

 
SteveT

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


Re: Creating a statement of account

2017-12-24 Thread Steve Litt
On Sun, 24 Dec 2017 09:10:25 -0800 (PST)
Rich Shepard <rshep...@appl-ecosys.com> wrote:

>I recently learned that I could use gnumeric to track retainer
> payments and draws and have the results automatically reflected in
> the LyX article's table, but that involves another application. The
> spreadtab package will do the calculations directly.

Gnumeric is a *much* better way to keep track of money than anything
having to do with LaTeX or LyX. GnuCash would be even better.

Two applications instead of one is a good thing, not a bad one. You're
using one application to calculate and process all the numbers and
export them as data, and a second that does nothing but format those
exported numbers to paper. You're keeping data and appearance separate.
and I'm pretty sure doing it with two applications makes it much easier
to keep it running correctly year after year.

But of course, if you already have it done in LyX and like it that
way, well, that's the way you should do it.


SteveT

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


Re: chktex [RESOLVED]

2017-12-24 Thread Steve Litt
On Sun, 24 Dec 2017 06:51:57 -0800 (PST)
Rich Shepard <rshep...@appl-ecosys.com> wrote:

> On Sat, 23 Dec 2017, Scott Kostyshak wrote:
> 
> > I mentioned modules in my first email so I'm assuming you already
> > checked modules as the source of discrepancy.
> >
> > If you send us a minimal example, we can take a look.  
> 
> Scott,
> 
>Yes, I checked the modules.
> 
>I resolved the issue by creating a new document using
> svmono.layout and inserting the original file. Now the Tools menu
> shows Check TeX.

Rich, now that you've resolved it, let me ask this: Do you fix every
warning thrown by chktex? I ran it on one of my books, I got 108
warnings, with warning codes 1, 11, 12, 13, 23, 26, 38 and 39.

Most of these seem rather innocuous to me, such as the one saying I had
punctuation just before a quote (that's the correct way to do it in
American English), and the one saying I terminated a command with a
space. I can suppress any warning number with -n: Did you suppress some
warnings?

Anyway, how strictly are you taking all these warnings?

SteveT

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


Re: Creating a statement of account [RESOVED]L

2017-12-23 Thread Steve Litt
On Fri, 22 Dec 2017 05:47:22 -0800 (PST)
Rich Shepard <rshep...@appl-ecosys.com> wrote:

> On Fri, 22 Dec 2017, Joel Kulesza wrote:
> 
> > I tend to agree with Steve's points.  
> 
> Joel,
> 
>I fail to understand why you and Steve think LyX/LaTeX is not
> suitable for producing an invoice/statement while a word processor
> such as LibreOffice is. 

Time out. I didn't mention LibreOffice. I mentioned Inkscape, Plain
TeX, or just plain ASCII output to the printer. I wouldn't recommend
using LibreOffice for this purpose.

I have this cool little merge program that prints mailing labels, with
the return address in a small font and the To address in a big one.
It's basically a looping program that replaces tokens in a Plain TeX
file with data items, piles those one on top of another using Plain TeX
to paginate, and it prints out my mailing labels. Probably took me 3
hours to write 10 years ago, still working perfectly today.

SteveT

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


Re: Creating a statement of account

2017-12-20 Thread Steve Litt
On Wed, 20 Dec 2017 14:32:09 -0800 (PST)
Rich Shepard <rshep...@appl-ecosys.com> wrote:

>I'm trying to create an account statement for clients whom I
> invoice by time and expense and I'm missing something in my efforts.
> The statement is a running explanation of payments received and
> charges against those payments. I'm trying to use the invoice2
> package, so far unsuccessfully.

Hi Rich,

This is unresponsive to your question, but I think LyX is way the
wrong tool for making invoices.

If it's acceptable to use a mono type, I'd just use a program that
outputs the invoice to stdout and pipe that to a printer, or make it
ito a PDF.

If it's guaranteed to always be one page and you want pretty fonts and
pictures, use Inkscape to produce a .svg template, and within that
template use replaceable tokens for everything. If it might be
multiline, it's harder, but you can use break logic to trigger a page
footer routine and a next-page-header routine to create several .svg
files, then use (I'd imagine) pdfjam to turn those into a multipage PDF.

Or, you can do something similar, except instead of .svg use plain TeX
(which is much simpler than LaTeX) to make the header, footer, and line
items, in the fonts you desire.

LyX is a tool that's priceless for creating fixed-text PDF files, and
if it were ever made a true XML it would be priceless also for creating
ePub and HTML and everything else, but in my opinion it's wy too
much tool for the concise and specific task of writing a report or
invoice.

When you're creating your company's accounting statements for
stockholders within your yearly report, THAT's the time to use LyX
(probably with plenty of replacement tokens).

SteveT

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


Re: Cannot get Externam Material: Inkscape figure to work

2017-10-10 Thread Steve Litt
On Tue, 10 Oct 2017 19:45:53 +0200
Jürgen Spitzmüller <sp...@lyx.org> wrote:

> Am Dienstag, den 10.10.2017, 08:39 +0200 schrieb racoon:
> > I just tried the new (experimental) Inkscape figure (or should it be
> > SVG 
> > figure?)  
> 
> No, Inkscape. It's a particular format that is only featured by that
> program.

Inkscape's internal format is an enhanced SVG that can be read directly
by most browsers. Inkscape has the capability of exporting an image to
an SVG without the extra-specification tags.

If the modern PDF standard can directly embed SVG, then probably it
wouldn't be too hard to show the SVG image in the LyX-created PDF,
without using Inkscape as a file converter. But if PDF can't directly
address embedded SVG, then Inkscape will indeed be needed by LyX as a
converter. It's easy to install free software.

By the way, a suggestion. If you're making diagrams with text, you
might find the text becoming too big or too small for the diagram in
your final output. If that happens to you, the solution is to convert
all text to curves before using the SVG. The upside of this is your SVG
looks in a browser just like it looked in Inkscape. The downside is
that the SVG gets much bigger, and it's no longer text-searcheable or
able to copy from.

Here's my shellscript to convert my SVG text to curves:

==
#!/bin/sh
orgname=$1
basename=`echo $orgname | sed -e's/\.[^.]*$//'`
extension=`echo $orgname | sed -e's/.*\.\([^.]*\)$/\1/'`
if test "$extension" != "svg"; then
echo "Must be extension svg, not $extension. Aborting."
exit 1
fi

newname=${basename}_nf.${extension}
echo Converting $orgname to $newname

if ! test -f $orgname; then
echo  "$orgname doesn't exist: Aborting."
exit 1
fi

inkscape --export-background=#ff \
 --export-text-to-path \
 --export-use-hints \ 
 --export-plain-svg=$newname $orgname 
gpicview $newname
======


SteveT

Steve Litt 
October 2017 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


Re: Error File '/var/folders/lw/lwhvvr995qd496m04pr11sp80000gn/T/lyx_tmpdir.zuVLBxb13258/lyx_tmpbuf0/Diss121.tex' was not closed properly.

2017-08-27 Thread Steve Litt
On Sun, 27 Aug 2017 13:15:41 +0200
Mark Hempelmann  wrote:

> Dear Lyx-Wizards,
> 
> I researched on above error and the closest I got was the discussion
> between Wolfgang and Jürgen in 2010. However, my text compiled fine
> with Lyx 2.1.5, now with the 2.2.3 update I get above error. I’m
> using German characters, don’t know where to find the encoding,
> though, I thought it was Latin1 or UTF8.
> 
> I’m completely lost as where to start looking at, I cannot remove all
> my „Umlaute“ or the like. I’m using bibdesk for literature. Here is
> my preamble:
> 
> 
> \usepackage[backend=biber,style=philosophy-modern,natbib=true]{biblatex}
> \usepackage{amsmath}
> \usepackage{amssymb}  % für mathbb
> \usepackage{marginnote}   % Randnotizen
> \usepackage{ragged2e}
> \usepackage{blindtext} % Lorem ipsum
> \usepackage{lipsum}
> 
> \addbibresource{/Users/mhem23/Documents/Uni/Dissertation/Bibliothek/bibdesk/DissBib3.bib}
> 
> \setlength{\marginparwidth}{2,5cm}% setze Randnotizbreite
> \renewcommand*{\marginfont}{\footnotesize \bfseries}
> \let\marginpar\marginnote % \marginpar ist jetzt identisch mit
> \marginnote
> 
> \usepackage{xcolor}
> \usepackage[framemethod=tikz]{mdframed}   % für Absatzboxen
> aller Art \usepackage{longtable, array}
> 
> Please help me along, it worked with my old Lyx!
> 
> Thank you very much
> mark

I predict you'll fix this problem in 90 minutes.

The first thing you do when reporting a problem with a LyX document is
to submit a "minimal working example" of the malfunction. In other
words, the smallest possible LyX file that displays the symptom.

The way you do that is first, archive your current file, because that's
where you'll begin after solving the problem.

Next, copy your doc to a junk file, cut that junk file in half, and see
if it displays the symptom. If not, try it with just the half you cut
out. Anyway, keep on removing approximately half the text (and also
half the stuff in the document's properties and layout file, if it has
one. You can probably get things down to a 1 paragraph document that's
less than 1K of LyX file, in which you can toggle the symptom by
deleting some of it. By that point the cause will be pretty obvious.

Once you can toggle it on and off, either you can fix it quickly, or
you can send your 1K LyX file to the mailing list and soon get an
answer. I always try to fix it myself first.

Best of luck.

SteveT


Re: texlive2017 and lyx

2017-08-25 Thread Steve Litt
On Fri, 25 Aug 2017 11:34:25 +0200
Wolfgang Engelmann  wrote:

> Two questions:
> 
> What do I have to do to get the texlive2017 working

If your older texlive is working (like 2016), I'd imagine there's a
tlmgr command to bring everything up to 2017.

> 
> I have installed texlive2017 from the CTAN DVD on my PC with debian 
> Jessie at /usr/local/

Unless you have no reasonable speed Internet access and can't go
somewhere else that has such access, I'd use the proper tlmgr command.

SteveT


Re: Grammar checking

2017-08-22 Thread Steve Litt
On Tue, 22 Aug 2017 15:35:38 +0200
"Patrick Dupre"  wrote:

> Hello,
> 
> lyx offers a language checker, but not a grammar checker.
> I installed the check-Tex option, but the results are not convincing
> (at least in English). The suggestion are really poor.
> Is there any way to install a more efficient grammar checker?
> To circumvent the problem, I used to generate a rtf file and then to
> use freeoffice which let me use a grammar checker like LT.
> However, the generation of the rtf file is really problematic for a 
> scientific document (for example, I have to remove the section,
> subsection, etc..).
> 
> Some suggestions?

Last century I tried MSWord's grammar checker. I found it a great idea
impossible to implement. It would often let fly sentences with a wrong
word, and worse yet, it would flag lots of sentences that any author
would feel good about writing.

I think that, once you get past absolutely horrible grammar, grammar
checking becomes nothing but frustration.

I mentioned MSWord, which is obviously bad software, but I really think
it's impossible to implement a useful grammar checker with the current
state of AI. Wait another 10 years and perhaps grammar checkers will
learn how we authors talk, and base checking on that.

SteveT


Re: all-inclusive file format

2017-08-17 Thread Steve Litt
On Wed, 16 Aug 2017 15:41:17 +0200
Roberto  wrote:

> On 04/08/2017 17:35, Cris Fuhrman wrote:
> > I support abstracting file details because it makes using LyX
> > easier, but at the same time I would not like to give up control
> > over the modular aspects, such as the custom converters, which I
> > think is a big strength in LyX design. For example, being able to
> > update all my article's figures generated from an R script and not
> > have to change anything in the LyX file is a huge convenience!  
> 
> I guess you can decide when you add a new graphics if LyX has to 
> "ingest" it or leave it where it is, just an option for that graphics.

Are you ever going to let this thread die? You've aleady found that as
many people are against it as for it. You've been informed it will
break existing things (and then you argued about that). You've been
presented with the perfectly good alternative of zipping or tarballing
your document directory, and you found things you didn't like about
that.

Here's why what you want will never get built:

* Developer time is very valuable, with lots of competing improvements.

* Your idea is somewhere between unpopular and lukewarm popular.

* Nobody actually committed to writing the code.

* You never offered to help write the code.

If you value your credibility, your best move now is to let this
thread die.

SteveT


Re: LyX native format stuck in the middle

2017-08-12 Thread Steve Litt
On Fri, 11 Aug 2017 09:23:06 +0100
José Abílio Matos <jama...@lyx.org> wrote:

> On Monday, 31 July 2017 18.30.31 WEST Steve Litt wrote:
> > I know what I'm asking for is monsterously difficult, and I know I
> > certainly don't have the technical chops to do it. But when it gets
> > done, LyX will be a brand new world,  finally living up to its
> > promise of write once, deploy everywhere.
> > 
> > Thanks,
> > 
> > SteveT  
> 
> The main technical problems of this enterprise are the math insets.
> Should they also be converted to an xml like format?

Hi José,

You ask two different questions:

1) Should math insets be well formed XML?

2) MUST math insets be well formed XML?

To #1, yes, it would be nice, and then math insets could be handled via
an XML parser. This is something we'd want to work toward at some
point in the future.

To #2, HECKNO! The perfect is the enemy of the good, so it would be
silly to hold up the rest of the XMLization just for math insets. As
long as you can encapsulate the math insets in an XML tag in a way that
they won't cause an XML parser to choke or abort, that's wonderful: The
XML parser can hand the application programmer the encasing XML node,
and the application programmer can parse apart the math insets
herhimself.

SteveT


Re: Tips on LaTeX addons

2017-08-10 Thread Steve Litt
On Thu, 10 Aug 2017 11:37:21 +0100
Dr Eberhard Lisse  wrote:

> Steve,
> 
> so you upgraded TeX and lost some packages?

No, I just sat down to work one day and my books didn't compile. I
hadn't upgraded TeX. The day before I'd suffered a big data loss on a
different partition, but I can't see how that would have influenced my
TeX installation.

My operating theory is that my TeX software picked that day to stop
looking in the 2016 tree, where I still had those packages. But really,
that's just a guess.

SteveT



  1   2   3   4   5   6   7   8   9   10   >