Re: issue with installing lyx with missing document class, modulus, view, and export pdflatex

2016-10-04 Thread H.M. Yu

Dear Sir/Madam,

Thank you for your help. It seems to be working. I have also try not to 
press the configurate button but update everything in MikTex first, that 
also work


Bosco

On 2016-09-24 16:16, Scott Kostyshak wrote:

On Sat, Sep 24, 2016 at 03:09:50AM +0100, H.M. Yu wrote:

Dear Sir/madam,

I am a window 7 lyx user. I have been using lyx to write my thesis for 
a
long time. But this morning, I was trying to add an external 
layout/document
template in the lyx/resource/tex folder after which a bit problem 
occurred.


Dear Bosco,

One quick thing you could try to see if it helps is the following:

1. Open LyX and go to Help > About and copy the location of your user
directory.
2. Exit LyX.
3. Move the user directory to e.g. your desktop (I recommend this 
rather

than deleting it so that you can always go backwards).
4. Start LyX (this will force a reconfigure so will take some time).

Does that work? Please respond to the list.

Best,

Scott




Re: MSI-file for installation

2016-10-04 Thread Scott Kostyshak
On Tue, Oct 04, 2016 at 08:20:23AM -0400, Scott Kostyshak wrote:
> On Tue, Oct 04, 2016 at 06:15:57AM +, Nicklas Devel wrote:
> > Hi Scott
> > 
> > Again thanks for the quick answer.
> > 
> > It worked for us to use this thread:
> > https://www.mail-archive.com/search?l=mid=20140218011606.A8323280184%40lyx.lyx.org
> 
> That's great it worked!
> 
> What specifically did you do? It would be nice to have this information
> easily available for the next person who asks.

For reference, these are the commands that worked for them:

%~dp0basic-miktex-2.9.6069.exe --package-set=basic --shared --unattended
%~dp0LyX-221-Installer-2.exe /S
xcopy /Y "%~dp0preferences" "c:\users\eks01\appData\roaming\LyX2.2\"

Scott


signature.asc
Description: PGP signature


Re: Where to insert section labels?

2016-10-04 Thread racoon



On 04.10.2016 23:16, Richard Heck wrote:

On 10/04/2016 05:05 PM, racoon wrote:

On 04.10.2016 20:02, Richard Heck wrote:

On 10/04/2016 12:40 PM, racoon wrote:

Where the label is just inserted in an extra default paragraph. Apart
from looking a bit odd, it seems to work and not to create extra
spacing or so. So is this the "saver" way to insert section labels in
LyX?


You can also just put the label at the beginning of the text. If there's
no such text (if the first thing is a \subsection), then you can put it
on a blank line by itself. LaTeX will ignore the otherwise empty line.


I just noticed that LyX in a sense supports neither my (in an extra
line) nor your (at the beginning of the text). This is because LyX
does not add the "sec:" to the label and also automatically inserts
the beginning of the text rather than the heading.


I do get the "sec:" on a blank line, and even at the beginning of the
first paragraph. But you are right that the auto-fill mechanism gives
you the text from the paragraph, or no text.

It would be pretty easy to change that, I think. Have a look at
Text::getPossibleLabel. You'll see there's some fancy footwork to get
the "sec:" part to work. If you did that before filling the "text"
variable, then...well...maybe there'd be other problems, but it would
solve this problem, I think.


Yes, you are right. I get the "sec:" too. Thanks for the ref. I'll take 
a look at it.


Daniel


Re: Where to insert section labels?

2016-10-04 Thread Richard Heck
On 10/04/2016 05:05 PM, racoon wrote:
> On 04.10.2016 20:02, Richard Heck wrote:
>> On 10/04/2016 12:40 PM, racoon wrote:
>>> Where the label is just inserted in an extra default paragraph. Apart
>>> from looking a bit odd, it seems to work and not to create extra
>>> spacing or so. So is this the "saver" way to insert section labels in
>>> LyX?
>>
>> You can also just put the label at the beginning of the text. If there's
>> no such text (if the first thing is a \subsection), then you can put it
>> on a blank line by itself. LaTeX will ignore the otherwise empty line.
>
> I just noticed that LyX in a sense supports neither my (in an extra
> line) nor your (at the beginning of the text). This is because LyX
> does not add the "sec:" to the label and also automatically inserts
> the beginning of the text rather than the heading.

I do get the "sec:" on a blank line, and even at the beginning of the
first paragraph. But you are right that the auto-fill mechanism gives
you the text from the paragraph, or no text.

It would be pretty easy to change that, I think. Have a look at
Text::getPossibleLabel. You'll see there's some fancy footwork to get
the "sec:" part to work. If you did that before filling the "text"
variable, then...well...maybe there'd be other problems, but it would
solve this problem, I think.

Richard



Re: Where to insert section labels?

2016-10-04 Thread Richard Heck
On 10/04/2016 04:52 PM, Jean-Marc Lasgouttes wrote:
> Le 04/10/2016 à 18:40, racoon a écrit :
>> So I looked around and saw that often the label is inserted *after* the
>> section:
>>
>> \section{Some heading}\label{sec:Some-heading}
>>
>> But I am not sure how to achieve this with LyX.
>
> This is the subject of bug #2154, still not fixed after 11 years...
> http://www.lyx.org/trac/ticket/2154
>
> It is not very easy, we are not completely sure of what we want.

Yup, that's the discussion I mentioned in a different message.

Richard



Re: Where to insert section labels?

2016-10-04 Thread racoon

On 04.10.2016 20:02, Richard Heck wrote:

On 10/04/2016 12:40 PM, racoon wrote:

Where the label is just inserted in an extra default paragraph. Apart
from looking a bit odd, it seems to work and not to create extra
spacing or so. So is this the "saver" way to insert section labels in
LyX?


You can also just put the label at the beginning of the text. If there's
no such text (if the first thing is a \subsection), then you can put it
on a blank line by itself. LaTeX will ignore the otherwise empty line.


I just noticed that LyX in a sense supports neither my (in an extra 
line) nor your (at the beginning of the text). This is because LyX does 
not add the "sec:" to the label and also automatically inserts the 
beginning of the text rather than the heading.


Maybe LyX could check whether the label is referring to the section or 
not. Or more easily to implement, I guess, check whether the label is 
inserted at the beginning of a default paragraph right after the 
\subsection. This would make both of our suggestions supported.


Daniel


Re: Where to insert section labels?

2016-10-04 Thread Jean-Marc Lasgouttes

Le 04/10/2016 à 18:40, racoon a écrit :

So I looked around and saw that often the label is inserted *after* the
section:

\section{Some heading}\label{sec:Some-heading}

But I am not sure how to achieve this with LyX.


This is the subject of bug #2154, still not fixed after 11 years...
http://www.lyx.org/trac/ticket/2154

It is not very easy, we are not completely sure of what we want.

JMarc


Re: Enumerate inside other environment

2016-10-04 Thread Richard Heck
On 10/04/2016 03:18 PM, Mario D wrote:
> I know how to nest environments so that I can use enumerate inside
> another environment in order to produce something looking like:
>
> -
> Theorem. The following are equivalent:
>1. First statement.
>2. Second statement.
> -
>
> My question is: how can I produce
>  
> -
> Theorem.   1. First statement.
>2. Second statement.
> -
>
> The only way//I could get it was to insert an empty note after the
> "Theorem", then newline, start the enumerate and finally nest it.
> Is there a "cleaner" way?

Empty TeX code works, too. Either is a hack to make LyX think the first
line is not empty, since otherwise it will delete it.

If you do this a lot, you can do something like:

Format 60

Style Theorem*
KeepEmpty 1
End

in Local Layout. This tells LyX to allow empty lines in unnumbered
theorems. Then you do not have to do anything special.

> Moreover, how can I produce the following?
>
> -
> Theorem.
>1. First statement.
>2. Second statement.
> -
>
> For this I couldn't find a workaround.

Put a "protected space" on the first line. (Insert> Formatting>
Protected Space) This makes there by something on that line, but it's
invisible.

Richard



Re: lost all menus, toolbars etc. in okular

2016-10-04 Thread gordon cooper

Hi Michael,


The Menu Bar can be turned off in the Settings sub-menu, but as you have 
found, the Settings menu then disappears
and apparently there is no way to get it back again. However as you have 
found by accident, a secondary (right) click in
the empty page gives you the option of restoring the Menu Bar.  This is 
the standard way to restore the bar.


Gordon.


Re: Enumerate inside other environment

2016-10-04 Thread Paul A. Rubin

On 10/04/2016 03:18 PM, Mario D wrote:
I know how to nest environments so that I can use enumerate inside 
another environment in order to produce something looking like:


-
Theorem. The following are equivalent:
   1. First statement.
   2. Second statement.
-

My question is: how can I produce

-
Theorem.   1. First statement.
   2. Second statement.
-

The only way//I could get it was to insert an empty note after the 
"Theorem", then newline, start the enumerate and finally nest it.

Is there a "cleaner" way?

I couldn't find anything relevant on lyx manuals.
Moreover, how can I produce the following?

-
Theorem.
   1. First statement.
   2. Second statement.
-

For this I couldn't find a workaround.

Thank you

Not that I'm endorsing either layout, but you can do the first by 
putting a frameless box in the Theorem environment and the second by 
putting a nonbreakable space in the theorem environment, hitting return, 
switching to enumeration and nesting.


I've attached a sample file.

Paul



theorems.lyx
Description: application/lyx


Issue in slide numbering (Beamer)

2016-10-04 Thread Patrick Dupre
Hello,

It is a latex issue, but I discovered with lyx!
Ile the following code provides me a wrong slide numbering
until I comment the following lines
\AtBeginSection[]{
  \frame{ 
  }
}


\documentclass[american]{beamer}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}

\makeatletter

 \newcommand\makebeamertitle{\frame{\maketitle}}%

 \AtBeginDocument{%
   \let\origtableofcontents=\tableofcontents
   
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
   \def\gobbletableofcontents#1{\origtableofcontents}
 }

\usetheme{Madrid}%[compress]

\makeatother

\begin{document}

\AtBeginSection[]{
  \frame{ 
  }
}


\title[Saturated Absorption Modeling]{Line Shape }

\author{Patrick DUPRE}

\institute[LPCA]{Laboratoire de Physico-Chimie}
\makebeamertitle
\begin{frame}{Outline}

\tableofcontents{}

\end{frame}

\section{Introduction}
\begin{frame}{Introduction}
\begin{itemize}
\item {Accurate Modern Spectroscopy of Gas requires new Modeling
Efforts stemming} \par
\end{itemize}
\end{frame}

\end{document}


Any idea ?

Thank for any help.


===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


Re: Where to insert section labels?

2016-10-04 Thread racoon

Thanks Richard!

On 04.10.2016 20:02, Richard Heck wrote:

Yes, it can cause other problems too. The root cause is that \section is
a "moving argument". You really don't want to put anything else in
there. Though I'll confess I sometimes do.


Maybe worth changing that in the documentation files then.


You can also just put the label at the beginning of the text. If there's
no such text (if the first thing is a \subsection), then you can put it
on a blank line by itself. LaTeX will ignore the otherwise empty line.


Yes that seems a bit nicer.

Maybe LyX could automatically put labels after the \section{} when it is 
put in the same line. But I don't know whether this would have other 
undesired consequences.


Daniel



Enumerate inside other environment

2016-10-04 Thread Mario D
I know how to nest environments so that I can use enumerate inside another
environment in order to produce something looking like:

-
Theorem. The following are equivalent:
   1. First statement.
   2. Second statement.
-

My question is: how can I produce

-
Theorem.   1. First statement.
   2. Second statement.
-

The only way I could get it was to insert an empty note after the
"Theorem", then newline, start the enumerate and finally nest it.
Is there a "cleaner" way?

I couldn't find anything relevant on lyx manuals.
Moreover, how can I produce the following?

-
Theorem.
   1. First statement.
   2. Second statement.
-

For this I couldn't find a workaround.

Thank you


Re: how to open a x.lyx,v file

2016-10-04 Thread Dr Eberhard W Lisse
Yes,

but will LyX identify CVS instead of RCS and call the right programs to Check 
in/Out?

el

-- 
Sent from Dr Lisse's iPad mini 4

> On 4 Oct 2016, at 20:03, Richard Heck  wrote:
> 
>> On 10/02/2016 06:18 AM, Dr Eberhard Lisse wrote:
>> Wolfgang,
>> 
>> Richard is slightly wrong, it is not CVS, it is actually the older RCS,
>> which needs to be installed (manually if need be).
> 
> I read somewhere that the CVS control files are identical to the older
> RCS control files. So I'd suppose it could be either.
> 
> Richard



Re: Where to insert section labels?

2016-10-04 Thread Michael Berger


On 10/04/2016 06:40 PM, racoon wrote:

I used to insert section labels right after the heading:

1. Some heading[sec:Some-heading]

This is actually how it is done in the User Guide as well. However, 
this produces the following source:


\section{Some heading\label{sec:Some-heading}}

But it actually leads to problems when I tried to have uppercase 
section headings with:


\usepackage{sectsty}
\sectionfont{\MakeUppercase}

I guess the error occurs for the same reason as 
\MakeUppercase{\label{sec:Some-heading}} generates an error.


So I looked around and saw that often the label is inserted *after* 
the section:


\section{Some heading}\label{sec:Some-heading}

But I am not sure how to achieve this with LyX. So instead I did this:

1. Some heading
[sec:Some-heading]

Where the label is just inserted in an extra default paragraph. Apart 
from looking a bit odd, it seems to work and not to create extra 
spacing or so. So is this the "saver" way to insert section labels in 
LyX?


Daniel



Hi Daniel,
I am not quite sure what you mean.
But this is how I insert a section:

I type : 'New Section' as a name
With the cursor somewhere inside/before/behind that name I select: 'Section'
And I get: '3.8 Section Extra' in the appropriate format

Selecting 'Section*' would  do the same without numbering
Michael


Re: how to open a x.lyx,v file

2016-10-04 Thread Richard Heck
On 10/02/2016 06:18 AM, Dr Eberhard Lisse wrote:
> Wolfgang,
>
> Richard is slightly wrong, it is not CVS, it is actually the older RCS,
> which needs to be installed (manually if need be).

I read somewhere that the CVS control files are identical to the older
RCS control files. So I'd suppose it could be either.

Richard



Re: Where to insert section labels?

2016-10-04 Thread Richard Heck
On 10/04/2016 12:40 PM, racoon wrote:
> I used to insert section labels right after the heading:
>
> 1. Some heading[sec:Some-heading]
>
> This is actually how it is done in the User Guide as well. However,
> this produces the following source:
>
> \section{Some heading\label{sec:Some-heading}}
>
> But it actually leads to problems when I tried to have uppercase
> section headings with:
>
> \usepackage{sectsty}
> \sectionfont{\MakeUppercase}
>
> I guess the error occurs for the same reason as
> \MakeUppercase{\label{sec:Some-heading}} generates an error.

Yes, it can cause other problems too. The root cause is that \section is
a "moving argument". You really don't want to put anything else in
there. Though I'll confess I sometimes do.

> So I looked around and saw that often the label is inserted *after*
> the section:
>
> \section{Some heading}\label{sec:Some-heading}
>
> But I am not sure how to achieve this with LyX. So instead I did this:
>
> 1. Some heading
> [sec:Some-heading]
>
> Where the label is just inserted in an extra default paragraph. Apart
> from looking a bit odd, it seems to work and not to create extra
> spacing or so. So is this the "saver" way to insert section labels in
> LyX?

You can also just put the label at the beginning of the text. If there's
no such text (if the first thing is a \subsection), then you can put it
on a blank line by itself. LaTeX will ignore the otherwise empty line.

Richard



Where to insert section labels?

2016-10-04 Thread racoon

I used to insert section labels right after the heading:

1. Some heading[sec:Some-heading]

This is actually how it is done in the User Guide as well. However, this 
produces the following source:


\section{Some heading\label{sec:Some-heading}}

But it actually leads to problems when I tried to have uppercase section 
headings with:


\usepackage{sectsty}
\sectionfont{\MakeUppercase}

I guess the error occurs for the same reason as 
\MakeUppercase{\label{sec:Some-heading}} generates an error.


So I looked around and saw that often the label is inserted *after* the 
section:


\section{Some heading}\label{sec:Some-heading}

But I am not sure how to achieve this with LyX. So instead I did this:

1. Some heading
[sec:Some-heading]

Where the label is just inserted in an extra default paragraph. Apart 
from looking a bit odd, it seems to work and not to create extra spacing 
or so. So is this the "saver" way to insert section labels in LyX?


Daniel



Solution -- Syncing LyX documents in Windows to PCs with different user names

2016-10-04 Thread Bernt Lie
Set-up: Windows 10 64 bit, Anniversary Update. LyX 2.2.1.

Some time ago, I reported a problem with syncing LyX documents to various 
computers, e.g., using OneDrive. The problem is as follows:

* On my job desktop, my user name is "berntl". On my job laptop, my user name 
is "Bernt". On my private laptop, my user name is "Bernt Lie".
* I have stored my BibTeX file in a OneDrive folder, which is synced across the 
PCs
* When I set up the BibTeX file on my desktop, the location is hard-coded to 
"C:\Users\berntl\...".
* When trying to preview the LyX document on the laptops, I get an error 
message because there is no directory "C:\Users\berntl\..." on them.

In my view, the best way around this would be to introduce a simple way to set 
the path to the BibTeX file within LyX, i.e., it should not be part of the 
document, but instead be part of the preferences set-up of the computer.
--
I discussed the possibility of *changing* the user name on my laptops with one 
of our IT people, so that the BibTeX file would have the same physical address.

After some discussion, our IT expert suggested that I instead create a 
*symbolic link* from user "berntl" to user "Bernt" (on my job laptop). 
Essentially, this implies creating a new directory under "C:\Users" with name 
"berntl", which contains links to the real files under "C:\Users\Bernt" -- 
without consuming disk space.

The following command in Command Window did the trick:

C:\WINDOWS\system32>mklink /D C:\Users\berntl "C:\Users\Bernt"
symbolic link created for C:\Users\berntl <<===>> C:\Users\Bernt

("mklink" makes the link, while "/D" specifies that it is a dynamic link). 
Note: this command *creates* the directory "berntl", so directory "berntl" must 
not exist on the laptops prior to running this command.

I still think it is better to have a preference set-up for the BibTeX file 
directory, but for now this "hack" works.

-B


Re: MSI-file for installation

2016-10-04 Thread Scott Kostyshak
On Tue, Oct 04, 2016 at 06:15:57AM +, Nicklas Devel wrote:
> Hi Scott
> 
> Again thanks for the quick answer.
> 
> It worked for us to use this thread:
> https://www.mail-archive.com/search?l=mid=20140218011606.A8323280184%40lyx.lyx.org

That's great it worked!

What specifically did you do? It would be nice to have this information
easily available for the next person who asks.

Scott Kostyshak
Assistant Professor of Economics
University of Florida
PO Box 117140
Gainesville, Florida 32611-7140


signature.asc
Description: PGP signature


Re: lost all menus, toolbars etc. in okular

2016-10-04 Thread John Kane
I love these highly technical solutions.

Reminds me of " So I rebooted just because it's Windows"



On 4 October 2016 at 04:00, Michael Berger  wrote:

>
> On 10/04/2016 09:52 AM, Michael Berger wrote:
>
>> Hi,
>>
>> because of some foolish experiments I lost all menus, tool bars etc. in
>> Okular and can no longer manipulate the PDF output. What I see now is just
>> the PDF text and the only action possible is scrolling.
>>
>> Removing and re-installing Okular did not help.
>>
>> How can I make all these bars visible again?
>>
>> Thanks in advance,
>>
>> Michael
>>
>>
>>
> Hi,
> just solved the problem by clicking left somewhere in the middle of my
> empty open Okular.
> Thanks,
> Michael
>
>


-- 
John Kane
Kingston ON Canada


Re: lost all menus, toolbars etc. in okular

2016-10-04 Thread Michael Berger


On 10/04/2016 09:52 AM, Michael Berger wrote:

Hi,

because of some foolish experiments I lost all menus, tool bars etc. 
in Okular and can no longer manipulate the PDF output. What I see now 
is just the PDF text and the only action possible is scrolling.


Removing and re-installing Okular did not help.

How can I make all these bars visible again?

Thanks in advance,

Michael




Hi,
just solved the problem by clicking left somewhere in the middle of my 
empty open Okular.

Thanks,
Michael



lost all menus, toolbars etc. in okular

2016-10-04 Thread Michael Berger

Hi,

because of some foolish experiments I lost all menus, tool bars etc. in 
Okular and can no longer manipulate the PDF output. What I see now is 
just the PDF text and the only action possible is scrolling.


Removing and re-installing Okular did not help.

How can I make all these bars visible again?

Thanks in advance,

Michael



RE: MSI-file for installation

2016-10-04 Thread Nicklas Devel
Hi Scott

Again thanks for the quick answer.

It worked for us to use this thread:
https://www.mail-archive.com/search?l=mid=20140218011606.A8323280184%40lyx.lyx.org

So we don't need an msi-file.

Best regards 
Nicklas

Nicklas Devel
General Manager

University of Copenhagen
University IT
Peter Bangs Vej 36
2000 Frederiksberg

TEL +45 35 32 38 18
DIR +45 35 32 24 23
n...@adm.ku.dk
www.pc-exam.ku.dk


-Original Message-
From: Scott Kostyshak [mailto:skost...@lyx.org] 
Sent: 29. september 2016 16:00
To: Nicklas Devel 
Cc: lyx-users@lists.lyx.org; Uwe Stöhr ; Andreas Frydendahl 
Kleissl 
Subject: Re: MSI-file for installation

On Thu, Sep 29, 2016 at 07:54:43AM +, Nicklas Devel wrote:
> Hi Scott
> 
> Thanks for a quick answer.
> 
> Which .exe exactly are you using? (please provide the URL).
> We are trying the bundle:
> ftp://ftp.lyx.org/pub/lyx/bin/2.2.1/LyX-221-Bundle-2.exe
> It is difficult for us to distribute the .exe-file with (MS SCCM) because we 
> don't have the opportunity to set parameters on the installation because we 
> want to install the software /S (silent).

Ah I understand. Thank you for explaining this.

You might be interested in the following conversations, which have to do with 
installing silently on Windows:
https://www.mail-archive.com/search?l=mid=52F51626.4060703%40embl-heidelberg.de
in particular the link within:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg181907.html

After reading it might be useful to get in touch with Øyvind and Frank to see 
how they solved their problems.

This shows a commit that is relevant to our Windows installer working in silent 
mode:
https://www.mail-archive.com/search?l=mid=20140218011606.A8323280184%40lyx.lyx.org

> Have you tried both the "bundle" and the plain "installer"? Have you tried 
> both installers for both LyX 2.1.5 and 2.2.1? Are you installing under 
> administrator? What *exactly* do you mean by "we have some problems"?
> What is the first problem you come across? If it is an error, please specify 
> the exact error message.
> 
> The installer itself works perfect, so no problems there, it is "just" not 
> possible for us to easily distribute the .exe file to the many clients 
> automatic together with our many other "exam-packages" witch is installed 
> with Microsoft SCCM Multicast.

I see.

> And thanks for the very nice answer from you Scott - I'm looking forward to 
> hearing from you soon.

Actually I won't be of much direct help to you (I've only used Ubuntu for the 
last 10 years). But Uwe will respond when he has time (note that he is quite 
busy though now).

I hope we get this figured out soon!

Scott