Re: lyx-archive question

2017-01-19 Thread Scott Kostyshak
On Thu, Jan 19, 2017 at 07:11:31PM +0100, Wolfgang Engelmann wrote:

> > > > If your .lyx file is in /A/B/ and you include a figure in /A/B/ then
> > > > when you insert a graphics file is the path that is shown in the text
> > > > box relative or absolute?
> > > > 
> > > > Scott
> > > The path is absolute
> > I see. So this is the source of the problem. I don't know why we see
> > something different. Just out of curiosity (of course this is not a
> > fix), what happens if you first set the "Working directory" path in
> > Tools > Paths to /A/B, restart LyX, and then include the figure. Now
> > relative path or still absolute?
> > 
> > Scott
> Yes, that is a way. However, LyX remembers this path for the next project I
> am working on and I have to change the path again for this lyx-file. But
> that is alright.
> Thanks Scott
> Wolfgang

I can't reproduce the behavior you see. My working directory for LyX
2.2.1 is set to /home/scott. But when if I open LyX, and open a .lyx
file in /A/B/ and then include a file that is also in /A/B/ I get a
relative link. I wonder why we see different behaviors.

Scott


signature.asc
Description: PGP signature


Re: possible issue with newtxmath?

2017-01-19 Thread Guenter Milde
Dear Neal,

thank you for the report.

On 2017-01-19, Neal Becker wrote:
> Neal Becker wrote:

>> http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf

>> The package invoked by
>> \usepackage{newtxmath}
>> loads the math part of the txfonts (with revised metrics and additional
>> glyphs) and should be loaded after
>> the text font and its encoding have been specified, as it uses the text
>> font settings to define how operators,
>> numbers, math accents, \mathrm, \mathbf etc. are rendered

>> But if I select
>> document/settings/fonts/Math: Times Roman (New TX)

>> Generated TeX says:
>> \documentclass[american,journal,comsoc]{IEEEtran}
>> \usepackage{amsmath}
>> \usepackage{newtxmath}
>> \usepackage[T1]{fontenc}
>> \usepackage[latin9]{luainputenc}


>> Is this OK?

Leaving both "font encoding" and "Serif font" at "Default" leads to
suboptimal fonts beeing used (fontenc becomes T1 and the default Computer
Modern fonts are substituted by bitmap EC (or, if installed CM-Super).
  
Adding Times math fonts to this mix makes matters worse.  

Why do you compile with LuaTeX when using 8-bit fonts? (This is not
necessarily evil but I am curious.)

>> Does \usepackage{newtxmath} need to be moved later in the
>> preamble?

May be, you can try by leaving the GUI math-package setting at default and
inserting \usepackage{newtxmath} in the user preamble. Please report
differences, if found.


> Similarly, this advice seems to be violated:
> "If you use the babel package, you should load it before newtxtext—for 
> example:"...

OTOH, babel itself advises to be loaded last. (The Greek babel
definitions, e.g., analyse the fontencoding setup for proper working.)

Again, this may be changed if we have evidence of problems or improvements
with either order.

Günter



Re: lyx-archive question

2017-01-19 Thread Wolfgang Engelmann



On 19.01.2017 18:30, Scott Kostyshak wrote:

On Thu, Jan 19, 2017 at 05:06:28PM +0100, Wolfgang Engelmann wrote:


On 19.01.2017 16:48, Scott Kostyshak wrote:

On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote:

Lets say, I have in my home folder a folder A, which contains folder B with
my lyx file LL.lyx and all the figures, .bib-file and .bst file.

If I export it as LL.tar.gz the figures will be saved as /A/B/fig1,
/A/B/fig2 etc. If I would like to send it to my colleague, he has to create
the same folders /A/B/ and unpack the .gz file there. It would be nicer to
send it to him in such a way that it does not matter where he unpacks it,
i.e. send the content as fig1, fig2 etc.

I can do it by opening the lyx file with a text editor and replace all
"/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I
could think of the following: I include the fig's and lyx is prevented from
saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid
of the folders in front of the fig's.

The same issue turns up if I shift the content of my working folder to
another one.

How would you proceed

If your .lyx file is in /A/B/ and you include a figure in /A/B/ then
when you insert a graphics file is the path that is shown in the text
box relative or absolute?

Scott

The path is absolute

I see. So this is the source of the problem. I don't know why we see
something different. Just out of curiosity (of course this is not a
fix), what happens if you first set the "Working directory" path in
Tools > Paths to /A/B, restart LyX, and then include the figure. Now
relative path or still absolute?

Scott
Yes, that is a way. However, LyX remembers this path for the next 
project I am working on and I have to change the path again for this 
lyx-file. But that is alright.

Thanks Scott
Wolfgang


Re: lyx-archive question

2017-01-19 Thread Scott Kostyshak
On Thu, Jan 19, 2017 at 05:06:28PM +0100, Wolfgang Engelmann wrote:
> 
> 
> On 19.01.2017 16:48, Scott Kostyshak wrote:
> > On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote:
> > > Lets say, I have in my home folder a folder A, which contains folder B 
> > > with
> > > my lyx file LL.lyx and all the figures, .bib-file and .bst file.
> > > 
> > > If I export it as LL.tar.gz the figures will be saved as /A/B/fig1,
> > > /A/B/fig2 etc. If I would like to send it to my colleague, he has to 
> > > create
> > > the same folders /A/B/ and unpack the .gz file there. It would be nicer to
> > > send it to him in such a way that it does not matter where he unpacks it,
> > > i.e. send the content as fig1, fig2 etc.
> > > 
> > > I can do it by opening the lyx file with a text editor and replace all
> > > "/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I
> > > could think of the following: I include the fig's and lyx is prevented 
> > > from
> > > saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid
> > > of the folders in front of the fig's.
> > > 
> > > The same issue turns up if I shift the content of my working folder to
> > > another one.
> > > 
> > > How would you proceed
> > If your .lyx file is in /A/B/ and you include a figure in /A/B/ then
> > when you insert a graphics file is the path that is shown in the text
> > box relative or absolute?
> > 
> > Scott
> The path is absolute

I see. So this is the source of the problem. I don't know why we see
something different. Just out of curiosity (of course this is not a
fix), what happens if you first set the "Working directory" path in
Tools > Paths to /A/B, restart LyX, and then include the figure. Now
relative path or still absolute?

Scott


signature.asc
Description: PGP signature


Re: lyx-archive question

2017-01-19 Thread Wolfgang Engelmann



On 19.01.2017 16:48, Scott Kostyshak wrote:

On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote:

Lets say, I have in my home folder a folder A, which contains folder B with
my lyx file LL.lyx and all the figures, .bib-file and .bst file.

If I export it as LL.tar.gz the figures will be saved as /A/B/fig1,
/A/B/fig2 etc. If I would like to send it to my colleague, he has to create
the same folders /A/B/ and unpack the .gz file there. It would be nicer to
send it to him in such a way that it does not matter where he unpacks it,
i.e. send the content as fig1, fig2 etc.

I can do it by opening the lyx file with a text editor and replace all
"/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I
could think of the following: I include the fig's and lyx is prevented from
saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid
of the folders in front of the fig's.

The same issue turns up if I shift the content of my working folder to
another one.

How would you proceed

If your .lyx file is in /A/B/ and you include a figure in /A/B/ then
when you insert a graphics file is the path that is shown in the text
box relative or absolute?

Scott

The path is absolute
Wolfgang


Re: Re: lyxHTML format problem

2017-01-19 Thread Scott Kostyshak
On Thu, Jan 19, 2017 at 05:39:10PM +0800, subaochen wrote:
> Hi,
> 
> 
> The mini example is test.lyx, and lyxhtml file is test.xhtml.
> 
> 
> How to  reproduce the problem:
> 1, install lyxblogger from: https://github.com/jackdesert/lyxblogger, very 
> easy, just go to INSTALL directory and run: python setup.py install . If any 
> problem , you can also checkout from https://github.com/subaochen/lyxblogger, 
> maybe I have corrected the missing file problem.
> 2, install lyx 2.2.2, and run: python -m lyxblogger test.xhtml
> 3, in the next xterm window, fill below information( the host is just for lyx 
> test, so feel free to ):
>- username: lyxtestc
>- password: 12345678
>- host: lyxtest.cloudaccess.host
> 4 visit http://lyxtest.cloudaccess.host to see how the new post appears.
> 5, install lyx 2.2.0, generate test.xhtml from test.lyx again.
> 6 run python -m lyxblogger test.xhtml and post the test.xhtml to test site as 
> a new post.
> 7 visit  http://lyxtest.cloudaccess.host again to see how the new post 
> appears, especially difference between lyx 2.2.2 and lyx 2.2.0.
> 
> 
> My test result:
> http://lyxtest.cloudaccess.host/?p=5 is the post by lyx 2.2.0, and  
> http://lyxtest.cloudaccess.host/?p=11  is the post by lyx 2.2.2.

Thanks for these detailed instructions. Can you reduce the problem to
just LyX's LyXHTML export? I guess we could look at the differences
between 2.2.0 and 2.2.2 and go from there.

Scott


signature.asc
Description: PGP signature


Re: lyx-archive question

2017-01-19 Thread Scott Kostyshak
On Thu, Jan 19, 2017 at 03:13:45PM +0100, Wolfgang Engelmann wrote:
> Lets say, I have in my home folder a folder A, which contains folder B with
> my lyx file LL.lyx and all the figures, .bib-file and .bst file.
> 
> If I export it as LL.tar.gz the figures will be saved as /A/B/fig1,
> /A/B/fig2 etc. If I would like to send it to my colleague, he has to create
> the same folders /A/B/ and unpack the .gz file there. It would be nicer to
> send it to him in such a way that it does not matter where he unpacks it,
> i.e. send the content as fig1, fig2 etc.
> 
> I can do it by opening the lyx file with a text editor and replace all
> "/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I
> could think of the following: I include the fig's and lyx is prevented from
> saving them as /A/B/fig's but to use fig's. Or lyx offers a way to get rid
> of the folders in front of the fig's.
> 
> The same issue turns up if I shift the content of my working folder to
> another one.
> 
> How would you proceed

If your .lyx file is in /A/B/ and you include a figure in /A/B/ then
when you insert a graphics file is the path that is shown in the text
box relative or absolute?

Scott


signature.asc
Description: PGP signature


Re: possible issue with newtxmath?

2017-01-19 Thread Neal Becker
Neal Becker wrote:

> According to:
> 
> http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf
> 
> The package invoked by
> \usepackage{newtxmath}
> loads the math part of the txfonts (with revised metrics and additional
> glyphs) and should be loaded after
> the text font and its encoding have been specified, as it uses the text
> font settings to define how operators,
> numbers, math accents, \mathrm, \mathbf etc. are rendered
> 
> But if I select
> document/settings/fonts/Math: Times Roman (New TX)
> 
> Generated TeX says:
> \documentclass[american,journal,comsoc]{IEEEtran}
> \usepackage{amsmath}
> \usepackage{newtxmath}
> \usepackage[T1]{fontenc}
> \usepackage[latin9]{luainputenc}
> 
> 
> Is this OK?  Does \usepackage{newtxmath} need to be moved later in the
> preamble?

Similarly, this advice seems to be violated:
"If you use the babel package, you should load it before newtxtext—for 
example:"...




lyx-archive question

2017-01-19 Thread Wolfgang Engelmann
Lets say, I have in my home folder a folder A, which contains folder B 
with my lyx file LL.lyx and all the figures, .bib-file and .bst file.


If I export it as LL.tar.gz the figures will be saved as /A/B/fig1, 
/A/B/fig2 etc. If I would like to send it to my colleague, he has to 
create the same folders /A/B/ and unpack the .gz file there. It would be 
nicer to send it to him in such a way that it does not matter where he 
unpacks it, i.e. send the content as fig1, fig2 etc.


I can do it by opening the lyx file with a text editor and replace all 
"/A/B/fig's" by "fig's", but it would be nicer to do this inside lyx. I 
could think of the following: I include the fig's and lyx is prevented 
from saving them as /A/B/fig's but to use fig's. Or lyx offers a way to 
get rid of the folders in front of the fig's.


The same issue turns up if I shift the content of my working folder to 
another one.


How would you proceed

?

Wolfgang



possible issue with newtxmath?

2017-01-19 Thread Neal Becker
According to:

http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf

The package invoked by
\usepackage{newtxmath}
loads the math part of the txfonts (with revised metrics and additional 
glyphs) and should be loaded after
the text font and its encoding have been specified, as it uses the text font 
settings to define how operators,
numbers, math accents, \mathrm, \mathbf etc. are rendered

But if I select 
document/settings/fonts/Math: Times Roman (New TX)

Generated TeX says:
\documentclass[american,journal,comsoc]{IEEEtran}
\usepackage{amsmath}
\usepackage{newtxmath}
\usepackage[T1]{fontenc}
\usepackage[latin9]{luainputenc}


Is this OK?  Does \usepackage{newtxmath} need to be moved later in the 
preamble?



Re:Re: lyxHTML format problem

2017-01-19 Thread subaochen
Thanks first!

I have tried eLyXer just a few minutes ago, it works!


At 2017-01-19 17:16:27, "Dr Eberhard Lisse"  wrote:
>In the meantime,
>
>have you tried to export via eLyXer, which is also supported by
>LyXBlogger? That's an external tool so it would probably not have
>changed, and can help you until the next version comes out.
>
>el
>
>On 2017-01-18 19:24, Scott Kostyshak wrote:
>> On Wed, Jan 18, 2017 at 11:08:51PM +0800, subaochen wrote:
>>> hi,
>>>
>>>
>>> I use lyxblogger to generate html file for wordpress, but after
>>> upgraded lyx to 2.2.2, generated html file has a large white space
>>> between blog title and content, please refer to the attachment.
>>>
>>>
>>> I have tried lyx 2.2.0 with lyxblogger, the format of generated html
>>> file is ok, so I guest something changed with lyx 2.2.2? perhaps
>>> generated lyxhtml format changed?
>>>
>>>
>>> I have tried to view the page source and find that entry-content.p
>>> style is wrong, please refer to the attachement, or visit:
>http://dz.sdut.edu.cn/blog/subaochen/2017/01/linux-bluetooth-management/
>>> |  |
>>> | |  |
>>> | | >> "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";> |
>>> | | http://www.w3.org/1999/xhtml";> |
>>> | |  |
>>> | |  |
>>> | | >> /> |
>>> | | linux下管理蓝牙设备 |
>>>  
>>>
>>>
>>> thanks for any help or hints!
>>>
>>>
>>> --
>>> Best regards,
>>>
>>>  Su Baochen
>> 
>> Dear Su Baochen,
>> 
>> Thank you for this report! For this report and reports like this
>> in the future, can you please send a minimal example .lyx file
>> that reproduces the problem? For more information, please see:
>> https://wiki.lyx.org/FAQ/MinimalExample
>>
>> Best,
>> 
>> Scott
>> 
>
>


Re:Re: lyxHTML format problem

2017-01-19 Thread subaochen
Hi,


The mini example is test.lyx, and lyxhtml file is test.xhtml.


How to  reproduce the problem:
1, install lyxblogger from: https://github.com/jackdesert/lyxblogger, very 
easy, just go to INSTALL directory and run: python setup.py install . If any 
problem , you can also checkout from https://github.com/subaochen/lyxblogger, 
maybe I have corrected the missing file problem.
2, install lyx 2.2.2, and run: python -m lyxblogger test.xhtml
3, in the next xterm window, fill below information( the host is just for lyx 
test, so feel free to ):
   - username: lyxtestc
   - password: 12345678
   - host: lyxtest.cloudaccess.host
4 visit http://lyxtest.cloudaccess.host to see how the new post appears.
5, install lyx 2.2.0, generate test.xhtml from test.lyx again.
6 run python -m lyxblogger test.xhtml and post the test.xhtml to test site as a 
new post.
7 visit  http://lyxtest.cloudaccess.host again to see how the new post appears, 
especially difference between lyx 2.2.2 and lyx 2.2.0.


My test result:
http://lyxtest.cloudaccess.host/?p=5 is the post by lyx 2.2.0, and  
http://lyxtest.cloudaccess.host/?p=11  is the post by lyx 2.2.2.




--
Best regards,
Su Baochen

---
我的知识库:http://softlab.sdut.edu.cn

我的博客:http://dz.sdut.edu.cn/blog/subaochen
我的微信:baochensu




At 2017-01-19 01:24:52, "Scott Kostyshak"  wrote:
>On Wed, Jan 18, 2017 at 11:08:51PM +0800, subaochen wrote:
>> hi,
>> 
>> 
>> I use lyxblogger to generate html file for wordpress, but after upgraded lyx 
>> to 2.2.2,  generated html file has a large white space between blog title 
>> and content, please refer to the attachment.
>> 
>> 
>> I have tried lyx 2.2.0 with lyxblogger, the format of generated html file is 
>> ok, so I guest something changed with lyx 2.2.2? perhaps generated lyxhtml 
>> format changed? 
>> 
>> 
>> I have tried to view the page source and find that entry-content.p style is 
>> wrong, please refer to the attachement, or visit: 
>> http://dz.sdut.edu.cn/blog/subaochen/2017/01/linux-bluetooth-management/
>> |  |
>> | |  |
>> | | > "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";> |
>> | | http://www.w3.org/1999/xhtml";> |
>> | |  |
>> | |  |
>> | | > /> |
>> | | linux下管理蓝牙设备 |
>>  
>> 
>> 
>> thanks for any help or hints!
>> 
>> 
>> --
>> Best regards,
>> 
>>  Su Baochen
>
>Dear Su Baochen,
>
>Thank you for this report! For this report and reports like this in the
>future, can you please send a minimal example .lyx file that reproduces
>the problem? For more information, please see:
>https://wiki.lyx.org/FAQ/MinimalExample
>
>Best,
>
>Scott


test.lyx
Description: Binary data


Re: lyxHTML format problem

2017-01-19 Thread Dr Eberhard Lisse
In the meantime,

have you tried to export via eLyXer, which is also supported by
LyXBlogger? That's an external tool so it would probably not have
changed, and can help you until the next version comes out.

el

On 2017-01-18 19:24, Scott Kostyshak wrote:
> On Wed, Jan 18, 2017 at 11:08:51PM +0800, subaochen wrote:
>> hi,
>>
>>
>> I use lyxblogger to generate html file for wordpress, but after
>> upgraded lyx to 2.2.2, generated html file has a large white space
>> between blog title and content, please refer to the attachment.
>>
>>
>> I have tried lyx 2.2.0 with lyxblogger, the format of generated html
>> file is ok, so I guest something changed with lyx 2.2.2? perhaps
>> generated lyxhtml format changed?
>>
>>
>> I have tried to view the page source and find that entry-content.p
>> style is wrong, please refer to the attachement, or visit:
http://dz.sdut.edu.cn/blog/subaochen/2017/01/linux-bluetooth-management/
>> |  |
>> | |  |
>> | | > "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";> |
>> | | http://www.w3.org/1999/xhtml";> |
>> | |  |
>> | |  |
>> | | > /> |
>> | | linux下管理蓝牙设备 |
>>  
>>
>>
>> thanks for any help or hints!
>>
>>
>> --
>> Best regards,
>>
>>  Su Baochen
> 
> Dear Su Baochen,
> 
> Thank you for this report! For this report and reports like this
> in the future, can you please send a minimal example .lyx file
> that reproduces the problem? For more information, please see:
> https://wiki.lyx.org/FAQ/MinimalExample
>
> Best,
> 
> Scott
>