Re: Is it possible to add a style to the "Insert citation" dialog?

2016-06-03 Thread racoon

On 03.06.2016 17:02, Richard Heck wrote:

On 06/03/2016 09:39 AM, PhilipPirrip wrote:

On 06/02/2016 06:49 PM, Richard Heck wrote:

In principle, yes. The styles are defined in modules, such as
natbib.module, and you could add more styles to that module, say. But
the syntax is not documented outside the code, so you'll have to figure
it out, more or less.



I had no idea this was possible.
Can you help a little more, Richard: is adding more styles only
possible by extending natbib.module (where should that file be saved?)
or is it possible to add a totally new module for, say, some other
engine. I'm thinking of having one for biblatex citation styles, that
would be added to natbib and jurabib.


I am not completely sure. I believe right now that you can only extend
or alter the existing modules (and this is kind of unofficial, which is
why it isn't properlyl documented). But the modularization of this stuff
was work done towards biblatex support.

I assume that, like any module, these should be saved to the layouts/
subdirectory of the user directory.

Richard


Yes, just the same place as the other user defined modules.

And it seems like one can only alter modules since the options for the 
Format in Document > Settings... > Bibliography seem hard-coded. But if 
one uses biblatex anyway that might not be a big problem.


I guess the idea could be to add a biblatex option and a biblatex.module 
that supports all standard biblatex cite* commands?


Daniel



Re: ClassicThesis

2016-06-03 Thread Wolfgang Engelmann
I was able to run the biber version of ClassicThesis on my laptop with 
Kubuntu successfully. Since I will use this for my talk, I am set for 
the time being. I might try later to get it working on  may PC with Debian.

Thanks all who helped me.
Wolfgang


Re: How to align tables side by side at the bottom?

2016-06-03 Thread Helge Hafting


Den 21. mai 2016 13:41, skrev racoon:

Hi,

I am trying to place two tables side by side so that their captions at 
the bottom align at the bottom. I tried several combinations of 
Content and Box alignment of minipages but failed. Using sub figures 
instead didn't help either.



Box alignment is a bit tricky, but this is doable:

1. Put a protected space (ctrl+space) after the captions for table 1 and 
table 2. This little trick make the box alignment settings work "as 
expected".
2. Open settings for each of the two minipages. Under "Alignment", 
change "Box" to "Bottom".


Step two causes the boxes to align by their bottoms, which again causes 
the tables to be lined up by their captions because in both cases, the 
caption is at the bottom of the box.  This is nice and intuitive - 
unfortunately, step 1 is necessary to make it work. That is not so 
intuitive, but box alignment can often be made to work by tossing in a 
protected space at the start or at the end of the box.


Don't put the protected space inside the caption box. Use the cursor 
keys, and add the protected space just outside the caption box. LyX may 
decide to display it on the next line.


Helge Hafting


Re: Visible carriage return

2016-06-03 Thread Richard Heck
On 06/03/2016 11:05 AM, Guillaume Munch wrote:
> Le 03/06/2016 08:18, Richard Heck a écrit :
>> On 06/02/2016 08:04 PM, Giorgio Zavarise wrote:
>>> Hi,
>>>
>>> I have a question concerning the space around centered equation. When
>>> you type text and then add centered equations you may get a different
>>> results if you add an empty line; e.g. the following text will produce
>>> more spaces in the second case:
>>>
>>> Test 1
>>> \[
>>> A_{1}=\frac{h}{2}
>>> \]
>>> End Test 1
>>>
>>> Test 2
>>>
>>> \[
>>> A_{1}=\frac{h}{2}
>>> \]
>>>
>>> End Test 2
>>>
>>>
>>>
>>> When using LyX, the fact that you have generated or not a blank line
>>> is basically hidden. As far as I know, the only way to detect it is
>>> looking at the LateX Source panel.
>>> Hence my question is: Is there a workaround to know where I placed a
>>> blank line?
>>> Is it possible that Lyx shows a special character, or something
>>> similar, to let you know where you put a blank line (I mean something
>>> like the carriage return in WORD, that can be visible or it can be
>>> hidden)?
>>
>> Tools> Preferences> Document Handling> Mark End of Paragraphs
>>
>> rh
>>
>
> Which should be the default setting IMO.

You can raise that on devel, but I think we had that discussion once.

rh




Re: Visible carriage return

2016-06-03 Thread Guillaume Munch

Le 03/06/2016 08:18, Richard Heck a écrit :

On 06/02/2016 08:04 PM, Giorgio Zavarise wrote:

Hi,

I have a question concerning the space around centered equation. When
you type text and then add centered equations you may get a different
results if you add an empty line; e.g. the following text will produce
more spaces in the second case:

Test 1
\[
A_{1}=\frac{h}{2}
\]
End Test 1

Test 2

\[
A_{1}=\frac{h}{2}
\]

End Test 2



When using LyX, the fact that you have generated or not a blank line
is basically hidden. As far as I know, the only way to detect it is
looking at the LateX Source panel.
Hence my question is: Is there a workaround to know where I placed a
blank line?
Is it possible that Lyx shows a special character, or something
similar, to let you know where you put a blank line (I mean something
like the carriage return in WORD, that can be visible or it can be
hidden)?


Tools> Preferences> Document Handling> Mark End of Paragraphs

rh



Which should be the default setting IMO.



Re: Is it possible to add a style to the "Insert citation" dialog?

2016-06-03 Thread Richard Heck
On 06/03/2016 09:39 AM, PhilipPirrip wrote:
> On 06/02/2016 06:49 PM, Richard Heck wrote:
>> In principle, yes. The styles are defined in modules, such as
>> natbib.module, and you could add more styles to that module, say. But
>> the syntax is not documented outside the code, so you'll have to figure
>> it out, more or less.
>
>
> I had no idea this was possible.
> Can you help a little more, Richard: is adding more styles only
> possible by extending natbib.module (where should that file be saved?)
> or is it possible to add a totally new module for, say, some other
> engine. I'm thinking of having one for biblatex citation styles, that
> would be added to natbib and jurabib.

I am not completely sure. I believe right now that you can only extend
or alter the existing modules (and this is kind of unofficial, which is
why it isn't properlyl documented). But the modularization of this stuff
was work done towards biblatex support.

I assume that, like any module, these should be saved to the layouts/
subdirectory of the user directory.

Richard



Re: ClassicThesis

2016-06-03 Thread PhilipPirrip

On 06/03/2016 02:50 AM, Wolfgang Engelmann wrote:

[166] Utils.pm:147> WARN - *Warning: Found biblatex control file version
2.6, expected version 3.0*
I highlightes the Warning: Could this be the cause of the failure?



It might be better to ask at http://tex.stackexchange.com/, so that 
someone with a similar configuration can test.
Use these two files as minimal working example. Test them yourself, too: 
save in the same directory, then

pdflatex mwe
biber mwe
pdflatex mwe
pdflatex mwe







 file mwe.tex
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{color}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[unicode=true,pdfusetitle,
 bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
 breaklinks=false,pdfborder={0 0 
0},pdfborderstyle={},backref=false,colorlinks=true]

 {hyperref}
\hypersetup{
 citecolor=blue,urlcolor=blue}


\usepackage[style=authoryear,natbib=true,backend=biber]{biblatex}

\addbibresource{mwe-bibliography.bib}

\ExecuteBibliographyOptions{backref=true,doi=true}


\begin{document}
\section{BibLaTeX with biber}
His book \citetitle{Newton1686}, first published in \citeyear{Newton1686},
is regarded as one of the most important works in the history of science
\citep{Newton1686}.

\clearpage{}

\nocite{*}
\printbibliography
\end{document}









 file mwe-bibliography.bib
@Book{Newton1686,
author = {Newton, Isaac},
title = {Philosophi{\ae} Naturalis Principia Mathematica},
publisher = {Jussu Societatis Regiae},
year = {1686},
address = {London}
}

@article{Maxwell1865,
author = {Maxwell, James Clerk},
title = {A dynamical theory of the electromagnetic field},
journal = {Philosophical Transactions of the Royal Society of London},
doi = {10.1098/rstl.1865.0008},
year = {1865},
pages = {459--512}
}

@article{Einstein1905,
author = {Einstein, Albert},
title = {Zur Elektrodynamik bewegter K{\"o}rper},
journal = {Annalen der Physik},
doi = {10.1002/andp.19053221004},
year = {1905},
volume = {17},
pages = {891--921}
}






Re: Mac Shortcuts

2016-06-03 Thread Anders Ekberg
Hi Paola

Where did you find the ^S notion?
For me (on the Mac, latest LyX, latest OS) Ctrl s N gives normal size, but it 
could perhaps be due to my keyboard (Swedish).

All the best!
Anders

> On 2016Jun03, at 10:13, Paola Manzini  wrote:
> 
> Hi All,
> 
> a really silly question, but I am stumped: using Mac OS, what does “^” stand 
> for? For instance, if I want to go for “font-size Normal” the set shortcuts 
> are ^S N : what combination of keys is “^S”? If I am not mistaken:
> C stands for “command”, 
> A stands for “option”, 
> S stands for “Shift” 
> M stands or “Ctrl” 
> 
> but does “^” stand for? 
> 
> Many thanks,
> paola
> 
> 



Re: Is it possible to add a style to the "Insert citation" dialog?

2016-06-03 Thread PhilipPirrip

On 06/02/2016 06:49 PM, Richard Heck wrote:

In principle, yes. The styles are defined in modules, such as
natbib.module, and you could add more styles to that module, say. But
the syntax is not documented outside the code, so you'll have to figure
it out, more or less.



I had no idea this was possible.
Can you help a little more, Richard: is adding more styles only possible 
by extending natbib.module (where should that file be saved?) or is it 
possible to add a totally new module for, say, some other engine. I'm 
thinking of having one for biblatex citation styles, that would be added 
to natbib and jurabib.






Mac Shortcuts

2016-06-03 Thread Paola Manzini
Hi All,

a really silly question, but I am stumped: using Mac OS, what does “^” stand 
for? For instance, if I want to go for “font-size Normal” the set shortcuts are 
^S N : what combination of keys is “^S”? If I am not mistaken:
C stands for “command”, 
A stands for “option”, 
S stands for “Shift” 
M stands or “Ctrl” 

but does “^” stand for? 

Many thanks,
paola




Re: Visible carriage return

2016-06-03 Thread Richard Heck
On 06/02/2016 08:04 PM, Giorgio Zavarise wrote:
> Hi,
>
> I have a question concerning the space around centered equation. When
> you type text and then add centered equations you may get a different
> results if you add an empty line; e.g. the following text will produce
> more spaces in the second case:
>
> Test 1
> \[
> A_{1}=\frac{h}{2}
> \]
> End Test 1
>
> Test 2
>
> \[
> A_{1}=\frac{h}{2}
> \]
>
> End Test 2
>
>
>
> When using LyX, the fact that you have generated or not a blank line
> is basically hidden. As far as I know, the only way to detect it is
> looking at the LateX Source panel.
> Hence my question is: Is there a workaround to know where I placed a
> blank line?
> Is it possible that Lyx shows a special character, or something
> similar, to let you know where you put a blank line (I mean something
> like the carriage return in WORD, that can be visible or it can be
> hidden)?

Tools> Preferences> Document Handling> Mark End of Paragraphs

rh



Visible carriage return

2016-06-03 Thread Giorgio Zavarise
Hi,

I have a question concerning the space around centered equation. When you type 
text and then add centered equations you may get a different results if you add 
an empty line; e.g. the following text will produce more spaces in the second 
case:

Test 1
\[
A_{1}=\frac{h}{2}
\]
End Test 1

Test 2

\[
A_{1}=\frac{h}{2}
\]

End Test 2




When using LyX, the fact that you have generated or not a blank line is 
basically hidden. As far as I know, the only way to detect it is looking at the 
LateX Source panel.
Hence my question is: Is there a workaround to know where I placed a blank line?
Is it possible that Lyx shows a special character, or something similar, to let 
you know where you put a blank line (I mean something like the carriage return 
in WORD, that can be visible or it can be hidden)?

Best regards
Giorgio Zavarise

_
Giorgio Zavarise
Chair of Structural Mechanics
Chairman of the Italian Group of Computational Mechanics - GIMC 


Università del Salento - Dept. of Engineering for Innovation
Via per Monteroni, edificio “La Stecca”
73100 Lecce

Tel.+39 0832  29 7275
Handy   +39   338  26 90187
Email   giorgio.zavar...@unisalento.it 
_







Re: ClassicThesis

2016-06-03 Thread Wolfgang Engelmann

I do get the citations, but not the references in Classicthesis.
Philip P (thanks for your help!) recommended to check the 'two simple 
examples' in http://wiki.lyx.org/BibTeX/Biblatex with my debian setup, 
one for bibtex, one for biber. The former produces both, the citations 
and the Bibliography, the biber version only the citation. Here are the 
logs (###A. for Bibtex, ###B. for Biber)


##
A.
This is 8-bit Big BibTeX version 0.99d

Implementation: C for Unix

Release version: 3.71 (18 mar 2013)

The 8-bit codepage and sorting file: 88591lat.csf

The top-level auxiliary file: bibliography-biblatex-bibtex8.aux

The style file: biblatex.bst

Reallocated glb_str_ptr (elt_size=8) to 10 items from 0.

Reallocated global_strs (elt_size=20001) to 10 items from 0.

Reallocated glb_str_end (elt_size=8) to 10 items from 0.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated wiz_functions (elt_size=8) to 6000 items from 3000.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated singl_function (elt_size=8) to 100 items from 50.

Database file #1: bibliography-biblatex-bibtex8-blx.bib

Database file #2: /home/we/Biber/Bibliography-BibLaTeX/bibliography.bib

Biblatex version: 2.9

Reallocated singl_function (elt_size=8) to 100 items from 50.

Reallocated wiz_functions (elt_size=8) to 9000 items from 6000.

Here's how much of BibTeX's memory you used:

Cites: 4 out of 750

Fields: 428 out of 5000

Hash table: 34714 out of 35307

Strings: 1151 out of 35307

Free string pool: 8603 out of 65000

Wizard functions: 6047 out of 9000

###
B.

[1] Config.pm:340> INFO - This is Biber 2.4

[1] Config.pm:343> INFO - Logfile is 'bibliography-biblatex-biber.blg'

[49] biber:290> INFO - === Fr Jun 3, 2016, 08:22:57

[62] Biber.pm:347> INFO - Reading 'bibliography-biblatex-biber.bcf'

[166] Utils.pm:147> WARN - *Warning: Found biblatex control file version 
2.6, expected version 3.0*


[166] Biber.pm:738> INFO - Using all citekeys in bib section 0

[177] Biber.pm:3150> INFO - Processing section 0

[218] Biber.pm:3307> INFO - Looking for bibtex format file 
'/home/we/Biber/Bibliography-BibLaTeX/bibliography.bib' for section 0


[219] bibtex.pm:1124> INFO - Decoding LaTeX character macros into UTF-8

[220] bibtex.pm:985> INFO - Found BibTeX data source 
'/home/we/Biber/Bibliography-BibLaTeX/bibliography.bib'


[294] UCollate.pm:65> INFO - Overriding locale '' defaults 'variable = 
shifted' with 'variable = non-ignorable'


[294] UCollate.pm:65> INFO - Overriding locale '' defaults 
'normalization = NFD' with 'normalization = prenormalized'


[294] Biber.pm:3027> INFO - Sorting list 'nyt' of type 'entry' with 
scheme 'nyt' and locale ''


[294] Biber.pm:3031> INFO - No sort tailoring available for locale ''

I highlightes the Warning: Could this be the cause of the failure?
Wolfgang