LyX3 strange problem in Lyx document.

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
zacadi
Posts: 9
Joined: Sun Aug 29, 2010 1:10 pm

3 strange problem in Lyx document.

Post by zacadi »

Hello,

first i want to say that my English is not very good but i hope that you can understand me.
I began work with Lyx about month ago. First of all i have read tutorial in Lyx Help and that informations were enough till now.
I have strange 3 problem.
Basic information:
Lyx 1.6.7
Document class: report.

Problem no.1
The text below the figure is in paragraph. Yearlier everything was ok. Example:

-----figure----
[paragraph] "My text......
................."

and i want to make:
-----figure----
"My text.........
................."

Problem no.2
How can i move singel letter in the end of line to a new line?

Problem no.3
I use heading style: headings.
When the name of chapter is too long lyx cut the name.


Fanks for any advice.
ZaC

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

3 strange problem in Lyx document.

Post by meho_r »

zacadi wrote: Problem no.1
The text below the figure is in paragraph. Yearlier everything was ok. Example:

-----figure----
[paragraph] "My text......
................."

and i want to make:
-----figure----
"My text.........
................."
It depends if you're using a figure as a float or a non-float.
If the figure is a float (Insert > Float > Figure), then you get a field into which you insert the caption.
If the figure isn't a float (Insert > Graphics), then you may use caption package and command \captionof... (e.g. \captionof{figure}{A caption}).
Problem no.2
How can i move singel letter in the end of line to a new line?
I'm not sure what purpose will that serve, but you may use manual line break (Ctrl+Return or Ctrl+Enter). If you only need to correct the place where a word should be hyphenated, then use Ctrl+- to specify alternative break points.
Problem no.3
I use heading style: headings.
When the name of chapter is too long lyx cut the name.
In case of long chapter and section titles, you may use short versions which will appear in headings and table of contents. For this, at the end of a title insert a short one: Insert > Short Title.

You may find all of these suggestions in the example file attached.
Attachments
Example.lyx.zip
(1.52 KiB) Downloaded 206 times
zacadi
Posts: 9
Joined: Sun Aug 29, 2010 1:10 pm

Re: 3 strange problem in Lyx document.

Post by zacadi »

Problem no1.
That is not solve my problem because i only use one way to put figure in my document: (Instert ->Float->Figure; and then Instert->FIgure). I attach an example. (As you can see the first "This" is in the paragraph. How can i change it?)

Problem no3.
How can i split long title to two line?;> ctr + enter doesnt work.

Regards,
ZaC
Attachments
temp100.lyx.rar
(775 Bytes) Downloaded 165 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

3 strange problem in Lyx document.

Post by meho_r »

Problem No. 1: I really don't understand what are you trying to achieve. Do you mean the indentation of the first paragraph after the figure? If that is the case, right click on the text of that paragraph > Paragraph settings, then remove the check mark beside "Indent Paragraph".

Problem No. 3: I suggest you use fancyhdr package for headers/footers. Paste this code in Document > Settings > LaTeX Preamble:

Code: Select all

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO,LE]{{\slshape\leftmark}\hfill\thepage}
\renewcommand{\headrulewidth}{0pt}
Now use Ctrl+Enter in Short Title.
zacadi
Posts: 9
Joined: Sun Aug 29, 2010 1:10 pm

3 strange problem in Lyx document.

Post by zacadi »

meho_r wrote:Problem No. 1: I really don't understand what are you trying to achieve. Do you mean the indentation of the first paragraph after the figure? If that is the case, right click on the text of that paragraph > Paragraph settings, then remove the check mark beside "Indent Paragraph".

Problem No. 3: I suggest you use fancyhdr package for headers/footers. Paste this code in Document > Settings > LaTeX Preamble:

Code: Select all

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO,LE]{{\slshape\leftmark}\hfill\thepage}
\renewcommand{\headrulewidth}{0pt}
Now use Ctrl+Enter in Short Title.
Problem no. 1 & 2
Many thanks. That was what i want to do ; )


Another question:
I use bibliography (standard) but in the contents there is no position bibliography und additional chapter. I attached an example what i want to do.

Regards,
ZaC
Attachments
temp1000.lyx.rar
(830 Bytes) Downloaded 148 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

3 strange problem in Lyx document.

Post by meho_r »

1. At the end of the title "Additional Informations" press Ctrl+L and type the following code:

Code: Select all

\addcontentsline{toc}{chapter}{Additional Informations}
2. On a line before the title "Bibliography" press Ctrl+L and type the following code:

Code: Select all

\clearpage
\addcontentsline{toc}{chapter}{Bibliography}
Code added to your example file.

If you want those chapters to appear as sections in TOC, just replace "chapter" with "section" in the above commands.
Attachments
temp1000.lyx.zip
(893 Bytes) Downloaded 152 times
zacadi
Posts: 9
Joined: Sun Aug 29, 2010 1:10 pm

Re: 3 strange problem in Lyx document.

Post by zacadi »

Thanks for help.

When i add:

\addcontentsline{toc}{chapter}{Additional Informations}

the heading (on the top of page) to this chapter -Additional Informations is the heading from the last chapter.

For example (chapter):

1. The Beginnig
2. Action
3. The End
4. Additional Informations

And the heading to "Additional Informations" is "The End".
How to change it?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

3 strange problem in Lyx document.

Post by meho_r »

Since "Additional Informations" chapter is a starred one (no numbers, no entry in TOC and no entry in headers/footers) you may use fancyhdr code from above for this too, but this time using a manual approach. E.g., put immediately after the title "Additional Informations" this code:

Code: Select all

\fancyhead[LO,LE]{{\slshape\MakeUppercase{Additional Informations}}\hfill\thepage}
To switch to "automatic" headers again, just put back the original code:

Code: Select all

\fancyhead[LO,LE]{{\slshape\leftmark}\hfill\thepage}
I added the code to your example file.
Attachments
temp1000.lyx.zip
(1.02 KiB) Downloaded 167 times
zacadi
Posts: 9
Joined: Sun Aug 29, 2010 1:10 pm

3 strange problem in Lyx document.

Post by zacadi »

meho_r thanks a lot! thank was exactly what i want to do.
zacadi
Posts: 9
Joined: Sun Aug 29, 2010 1:10 pm

Re: 3 strange problem in Lyx document.

Post by zacadi »

edit.

i want to change the size and style of add chapter (which is not number). "Addition number one" suppose to look like "Chapter" and "Additional Information" looks like the "name of the chaper". The space between ""Addition number one" and ""Additional Information" suppose to look like "Chapter" and "name of it".
I attach modification.

edit 2.
when i put a figure into the "Additional Information" the
number of figure is from the last chapter.


edit 3.
i am not sure but maybe i find a solution:
\appendix
\chapter{Additional Information}


ZaC
Attachments
temp1000.lyx.rar
(1.05 KiB) Downloaded 160 times
Post Reply