typos in koma-letter2.lyx template preamble can cause errors

2016-06-05 Thread Richard Talley
I've been working on learning more about KOMAScript classes and found a
problem with the preamble that comes with the LyX koma-letter2 template
(and has for some time).

The preamble has a number of options in the \KOMAoptions section, including
these lines:

%pagenumber=botcenter%   position of the page number (see docu)
%,parskip=false%  Use indent instead of skip (more options cf. docu)
fromalign=center%alignment of the address


The problem is that the first and third lines of this excerpt from the
preamble lack leading commas (the KOMAoptions are comma delimited).

If you uncomment the parskip option by removing the leading % then it gets
parsed together with the fromalign option (because fromalign lacks a
leading comma) and generates an 'undefined control sequence' error.

Another confusion is that 'parskip=false' is the default for this document
class. If you want a block style letter with no indents and a space between
paragraphs you need to change this option to 'parskip=true'.

-- Rich


Blurry inserted figures for retina display in Lyx 2.2 Mac

2016-06-05 Thread Zhexuan Gong
Dear Lyx developers,

I've just installed the official release of Lyx 2.2 Mac version. Thanks a
lot for your team's hard work! It's really awesome and the text in the
workspace is super sharp right now. However, the display of inserted
figures in the Lyx workspace is still blurry and non-retina (see my
screenshot at http://i.imgur.com/mI849a8.jpg) on my retina display Macbook.
Are you aware of this problem and is there a plan to fix it in a future
version?

Thanks a lot!

Zhexuan


Capitalization and plural in cross references

2016-06-05 Thread racoon

Hi,

I have looked a bit into the refstyle. There seem to be commands for 
capitalization of first letter and for plural, like


\Eqref[s]{label}

which will produce "Equations (...)"

Is this supported in LyX?

Daniel



Re: centered formulas + \iff

2016-06-05 Thread Paul A . Rubin
Kiuhnm  gmail.com> writes:

> 
> I came up with a (not so clean) solution:
> 

Try replacing everything between \begin_body and \end_body with the
following and see if it looks right:

\begin_layout Standard
\begin_inset Formula 
\begin{alignat*}{3}
H(Z) & \leq\mathbb{E}_{Z}\lceil I(Z)\rceil &  & 

Re: Get rid of § in formatted reference to sections

2016-06-05 Thread Daniel

On 05.06.2016 20:31, Richard Heck wrote:

On 06/05/2016 12:05 PM, racoon wrote:

On 05.06.2016 16:12, racoon wrote:

Hi,

LyX prints a § when using formatted references to sections, like

  "In section §3, ..."

It seems a bit strange to me that the "§" is added in addition to
"section". Isn't the "§" an abbreviation for "section"? Also it makes
referencing to more than one section tricky because by in the plain
format there is no "§" added, like

  "In section §3 and 4, ..."

Wouldn't it be better to have

  "In section §3 and §4."?

Anyway, I want to get rid of the added "§" in the formatted reference
altogether. I have seen that LyX uses the command "\secref" but did not
find documentation.

Maybe someone can help me out. Thanks.


Okay, I think I got it:

  \renewcommand\secref[1]{section \ref{sec:#1}}

I hope I did not miss any subtleties.


Lyx uses, by default, refstyle.sty for formatted references, but can
also use prettyref.sty. This is controlled by a checkbox at Document>
Settings> Document Class.


Thanks Richard. Using prettyref instead gets rid of the § but 
capitalizes section. So that seems not to work well either. So I still 
have to use the redefinition of the command I suggested.


Daniel



Re: BibTeX-database on two different computers

2016-06-05 Thread Scott Kostyshak
On Sun, Jun 05, 2016 at 03:54:53PM +0200, jezZiFeR wrote:
> Hello,
> 
> I have a problem with using the same BibTeX-database on two different
> computers (OS X 10.11), which I synchronize on my Dropbox. The problem is,
> that both users of the different computers have different names.
> 
> In the moment I have to change two things every time I change the computer:
> 
> 1) I have to correct the paths in the BibTeX-bibliography
> 2) I have to adapt the appropriate entry in the preamble
> (\addbibresource{/Users/E/Dropbox/bibdesk/…)
> 
> Is there a way to get a less complicated handling on two different
> computers with th same BibTeX-database?

Yes, if you add the .bib file somewhere in you LaTeX user dir and run
texhash, then you can just find it in the list when you click on "Add"
in the BibTeX dialog (i.e. no need to click on browse). No path name
will be needed when you do this.

I don't know much about this, but that is the correct way to do this
anyway, I believe (even if one user).

Scott


signature.asc
Description: PGP signature


Re: Get rid of § in formatted reference to sections

2016-06-05 Thread Richard Heck
On 06/05/2016 12:05 PM, racoon wrote:
> On 05.06.2016 16:12, racoon wrote:
>> Hi,
>>
>> LyX prints a § when using formatted references to sections, like
>>
>>   "In section §3, ..."
>>
>> It seems a bit strange to me that the "§" is added in addition to
>> "section". Isn't the "§" an abbreviation for "section"? Also it makes
>> referencing to more than one section tricky because by in the plain
>> format there is no "§" added, like
>>
>>   "In section §3 and 4, ..."
>>
>> Wouldn't it be better to have
>>
>>   "In section §3 and §4."?
>>
>> Anyway, I want to get rid of the added "§" in the formatted reference
>> altogether. I have seen that LyX uses the command "\secref" but did not
>> find documentation.
>>
>> Maybe someone can help me out. Thanks.
>
> Okay, I think I got it:
>
>   \renewcommand\secref[1]{section \ref{sec:#1}}
>
> I hope I did not miss any subtleties.

Lyx uses, by default, refstyle.sty for formatted references, but can
also use prettyref.sty. This is controlled by a checkbox at Document>
Settings> Document Class.

rh



Re: Get rid of § in formatted reference to sections

2016-06-05 Thread racoon

On 05.06.2016 16:12, racoon wrote:

Hi,

LyX prints a § when using formatted references to sections, like

  "In section §3, ..."

It seems a bit strange to me that the "§" is added in addition to
"section". Isn't the "§" an abbreviation for "section"? Also it makes
referencing to more than one section tricky because by in the plain
format there is no "§" added, like

  "In section §3 and 4, ..."

Wouldn't it be better to have

  "In section §3 and §4."?

Anyway, I want to get rid of the added "§" in the formatted reference
altogether. I have seen that LyX uses the command "\secref" but did not
find documentation.

Maybe someone can help me out. Thanks.


Okay, I think I got it:

  \renewcommand\secref[1]{section \ref{sec:#1}}

I hope I did not miss any subtleties.

Daniel





Re: BibTeX-database on two different computers

2016-06-05 Thread Dr Eberhard Lisse
I use Unison to synchronize my netbooks with my iMac and MacPro and so
the BIB files are always up to date.

Works on Linux and on Windoze as well.

https://www.cis.upenn.edu/~bcpierce/unison

greetings, el

On 2016-06-05 14:54 , jezZiFeR wrote:
> Hello,
> 
> I have a problem with using the same BibTeX-database on two different
> computers (OS X 10.11), which I synchronize on my Dropbox. The problem
> is, that both users of the different computers have different names. 
> 
> In the moment I have to change two things every time I change the computer:
> 
> 1) I have to correct the paths in the BibTeX-bibliography
> 2) I have to adapt the appropriate entry in the preamble
> (\addbibresource{/Users/E/Dropbox/bibdesk/…)
> 
> Is there a way to get a less complicated handling on two different
> computers with th same BibTeX-database?
> 
> Thank you
> Jess



Get rid of § in formatted reference to sections

2016-06-05 Thread racoon

Hi,

LyX prints a § when using formatted references to sections, like

  "In section §3, ..."

It seems a bit strange to me that the "§" is added in addition to 
"section". Isn't the "§" an abbreviation for "section"? Also it makes 
referencing to more than one section tricky because by in the plain 
format there is no "§" added, like


  "In section §3 and 4, ..."

Wouldn't it be better to have

  "In section §3 and §4."?

Anyway, I want to get rid of the added "§" in the formatted reference 
altogether. I have seen that LyX uses the command "\secref" but did not 
find documentation.


Maybe someone can help me out. Thanks.

Daniel



BibTeX-database on two different computers

2016-06-05 Thread jezZiFeR
Hello,

I have a problem with using the same BibTeX-database on two different
computers (OS X 10.11), which I synchronize on my Dropbox. The problem is,
that both users of the different computers have different names.

In the moment I have to change two things every time I change the computer:

1) I have to correct the paths in the BibTeX-bibliography
2) I have to adapt the appropriate entry in the preamble
(\addbibresource{/Users/E/Dropbox/bibdesk/…)

Is there a way to get a less complicated handling on two different
computers with th same BibTeX-database?

Thank you
Jess


Re: Separator environment

2016-06-05 Thread Jürgen Spitzmüller
Am Mittwoch, den 01.06.2016, 14:15 -0300 schrieb Julio Rojas:
> Thx Jürgen. Although I understand that "finger painting" is a no-no
> in Lyx/LaTeX, the separator layout help me deal with consecutive
> "Fragile Frames" in Beamer. A necessary casualty, I guess.

Well, you still need them, and you can get them by Insert > Start New
environment, or Alt-p  / Alt-Shift p  (if you are
nested) -- or, if anything else breaks: Alt-x separator-insert

The change is that it is now an inset, not a paragraph style.

Jürgen