Re: MWE compiles; full file doesn't

2023-05-23 Thread Steve Litt
Rich Shepard said on Mon, 22 May 2023 18:03:49 -0700 (PDT)

>On Mon, 22 May 2023, Steve Litt wrote:
>
>> Either your MWE failed to isolate the root cause, or there are two
>> (probably clashing or interacting) root causes and you only got one
>> of them.
>>
>> Just start with a copy of the whole document and subtract little by
>> little until something you subtract causes the symptom to disappear.
>> Then put that piece back in and leave that piece permanently in and
>> subtract other things little by little until the symptom again
>> toggles, and once again put it back in permanently. Continue until
>> there's nothing left to subtract.  
>
>SteveT,
>
>I've used this document (modified as necessary) with similar projects
>without any issues. This one uses un-numbered sectioning rather than
>numbered ones, otherwise it's essentially the same.

All I'm saying is if the MWE doesn't reproduce the symptom, it's not a
MWE at all. I was just explaining how to make an MWE that reproduces the
symptom.


SteveT

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


Re: MWE compiles; full file doesn't

2023-05-23 Thread Rich Shepard

On Tue, 23 May 2023, Herbert Voss wrote:


I have no problems with your examples and TeXLive 2023. The reason why I
cannot give more help.


Herbert,

That's interesting. I should be able to upgrade TeXLive on this
Slackware64-14.2 system.

Thanks,

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


Re: MWE compiles; full file doesn't

2023-05-23 Thread Rich Shepard

On Tue, 23 May 2023, Rich Shepard wrote:


I wonder why the differences?


Looking at the document settings, they're the same for the full document and
the MWE, but when exported to pdflatex their *.tex file preambles differ.

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


Re: MWE compiles; full file doesn't

2023-05-23 Thread Rich Shepard

On Tue, 23 May 2023, Herbert Voss wrote:


It looks like a problem with your header or title definition. Does it
contain a tabular? However, export your LyX document to latex and then
show the preamble.


Herbert,

I created the MWE by deleting everything after the chapter and first
section. The preamble is different from that of the entire document from
which the MWE was extracted:

%% LyX 2.3.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[twoside,headsepline=on, footsepline=on]{scrreprt}
\PassOptionsToPackage{natbib=true}{biblatex}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=4cm,bmargin=2cm,lmargin=2cm,headsep=1.5cm}
\pagestyle{plain}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{graphicx}

\makeatletter
%% User specified LaTeX commands.
\date{}
\usepackage{ftnxtra}
\usepackage{mathpazo,amssymb}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\usepackage{xcolor,colortbl}
\usepackage{chngcntr}
\counterwithout{figure}{section}
\definecolor{lightgray}{gray}{0.8}
\pagestyle{scrheadings}
\lehead{Biological Evaluation}
\rohead{Biological Evaluation}
\refoot{Applied Ecosystem Services, LLC}
\lofoot{Applied Ecosystem Services, LLC}
\automark*{section}

\makeatother

\usepackage[style=authoryear]{biblatex}
\begin{document}
\titlehead{\includegraphics[viewport=0bp 0bp 528bp 
157bp,clip,width=1\textwidth]{/home/rshepard/documents/templates/llc-letterhead}}
\title{Title goes here\\
It can have multiple lines\\
like the real doc}
\subtitle{Prepared for:\\
some agency's\\
Regulatory Branch}
\date{\today}
\maketitle

\chapter*{Chapter title}

\section*{Section 1}

Some text here.
\end{document}

I wonder why the differences?

Regards,

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


Re: MWE compiles; full file doesn't

2023-05-23 Thread Rich Shepard

On Tue, 23 May 2023, Herbert Voss wrote:


It looks like a problem with your header or title definition. Does it
contain a tabular? However, export your LyX document to latex and then
show the preamble.


Herbert,

I changed the title and subtitle so the style formatted them, rather than me
adding newlines. Still have the same error.

Rich

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


Re: MWE compiles; full file doesn't

2023-05-23 Thread Rich Shepard

On Tue, 23 May 2023, Herbert Voss wrote:


It looks like a problem with your header or title definition. Does it
contain a tabular? However, export your LyX document to latex and then
show the preamble.


Herbert,

No tabular in the title or preamble. Here's the preamble and header:

%% LyX 2.3.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[twoside,headsepline=on, footsepline=on]{scrreprt}
\PassOptionsToPackage{natbib=true}{biblatex}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[letterpaper]{geometry}
\geometry{verbose,tmargin=4cm,bmargin=2cm,lmargin=2cm,headsep=1.5cm}
\pagestyle{plain}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{array}
\usepackage{units}
\usepackage{textcomp}
\usepackage{url}
\usepackage{pdfpages}
\usepackage{graphicx}

\makeatletter

%% LyX specific LaTeX commands.
%% Special footnote code from the package 'stblftnt.sty'
%% Author: Robin Fairbairns -- Last revised Dec 13 1996
\let\SF@@footnote\footnote
\def\footnote{\ifx\protect\@typeset@protect
\expandafter\SF@@footnote
  \else
\expandafter\SF@gobble@opt
  \fi
}
\expandafter\def\csname SF@gobble@opt \endcsname{\@ifnextchar[%]
  \SF@gobble@twobracket
  \@gobble
}
\edef\SF@gobble@opt{\noexpand\protect
  \expandafter\noexpand\csname SF@gobble@opt \endcsname}
\def\SF@gobble@twobracket[#1]#2{}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


%% User specified LaTeX commands.
\date{}
\usepackage{ftnxtra}
\usepackage{mathpazo,amssymb}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\usepackage{xcolor,colortbl}
\usepackage{chngcntr}
\counterwithout{figure}{section}
\definecolor{lightgray}{gray}{0.8}
\pagestyle{scrheadings}
\lehead{Biological Evaluation}
\rohead{Biological Evaluation}
\refoot{Applied Ecosystem Services, LLC}
\lofoot{Applied Ecosystem Services, LLC}
\automark*{section}

\makeatother

\usepackage[style=authoryear]{biblatex}
\addbibresource{/home/rshepard/documents/jabrefdb.bib}
\begin{document}
\titlehead{\includegraphics[viewport=0bp 0bp 528bp 
157bp,clip,width=1\textwidth]{/home/rshepard/documents/templates/llc-letterhead}}

\title{Biological Evaluation:\\
Recreational Boat Dock Elevated Walkway\\
Clark County Reach of the Columbia River}
\subtitle{Prepared for:\\
U.S. Army Corps of Engineers\\
Seattle District\\
Regulatory Branch}
\date{\today}

Regards,

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


Re: MWE compiles; full file doesn't

2023-05-22 Thread Herbert Voss




Am 22.05.23 um 23:54 schrieb Rich Shepard:

This is a new one for me: the full document won't compile (but it did one
time) while the MWE compiles each time. The error is in the heading; 
the MWE
has my company logo (.pdf not attached), a title, a subtitle and a 
date. The
date (or the last line of the subtitle) is highlighted when the build 
fails.


It looks like a problem with your header or title definition. Does it 
contain

a tabular? However, export your LyX document to latex and then show
the preamble.

Herbert


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


Re: MWE compiles; full file doesn't

2023-05-22 Thread Rich Shepard

On Mon, 22 May 2023, Steve Litt wrote:


Either your MWE failed to isolate the root cause, or there are two
(probably clashing or interacting) root causes and you only got one of
them.

Just start with a copy of the whole document and subtract little by
little until something you subtract causes the symptom to disappear.
Then put that piece back in and leave that piece permanently in and
subtract other things little by little until the symptom again toggles,
and once again put it back in permanently. Continue until there's
nothing left to subtract.


SteveT,

I've used this document (modified as necessary) with similar projects
without any issues. This one uses un-numbered sectioning rather than
numbered ones, otherwise it's essentially the same.

I'll use the same divide-and-conquer as I used chasing bugs in Fortran code
long ago.

Thanks,

Rich


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


Re: MWE compiles; full file doesn't

2023-05-22 Thread Steve Litt
Rich Shepard said on Mon, 22 May 2023 14:54:54 -0700 (PDT)

>This is a new one for me: the full document won't compile (but it did
>one time) while the MWE compiles each time. The error is in the
>heading; the MWE has my company logo (.pdf not attached), a title, a
>subtitle and a date. The date (or the last line of the subtitle) is
>highlighted when the build fails.
>
>The whole document has the same, plus the document content.
>
>The entire lyx error file is attached.
>
>I'm not seeing why I cannot compile the entire doc.
>
>Help's needed.
>
>Rich


Either your MWE failed to isolate the root cause, or there are two
(probably clashing or interacting) root causes and you only got one of
them. 

Just start with a copy of the whole document and subtract little by
little until something you subtract causes the symptom to disappear.
Then put that piece back in and leave that piece permanently in and
subtract other things little by little until the symptom again toggles,
and once again put it back in permanently. Continue until there's
nothing left to subtract.

HTH,

SteveT

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


MWE compiles; full file doesn't

2023-05-22 Thread Rich Shepard

This is a new one for me: the full document won't compile (but it did one
time) while the MWE compiles each time. The error is in the heading; the MWE
has my company logo (.pdf not attached), a title, a subtitle and a date. The
date (or the last line of the subtitle) is highlighted when the build fails.

The whole document has the same, plus the document content.

The entire lyx error file is attached.

I'm not seeing why I cannot compile the entire doc.

Help's needed.

Rich

lyx-compile-error.log.Z
Description: Binary data
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrreprt
\begin_preamble
\date{}
\usepackage{ftnxtra}
\usepackage{mathpazo,amssymb}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\usepackage{xcolor,colortbl}
\usepackage{chngcntr}
\counterwithout{figure}{section}
\definecolor{lightgray}{gray}{0.8}
\pagestyle{scrheadings}
\lehead{Biological Evaluation}
\rohead{Biological Evaluation}
\refoot{Applied Ecosystem Services, LLC}
\lofoot{Applied Ecosystem Services, LLC}
\automark*{section}
\end_preamble
\options headsepline=on, footsepline=on
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format pdf2
\output_sync 0
\bibtex_command biber
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 0
\use_package mathdots 0
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine biblatex-natbib
\cite_engine_type authoryear
\biblatex_bibstyle authoryear
\biblatex_citestyle authoryear
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 2cm
\topmargin 4cm
\bottommargin 2cm
\headsep 1.5cm
\secnumdepth 2
\tocdepth 2
\paragraph_separation skip
\defskip medskip
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 2
\paperpagestyle plain
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Titlehead
\begin_inset Graphics
filename /home/rshepard/documents/templates/llc-letterhead.pdf
width 100text%
BoundingBox 0bp 0bp 528bp 157bp
clip

\end_inset


\end_layout

\begin_layout Title
Title goes here
\end_layout

\begin_layout Subtitle
Prepared for:
\begin_inset Newline newline
\end_inset

some agency's
\begin_inset Newline newline
\end_inset

Regulatory Branch
\end_layout

\begin_layout Date
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
today
\end_layout

\end_inset


\end_layout

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