Re: chktex

2017-12-23 Thread Scott Kostyshak
On Sat, Dec 23, 2017 at 11:47:45PM +, Rich Shepard wrote:

>   Have you any thoughts on how I can track the source of this discrepancy?

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


signature.asc
Description: PGP signature


Re: Book class supporting fancychap package [RESOLVED]

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Rich Shepard wrote:


 I'll find docs for scrlayer and scrlayer-scrpage to understand what they
do and would like your suggestions for a book class that allows other than
the default chapter heading style.


  These are too complicated for me to implement. I'll move the text to the
svmono.layout template and move on from there.

Rich


Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


Try making a copy of the document and opening the copy.


Paul,

  I'm taking a different approach. My last book, published by Springer, used
the svmono.cls/svmono.layout so I figured out how to use it as the current
book's class. Still no Check TeX in the Tools menu. However, ...

  Opening a new document which is the svmono template, it does have Check
TeX in the Tools menu. So, tomorrow I'll cut-and-paste from the document I
started to the template, then save it under the desired name and move on
from here. That should fix all issues.

My thanks to you and Scott,

Rich



Re: chktex

2017-12-23 Thread Paul A. Rubin

On 12/23/2017 06:47 PM, Rich Shepard wrote:

On Sat, 23 Dec 2017, Rich Shepard wrote:


 Yes, Check TeX appears in the Introduction document. It does show up in
an article-class documents (one of mine as well as the Introduction). It
does not appear in book or report classes: I tried Standard, 
KOMA-Script,

and Memoir books and Standard and KOMA-Script reports.


Scott,

  Now I'm thoroughly confused. The Additional document uses 
KOMA-Script book
class and Check TeX appears on the Tools menu. Wonder why it does not 
appear

on my document?

  Have you any thoughts on how I can track the source of this 
discrepancy?

With nothing in the preamble it still does not appear on the Tools menu.

Thanks,

Rich



Rich,

Try making a copy of the document and opening the copy. If you don't 
have chktex in the copy, delete the content, save and reopen. If you 
still don't have chktex, maybe something in the file is broken. If you 
now get chktex, there's something in the document content causing a 
problem. Start with a fresh copy of the document and do a bisection 
search, cutting out half the surviving content each time (then save and 
reopen -- not sure that's necessary, but I'd do it). Repeat until chktex 
comes back. The last chunk you deleted contains the problem.


Paul



Re: chktex

2017-12-23 Thread Paul A. Rubin

On 12/23/2017 06:22 PM, Rich Shepard wrote:

On Sat, 23 Dec 2017, Paul A. Rubin wrote:

That would be running buffer-chktex in the minibuffer, as Scott 
mentioned

... except you said it wouldn't work. :-(


Paul,

  I'll try it again. And, how do I get the minibuffer back at the 
bottom of
the window rather than on the right side? Not sure what I did to move 
it but

I cannot move it back now.

Thanks,

Rich
It has a "handle bar" (two parallel lines) at one end. When it's at the 
bottom of the screen, the handle bar is at the left. Where it is now, I 
suspect the handle bar is at the top. The cursor should turn into a hand 
when you mouse over it. Click and drag to the bottom of the window.


Paul



Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Rich Shepard wrote:


 Yes, Check TeX appears in the Introduction document. It does show up in
an article-class documents (one of mine as well as the Introduction). It
does not appear in book or report classes: I tried Standard, KOMA-Script,
and Memoir books and Standard and KOMA-Script reports.


Scott,

  Now I'm thoroughly confused. The Additional document uses KOMA-Script book
class and Check TeX appears on the Tools menu. Wonder why it does not appear
on my document?

  Have you any thoughts on how I can track the source of this discrepancy?
With nothing in the preamble it still does not appear on the Tools menu.

Thanks,

Rich




Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Scott Kostyshak wrote:


Rich, I just wanted to make sure you saw this question. Did you check for
a very simple document?


Scott,

  Mea culpa. I've been distracted with other issues (such as not previewing
or compiling), but those have now been resolved.


In addition to checking for a very simple document you have, can you go to
Help > Introduction and then see if Tools > Check TeX appears?


  Yes, Check TeX appears in the Introduction document. It does show up in an
article-class documents (one of mine as well as the Introduction). It does
not appear in book or report classes: I tried Standard, KOMA-Script, and
Memoir books and Standard and KOMA-Script reports.

Thanks for the reminder,

Rich


Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


That would be running buffer-chktex in the minibuffer, as Scott mentioned
... except you said it wouldn't work. :-(


Paul,

  I'll try it again. And, how do I get the minibuffer back at the bottom of
the window rather than on the right side? Not sure what I did to move it but
I cannot move it back now.

Thanks,

Rich


Book class supporting fancychap package

2017-12-23 Thread Rich Shepard

  I've been using the KOMA-Script classes for my writing because of the
flexibility they offer. The current document uses the KOMA-Script book class
which has deprcated fonts incompatible with the fncychap package:

Class scrbook Warning: Usage of package `fancyhdr' together
(scrbook)  with a KOMA-Script class is not recommended.
(scrbook)  I'd suggest to use 
(scrbook)  package `scrlayer' or `scrlayer-scrpage', because

(scrbook)  they support KOMA-Script classes.
(scrbook)  With `fancyhdr' several features of class `scrbook'
(scrbook)  like options `headsepline', `footsepline' or command
(scrbook)  `\MakeMarkcase' and the commands `\setkomafont' and
(scrbook)  `\addtokomafont' for the page style elements need
(scrbook)  explicite user intervention to work.
(scrbook)  Nevertheless, using requested
(scrbook)  package `fancyhdr' on input line 15.

  The default book classes and the Memoir class don't have an Extratitle
class, and perhaps lack other environments.

  I'll find docs for scrlayer and scrlayer-scrpage to understand what they
do and would like your suggestions for a book class that allows other than
the default chapter heading style.

Rich


Re: chktex

2017-12-23 Thread Scott Kostyshak
On Sat, Dec 23, 2017 at 05:32:03PM +, Scott Kostyshak wrote:

> If it is a "yes", can you see if it shows up in a very simple document
> (no modules added or anything like that)?

Rich, I just wanted to make sure you saw this question. Did you check
for a very simple document? In addition to checking for a very simple
document you have, can you go to Help > Introduction and then see if
Tools > Check TeX appears?

Scott


signature.asc
Description: PGP signature


Re: chktex

2017-12-23 Thread Paul A. Rubin

On 12/23/2017 05:02 PM, Rich Shepard wrote:


  It is strange that it's present but not on the menu. If there's a 
way to

manually invoke chktex that'll work for me.
That would be running buffer-chktex in the minibuffer, as Scott 
mentioned ... except you said it wouldn't work. :-(


Paul



Issues with version control

2017-12-23 Thread Rich Shepard

  I _thought_ I had set up version control using GIT. Checking in the
document after adding text now generates an error (see attached .png).

  Turns out that there was no .git repository in that directory, so I
created one manually and will manually commit changes. Perhaps it's not
working from the File -> Version control menu item?

Rich

Re: Preview error [FIXED]

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Rich Shepard wrote:


 What have I done incorrectly?


  Don't know, but deleting all around the title, then adding extratitle and
other environments back one at a time fixed the issue.

Rich


Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


Well, I'm bamfoozled.


  That makes two of us.


Incidentally, there are a bunch of screenshot utilities (I use
gnome-screenshot) that include a delay feature. If you have one of those,
select the screen area to grab, set a timer, then zip back to LyX and open
the Tools menu before the birdie flaps its wings.


  xv has that, too. But, it did not work for me.

We've exonerated the configuration script (and, I'm pretty sure, the 
installation of chktex itself). I can't picture what in the SlackBuilds build 
script could possibly bugger this.


  It is strange that it's present but not on the menu. If there's a way to
manually invoke chktex that'll work for me.

Rich


Re: Preview error

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Rich Shepard wrote:


 Now when I try to preview the document I get this error;
LyX: Error in latex paragraphs:
You are using at least one layout (Title) intended for the title, after
using non-title layouts. This could lead to missing or incorrect output.

 Error log shows:
! LaTeX Error: No \title given.


  Attached is the initial portion of the document body in the .lyx file. I
fail to see why lyx finds a Title layout after non-title layouts. What I see
is \extratitle followed by \title, and no other title layouts after that.

  What have I done incorrectly?

Rich#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
%% redacted header
\begin_body

\begin_layout Extratitle
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
textbf{
\backslash
LARGE {
\end_layout

\end_inset

%% Redacted Extratitle
\begin_inset ERT
status open

\begin_layout Plain Layout

}}
\end_layout

\end_inset


\end_layout

\begin_layout Standard

\end_layout

\begin_layout Title
%% Redacted Title
\end_layout

\begin_layout Author
Richard B.
 Shepard
\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
frontmatter
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
pagenumbering{roman}
\end_layout

\end_inset


\end_layout

\begin_layout Uppertitleback
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
vspace{2.5in}
\backslash
center{
\end_layout

\end_inset

Published by
\begin_inset Newline newline
\end_inset

%% Redacted publisher
\begin_inset Newline newline
\end_inset

%% Redacted publisher, line 2
\begin_inset ERT
status open

\begin_layout Plain Layout

}
\end_layout

\end_inset


\end_layout

\begin_layout Lowertitleback
Copyright 
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
copyright
\end_layout

\end_inset

 2017 Applied Ecosystem Services, LLC
\begin_inset Newline newline
\end_inset

All rights reserved.
\end_layout

\begin_layout Standard
\begin_inset CommandInset toc
LatexCommand tableofcontents

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
chapter*{Preface}
\end_layout

\end_inset


\end_layout

\begin_layout Standard
%% Redacted Preface
\end_layout

\begin_layout Standard
%% Redacted more of preface
\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
mainmatter
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
pagenumbering{arabic}
\end_layout

\end_inset


\end_layout

\begin_layout Chapter
Introduction
%% Redacted rest of text.
\end_layout

\end_body

\end_document


Re: chktex

2017-12-23 Thread Paul A. Rubin

On 12/23/2017 03:57 PM, Rich Shepard wrote:

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


This should be redundant, given that the config script appeared to find
chktex, but better safe than sorry. If you open Tools > Preferences... >
Output > LaTeX and gaze upon the "CheckTeX command:" box, do you espy
"chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"?


Paul,

  Sure 'nuff: see attached. Can't grab a screenshot of the Tools menu; it
closes each time I move the cursor to the xv window.

Thanks,

Rich
Well, I'm bamfoozled. Incidentally, there are a bunch of screenshot 
utilities (I use gnome-screenshot) that include a delay feature. If you 
have one of those, select the screen area to grab, set a timer, then zip 
back to LyX and open the Tools menu before the birdie flaps its wings.


We've exonerated the configuration script (and, I'm pretty sure, the 
installation of chktex itself). I can't picture what in the SlackBuilds 
build script could possibly bugger this.


Paul



Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


This should be redundant, given that the config script appeared to find
chktex, but better safe than sorry. If you open Tools > Preferences... >
Output > LaTeX and gaze upon the "CheckTeX command:" box, do you espy
"chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"?


Paul,

  Sure 'nuff: see attached. Can't grab a screenshot of the Tools menu; it
closes each time I move the cursor to the xv window.

Thanks,

Rich

Re: chktex

2017-12-23 Thread Paul A. Rubin

On 12/23/2017 02:44 PM, Rich Shepard wrote:

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


Just to be clear, it does not appear in the Tools menu with a document
loaded?


Paul,

  Yep. The environments sequence I provided is from one of the opened
documents, a book. Not sure how (or why) one would look to lint anything
else.

Rich

This should be redundant, given that the config script appeared to find 
chktex, but better safe than sorry. If you open Tools > Preferences... > 
Output > LaTeX and gaze upon the "CheckTeX command:" box, do you espy 
"chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"?


Paul



Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


Just to be clear, it does not appear in the Tools menu with a document
loaded?


Paul,

  Yep. The environments sequence I provided is from one of the opened
documents, a book. Not sure how (or why) one would look to lint anything
else.

Rich



Re: chktex

2017-12-23 Thread Paul A. Rubin

On 12/23/2017 01:49 PM, Rich Shepard wrote:

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


Scott's referring to the LyX configuration script. Run Tools >
Reconfigure, then find configure.log in your ~/.lyx directory and either
eyeball it in an editor or run "grep -i chktex configure.log" to see if
the configure script found the ChkTeX executable.


Paul,

  Oh. OK. This is one of the reasons I'm re-reading all the help manuals
because so much has changed since lyx-1.x.

$ grep -i chktex configure.log INFO: checking for ChkTeX...
INFO: +checking for "chktex"...  yes
\chktex_command "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"

  And it's still not on the Tools menu.

Thanks,

Rich
Just to be clear, it does not appear in the Tools menu with a document 
loaded? (It won't show up in the Tools menu until you have a doc open.)


Paul



Preview error

2017-12-23 Thread Rich Shepard

  Using lyx-2.2.3; KOMA-Script book class. The environment sequence at the
beginning of the document is:

Extratitle
Title
Author
frontmatter
ToC
Standard (\chapter*{Preface})
Chapter (1)

  Now when I try to preview the document I get this error;
LyX: Error in latex paragraphs:
You are using at least one layout (Title) intended for the title, after
using non-title layouts. This could lead to missing or incorrect output.

  Error log shows:
! LaTeX Error: No \title given.

  I'm not seeing what changed from before when the preview worked.

Rich


Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Paul A. Rubin wrote:


Scott's referring to the LyX configuration script. Run Tools >
Reconfigure, then find configure.log in your ~/.lyx directory and either
eyeball it in an editor or run "grep -i chktex configure.log" to see if
the configure script found the ChkTeX executable.


Paul,

  Oh. OK. This is one of the reasons I'm re-reading all the help manuals
because so much has changed since lyx-1.x.

$ grep -i chktex configure.log 
INFO: checking for ChkTeX...

INFO: +checking for "chktex"...  yes
\chktex_command "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"

  And it's still not on the Tools menu.

Thanks,

Rich


Re: chktex

2017-12-23 Thread Paul A. Rubin

On 12/23/2017 12:46 PM, Rich Shepard wrote:

On Sat, 23 Dec 2017, Scott Kostyshak wrote:


What does your configure log show for chktex? It should show something
like:

INFO: checking for ChkTeX...
INFO: +checking for "chktex"...

followed by a "yes" or a "no".


Scott,

  I use the SlackBuilds.org build script (and have for many years) and 
the
configure; make sequence run automatically. There's nothing in the 
script's

configuration section specifically in- or excluding features.

Rich,

Scott's referring to the LyX configuration script. Run Tools > 
Reconfigure, then find configure.log in your ~/.lyx directory and either 
eyeball it in an editor or run "grep -i chktex configure.log" to see if 
the configure script found the ChkTeX executable.


Paul



Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Rich Shepard wrote:


"Command disabled (buffer-chkbox)".


  Typo: that should be buffer-chktex.

Rich


Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Scott Kostyshak wrote:


If it doesn't show up there, what is the output in the messages pane of
running the following LFUN directly?
   buffer-chktex


Scott,

  Using Alt-x opens the mini-buffer and running buffer-chktex tells me
"Command disabled (buffer-chkbox)".

  Looks like I need to modify the SBo build script.

Thanks,

Rich


Re: chktex

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Scott Kostyshak wrote:


What does your configure log show for chktex? It should show something
like:

INFO: checking for ChkTeX...
INFO: +checking for "chktex"...

followed by a "yes" or a "no".


Scott,

  I use the SlackBuilds.org build script (and have for many years) and the
configure; make sequence run automatically. There's nothing in the script's
configuration section specifically in- or excluding features.


If it doesn't show up there, what is the output in the messages pane of
running the following LFUN directly?
   buffer-chktex


  I cannot type in the mini-buffer; I'm told it's read only. Typing M-x
doesn't help.

Thanks,

Rich


Re: chktex

2017-12-23 Thread Scott Kostyshak
On Sat, Dec 23, 2017 at 05:20:42PM +, Rich Shepard wrote:
>   The 'Additional' manual, in Section 7.1 reads, "If you have the chktex
> program installed you'll find in the Tools menu the entry: Check TeX.'
> 
>   Here, with TeXLive-20170520 I find:
> 
> $ locate chktex
> /usr/bin/chktex
> /usr/man/man1/chktex.1.gz
> /usr/share/texmf-dist/chktex
> /usr/share/texmf-dist/chktex/chktexrc
> /usr/share/texmf-dist/scripts/chktex
> /usr/share/texmf-dist/scripts/chktex/deweb.pl
> /usr/share/texmf-dist/scripts/chktex/chkweb.sh
> 
>   Yet it's not found in the lyx-2.2.3 Tools menu. Please suggest how I can
> add it to lyx.

What does your configure log show for chktex? It should show something
like:

INFO: checking for ChkTeX...
INFO: +checking for "chktex"...  

followed by a "yes" or a "no".

If it is a "yes", can you see if it shows up in a very simple document
(no modules added or anything like that)?

If it doesn't show up there, what is the output in the messages pane of
running the following LFUN directly?

buffer-chktex

Scott


signature.asc
Description: PGP signature


chktex

2017-12-23 Thread Rich Shepard

  The 'Additional' manual, in Section 7.1 reads, "If you have the chktex
program installed you'll find in the Tools menu the entry: Check TeX.'

  Here, with TeXLive-20170520 I find:

$ locate chktex
/usr/bin/chktex
/usr/man/man1/chktex.1.gz
/usr/share/texmf-dist/chktex
/usr/share/texmf-dist/chktex/chktexrc
/usr/share/texmf-dist/scripts/chktex
/usr/share/texmf-dist/scripts/chktex/deweb.pl
/usr/share/texmf-dist/scripts/chktex/chkweb.sh

  Yet it's not found in the lyx-2.2.3 Tools menu. Please suggest how I can
add it to lyx.

TIA,

Rich


Re: Fancyhdr

2017-12-23 Thread Rich Shepard

On Sat, 23 Dec 2017, Ricardo Berlasso wrote:


Yes. The "Fancy" option indeed adds that line to the preamble. You can
check what's on the "hidden" preamble by opening the "code pane" (View →
Code Preview Pane) and select the "Only Preamble" option.


Ricardo,

  That's interesting. When I looked at the .lyx code I saw only what I had
placed in the preamble, including the line %\usepackage{fancyhdr}, and none
of the other included packages seen in the source preview.

Thanks for the lesson,

Rich


Re: Fancyhdr

2017-12-23 Thread Ricardo Berlasso
2017-12-23 17:00 GMT+01:00 Rich Shepard :

>   When I select 'Fancy' in the page layout settings is it redundant to add
> \usepackage{fancyhdr} in the preamble?
>

Yes. The "Fancy" option indeed adds that line to the preamble. You can
check what's on the "hidden" preamble by opening the "code pane" (View →
Code Preview Pane) and select the "Only Preamble" option.

Regards,
Ricardo



>
> Rich
>


Fancyhdr

2017-12-23 Thread Rich Shepard

  When I select 'Fancy' in the page layout settings is it redundant to add
\usepackage{fancyhdr} in the preamble?

Rich


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


File names -- 2.3rc1

2017-12-23 Thread F M Salter
Hi,

    Lyx 2.3 rc1 fails to save certain file names correctly!

    I wish to create file names matching a particular pattern.   I enter
the intended title  ---   test-2017.Dec.23.   Copy it with control-c.
    Open the "save as" dialogue and paste using control-v.  At this
point all appears well!  However the saved file name is test-2017.Dec.lyx.

    My OS is debian Jessie.  Multiple dots in file names are valid!

Merry Christmas and a Happy New Year
Frank Salter