Re: Shortcuts for operators/times

2018-01-02 Thread edu Gpl
Hi Ricardo
Thank you, and happy new year for you and lyx users.
Best regards

‏في الثلاثاء، ٢ يناير، ٢٠١٨, Ricardo Berlasso  كتب:

> 2018-01-02 10:33 GMT+01:00 edu Gpl :
>
>> Please how i can create shortcuts for this symbol:
>> Operators/times
>> It's like x.
>>
>
> Each time you perform any action that do not have an associated keyboard
> shortcut, on LyX's buffer you'll see a command that can be used to set up
> one. In the case of "times" operator (in Math mode) the code is
>
> math-insert \times
>
> With this code, go to Tools → Preferences → Edition → Keyboard shortcuts
> where you'll be able to create a new keyboard shortcut: just click on New,
> type the code on the Function box, click on the keyboard shortcut button
> and perform your preferred shortcut. If by accident you select a shortcut
> already in use, LyX will warn you: just pick another one.
>
> But remember that on Math mode you just need to type \times and press the
> space bar to get the symbol, so maybe you'll not gain that much by setting
> a shortcut for such a short instruction :)
>
> Regards,
> Ricardo
>
>
>
>>
>> Best regards
>>
>
>


Re: suppression of footnotes in TOC

2018-01-02 Thread Richard Heck
On 01/02/2018 03:10 PM, Ricardo Berlasso wrote:
> 2018-01-02 16:57 GMT+01:00 Ekkehart Schlicht  >:
>
> Hi,
>
> I have footnotes to section headings (that are necessary because
> some sections are taken from earlier articles, and this is
> explained in those footnotes). In the TOC, these footnotes
> re-appear. It is quite clumsy to repress them in those cases by
> using \section* instead of \section and add
> \addcontentsline{section}{12 sectionname}. It would be very
> convenient to have footnoes to TOC entries omitted by defaultin
> the TOC.
>

Yes, this seems right, and it shouldn't be too difficult. Feel free to
file this as a bug. If you do, please cc me (rgheck). This may not be
terribly difficult.

Richard



Re: suppression of footnotes in TOC

2018-01-02 Thread Ricardo Berlasso
2018-01-02 16:57 GMT+01:00 Ekkehart Schlicht :

> Hi,
>
> I have footnotes to section headings (that are necessary because some
> sections are taken from earlier articles, and this is explained in those
> footnotes). In the TOC, these footnotes re-appear. It is quite clumsy to
> repress them in those cases by using \section* instead of \section and add
> \addcontentsline{section}{12 sectionname}. It would be very convenient to
> have footnoes to TOC entries omitted by defaultin the TOC.
>


 The only way I ever found is to define a new "footnote" command and use it
on the heading instead of the normal one. See here:

https://tex.stackexchange.com/a/123762

Basically you add to the Preamble

\makeatletter

\def\myfnt{\ifx\protect\@typeset@protect
\expandafter\footnote\else\expandafter\@gobble\fi}

\makeatother


and then to insert the "footnote" on the heading you use a TeX box (Ctrl-L)
with the command


\myfnt{the heading footnote}


on it. The numbering integrates without problems with normal footnotes,
only on LyX it will look kind of weird. But you can always define a
character style ;)

Regards,
Ricardo





>
> Thanks!
>
> --
> Ekkehart Schlicht
> Hurtenstr. 13
> 
> 82345 Andechs-Frieding
> Tel: +49 (0)8152 9149271
>


suppression of footnotes in TOC

2018-01-02 Thread Ekkehart Schlicht

Hi,

I have footnotes to section headings (that are necessary because some 
sections are taken from earlier articles, and this is explained in those 
footnotes). In the TOC, these footnotes re-appear. It is quite clumsy to 
repress them in those cases by using \section* instead of \section and 
add \addcontentsline{section}{12 sectionname}. It would be very 
convenient to have footnoes to TOC entries omitted by defaultin the TOC.


Thanks!

--
Ekkehart Schlicht
Hurtenstr. 13
82345 Andechs-Frieding
Tel: +49 (0)8152 9149271


Re: draftwatermark: setting text lightness [RESOLVED]

2018-01-02 Thread Rich Shepard

On Tue, 2 Jan 2018, Paul A. Rubin wrote:

Works fine for me (pdflatex, article class). Smaller argument values produce 
darker watermarks; and argument value of 1 makes the watermark invisible.


Paul,

  Yes, that's the problem: Page 3 of the doc notes, "Lightness of the watermark 
text
(1=white, 0=black)." Well, foolish me read it backwards, so the smaller the
fraction the darker rather than lighter. Sigh.

  It works.

Rich




Re: draftwatermark: setting text lightness

2018-01-02 Thread Paul A. Rubin

On 01/02/2018 12:19 PM, Rich Shepard wrote:

The draftwatermark package's doc shows the default lightness of the text
as 80% and that it is specified by a real number between 0 and 1. I 
set it
to 0.4 (or 0.6) and see no difference from the default 0.8. Perhaps I 
have

the syntax wrong. Here are the pertinent lines in the preamble:

\usepackage{draftwatermark}
\SetWatermarkAngle{45}
\SetWatermarkFontSize{4cm}
\SetWatermarkLightness{0.2}
\SetWatermarkText{DRAFT}

  A sample page is attached. I want to learn how to use this package.

Regards,

Rich

Works fine for me (pdflatex, article class). Smaller argument values 
produce darker watermarks; and argument value of 1 makes the watermark 
invisible.


If it's not working for you, maybe something else in your document is 
interfering. Might be time for a MWE.


Paul



draftwatermark: setting text lightness

2018-01-02 Thread Rich Shepard

  The draftwatermark package's doc shows the default lightness of the text
as 80% and that it is specified by a real number between 0 and 1. I set it
to 0.4 (or 0.6) and see no difference from the default 0.8. Perhaps I have
the syntax wrong. Here are the pertinent lines in the preamble:

\usepackage{draftwatermark}
\SetWatermarkAngle{45}
\SetWatermarkFontSize{4cm}
\SetWatermarkLightness{0.2}
\SetWatermarkText{DRAFT}

  A sample page is attached. I want to learn how to use this package.

Regards,

Rich



out.pdf
Description: Adobe PDF document


Re: caption separate from figure

2018-01-02 Thread Ricardo Berlasso
2018-01-02 17:54 GMT+01:00 Wolfgang Engelmann :

> I have a large figure and would therefore like to have the caption
> separate from the float figure. I did not find infos about it in
> Help>embedded objects. Any idea how to do it?
> Wolfgang
>
>
Never tried myself, but see if this helps you

https://tex.stackexchange.com/questions/53315/how-to-put-large-figure-caption-on-separate-page-from-the-figure

Regards,
Ricardo


caption separate from figure

2018-01-02 Thread Wolfgang Engelmann
I have a large figure and would therefore like to have the caption 
separate from the float figure. I did not find infos about it in 
Help>embedded objects. Any idea how to do it?

Wolfgang



Re: Shortcuts for operators/times

2018-01-02 Thread Ricardo Berlasso
2018-01-02 10:33 GMT+01:00 edu Gpl :

> Please how i can create shortcuts for this symbol:
> Operators/times
> It's like x.
>

Each time you perform any action that do not have an associated keyboard
shortcut, on LyX's buffer you'll see a command that can be used to set up
one. In the case of "times" operator (in Math mode) the code is

math-insert \times

With this code, go to Tools → Preferences → Edition → Keyboard shortcuts
where you'll be able to create a new keyboard shortcut: just click on New,
type the code on the Function box, click on the keyboard shortcut button
and perform your preferred shortcut. If by accident you select a shortcut
already in use, LyX will warn you: just pick another one.

But remember that on Math mode you just need to type \times and press the
space bar to get the symbol, so maybe you'll not gain that much by setting
a shortcut for such a short instruction :)

Regards,
Ricardo



>
> Best regards
>


Happy 2018

2018-01-02 Thread Carlos Knauer
Happy 2018


Re: Version control

2018-01-02 Thread Pavel Sanda
Rich Shepard wrote:
>   When checking in using git and the within-lyx function I do not need to
> add the quotation marks surrounding the message in the text entry widget.
> LyX adds them for me. Correct?

No you don't. Pavel


Re: Issues with version control

2018-01-02 Thread Pavel Sanda
Rich Shepard wrote:
>   I _thought_ I had set up version control using GIT. Checking in the
> document after adding text now generates an error (see attached .png).
>
>   Turns out that there was no .git repository in that directory, so I
> created one manually and will manually commit changes. Perhaps it's not
> working from the File -> Version control menu item?

You can not create git repository with LyX. You need to do it manually
and then simple git commands will work inside LyX.

If you try to put lyx file under version control in LyX, it will try to
use rcs by default, not git and that's the problem you see ('ci' command
is part of rcs as others already suggested.)

Pavel


Shortcuts for operators/times

2018-01-02 Thread edu Gpl
Please how i can create shortcuts for this symbol:
Operators/times
It's like x.

Best regards