Re: Adding a Local Layout for a \newcommand

2017-04-24 Thread Guenter Milde
On 2017-04-22, Dr Eberhard Lisse wrote:
> Thanks.

> It did help to come up with:

> in the Preamble:

> \newcommand\LMP[1]{#1}


> In Settings->Local Layout:

> Format 60
> Style EDD
>CopyStyle Date
>LabelFont
>Series Bold
>Color Red
>EndFont
>LatexName renewcommand
>LatexParam {\LMP}
>LabelString "LMP:"
> End

> which does exactly what I want, and with the look I wanted.

To have it all in one place, you can move the preamble definition into
the Style

Style EDD
   CopyStyle Date
   LabelFont
   Series Bold
   Color Red
   EndFont
   LatexName renewcommand
   LatexParam {\LMP}
   LabelString "LMP:"
   Preamble
 \newcommand\LMP[1]{#1}
   EndPreamble
End

Günter



Re: Extra long chapter title causing problems in TOC

2017-04-24 Thread Guenter Milde
On 2017-04-24, Wolfgang Engelmann wrote:

> Am 24.04.2017 um 13:51 schrieb PhilipPirrip:
>> On 04/23/2017 08:14 AM,  Frederick FN Noronha फ्रेड्रिक नोरोन्या 
>> *فريدريك نورونيا  wrote:
>>> Dear all,

>>> Could you kindly help me with a tip on how to insert a 
>>> carriage-return/line-break in my table of contents, for a very long 
>>> title? I'm using Lyx 2.2.0

>>> The problem text is below (and neither \\ nor \newline works) :

>>> \addcontentsline{toc}{chapter}{How Goan Identity and India's 
>>> Independence \\ Put Britain in a Diplomatic Dilemma}
>>> \addtocontents{toc}{Victor Rangel-Ribeiro \par}

>> Hi Frederick,
>> I don't quite understand why you're using these low-level commands 
>> instead of ordinary sectioning ones, but here's the answer:
>> in order for \newline to survive writing into the .toc file, you need 
>> to protect it, thus
>> \protect\newline should work (not sure how well).


> What about using a short title in the TOC?
> >insert>short title

Note, that this box generates just an alternative title for the toc
which may actually also be longer or 
contain a hard line break :-)

Günter



Re: Index does not print

2017-04-24 Thread Karthik Tayur
Replacing all special characters (Insert>Symbols) in the document allows me
to print the indices. I had inserted the pilcrow symbol in the document.
When resolving a problem with conversion I replaced all the symbols in my
document with text.
Any idea why this works? Are special symbols not allowed in footnote
spaces?


On 25 April 2017 at 03:42, Karthik Tayur  wrote:

> Hello,
> I have been using LyX for some time now. It has been great. Previously the
> multiple index function worked well.
> Today, while I was able to insert indices, they wouldn't print. Only
> disabling the multiple index option under Settings in a fresh document
> allows printing of the singular index.
> Any suggestions as to how I might go about solving this problem? I suspect
> that the files needed for \printindex simply don't compile, as the logs
> seem to suggest.
>
> System Details: Arch Linux with KDE, LyX 2.2.2
>
> Regards
>


Index does not print

2017-04-24 Thread Karthik Tayur
Hello,
I have been using LyX for some time now. It has been great. Previously the
multiple index function worked well.
Today, while I was able to insert indices, they wouldn't print. Only
disabling the multiple index option under Settings in a fresh document
allows printing of the singular index.
Any suggestions as to how I might go about solving this problem? I suspect
that the files needed for \printindex simply don't compile, as the logs
seem to suggest.

System Details: Arch Linux with KDE, LyX 2.2.2

Regards


Re: Extra long chapter title causing problems in TOC

2017-04-24 Thread PhilipPirrip

On 04/24/2017 09:09 AM, Kornel Benko wrote:

I noticed. But the question was:
help me with a tip on how to insert a carriage-return/line-break in my 
table of contents, for a very long title?

His try was with LaTeX, but we may want to use lyx if possible.



That's why I started my answer with some doubts. Notice that it's not 
just the title he's writing into the .toc, but also author's name.
Made me think the code he used is what he really needs. We'll see... 
hopefully.




Re: Extra long chapter title causing problems in TOC

2017-04-24 Thread Kornel Benko
Am Montag, 24. April 2017 um 08:43:18, schrieb PhilipPirrip 
> On 04/24/2017 08:33 AM, Kornel Benko wrote:
> 
> > Wouldn't be easier to insert new line with Ctrl-Return?
> 
> Notice that Frederick is using LaTeX code (\addcontentsline, 
> \addtocontents) to write directly into the .toc file.
> 
> 

I noticed. But the question was:
help me with a tip on how to insert a carriage-return/line-break in my 
table of contents, for a very long title?

His try was with LaTeX, but we may want to use lyx if possible.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: Extra long chapter title causing problems in TOC

2017-04-24 Thread PhilipPirrip

On 04/24/2017 08:33 AM, Kornel Benko wrote:


Wouldn't be easier to insert new line with Ctrl-Return?


Notice that Frederick is using LaTeX code (\addcontentsline, 
\addtocontents) to write directly into the .toc file.






Re: Extra long chapter title causing problems in TOC

2017-04-24 Thread Kornel Benko
Am Montag, 24. April 2017 um 07:51:01, schrieb PhilipPirrip 
> On 04/23/2017 08:14 AM,  Frederick FN Noronha फ्रेड्रिक नोरोन्या
> *فريدريك نورونيا  wrote:
> > Dear all,
> >
> > Could you kindly help me with a tip on how to insert a
> > carriage-return/line-break in my table of contents, for a very long
> > title? I'm using Lyx 2.2.0
> >
> > The problem text is below (and neither \\ nor \newline works) :
> >
> > \addcontentsline{toc}{chapter}{How Goan Identity and India's
> > Independence \\ Put Britain in a Diplomatic Dilemma}
> > \addtocontents{toc}{Victor Rangel-Ribeiro \par}
>
> Hi Frederick,
> I don't quite understand why you're using these low-level commands
> instead of ordinary sectioning ones, but here's the answer:
> in order for \newline to survive writing into the .toc file, you need to
> protect it, thus
> \protect\newline should work (not sure how well).
>

Wouldn't be easier to insert new line with Ctrl-Return?

Kornel

signature.asc
Description: This is a digitally signed message part.


test.22.lyx
Description: application/lyx


Re: Extra long chapter title causing problems in TOC

2017-04-24 Thread Wolfgang Engelmann



Am 24.04.2017 um 13:51 schrieb PhilipPirrip:
On 04/23/2017 08:14 AM,  Frederick FN Noronha फ्रेड्रिक नोरोन्या 
*فريدريك نورونيا  wrote:

Dear all,

Could you kindly help me with a tip on how to insert a 
carriage-return/line-break in my table of contents, for a very long 
title? I'm using Lyx 2.2.0


The problem text is below (and neither \\ nor \newline works) :

\addcontentsline{toc}{chapter}{How Goan Identity and India's 
Independence \\ Put Britain in a Diplomatic Dilemma}

\addtocontents{toc}{Victor Rangel-Ribeiro \par}


Hi Frederick,
I don't quite understand why you're using these low-level commands 
instead of ordinary sectioning ones, but here's the answer:
in order for \newline to survive writing into the .toc file, you need 
to protect it, thus

\protect\newline should work (not sure how well).



What about using a short title in the TOC?
>insert>short title
Wolfgang




Re: Extra long chapter title causing problems in TOC

2017-04-24 Thread PhilipPirrip
On 04/23/2017 08:14 AM,  Frederick FN Noronha फ्रेड्रिक नोरोन्या 
*فريدريك نورونيا  wrote:

Dear all,

Could you kindly help me with a tip on how to insert a 
carriage-return/line-break in my table of contents, for a very long 
title? I'm using Lyx 2.2.0


The problem text is below (and neither \\ nor \newline works) :

\addcontentsline{toc}{chapter}{How Goan Identity and India's 
Independence \\ Put Britain in a Diplomatic Dilemma}

\addtocontents{toc}{Victor Rangel-Ribeiro \par}


Hi Frederick,
I don't quite understand why you're using these low-level commands 
instead of ordinary sectioning ones, but here's the answer:
in order for \newline to survive writing into the .toc file, you need to 
protect it, thus

\protect\newline should work (not sure how well).