Re: No indentation of first paragraphs

2015-08-13 Thread Michael Berger
David Rörich david.roerich at inue.uni-stuttgart.de writes:

 
 
 Am 13.08.2015 um 08:32 schrieb jezZiFeR:
  Dear Michael,
  
  Thank you, this works well. Is there also an automatic possibility to
not indent the first paragraphs
 after a headline in the whole document?
  
 
 This is probably a property of the document class you use (and it should
 be configurable via class options). Most classes I know do _not_ indent
 the first paragraph in a section or chapter, even if indentation is used
 for paragraph separation. What document class do you use?
 
Hi,
my LyX setup is English and all my documents use English as language as
well. I observe that regardless the document class the default setting is
always 'indent paragraph'. This will leave the first para unindented whereas
the following paras will be indented (until the next environment change,
gloss, example etc. or so).
I rather think that not the document class but the language English rules
the indentation behavior. But this is said without having checked myself.

Michael  




Re: No indentation of first paragraphs

2015-08-13 Thread jezZiFeR
Dear Michael,

Thank you, this works well. Is there also an automatic possibility to not 
indent the first paragraphs after a headline in the whole document?

Best
Jess



 Am 12.08.2015 um 23:07 schrieb Michael Berger id...@online.de:
 
 jezZiFeR jezzifer at gmail.com writes:
 
 
 Hello,
 
 how could I achieve, that the first line of a paragraph is indeed
 completely to the left, when there is an
 empty line before it or rather when there is no other paragraph directly
 before it. I add an example, so that
 it might be easier to understand:
 
 I want the first line (»Text«) to begin on the left, and the first line of
 the first paragraph
 (»Arbeitsbereiche«) also. But the following paragraphs should still be
 indented.
 
 Best
 Jess
 Right-click in the respective paragraph, select paragraph settings and
 remove the tick in 'indent paragraph'
 Michael



Re: No indentation of first paragraphs

2015-08-13 Thread David Rörich
Am 13.08.2015 um 10:10 schrieb jezZiFeR:

 I use KOMA-Script-report.


Ok, this is weird. KOMAScript would usually not indent the first
paragraph in a new section or chapter unless you change the class
options in the preamble. Did you?
Do you use Sections for creating headers?
Could you send us a minimal Lyx file which illustrates your problem?


Re: No indentation of first paragraphs

2015-08-13 Thread David
Am 13.08.2015 um 10:31 schrieb jezZiFeR:
 As far as I know I did not change the class options in the preamble. There is 
 a XeTeX-command in the preamble, which might be unnecessary, but I see no 
 changes in the class options. As I do not know what using Sections for 
 creating headers is, I think I do not.
 
 Here is a minimal file:
 

I highly advise you to organize your document using Sections,
Subsections and so on.

Lyx/Latex cannot know that you mean Texttexttext to be a heading. It
is just a paragraph followed by a linebreak (whose usage is not
recommended). As Texttexttext is the first paragraph in your document,
it is *not* indented. All following paragraphs are indented. Actually,
this is the behaviour you want.

To make Texttexttext a heading, put your cursor to this line, then
choose Section or similar from the pull-down menu in the upper left
corner (see screenshot attached).

I have also attached an example Lyx file using an unnumbered Subsection.




Indentation_suggestion.lyx
Description: application/lyx


Re: No indentation of first paragraphs

2015-08-13 Thread jezZiFeR
Thank you – I now understood, what you meant by »using sections for creating 
headers«, which indeed I do. I only did not do this in this short minimal 
example, which was way too short to see that in my large file the following 
examples with the headers use the behavior I want.

In fact my first line »Texttexttext«-line *is* indented:

It is just in the case of an empty line before a new paragraph where the 
paragraph settings have to be changed, if an indentation is not wanted. This is 
fine, because it just happens a few times in the document.

Best
Jess





 Am 13.08.2015 um 10:54 schrieb David david.roer...@inue.uni-stuttgart.de:
 
 Am 13.08.2015 um 10:31 schrieb jezZiFeR:
 As far as I know I did not change the class options in the preamble. There 
 is a XeTeX-command in the preamble, which might be unnecessary, but I see no 
 changes in the class options. As I do not know what using Sections for 
 creating headers is, I think I do not.
 
 Here is a minimal file:
 
 
 I highly advise you to organize your document using Sections,
 Subsections and so on.
 
 Lyx/Latex cannot know that you mean Texttexttext to be a heading. It
 is just a paragraph followed by a linebreak (whose usage is not
 recommended). As Texttexttext is the first paragraph in your document,
 it is *not* indented. All following paragraphs are indented. Actually,
 this is the behaviour you want.
 
 To make Texttexttext a heading, put your cursor to this line, then
 choose Section or similar from the pull-down menu in the upper left
 corner (see screenshot attached).
 
 I have also attached an example Lyx file using an unnumbered Subsection.
 
 
 lyx5.jpgIndentation_suggestion.lyx



Re: No indentation of first paragraphs

2015-08-13 Thread jezZiFeR
As far as I know I did not change the class options in the preamble. There is a 
XeTeX-command in the preamble, which might be unnecessary, but I see no changes 
in the class options. As I do not know what using Sections for creating headers 
is, I think I do not.

Here is a minimal file:


Minimal Indentation.lyx
Description: Binary data


Thank you!




 Am 13.08.2015 um 10:17 schrieb David Rörich 
 david.roer...@inue.uni-stuttgart.de:
 
 Am 13.08.2015 um 10:10 schrieb jezZiFeR:
 
 I use KOMA-Script-report.
 
 
 Ok, this is weird. KOMAScript would usually not indent the first
 paragraph in a new section or chapter unless you change the class
 options in the preamble. Did you?
 Do you use Sections for creating headers?
 Could you send us a minimal Lyx file which illustrates your problem?



Re: No indentation of first paragraphs

2015-08-13 Thread David Rörich

Am 13.08.2015 um 08:32 schrieb jezZiFeR:
 Dear Michael,
 
 Thank you, this works well. Is there also an automatic possibility to not 
 indent the first paragraphs after a headline in the whole document?
 


This is probably a property of the document class you use (and it should
be configurable via class options). Most classes I know do _not_ indent
the first paragraph in a section or chapter, even if indentation is used
for paragraph separation. What document class do you use?


Re: No indentation of first paragraphs

2015-08-13 Thread David
Am 13.08.2015 um 10:58 schrieb Michael Berger:
 David Rörich david.roerich at inue.uni-stuttgart.de writes:
 

 This is probably a property of the document class you use (and it should
 be configurable via class options). Most classes I know do _not_ indent
 the first paragraph in a section or chapter, even if indentation is used
 for paragraph separation. What document class do you use?

 Hi,
 my LyX setup is English and all my documents use English as language as
 well. I observe that regardless the document class the default setting is
 always 'indent paragraph'. This will leave the first para unindented whereas
 the following paras will be indented (until the next environment change,
 gloss, example etc. or so).
 I rather think that not the document class but the language English rules
 the indentation behavior. But this is said without having checked myself.
 

Hi,

I cannot confirm this. Documents using German as their language setting
behave exactly the same way. At least for KOMAScript. But without having
checked I'm pretty sure that there are class options for KOMAScript that
change this behaviour in almost every way you can imagine ;)

Cheers,
David




Re: No indentation of first paragraphs

2015-08-13 Thread David

 
 In fact my first line »Texttexttext«-line *is* indented:
 It is just in the case of an empty line before a new paragraph where the
 paragraph settings have to be changed, if an indentation is not wanted.
 This is fine, because it just happens a few times in the document.
 

Ok. The only way I see to automate this is to use the Paragraph
environement, for example, and to reconfigure it the way you want it to
look like using class options.



Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread David
Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.

Am 30.07.2015 um 13:51 schrieb David Rörich:

 
 2) I work on a document with many math macros having long names, several
 of them beginning with the same string. When entering an ambiguous
 string, an autocomplete window opens offering a choice of commands and
 macros that begin with that string (see image attached). This is very
 helpful. However, the delay between entering the string and the
 autocomplete window appearance is bothering me. Many IDEs have shortkeys
 for opening the autocompletion. Does such a shortkey in Lyx exist? If
 not, can I create one? What would be the corresponding command?
 

Best,
David



Re: No indentation of first paragraphs

2015-08-13 Thread Michael Berger
David david.roerich at inue.uni-stuttgart.de writes:

 
 
  
  In fact my first line »Texttexttext«-line *is* indented:
  It is just in the case of an empty line before a new paragraph where the
  paragraph settings have to be changed, if an indentation is not wanted.
  This is fine, because it just happens a few times in the document.
  
 
 Ok. The only way I see to automate this is to use the Paragraph
 environement, for example, and to reconfigure it the way you want it to
 look like using class options.
 
if really found to be necessary, a list of KOMAscript class options can be
found e.g. here:
https://www.rrzn.uni-hannover.de/fileadmin/kurse/material/latex/scrguide.pdf 

Michael



Re: No indentation of first paragraphs

2015-08-13 Thread Johannes Böttcher



On 08/13/2015 01:32 PM, Michael Berger wrote:

if really found to be necessary, a list of KOMAscript class options can be
found e.g. here:
https://www.rrzn.uni-hannover.de/fileadmin/kurse/material/latex/scrguide.pdf



This is the manual for a version in december 2013, not the current one.

The documentation that matches the installed package can be found using 
the command line:


$ texdoc koma


The CTAN-current docu can of course be found on CTAN.

For the very current release, take a look at
http://komascript.de/current


Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread Richard Heck

On 08/13/2015 05:35 AM, David wrote:

Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.


There isn't one set, but you can set one yourself. Go to Tools 
Preferences Editing Shortcuts, enter completion in the search field, 
select completion-popup, hit Modify, put the cursor in the blank 
field to the left of the Delete Key button, and then enter the 
shortcut that works for you. Alt-Shift-Down Arrow seems to be available 
here and makes some kind of sense.


Richard





Am 30.07.2015 um 13:51 schrieb David Rörich:


2) I work on a document with many math macros having long names, several
of them beginning with the same string. When entering an ambiguous
string, an autocomplete window opens offering a choice of commands and
macros that begin with that string (see image attached). This is very
helpful. However, the delay between entering the string and the
autocomplete window appearance is bothering me. Many IDEs have shortkeys
for opening the autocompletion. Does such a shortkey in Lyx exist? If
not, can I create one? What would be the corresponding command?


Best,
David





Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread Richard Heck

On 08/13/2015 05:35 AM, David wrote:

Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.


PS You can also change the delay time under Tools Preferences Editing 
Input Completion.


Richard



Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread David
Am 13.08.2015 um 16:03 schrieb Richard Heck:
 On 08/13/2015 05:35 AM, David wrote:
 Dear list,

 I would like to bring up the following topic again in the hope that
 someone has an answer.
 
 PS You can also change the delay time under Tools Preferences Editing
 Input Completion.
 
 Richard
 
 

Good to know, thank you!




Re: Lyx to Latex to Lyx

2015-08-13 Thread Scott Kostyshak
On Thu, Aug 13, 2015 at 6:45 PM, Hal Kierstead hal.kierst...@me.com wrote:

 On Aug 13, 2015, at 2:31 PM, Steve Thompson scth...@gmail.com wrote:

 Hal,
 I think I did understand. You want your collaborator to be able to make
 arbitrary changes to the .tex file, then have tex2lyx figure out how to
 create a new .lyx file. But your collaborator could have done anything. That
 makes the “modified” file no different from any other completely arbitrary
 new input file.
 Steve



 Steve -

 I do not think you understood me.  Suppose a create a LyX file and use it to
 generate a tex file.  I send it to my coauthor who does not use LyX.  He
 makes modifications to the LaTex file without changing the front material,
 and sends me his Tex file.  I should be able to use tex2lyx to make a
 revised version  of my LyX file.  But this requires many corrections by
 hand.

 Hal


 Steve -

 First of all, tex2lyx already comes close to making a good LyX file.  The
 main problem is that there always seem to be a handful or errors that must
 be fixed before the file will run.  For some reason the program cannot
 handle options like \begin{thm}[Main Lemma], but also other options.  It
 also seems that comments in the Latex file can sometimes produce errors.  A
 huge annoyance is that theorems, etc. are displayed in ERT.

 I understand that for arbitrary LaTex files some of these issues maybe very
 complicated or impossible, but what I am asking for does not involve
 arbitrary files.  Let’s take an easy case.  Suppose my coauthor only makes
 changes between \begin{document} and \end{document} of the LaTex file, and
 does not use any new constructs.  Shouldn’t it be possible, perhaps with a
 helper file that records settings and any other special issues, to make a
 good LyX version?  Or even easier, shouldn’t I be able to export a Latex
 file and then without changing it, import it and get the same LyX file back.
 Yes, I know there is no reason to do this, but it is a benchmark.

 Hal

Hal,

I think your reasoning is sound. I agree that it would be really nice
to have clean round trip (even though as Steve rightly points out this
is useless in theory if we don't make any manual change). The reason
is simply that it is hard to import LaTeX, *even* LaTeX that LyX
produces. Sometimes one way is easier than the other way. tex2lyx is
actually a completely separate program from LyX (it is literally a
separate binary program). There is no communication between the two.
Communication wouldn't even help. Import is just a completely
different procedure from export.

Many people (including myself) agree with you that it would be nice to
have this. To see previous discussions on this topic, search for LyX
roundtrip LaTeX or something similar.

Best,

Scott


Re: Lyx to Latex to Lyx

2015-08-13 Thread Hal Kierstead

 On Aug 13, 2015, at 2:31 PM, Steve Thompson scth...@gmail.com wrote:
 
 Hal,
 I think I did understand. You want your collaborator to be able to make 
 arbitrary changes to the .tex file, then have tex2lyx figure out how to 
 create a new .lyx file. But your collaborator could have done anything. That 
 makes the “modified” file no different from any other completely arbitrary 
 new input file. 
 Steve
  
  
  
 Steve -
  
 I do not think you understood me.  Suppose a create a LyX file and use it to 
 generate a tex file.  I send it to my coauthor who does not use LyX.  He 
 makes modifications to the LaTex file without changing the front material, 
 and sends me his Tex file.  I should be able to use tex2lyx to make a revised 
 version  of my LyX file.  But this requires many corrections by hand.
  
 Hal

Steve -

First of all, tex2lyx already comes close to making a good LyX file.  The main 
problem is that there always seem to be a handful or errors that must be fixed 
before the file will run.  For some reason the program cannot handle options 
like \begin{thm}[Main Lemma], but also other options.  It also seems that 
comments in the Latex file can sometimes produce errors.  A huge annoyance is 
that theorems, etc. are displayed in ERT.

I understand that for arbitrary LaTex files some of these issues maybe very 
complicated or impossible, but what I am asking for does not involve arbitrary 
files.  Let’s take an easy case.  Suppose my coauthor only makes changes 
between \begin{document} and \end{document} of the LaTex file, and does not use 
any new constructs.  Shouldn’t it be possible, perhaps with a helper file that 
records settings and any other special issues, to make a good LyX version?  Or 
even easier, shouldn’t I be able to export a Latex file and then without 
changing it, import it and get the same LyX file back.  Yes, I know there is no 
reason to do this, but it is a benchmark.

Hal 

RE: Lyx to Latex to Lyx

2015-08-13 Thread Steve Thompson
If you used Lyx to create the LaTeX file, then you already have the helper
file to that would be needed to work with the LaTeX. It is just the
filename.lyx file that created it in the first place. For my own work, I
do this all the time. Create a document with Lyx, and send it to a journal
as the .tex file with the figure files also attached. 

 

Going the other way just doesn't work. I can't imagine an automated routine
that would look at an arbitrary .tex file and figure out what set of
.layout,  and template files that could be used to create it again. OTOH,
maybe I just don't have sufficient imagination.

 

 

 

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of
Hal Kierstead
Sent: Thursday, August 13, 2015 3:54 PM
To: Mike Reeks mike.re...@newcastle.ac.uk
Cc: Lyx-users lyx-users@lists.lyx.org
Subject: Re: Lyx to Latex to Lyx

 

 

On Aug 13, 2015, at 12:02 PM, Mike Reeks mike.re...@newcastle.ac.uk
mailto:mike.re...@newcastle.ac.uk  wrote:

 

Dear Lyx Users 

I have written a very large article in Lyx for publication in a scientific
journal  which will only accept the article as a latex file. Of course Lyx
will generate a Latex file as well as a pdf file.  I wanted to check that
the Latex file is acceptable to Lyx. Unfortunately I get an  error window
Lyx insetP  saying 'Unknown parameter name'. So what does that mean? Can
anyone help. Most grateful. Does that mean I will encounter problems using
the latex to produce pdf files direct. It would seem odd that Lyx wont read
the latex file it produces!

Regards

Mike Reeks

 

I have used LyX for a long time, and really like it, but I think this is its
biggest weakness.  I also think this is a major obstacle to its wider
adoption.  When I collaborate with somebody who does not use LyX I am forced
to use LaTex, rather than to be able to show off how easy LyX is to use.  I
understand that it maybe very difficult convert an arbitrary LaTex file LyX,
but it should be routine to convert a LaTex file constructed by LyX, perhaps
by producing an extra helper file during the first conversion.

 

Hal

 



Re: Lyx to Latex to Lyx

2015-08-13 Thread Hal Kierstead

 On Aug 13, 2015, at 1:30 PM, Steve Thompson scth...@gmail.com wrote:
 
 If you used Lyx to create the LaTeX file, then you already have the “helper 
 file” to that would be needed to work with the LaTeX. It is just the 
 filename.lyx file that created it in the first place. For my own work, I do 
 this all the time. Create a document with Lyx, and send it to a journal as 
 the .tex file with the figure files also attached. 
  
 Going the other way just doesn’t work. I can’t imagine an automated routine 
 that would look at an arbitrary .tex file and figure out what set of .layout, 
  and template files that could be used to create it again. OTOH, maybe I just 
 don’t have sufficient imagination…
  
  
  
 From: lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org 
 [mailto:lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org] On Behalf 
 Of Hal Kierstead
 Sent: Thursday, August 13, 2015 3:54 PM
 To: Mike Reeks mike.re...@newcastle.ac.uk 
 mailto:mike.re...@newcastle.ac.uk
 Cc: Lyx-users lyx-users@lists.lyx.org mailto:lyx-users@lists.lyx.org
 Subject: Re: Lyx to Latex to Lyx
  
  
 On Aug 13, 2015, at 12:02 PM, Mike Reeks mike.re...@newcastle.ac.uk 
 mailto:mike.re...@newcastle.ac.uk wrote:
  
 Dear Lyx Users 
 I have written a very large article in Lyx for publication in a scientific 
 journal  which will only accept the article as a latex file. Of course Lyx 
 will generate a Latex file as well as a pdf file.  I wanted to check that 
 the Latex file is acceptable to Lyx. Unfortunately I get an  error window  
 Lyx insetP  saying 'Unknown parameter name'. So what does that mean? Can 
 anyone help. Most grateful. Does that mean I will encounter problems using 
 the latex to produce pdf files direct. It would seem odd that Lyx wont read 
 the latex file it produces!
 Regards
 Mike Reeks
 
  
 I have used LyX for a long time, and really like it, but I think this is its 
 biggest weakness.  I also think this is a major obstacle to its wider 
 adoption.  When I collaborate with somebody who does not use LyX I am forced 
 to use LaTex, rather than to be able to show off how easy LyX is to use.  I 
 understand that it maybe very difficult convert an arbitrary LaTex file LyX, 
 but it should be routine to convert a LaTex file constructed by LyX, perhaps 
 by producing an extra helper file during the first conversion.
  
 Hal

Steve -

I do not think you understood me.  Suppose a create a LyX file and use it to 
generate a tex file.  I send it to my coauthor who does not use LyX.  He makes 
modifications to the LaTex file without changing the front material, and sends 
me his Tex file.  I should be able to use tex2lyx to make a revised version  of 
my LyX file.  But this requires many corrections by hand.

Hal

RE: Lyx to Latex to Lyx

2015-08-13 Thread Steve Thompson
Hal,

I think I did understand. You want your collaborator to be able to make 
arbitrary changes to the .tex file, then have tex2lyx figure out how to create 
a new .lyx file. But your collaborator could have done anything. That makes the 
“modified” file no different from any other completely arbitrary new input 
file. 

Steve

 

 

 

Steve -

 

I do not think you understood me.  Suppose a create a LyX file and use it to 
generate a tex file.  I send it to my coauthor who does not use LyX.  He makes 
modifications to the LaTex file without changing the front material, and sends 
me his Tex file.  I should be able to use tex2lyx to make a revised version  of 
my LyX file.  But this requires many corrections by hand.

 

Hal



RE: Lyx to Latex to Lyx

2015-08-13 Thread Mike Reeks
Dear Lyx Users

I have written a very large article in Lyx for publication in a scientific 
journal  which will only accept the article as a latex file. Of course Lyx will 
generate a Latex file as well as a pdf file.  I wanted to check that the Latex 
file is acceptable to Lyx. Unfortunately I get an  error window  Lyx insetP  
saying 'Unknown parameter name'. So what does that mean? Can anyone help. Most 
grateful. Does that mean I will encounter problems using the latex to produce 
pdf files direct. It would seem odd that Lyx wont read the latex file it 
produces!

Regards

Mike Reeks




Re: Lyx to Latex to Lyx

2015-08-13 Thread Hal Kierstead

 On Aug 13, 2015, at 12:02 PM, Mike Reeks mike.re...@newcastle.ac.uk wrote:
 
 Dear Lyx Users 
 I have written a very large article in Lyx for publication in a scientific 
 journal  which will only accept the article as a latex file. Of course Lyx 
 will generate a Latex file as well as a pdf file.  I wanted to check that the 
 Latex file is acceptable to Lyx. Unfortunately I get an  error window  Lyx 
 insetP  saying 'Unknown parameter name'. So what does that mean? Can anyone 
 help. Most grateful. Does that mean I will encounter problems using the latex 
 to produce pdf files direct. It would seem odd that Lyx wont read the latex 
 file it produces!
 Regards
 Mike Reeks

I have used LyX for a long time, and really like it, but I think this is its 
biggest weakness.  I also think this is a major obstacle to its wider adoption. 
 When I collaborate with somebody who does not use LyX I am forced to use 
LaTex, rather than to be able to show off how easy LyX is to use.  I understand 
that it maybe very difficult convert an arbitrary LaTex file LyX, but it should 
be routine to convert a LaTex file constructed by LyX, perhaps by producing an 
extra helper file during the first conversion.

Hal



Re: No indentation of first paragraphs

2015-08-13 Thread jezZiFeR
Dear Michael,

Thank you, this works well. Is there also an automatic possibility to not 
indent the first paragraphs after a headline in the whole document?

Best
Jess



> Am 12.08.2015 um 23:07 schrieb Michael Berger :
> 
> jezZiFeR  gmail.com> writes:
> 
>> 
>> Hello,
>> 
>> how could I achieve, that the first line of a paragraph is indeed
> completely to the left, when there is an
>> empty line before it or rather when there is no other paragraph directly
> before it. I add an example, so that
>> it might be easier to understand:
>> 
>> I want the first line (»Text«) to begin on the left, and the first line of
> the first paragraph
>> (»Arbeitsbereiche«) also. But the following paragraphs should still be
> indented.
>> 
>> Best
>> Jess
> Right-click in the respective paragraph, select paragraph settings and
> remove the tick in 'indent paragraph'
> Michael



Re: No indentation of first paragraphs

2015-08-13 Thread David Rörich

Am 13.08.2015 um 08:32 schrieb jezZiFeR:
> Dear Michael,
> 
> Thank you, this works well. Is there also an automatic possibility to not 
> indent the first paragraphs after a headline in the whole document?
> 


This is probably a property of the document class you use (and it should
be configurable via class options). Most classes I know do _not_ indent
the first paragraph in a section or chapter, even if indentation is used
for paragraph separation. What document class do you use?


Re: No indentation of first paragraphs

2015-08-13 Thread David Rörich
Am 13.08.2015 um 10:10 schrieb jezZiFeR:
>
> I use KOMA-Script-report.
>

Ok, this is weird. KOMAScript would usually not indent the first
paragraph in a new section or chapter unless you change the class
options in the preamble. Did you?
Do you use Sections for creating headers?
Could you send us a minimal Lyx file which illustrates your problem?


Re: No indentation of first paragraphs

2015-08-13 Thread jezZiFeR
As far as I know I did not change the class options in the preamble. There is a 
XeTeX-command in the preamble, which might be unnecessary, but I see no changes 
in the class options. As I do not know what using Sections for creating headers 
is, I think I do not.

Here is a minimal file:


Minimal Indentation.lyx
Description: Binary data


Thank you!




> Am 13.08.2015 um 10:17 schrieb David Rörich 
> :
> 
> Am 13.08.2015 um 10:10 schrieb jezZiFeR:
>> 
>> I use KOMA-Script-report.
>> 
> 
> Ok, this is weird. KOMAScript would usually not indent the first
> paragraph in a new section or chapter unless you change the class
> options in the preamble. Did you?
> Do you use Sections for creating headers?
> Could you send us a minimal Lyx file which illustrates your problem?



Re: No indentation of first paragraphs

2015-08-13 Thread David
Am 13.08.2015 um 10:31 schrieb jezZiFeR:
> As far as I know I did not change the class options in the preamble. There is 
> a XeTeX-command in the preamble, which might be unnecessary, but I see no 
> changes in the class options. As I do not know what using Sections for 
> creating headers is, I think I do not.
> 
> Here is a minimal file:
> 

I highly advise you to organize your document using Sections,
Subsections and so on.

Lyx/Latex cannot know that you mean "Texttexttext" to be a heading. It
is just a paragraph followed by a linebreak (whose usage is not
recommended). As "Texttexttext" is the first paragraph in your document,
it is *not* indented. All following paragraphs are indented. Actually,
this is the behaviour you want.

To make "Texttexttext" a heading, put your cursor to this line, then
choose Section or similar from the pull-down menu in the upper left
corner (see screenshot attached).

I have also attached an example Lyx file using an unnumbered Subsection.




Indentation_suggestion.lyx
Description: application/lyx


Re: No indentation of first paragraphs

2015-08-13 Thread Michael Berger
David Rörich  inue.uni-stuttgart.de> writes:

> 
> 
> Am 13.08.2015 um 08:32 schrieb jezZiFeR:
> > Dear Michael,
> > 
> > Thank you, this works well. Is there also an automatic possibility to
not indent the first paragraphs
> after a headline in the whole document?
> > 
> 
> This is probably a property of the document class you use (and it should
> be configurable via class options). Most classes I know do _not_ indent
> the first paragraph in a section or chapter, even if indentation is used
> for paragraph separation. What document class do you use?
> 
>Hi,
my LyX setup is English and all my documents use English as "language" as
well. I observe that regardless the document class the default setting is
always 'indent paragraph'. This will leave the first para unindented whereas
the following paras will be indented (until the next environment change,
gloss, example etc. or so).
I rather think that not the document class but the "language" English rules
the indentation behavior. But this is said without having checked myself.

Michael  




Re: No indentation of first paragraphs

2015-08-13 Thread jezZiFeR
Thank you – I now understood, what you meant by »using sections for creating 
headers«, which indeed I do. I only did not do this in this short minimal 
example, which was way too short to see that in my large file the following 
examples with the headers use the behavior I want.

In fact my first line »Texttexttext«-line *is* indented:

It is just in the case of an empty line before a new paragraph where the 
paragraph settings have to be changed, if an indentation is not wanted. This is 
fine, because it just happens a few times in the document.

Best
Jess





> Am 13.08.2015 um 10:54 schrieb David :
> 
> Am 13.08.2015 um 10:31 schrieb jezZiFeR:
>> As far as I know I did not change the class options in the preamble. There 
>> is a XeTeX-command in the preamble, which might be unnecessary, but I see no 
>> changes in the class options. As I do not know what using Sections for 
>> creating headers is, I think I do not.
>> 
>> Here is a minimal file:
>> 
> 
> I highly advise you to organize your document using Sections,
> Subsections and so on.
> 
> Lyx/Latex cannot know that you mean "Texttexttext" to be a heading. It
> is just a paragraph followed by a linebreak (whose usage is not
> recommended). As "Texttexttext" is the first paragraph in your document,
> it is *not* indented. All following paragraphs are indented. Actually,
> this is the behaviour you want.
> 
> To make "Texttexttext" a heading, put your cursor to this line, then
> choose Section or similar from the pull-down menu in the upper left
> corner (see screenshot attached).
> 
> I have also attached an example Lyx file using an unnumbered Subsection.
> 
> 
> 



Re: No indentation of first paragraphs

2015-08-13 Thread David

> 
> In fact my first line »Texttexttext«-line *is* indented:
> It is just in the case of an empty line before a new paragraph where the
> paragraph settings have to be changed, if an indentation is not wanted.
> This is fine, because it just happens a few times in the document.
> 

Ok. The only way I see to automate this is to use the Paragraph
environement, for example, and to reconfigure it the way you want it to
look like using class options.



Re: No indentation of first paragraphs

2015-08-13 Thread David
Am 13.08.2015 um 10:58 schrieb Michael Berger:
> David Rörich  inue.uni-stuttgart.de> writes:
> 
>>
>> This is probably a property of the document class you use (and it should
>> be configurable via class options). Most classes I know do _not_ indent
>> the first paragraph in a section or chapter, even if indentation is used
>> for paragraph separation. What document class do you use?
>>
>> Hi,
> my LyX setup is English and all my documents use English as "language" as
> well. I observe that regardless the document class the default setting is
> always 'indent paragraph'. This will leave the first para unindented whereas
> the following paras will be indented (until the next environment change,
> gloss, example etc. or so).
> I rather think that not the document class but the "language" English rules
> the indentation behavior. But this is said without having checked myself.
> 

Hi,

I cannot confirm this. Documents using German as their language setting
behave exactly the same way. At least for KOMAScript. But without having
checked I'm pretty sure that there are class options for KOMAScript that
change this behaviour in almost every way you can imagine ;)

Cheers,
David




Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread David
Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.

Am 30.07.2015 um 13:51 schrieb David Rörich:

> 
> 2) I work on a document with many math macros having long names, several
> of them beginning with the same string. When entering an ambiguous
> string, an autocomplete window opens offering a choice of commands and
> macros that begin with that string (see image attached). This is very
> helpful. However, the delay between entering the string and the
> autocomplete window appearance is bothering me. Many IDEs have shortkeys
> for opening the autocompletion. Does such a shortkey in Lyx exist? If
> not, can I create one? What would be the corresponding command?
> 

Best,
David



Re: No indentation of first paragraphs

2015-08-13 Thread Michael Berger
David  inue.uni-stuttgart.de> writes:

> 
> 
> > 
> > In fact my first line »Texttexttext«-line *is* indented:
> > It is just in the case of an empty line before a new paragraph where the
> > paragraph settings have to be changed, if an indentation is not wanted.
> > This is fine, because it just happens a few times in the document.
> > 
> 
> Ok. The only way I see to automate this is to use the Paragraph
> environement, for example, and to reconfigure it the way you want it to
> look like using class options.
> 
>if really found to be necessary, a list of KOMAscript class options can be
found e.g. here:
https://www.rrzn.uni-hannover.de/fileadmin/kurse/material/latex/scrguide.pdf 

Michael



Re: No indentation of first paragraphs

2015-08-13 Thread Johannes Böttcher



On 08/13/2015 01:32 PM, Michael Berger wrote:

if really found to be necessary, a list of KOMAscript class options can be
found e.g. here:
https://www.rrzn.uni-hannover.de/fileadmin/kurse/material/latex/scrguide.pdf



This is the manual for a version in december 2013, not the current one.

The documentation that matches the installed package can be found using 
the command line:


$ texdoc koma


The CTAN-current docu can of course be found on CTAN.

For the very current release, take a look at
http://komascript.de/current


Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread Richard Heck

On 08/13/2015 05:35 AM, David wrote:

Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.


There isn't one set, but you can set one yourself. Go to Tools> 
Preferences> Editing> Shortcuts, enter "completion" in the search field, 
select "completion-popup", hit "Modify", put the cursor in the blank 
field to the left of the "Delete Key" button, and then enter the 
shortcut that works for you. Alt-Shift-Down Arrow seems to be available 
here and makes some kind of sense.


Richard





Am 30.07.2015 um 13:51 schrieb David Rörich:


2) I work on a document with many math macros having long names, several
of them beginning with the same string. When entering an ambiguous
string, an autocomplete window opens offering a choice of commands and
macros that begin with that string (see image attached). This is very
helpful. However, the delay between entering the string and the
autocomplete window appearance is bothering me. Many IDEs have shortkeys
for opening the autocompletion. Does such a shortkey in Lyx exist? If
not, can I create one? What would be the corresponding command?


Best,
David





Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread Richard Heck

On 08/13/2015 05:35 AM, David wrote:

Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.


PS You can also change the delay time under Tools> Preferences> Editing> 
Input Completion.


Richard



Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread David
Am 13.08.2015 um 16:03 schrieb Richard Heck:
> On 08/13/2015 05:35 AM, David wrote:
>> Dear list,
>>
>> I would like to bring up the following topic again in the hope that
>> someone has an answer.
> 
> PS You can also change the delay time under Tools> Preferences> Editing>
> Input Completion.
> 
> Richard
> 
> 

Good to know, thank you!




RE: Lyx to Latex to Lyx

2015-08-13 Thread Mike Reeks
Dear Lyx Users

I have written a very large article in Lyx for publication in a scientific 
journal  which will only accept the article as a latex file. Of course Lyx will 
generate a Latex file as well as a pdf file.  I wanted to check that the Latex 
file is acceptable to Lyx. Unfortunately I get an  error window  Lyx insetP  
saying 'Unknown parameter name'. So what does that mean? Can anyone help. Most 
grateful. Does that mean I will encounter problems using the latex to produce 
pdf files direct. It would seem odd that Lyx wont read the latex file it 
produces!

Regards

Mike Reeks




Re: Lyx to Latex to Lyx

2015-08-13 Thread Hal Kierstead

> On Aug 13, 2015, at 12:02 PM, Mike Reeks  wrote:
> 
> Dear Lyx Users 
> I have written a very large article in Lyx for publication in a scientific 
> journal  which will only accept the article as a latex file. Of course Lyx 
> will generate a Latex file as well as a pdf file.  I wanted to check that the 
> Latex file is acceptable to Lyx. Unfortunately I get an  error window  Lyx 
> insetP  saying 'Unknown parameter name'. So what does that mean? Can anyone 
> help. Most grateful. Does that mean I will encounter problems using the latex 
> to produce pdf files direct. It would seem odd that Lyx wont read the latex 
> file it produces!
> Regards
> Mike Reeks

I have used LyX for a long time, and really like it, but I think this is its 
biggest weakness.  I also think this is a major obstacle to its wider adoption. 
 When I collaborate with somebody who does not use LyX I am forced to use 
LaTex, rather than to be able to show off how easy LyX is to use.  I understand 
that it maybe very difficult convert an arbitrary LaTex file LyX, but it should 
be routine to convert a LaTex file constructed by LyX, perhaps by producing an 
extra helper file during the first conversion.

Hal



RE: Lyx to Latex to Lyx

2015-08-13 Thread Steve Thompson
If you used Lyx to create the LaTeX file, then you already have the "helper
file" to that would be needed to work with the LaTeX. It is just the
.lyx file that created it in the first place. For my own work, I
do this all the time. Create a document with Lyx, and send it to a journal
as the .tex file with the figure files also attached. 

 

Going the other way just doesn't work. I can't imagine an automated routine
that would look at an arbitrary .tex file and figure out what set of
.layout,  and template files that could be used to create it again. OTOH,
maybe I just don't have sufficient imagination.

 

 

 

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of
Hal Kierstead
Sent: Thursday, August 13, 2015 3:54 PM
To: Mike Reeks 
Cc: Lyx-users 
Subject: Re: Lyx to Latex to Lyx

 

 

On Aug 13, 2015, at 12:02 PM, Mike Reeks  > wrote:

 

Dear Lyx Users 

I have written a very large article in Lyx for publication in a scientific
journal  which will only accept the article as a latex file. Of course Lyx
will generate a Latex file as well as a pdf file.  I wanted to check that
the Latex file is acceptable to Lyx. Unfortunately I get an  error window
Lyx insetP  saying 'Unknown parameter name'. So what does that mean? Can
anyone help. Most grateful. Does that mean I will encounter problems using
the latex to produce pdf files direct. It would seem odd that Lyx wont read
the latex file it produces!

Regards

Mike Reeks

 

I have used LyX for a long time, and really like it, but I think this is its
biggest weakness.  I also think this is a major obstacle to its wider
adoption.  When I collaborate with somebody who does not use LyX I am forced
to use LaTex, rather than to be able to show off how easy LyX is to use.  I
understand that it maybe very difficult convert an arbitrary LaTex file LyX,
but it should be routine to convert a LaTex file constructed by LyX, perhaps
by producing an extra helper file during the first conversion.

 

Hal

 



Re: Lyx to Latex to Lyx

2015-08-13 Thread Hal Kierstead

> On Aug 13, 2015, at 1:30 PM, Steve Thompson  wrote:
> 
> If you used Lyx to create the LaTeX file, then you already have the “helper 
> file” to that would be needed to work with the LaTeX. It is just the 
> .lyx file that created it in the first place. For my own work, I do 
> this all the time. Create a document with Lyx, and send it to a journal as 
> the .tex file with the figure files also attached. 
>  
> Going the other way just doesn’t work. I can’t imagine an automated routine 
> that would look at an arbitrary .tex file and figure out what set of .layout, 
>  and template files that could be used to create it again. OTOH, maybe I just 
> don’t have sufficient imagination…
>  
>  
>  
> From: lyx-users@lists.lyx.org  
> [mailto:lyx-users@lists.lyx.org ] On Behalf 
> Of Hal Kierstead
> Sent: Thursday, August 13, 2015 3:54 PM
> To: Mike Reeks  >
> Cc: Lyx-users >
> Subject: Re: Lyx to Latex to Lyx
>  
>  
>> On Aug 13, 2015, at 12:02 PM, Mike Reeks > > wrote:
>>  
>> Dear Lyx Users 
>> I have written a very large article in Lyx for publication in a scientific 
>> journal  which will only accept the article as a latex file. Of course Lyx 
>> will generate a Latex file as well as a pdf file.  I wanted to check that 
>> the Latex file is acceptable to Lyx. Unfortunately I get an  error window  
>> Lyx insetP  saying 'Unknown parameter name'. So what does that mean? Can 
>> anyone help. Most grateful. Does that mean I will encounter problems using 
>> the latex to produce pdf files direct. It would seem odd that Lyx wont read 
>> the latex file it produces!
>> Regards
>> Mike Reeks
> 
>  
> I have used LyX for a long time, and really like it, but I think this is its 
> biggest weakness.  I also think this is a major obstacle to its wider 
> adoption.  When I collaborate with somebody who does not use LyX I am forced 
> to use LaTex, rather than to be able to show off how easy LyX is to use.  I 
> understand that it maybe very difficult convert an arbitrary LaTex file LyX, 
> but it should be routine to convert a LaTex file constructed by LyX, perhaps 
> by producing an extra helper file during the first conversion.
>  
> Hal

Steve -

I do not think you understood me.  Suppose a create a LyX file and use it to 
generate a tex file.  I send it to my coauthor who does not use LyX.  He makes 
modifications to the LaTex file without changing the front material, and sends 
me his Tex file.  I should be able to use tex2lyx to make a revised version  of 
my LyX file.  But this requires many corrections by hand.

Hal

RE: Lyx to Latex to Lyx

2015-08-13 Thread Steve Thompson
Hal,

I think I did understand. You want your collaborator to be able to make 
arbitrary changes to the .tex file, then have tex2lyx figure out how to create 
a new .lyx file. But your collaborator could have done anything. That makes the 
“modified” file no different from any other completely arbitrary new input 
file. 

Steve

 

 

 

Steve -

 

I do not think you understood me.  Suppose a create a LyX file and use it to 
generate a tex file.  I send it to my coauthor who does not use LyX.  He makes 
modifications to the LaTex file without changing the front material, and sends 
me his Tex file.  I should be able to use tex2lyx to make a revised version  of 
my LyX file.  But this requires many corrections by hand.

 

Hal



Re: Lyx to Latex to Lyx

2015-08-13 Thread Hal Kierstead

> On Aug 13, 2015, at 2:31 PM, Steve Thompson  wrote:
> 
> Hal,
> I think I did understand. You want your collaborator to be able to make 
> arbitrary changes to the .tex file, then have tex2lyx figure out how to 
> create a new .lyx file. But your collaborator could have done anything. That 
> makes the “modified” file no different from any other completely arbitrary 
> new input file. 
> Steve
>  
>  
>  
> Steve -
>  
> I do not think you understood me.  Suppose a create a LyX file and use it to 
> generate a tex file.  I send it to my coauthor who does not use LyX.  He 
> makes modifications to the LaTex file without changing the front material, 
> and sends me his Tex file.  I should be able to use tex2lyx to make a revised 
> version  of my LyX file.  But this requires many corrections by hand.
>  
> Hal

Steve -

First of all, tex2lyx already comes close to making a good LyX file.  The main 
problem is that there always seem to be a handful or errors that must be fixed 
before the file will run.  For some reason the program cannot handle options 
like \begin{thm}[Main Lemma], but also other options.  It also seems that 
comments in the Latex file can sometimes produce errors.  A huge annoyance is 
that theorems, etc. are displayed in ERT.

I understand that for arbitrary LaTex files some of these issues maybe very 
complicated or impossible, but what I am asking for does not involve arbitrary 
files.  Let’s take an easy case.  Suppose my coauthor only makes changes 
between \begin{document} and \end{document} of the LaTex file, and does not use 
any new constructs.  Shouldn’t it be possible, perhaps with a helper file that 
records settings and any other special issues, to make a good LyX version?  Or 
even easier, shouldn’t I be able to export a Latex file and then without 
changing it, import it and get the same LyX file back.  Yes, I know there is no 
reason to do this, but it is a benchmark.

Hal 

Re: Lyx to Latex to Lyx

2015-08-13 Thread Scott Kostyshak
On Thu, Aug 13, 2015 at 6:45 PM, Hal Kierstead  wrote:
>
> On Aug 13, 2015, at 2:31 PM, Steve Thompson  wrote:
>
> Hal,
> I think I did understand. You want your collaborator to be able to make
> arbitrary changes to the .tex file, then have tex2lyx figure out how to
> create a new .lyx file. But your collaborator could have done anything. That
> makes the “modified” file no different from any other completely arbitrary
> new input file.
> Steve
>
>
>
> Steve -
>
> I do not think you understood me.  Suppose a create a LyX file and use it to
> generate a tex file.  I send it to my coauthor who does not use LyX.  He
> makes modifications to the LaTex file without changing the front material,
> and sends me his Tex file.  I should be able to use tex2lyx to make a
> revised version  of my LyX file.  But this requires many corrections by
> hand.
>
> Hal
>
>
> Steve -
>
> First of all, tex2lyx already comes close to making a good LyX file.  The
> main problem is that there always seem to be a handful or errors that must
> be fixed before the file will run.  For some reason the program cannot
> handle options like \begin{thm}[Main Lemma], but also other options.  It
> also seems that comments in the Latex file can sometimes produce errors.  A
> huge annoyance is that theorems, etc. are displayed in ERT.
>
> I understand that for arbitrary LaTex files some of these issues maybe very
> complicated or impossible, but what I am asking for does not involve
> arbitrary files.  Let’s take an easy case.  Suppose my coauthor only makes
> changes between \begin{document} and \end{document} of the LaTex file, and
> does not use any new constructs.  Shouldn’t it be possible, perhaps with a
> helper file that records settings and any other special issues, to make a
> good LyX version?  Or even easier, shouldn’t I be able to export a Latex
> file and then without changing it, import it and get the same LyX file back.
> Yes, I know there is no reason to do this, but it is a benchmark.
>
> Hal

Hal,

I think your reasoning is sound. I agree that it would be really nice
to have clean round trip (even though as Steve rightly points out this
is useless in theory if we don't make any manual change). The reason
is simply that it is hard to import LaTeX, *even* LaTeX that LyX
produces. Sometimes one way is easier than the other way. tex2lyx is
actually a completely separate program from LyX (it is literally a
separate binary program). There is no communication between the two.
Communication wouldn't even help. Import is just a completely
different procedure from export.

Many people (including myself) agree with you that it would be nice to
have this. To see previous discussions on this topic, search for "LyX
roundtrip LaTeX" or something similar.

Best,

Scott