Re: KOMA-Script article float numbering

2022-08-18 Thread Daniel

On 2022-08-18 17:44, Rich Shepard wrote:

Also, it points to

"C:/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf"


Doubtful as I defenestrated in 1997 and have run only linux ever since.


I guess it is

/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf

on your system and LyX added the "C:".


The test .lyx location should be changed to whereever it is on someone else's
system since I've no idea where it would be located so lyx could find it.


That is what relative paths are for, so you do not need to rely on 
people having to change things. If you really need to add an extra file 
to a mwe, just put in in the same directory and use a relative path to 
it, i.e. just the filename in this case rather than the absolute path.


Daniel



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


Re: KOMA-Script article float numbering

2022-08-18 Thread Rich Shepard

On Thu, 18 Aug 2022, Daniel wrote:


I don't know what original post you refer to. The threat started with the
post I commented on which included a bit of superfluous stuff in the
lyx-file.


Daniel,

That was my original post


This is what the preamble contained:

\date{}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}

None of these are relevant to your problem, right? Meaning the problem 
appears even if you remove these lines.


Yes, and I removed them in the revised mwe.lyx attached to my response to
your message.

In your document, you have an inserted graphic (pdf file). This doesn't seem 
relevant either. So, you could just remove it.


Then, would the Figure 0.1 be seen? The issue is how floats are numbered
when the unnumbered section* is selected as the environment.


Also, it points to

"C:/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf"


Doubtful as I defenestrated in 1997 and have run only linux ever since. The
test .lyx location should be changed to whereever it is on someone else's
system since I've no idea where it would be located so lyx could find it.

Regards,

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


Re: KOMA-Script article float numbering

2022-08-18 Thread Daniel

On 18/08/2022 14:16, Rich Shepard wrote:

On Thu, 18 Aug 2022, Daniel wrote:


1. Post a .lyx file that is more minimal (e.g. does not contain
unnecessary external material). Try to strip off everything that is
unnecessary, including preamble material.



2. The file should contain what does *not* work (e.g. you seem to suggest
that the problem is in a KOMA-Script article but your attached lyx 
file is

a KOMA-Script report).



3. State clearly what is the actual and expected result.


Daniel,

I did all this in my original post.


Hi Rich,

I don't know what original post you refer to. The threat started with 
the post I commented on which included a bit of superfluous stuff in the 
lyx-file.



1. I removed the extraneous preamble material.


This is what the preamble contained:

\date{}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}

None of these are relevant to your problem, right? Meaning the problem 
appears even if you remove these lines.


In your document, you have an inserted graphic (pdf file). This doesn't 
seem relevant either. So, you could just remove it.


Also, it points to

"C:/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf"

which cannot work on other people's systems even if you provide that 
file. By the way, it will even stop working on your system if you move 
the project directory to another location. It might be better to use 
relative paths, starting from your document. Say you have the following 
structure:


C:/.../myproject/mydocs/mydoc.lyx
C:/.../myproject/myimages/myimage.pdf

Then you can use "../myimages/myimage.pdf" as your path referring to 
myimage.pdf relative to your mydoc.lyx. And other people will be able to 
straight away use your doc.lyx as long as you provide them with the 
whole myproject directory. But again, for your mwe.lyx, this doesn't 
have to be part of it.


I have seen that your  seems to have gotten resolved already. So, I just 
wanted to give you this (not asked for) feedback on these other parts 
the mwe. It isn't meant as criticism. Just as a suggestion.


Kind regards,
Daniel

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


Re: KOMA-Script article float numbering [RESOLVED]

2022-08-18 Thread Rich Shepard

On Thu, 18 Aug 2022, Udicoudco wrote:


I don't have much  experience with KOMA-Script document classes, but from
what I've been reading in the documentation, automark does not have
anything to do with figure numbering, the command changes the page marks
above the headrule.


Udi,

That's interesting. I admit that I didn't fully search through the
KOMA-Script doc.


The reason the figure is numbered differently in the report class is that
in this class the chapter command is defined, and as a convention when it
is defined, usually figures are numbered within the chapter counter. On
the contrary, in report class, chapters are not defined.


If I use numbered sections there's no problem with float figures (or tables)
being numbered with integers regardless of class. Using unnumbered document
sections*, or chapters*, are when there's an issue.


To remove the figure counter from the reset list of chapter, you can
simply write in the preamble \counterwithout{figure}{chapter}, it will
also change the format of \thefigure to be \@arabic{\c@figure} which is
what I believe you want.


In previous documents (report class) unnumbered sections displayed figures
with integers when /automark*{section} was in the preamble. For some reason,
it did not do so with this one document. So I changed your command to
\counterwithout{figure}{section} and that did the trick. Thank you.


Note that this will only change the counter in the output file, and not in
the lyx file.


That's all that matters, :-)

Thanks very much for teaching me \counterwithout{}{}.

Regards,

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


Re: KOMA-Script article float numbering

2022-08-18 Thread Udicoudco
> > 1. Post a .lyx file that is more minimal (e.g. does not contain
> > unnecessary external material). Try to strip off everything that is
> > unnecessary, including preamble material.
>
> > 2. The file should contain what does *not* work (e.g. you seem to suggest
> > that the problem is in a KOMA-Script article but your attached lyx file
> is
> > a KOMA-Script report).
>
> > 3. State clearly what is the actual and expected result.
>
> Daniel,
>
> I did all this in my original post.
>
> 1. I removed the extraneous preamble material.
>
> 2. The figure on page 2 is labled 0.1 rather than 1. Yes, this document's
> class is report, not article. I thought I had changed the class, but did
> not
> do so. What does *not* work is \automark*{section} in this document when it
> did in previous ones..
>
> 3. The actual result is the figure labeled 0.1 and the expected result is
> the figure labeled 1.
>
> Regards,
>
> Rich
> --
>
>
Hi Rich,

I don't have much  experience with KOMA-Script document classes, but from
what I've been reading in the documentation, automark does not have
anything to do with figure numbering, the command changes the page marks
above the headrule.

The reason the figure is numbered differently in the report class is that
in this class the chapter command is defined,  and as a convention when it
is  defined, usually figures are numbered within the chapter counter. On
the contrary, in report class, chapters are not defined.

To remove the figure counter from the reset list of chapter, you can simply
write in the preamble \counterwithout{figure}{chapter}, it will also change
the format of \thefigure to be \@arabic{\c@figure} which is what I believe
you want.

Note that this will only change the counter in the output file, and not in
the lyx file. To change the counter in the lyx file you can write in the
local layout

Float
Type  figure
NumberWithin  none
End

I attached a file with the changes specified above, i also suggest that you
see the preamble in my file and notice that none of what was written was
related to the problem, but only customized the page marks above the
headrule.

As a final remark, it is preferable that a MWE will be with no external
files, unless necessary. In this case, a figure can be created with no
external graphics within it, and because the inclusion of an external file
is path dependent, I could not compile your file without removing the
graphics from lyx, or downloading your pdf and changing the path in lyx. If
you will write a suitable MWE it will help people to help you.

Regards,
Udi


mwe.lyx
Description: application/lyx


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


Re: KOMA-Script article float numbering

2022-08-18 Thread Rich Shepard

On Thu, 18 Aug 2022, Daniel wrote:


1. Post a .lyx file that is more minimal (e.g. does not contain
unnecessary external material). Try to strip off everything that is
unnecessary, including preamble material.



2. The file should contain what does *not* work (e.g. you seem to suggest
that the problem is in a KOMA-Script article but your attached lyx file is
a KOMA-Script report).



3. State clearly what is the actual and expected result.


Daniel,

I did all this in my original post.

1. I removed the extraneous preamble material.

2. The figure on page 2 is labled 0.1 rather than 1. Yes, this document's
class is report, not article. I thought I had changed the class, but did not
do so. What does *not* work is \automark*{section} in this document when it
did in previous ones..

3. The actual result is the figure labeled 0.1 and the expected result is
the figure labeled 1.

Regards,

Rich
#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{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
%\lehead{Tree Plan Level 1}
%\rohead{Tree Plan Level 1}
%\efoot{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 mergedate=compact
\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 Subsection*
Site Plan
\end_layout

\begin_layout Standard
The site plan for only the elevated walkway project is shown in Figure 
\begin_inset CommandInset ref
LatexCommand ref
reference "fig: site plan"
plural "false"
caps "false"
noprefix "false"

\end_inset

.
\begin_inset Float figure
wide false
sideways false
status collapsed

\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename 
/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf
width 100text%
BoundingBox 125bp 50bp 600bp 530bp
clip

\end_inset


\end_layout

\begin_layout Plain Layout
\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig: site plan"

\end_inset

The elevated walkway project site plan.
\end_layout

\end_inset


\end_layout

\end_inset


\end_layout

\end_body
\end_document


gotch-site-plan.pdf
Description: Adobe PDF document


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


Re: KOMA-Script article float numbering

2022-08-17 Thread Daniel

On 2022-08-17 17:36, Rich Shepard wrote:

In KOMA-Script report class documents adding to the preamble
\automark*{section} works to number figure floats as integers.

However, in a KOMA-Script article class document it doesn't (see attached
mwe.*) and I'd like to learn why and what does work.

Regards,

Rich


Hi Rich,

I am not sure what you mean. Please:

1. Post a .lyx file that is more minimal (e.g. does not contain 
unnecessary external material). Try to strip off everything that is 
unnecessary, including preamble material.


2. The file should contain what does *not* work (e.g. you seem to 
suggest that the problem is in a KOMA-Script article but your attached 
lyx file is a KOMA-Script report).


3. State clearly what is the actual and expected result.

Your possible helpers could probably figure these out by themselves. But 
this takes their time and might might lead to misunderstandings which in 
turn take even your time.


Regards,

Daniel


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


KOMA-Script article float numbering

2022-08-17 Thread Rich Shepard

In KOMA-Script report class documents adding to the preamble
\automark*{section} works to number figure floats as integers.

However, in a KOMA-Script article class document it doesn't (see attached
mwe.*) and I'd like to learn why and what does work.

Regards,

Rich#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{newpxtext}
%\usepackage{newpxmath}
\usepackage{mathpazo}
\usepackage{graphicx,relsize}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\lehead{Tree Plan Level 1}
\rohead{Tree Plan Level 1}
\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 mergedate=compact
\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 Standard
The site plan for only the elevated walkway project is shown in Figure 
\begin_inset CommandInset ref
LatexCommand ref
reference "fig: site plan"
plural "false"
caps "false"
noprefix "false"

\end_inset

.
\begin_inset Float figure
wide false
sideways false
status open

\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename 
/home/rshepard/projects/washington/gotch/docs/gotch-site-plan.pdf
width 100text%
BoundingBox 125bp 50bp 600bp 530bp
clip

\end_inset


\end_layout

\begin_layout Plain Layout
\begin_inset Caption Standard

\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig: site plan"

\end_inset

The elevated walkway project site plan.
\end_layout

\end_inset


\end_layout

\end_inset


\end_layout

\end_body
\end_document


mwe.pdf
Description: Adobe PDF document


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