Re: TOC Question

2022-02-14 Thread Joseph Hesse via lyx-users

On 2/14/22 12:05, Jürgen Spitzmüller via lyx-users wrote:

Am Montag, dem 14.02.2022 um 11:43 +0200 schrieb Joseph Hesse via lyx-
users:

I am writing a book with separate chapters in a master document.  I
added an appendix and it appears in the master document below a line
that says Appendix. When I look at the TOC the appendix items do not
have a heading before them that says "Appendix", just the lettered
chapter in the appendix.  Is there a way I can get the word
"Appendix" to appear before the lettered items?

\usepackage[titletoc]{appendix}

And in the body, instead of using LyX's appendix marker, enter in TeX
mode

\begin{appendices}

before and

\end{appendices}

after the appendix.

HTH,
Jürgen


Thank you,
It worked.
Joe

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


TOC Question

2022-02-14 Thread Joseph Hesse via lyx-users
I am writing a book with separate chapters in a master document.  I 
added an appendix and it appears in the master document below a line 
that says Appendix. When I look at the TOC the appendix items do not 
have a heading before them that says "Appendix", just the lettered 
chapter in the appendix.  Is there a way I can get the word "Appendix" 
to appear before the lettered items?

Thank you,
Joe

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


Re: Numbering

2022-02-08 Thread Joseph Hesse via lyx-users

On 2/8/22 09:31, Jürgen Spitzmüller via lyx-users wrote:

Am Dienstag, dem 08.02.2022 um 02:55 +0200 schrieb Joseph Hesse via
lyx-users:

My lyx document is a book with chapters in a master document.  I add
computer program listings, from files in other folders, with
Insert->File->Child Document->Program Listing.  This works well for
me.

The numbering of the program listings is 2.1, 2.2, 2.3, etc. where
the 2
is the chapter and the number after the dot is a counter that keeps
incrementing after a new listing is added.  I would like to change
this
so the numbering is Chapter.Section.Counter e.g. 2.2.1, 2.2.2, 2.2.3
where these are listings in chapter 2, section 2.

How do I do this?  Please point me to a package that will help me
implement this.

\usepackage{chngcntr}
\AtBeginDocument{\counterwithin{lstlisting}{section}}

See
https://tex.stackexchange.com/a/238843

HTH,
Jürgen



Thank you, it works with no issues.
Joe

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


Numbering

2022-02-07 Thread Joseph Hesse via lyx-users
My lyx document is a book with chapters in a master document.  I add 
computer program listings, from files in other folders, with 
Insert->File->Child Document->Program Listing.  This works well for me.


The numbering of the program listings is 2.1, 2.2, 2.3, etc. where the 2 
is the chapter and the number after the dot is a counter that keeps 
incrementing after a new listing is added.  I would like to change this 
so the numbering is Chapter.Section.Counter e.g. 2.2.1, 2.2.2, 2.2.3  
where these are listings in chapter 2, section 2.


How do I do this?  Please point me to a package that will help me 
implement this.


Thank you,
Joe

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


Single space TOC

2022-01-25 Thread Joseph Hesse via lyx-users
I am writing a book with separate chapters in a master document.  My TOC 
prints double spaced and I want to make it single spaced.


I have the package setspace and I have \usepackage{setspace} in the 
preamble.


In the master document I surrounded the Table of Contents entry with the 
tex code \begin{singlespace} and \end{singlespace}.  This causes no 
errors but it doesn't work, the TOC is still double spaced.


Any help is much appreciated.

Thank you in advance,
Joe

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


Re: Program Listings

2022-01-13 Thread Joseph Hesse via lyx-users

On 1/13/22 21:11, Herbert Voss wrote:

Joseph Hesse via lyx-users schrieb:

On 1/12/22 15:00, Herbert Voss via lyx-users wrote:

Use /Insert -> Program Listing/ option.


I tried what you suggested.  I right clicked on the inset and could not
find an option where I could specify where my code listing are located.


What do you mean with "listing are located"? If you do not define it
as a float it will appear at the place where you defined it.

Attached the screenshot of the output of the demo file.

Herbert

I am sorry that I did not state my problem more clearly.
Before even using lyx, I have program code in folders in my computer.  I 
want to have this code appear in my lyx document.
What I meant was that when I use "Insert -> Program Listing" I do no see 
a way to choose the folders on my computer to import these already 
written programs into my lyx document.
The only option that gave me that choice was "Insert -> File -> Child 
Document" and this seems to work for me except for the color.

Thank you,
Joe

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


Re: Program Listings

2022-01-12 Thread Joseph Hesse via lyx-users

On 1/12/22 15:00, Herbert Voss via lyx-users wrote:



Am 12.01.22 um 13:22 schrieb Joseph Hesse via lyx-users:
I am writing a programing book and want to have programs that have 
been prepared with a text editor included in the book.  This is what 
I have done so far.


Insert->File->Child Document

File: CodeListings/Test.cpp
Include Type: Program Listing
Caption: My Caption
Label: First Program

More Parameters: numbers=left, frame=tb, caption=b, float

It sort of works but I need assistance.
The caption I have set above does not appear on the bottom as 
"caption=b" would suggest.

The label I have set above does not appear anywhere.

I would like the text of the inserted program to have "typewriter" 
font and be colored green.  How do I do this.


Am I on the right track, is the above the correct way of doing what I 
want?


Use /Insert -> Program Listing/ option.

Herbert


I tried what you suggested.  I right clicked on the inset and could not 
find an option where I could specify where my code listing are located.

Thank you,
Joe

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


Program Listings

2022-01-12 Thread Joseph Hesse via lyx-users
I am writing a programing book and want to have programs that have been 
prepared with a text editor included in the book.  This is what I have 
done so far.


Insert->File->Child Document

File: CodeListings/Test.cpp
Include Type: Program Listing
Caption: My Caption
Label: First Program

More Parameters: numbers=left, frame=tb, caption=b, float

It sort of works but I need assistance.
The caption I have set above does not appear on the bottom as 
"caption=b" would suggest.

The label I have set above does not appear anywhere.

I would like the text of the inserted program to have "typewriter" font 
and be colored green.  How do I do this.


Am I on the right track, is the above the correct way of doing what I want?

Thank you,
Joe Hesse

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


Re: TOC in pdf colored red

2022-01-08 Thread Joseph Hesse via lyx-users

On 1/8/22 11:56, Herbert Voss via lyx-users wrote:



On 08/01/2022 06:32, Joseph Hesse via lyx-users wrote:

Hi,
I am writing a book in lyx.  When I look at the pdf the TOC appears 
red.  How can I fix this so it is in black and white? I want to keep 
my URL links as colored blue.


Go into  the preferences menue and insert the following options for 
hyperref


    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=blue,
    linktocpage,
    linktoc=all


Herbert
Thank you for your response.  This doesn't work for me.  I am using Lyx 
2.3.6.1.


I go to Tools -> Preference -> Colors and do not see anything like 
options for hyperref.


Did I make an error?

Thank you,
Joe

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


TOC in pdf colored red

2022-01-07 Thread Joseph Hesse via lyx-users

Hi,
I am writing a book in lyx.  When I look at the pdf the TOC appears 
red.  How can I fix this so it is in black and white?  I want to keep my 
URL links as colored blue.

Thank you,
Joe



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


View TOC

2022-01-07 Thread Joseph Hesse via lyx-users
When I click on View->Outline I get a TOC window that is not fixed 
anywhere.  Once I had a TOC window that was stuck on the left hand size 
of my workspace.  How do I get this back?

I am using LyX 2.3.6.1
Thank you,
Joe Hesse

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


Backing up Lyx.

2022-01-06 Thread Joseph Hesse via lyx-users

Hello,

I am a new lyx user.  I want to know what lyx files to back up so, if 
necessary, I can install them on a new computer.


I am using Linux and besides the document I am working on, do I have to 
save "~/.config/LyX/lyx.conf" and "~/.lyx"?


Thank you,
JoeH

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