Re: Wiki page for MWEs for LyX

2013-02-09 Thread Kornel Benko
Am Freitag, 8. Februar 2013 um 20:44:50, schrieb Scott Kostyshak 
skost...@lyx.org
 I would like to make a page on the wiki regarding making MWEs for LyX.
 I am checking in here because I would like to make sure that none of
 my personal opinions makes it into the page. I would also appreciate
 any comments.
 
 My motivation for creating this page and for asking users to provide
 MWEs is that I think a lot of time is lost because of the lack of
 MWEs. Also, I think that some questions go unanswered because of the
 user not sending an MWE. By encouraging users to post MWEs, I think
 that time will be better spent, more questions will be answered, and
 it's easier (for developers or users) to turn these types of emails
 into useful bug reports.
 
 I do not want users to have to read a lot before understanding what an
 MWE is so I try to give brief advice and then after that give a more
 complete treatment of MWEs in a LyX context.
 
 begin proposed wiki text
 
 title: How to create a Minimum Working Example (MWE) for LyX
 
 #In a nutshell
 
 An MWE is a .lyx file that is as small as possible while still showing
 the behavior that you are asking about. It should include as few
 dependencies as possible -- remove any unnecessary pictures and
 external files. It should be possible for someone to download your
 .lyx file and without modification see the same behavior that you are
 seeing.
 
 Below is more information on how and why to create MWEs.
 
 
 
 #Why create an MWE?
 - MWEs make it easier for people to see the problem you are talking
 about and thus easier for them to propose solutions.
 
 - If 5 people download your .lyx file trying to help and spend 5
 minutes removing the graphics you included and cleaning the LaTeX
 preamble that is not necessary, then that's 25 minutes of wasted time
 instead of the 5 minutes that you could spend doing that. By sending
 an MWE, you can make it as easy as possible for someone to help you.
 
 - It takes time and effort. How is this a good thing? If you show that
 you are willing to spend time to solve your own problem, this makes it
 more likely that someone else will want to spend his/her time to help
 you with your problem.
 
 
 
 #How to create an MWE?
 - Remove as much as possible from your .lyx file while still making
 sure it shows the behavior you are reporting.
  -- The preamble should not have anything except what's needed to
 reproduce the bug (further, it's helpful if you specify that without
 something in the preamble the problem in question goes away).
  -- Document settings should not have anything special unless it's
 needed to reproduce the bug. For example, if you can reproduce the
 behavior by using the document class Article (Standard Class)
 instead of a less common document class, please do so.
 
 - If the example requires external files, make sure they're included
 in your email or trac ticket.
 
 - Use relative paths if you need to include external files. Further,
 relative paths should work when all files are put/uncompressed to the
 same folder. That is, ../../Dropbox/MyLyXstuff/picture.jpg is
 relative but bad; ./picture.jpg is good.
 
 - Test your MWE. Just before you send it, copy the MWE files to a
 different folder. See if things compile fine. Make sure that the
 output still shows the problem you're seeing.
 
 
 
 #In addition to the MWE
 It is useful if you attach more files in addition to the MWE, such as
 your pdf output (or your log from your attempt to produce a PDF
 output). Sometimes it's not obvious if the output shows the problem or
 not (e.g. if it requires a foreign language that the person trying to
 help does not know how to read).
 
 
 
 #FAQ
 I cannot create an MWE. Whenever I remove something, my problem goes
 away. What should I do?
 - Technically, this is still a MWE, just a large one! If you do not
 want to post a personal .lyx file, state in your email if you would be
 willing to send this file privately.
 - Even if you cannot create an MWE or you cannot send it, the fact
 that you cannot create an MWE is useful information. It not only gives
 information about the possible bug that you are seeing but it also
 shows that you made an effort.
 
 end proposed wiki text
 
 Any thoughts?
 
 Best,
 
 Scott

I like it.

Kornel

signature.asc
Description: This is a digitally signed message part.


I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
manually, I get the following log:
http://paste.debian.net/232860/

I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
with TeXLive 2012. Could this be a problem with my beamer package? I
have not updated any of my packages since installing TeXLive 2012. In
my beamer.cls file I see 2010/06/21.

Any ideas?

Thanks,

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
 I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
 with TeXLive 2012. Could this be a problem with my beamer package? I
 have not updated any of my packages since installing TeXLive 2012. In
 my beamer.cls file I see 2010/06/21.

Looks like it. I do not get this problem (regularly updated TL 2012, currently 
2013/01/04 3.26), and the document is not very complex.

Can you strip down the problem to a particular frame?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Julien Rioux

On 09/02/2013 5:43 AM, Scott Kostyshak wrote:

I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
manually, I get the following log:
http://paste.debian.net/232860/

I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
with TeXLive 2012. Could this be a problem with my beamer package? I
have not updated any of my packages since installing TeXLive 2012. In
my beamer.cls file I see 2010/06/21.

Any ideas?

Thanks,

Scott



I think we have the same problem: 
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg176483.html


--
Julien


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 6:24 AM, Julien Rioux jri...@lyx.org wrote:
 On 09/02/2013 5:43 AM, Scott Kostyshak wrote:

 I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
 stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
 manually, I get the following log:
 http://paste.debian.net/232860/

 I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
 with TeXLive 2012. Could this be a problem with my beamer package? I
 have not updated any of my packages since installing TeXLive 2012. In
 my beamer.cls file I see 2010/06/21.

 Any ideas?

 Thanks,

 Scott


 I think we have the same problem:
 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg176483.html

Yes, I think you're right. I thought that running pdflatex with
'-interaction errorstopmode' would just cause pdflatex to exit with an
error but that didn't help. LyX still waits for pdflatex which is
waiting for the user.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Julien Rioux

On 09/02/2013 6:28 AM, Jürgen Spitzmüller wrote:

Julien Rioux wrote:

I think we have the same problem:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg176483.html


Wasn't yours one with beamer-article? Scott's problem occurs with the
presentation.

Jürgen



I cannot get either one to compile.

--
Julien


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 6:10 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Scott Kostyshak wrote:
 I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
 with TeXLive 2012. Could this be a problem with my beamer package? I
 have not updated any of my packages since installing TeXLive 2012. In
 my beamer.cls file I see 2010/06/21.

 Looks like it. I do not get this problem (regularly updated TL 2012, currently
 2013/01/04 3.26), and the document is not very complex.

 Can you strip down the problem to a particular frame?

Yes, if I remove General overlay/action possibilities it compiles fine.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Kornel Benko
Am Samstag, 9. Februar 2013 um 05:43:19, schrieb Scott Kostyshak 
skost...@lyx.org
 I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
 stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
 manually, I get the following log:
 http://paste.debian.net/232860/
 
 I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
 with TeXLive 2012. Could this be a problem with my beamer package? I
 have not updated any of my packages since installing TeXLive 2012. In
 my beamer.cls file I see 2010/06/21.
 
 Any ideas?
 
 Thanks,
 
 Scott

I tried to view with lualatex and also with pdflatex. Both worked OK (TeXLive 
2012).

Also no problems at export to PDF(luaTeX) and PDF(pdflatex).

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 6:44 AM, Kornel Benko kor...@lyx.org wrote:
 Am Samstag, 9. Februar 2013 um 05:43:19, schrieb Scott Kostyshak
 skost...@lyx.org

 I can export beamerlyxexample1.lyx fine but exporting beamer.lyx

 stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it

 manually, I get the following log:

 http://paste.debian.net/232860/



 I can reproduce the above on two Ubuntu 12.04 64-bit computers, both

 with TeXLive 2012. Could this be a problem with my beamer package? I

 have not updated any of my packages since installing TeXLive 2012. In

 my beamer.cls file I see 2010/06/21.



 Any ideas?



 Thanks,



 Scott



 I tried to view with lualatex and also with pdflatex. Both worked OK
 (TeXLive 2012).



 Also no problems at export to PDF(luaTeX) and PDF(pdflatex).


What date is in your beamer.cls file?

Scott


Re: Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Kornel Benko
Am Samstag, 9. Februar 2013 um 06:46:35, schrieb Scott Kostyshak 
skost...@lyx.org
 
 
  I tried to view with lualatex and also with pdflatex. Both worked OK
  (TeXLive 2012).
 
 
 
  Also no problems at export to PDF(luaTeX) and PDF(pdflatex).
 
 
 What date is in your beamer.cls file?
 
 Scott

I have 2 of them. The one, last accessed today
.../texmf-dist/tex/latex/beamer/beamer.cls
has this line
\ProvidesClassRCS $Header: 
/Users/joseph/Documents/LaTeX/beamer/base/beamer.cls,v e81e0c94bcc6 2013/01/04 
20:02:32 joseph $

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
 Yes, if I remove General overlay/action possibilities it compiles fine.

Can you pinpoint the problem even further on that frame?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
  Yes, if I remove General overlay/action possibilities it compiles fine.
 
 Can you pinpoint the problem even further on that frame?

Let me ask differently: Do you mean you remove the text quoted above or the 
whole frame with this title?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 7:50 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Jürgen Spitzmüller wrote:
  Yes, if I remove General overlay/action possibilities it compiles fine.

 Can you pinpoint the problem even further on that frame?

 Let me ask differently: Do you mean you remove the text quoted above or the
 whole frame with this title?

I meant the whole frame, but now I've narrowed it down to the
\alert{\ldots{}}. That is, the ... following embraced by.
The second one does not seem to play a role.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
 I meant the whole frame, but now I've narrowed it down to the
 \alert{\ldots{}}. That is, the ... following embraced by.
 The second one does not seem to play a role.

Does it help if you put a {} in ERT just in front of the first  (but inside 
the alert inset)?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 8:06 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Scott Kostyshak wrote:
 I meant the whole frame, but now I've narrowed it down to the
 \alert{\ldots{}}. That is, the ... following embraced by.
 The second one does not seem to play a role.

 Does it help if you put a {} in ERT just in front of the first  (but inside
 the alert inset)?

Yes, after doing that, export with pdflatex works fine.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
  Does it help if you put a {} in ERT just in front of the first  (but
  inside the alert inset)?
 
 Yes, after doing that, export with pdflatex works fine.

Can you re-try with most recent trunk?

Jürgen


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
 I wonder if this would improve chances of being accepted for Google
 Summer of Code.
 
 If there's any task that you can delegate to me, I'd be happy to help.

You mean you would like to apply for GSoC?
Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 5:43 PM, Pavel Sanda sa...@lyx.org wrote:
 Scott Kostyshak wrote:
 I wonder if this would improve chances of being accepted for Google
 Summer of Code.

 If there's any task that you can delegate to me, I'd be happy to help.

 You mean you would like to apply for GSoC?

I meant that I'd be happy to help if there were something I was able
to do for the development manual.

I hadn't thought about it, but I would consider applying for GSoC,
depending on the time commitment expected. I don't know if I could
allocate the number of hours they ask for. But I don't remember what
the requirement was so maybe I'm wrong.

I think there was one student interested last year but the problem was
that LyX wasn't accepted. Is that right?

Scott


Re: Wiki page for MWEs for LyX

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
 I would like to make a page on the wiki regarding making MWEs for LyX.

It may be good idea to put it in Trac FAQ or around?
Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
 I think there was one student interested last year but the problem was
 that LyX wasn't accepted. Is that right?

No, I think the main problem was that we were not able to gain enough momentum
to proceed with the formalities and clear goals, so no application happened.
If you would like to apply it's perhaps time to start organizining things...

Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 7:34 PM, Pavel Sanda sa...@lyx.org wrote:
 Scott Kostyshak wrote:
 I think there was one student interested last year but the problem was
 that LyX wasn't accepted. Is that right?

 No, I think the main problem was that we were not able to gain enough momentum
 to proceed with the formalities and clear goals, so no application happened.
 If you would like to apply it's perhaps time to start organizining things...

OK I will look into the requirements and decide soon. I probably won't
do it because although I would like to spend a lot of time on LyX I
don't want to commit to a schedule of spending a lot of time between
fixed dates. I'll see though.

I will also look back in the emails to find the student that was
interested in applying last year.

Scott


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 7:48 PM, Scott Kostyshak skost...@lyx.org wrote:
 On Sat, Feb 9, 2013 at 7:34 PM, Pavel Sanda sa...@lyx.org wrote:
 Scott Kostyshak wrote:
 I think there was one student interested last year but the problem was
 that LyX wasn't accepted. Is that right?

 No, I think the main problem was that we were not able to gain enough 
 momentum
 to proceed with the formalities and clear goals, so no application happened.
 If you would like to apply it's perhaps time to start organizining things...

 OK I will look into the requirements and decide soon. I probably won't
 do it because although I would like to spend a lot of time on LyX I
 don't want to commit to a schedule of spending a lot of time between
 fixed dates. I'll see though.

Research is always my primary (non-family) focus and so I cannot do
GSoC because of the following:

you should expect your project to be your primary focus this summer
http://www.google-melange.com/document/show/gsoc_program/google/gsoc2012/faqs#time

 I will also look back in the emails to find the student that was
 interested in applying last year.

Zahari Dimitrov (zaharid at gmail.com) was interested in doing GSoC last year:
http://article.gmane.org/gmane.editors.lyx.devel/140522/match=

He has submitted a patch for LyX that was (after a year) applied:
http://article.gmane.org/gmane.editors.lyx.devel/140174/match=

Should we see if he's interested this year?

Scott


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
 Should we see if he's interested this year?

Are you prepared to take the mentoring role?
Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 8:59 PM, Pavel Sanda sa...@lyx.org wrote:
 Scott Kostyshak wrote:
 Should we see if he's interested this year?

 Are you prepared to take the mentoring role?

Prepared in terms of time and eagerness? Yes.
Prepared in terms of ability? This depends on the specific project.
For most projects I do not think I know enough. If there can be more
than one mentor, then that might be a good idea.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 9:57 AM, Jürgen Spitzmüller sp...@lyx.org wrote:
 Scott Kostyshak wrote:
  Does it help if you put a {} in ERT just in front of the first  (but
  inside the alert inset)?

 Yes, after doing that, export with pdflatex works fine.

 Can you re-try with most recent trunk?

It exports well. However, beamer-article.lyx does not export. I get
! LaTeX Error: Something's wrong--perhaps a missing \item.
and LyX attributes the error to the frame Frame What are overlays?

Scott


Re: [LyX master] Implement revision info for git

2013-02-09 Thread Pavel Sanda
Georg Baum wrote:
 commit 22b7ad2b0a6c228f234bcf7f5a0b164fca17e122
 Author: Georg Baum b...@lyx.org
 Date:   Thu Feb 7 22:07:22 2013 +0100
 
 Implement revision info for git

 +bool GIT::getTreeRevisionInfo()
 +{
 + FileName tmpf = FileName::tempName(lyxvcout);
 + if (tmpf.empty()) {
 + LYXERR(Debug::LYXVC, Could not generate logfile   tmpf);
 + return false;
 + }
 +
 + doVCCommand(git log -n 1 --pretty=format:%H .   + 
 quoteName(tmpf.toFilesystemEncoding()),
 + FileName(owner_-filePath()));

The . is intentional? I would expect that we wanted the whole tree revision 
hash.
We used to document this in other backends...

Pavel

Eh.. did I say thank you? :)


Re: [LyX master] Implement very basic git support

2013-02-09 Thread Pavel Sanda
Georg Baum wrote:
 commit 2f9ef2b98a6170d4c890ce3325ddc3ad9105bbad
 Author: Georg Baum b...@lyx.org
 Date:   Wed Feb 6 22:07:31 2013 +0100
 
 Implement very basic git support
 
 Only the local index is considered, no remote repo. Also getting the 
 revision
 (aka commit hash) is missing. How push and pull could be integrated with 
 the
 LyX VCS interface needs to be discussed, but the implemented 
 functionality was
 quite straight forward.
 
 +void GIT::scanMaster()
 +{
 + // vcstatus code other than UNVERSIONED is somewhat superflous,
 + // until we want to implement read-only toggle for git.
 + FileName f = findFile(owner_-fileName());

I see more scanMasters added findFile. That means we ask findFile to check
whether we are under VCS and if yes we create new VCS object which call 
scanMaster in contructor which in turn call findFile again. Is this duplicity
needed?

Pavel

 + if (f.empty())
 + vcstatus = UNVERSIONED;
 + else
 + vcstatus = NOLOCKING;
 +}
 +
 +


Re: [PATCH] Improve decimal alignment in tables

2013-02-09 Thread Pavel Sanda
Martin Vermeer wrote:
 I have a vague recollection of having been asked this bug question before, 
 and giving a similar response / patch proposal, which was never committed 
 ;-/

It's now in. P


Re: Wiki page for MWEs for LyX

2013-02-09 Thread Guenter Milde
On 2013-02-09, Pavel Sanda wrote:
 Scott Kostyshak wrote:
 I would like to make a page on the wiki regarding making MWEs for LyX.

 It may be good idea to put it in Trac FAQ or around?

In my view, this should become part of the official LyX documentation,
linked from the list netiquette http://www.lyx.org/MailingLists#toc7
and the Trac FAQ (and, maybe other places).

Günter



Re: Computer Modern Roman fonts and copying text from PDF files

2013-02-09 Thread Guenter Milde
On 2013-02-03, Gökçen Eraslan wrote:
 Hello all,

 I have a question regarding the fonts used in PDF files that are
 produced by LyX. When I write a simple document in LyX and produce a PDF
 file I cannot properly copy text from PDF file using PDF readers such as
 Evince or Okular. When I try to copy and paste to somewhere, I encounter
 garbage characters like:

 ♣♦♣♣❧❡r t❡st ♣❛❣❡

 instead of

 poppler test page

 I filed a bug[1] to Poppler since I suspected poppler, however now I'm
 confused after I read FAQ page[2] and tested a PDF file produced from a
 tex file by pdflatex and saw that copying is OK.

 Here are my questions:

 1- Is it normal not to be able to copy text from PDF files? Can you all
 reproduce this? Is it because CMR fonts used by LyX are bitmap fonts?

* While copy/past problems with accented characters are common with CM
  fonts (actually with all fonts using the OT1 font encoding), LyX
  defaults to font encoding T1 which does not have this problems.

* I am not aware of copy/past problems for simple ASCII characters
  (except that the \LaTeX command that LyX inserts for every occurence of
  LaTeX ends up on many lines as

A
L TEX

  or similar.

 2- On the FAQ page[2], it is adviced to use a font other than the
 default CMR (such as Latin Modern or Almost European) to get rid of
 pixelation. 

Does your problem go away with Latin Modern?

 Then, why is bitmap CMR still the default?

This is a long going discussion, see bug http://www.lyx.org/trac/ticket/7334

 3- When I compile a tex file to PDF using pdflatex, I see that (a subset
 of) Type 1 CMR fonts are embedded and there is no pixelation. Also,
 copying is working. However, regardless of explicitly selecting CMR from
 Document-Settings-Fonts, when I produce a PDF file using LyX and look
 at PDF properties (in Evince), I see Embedded No Name, type 3 font.
 Why is there a difference like that? If CMR Type 1 font is installed
 then why doesn't LyX use that font just like pdflatex?

With the default settings (T1 font encoding), latex does not use CM fonts
but lookalikes: EC (bitmap) or (if installed) CM-Super (autotraced).

If you really want the original CM, change the font encoding setting to
OT1. Be warned that there will be copy/paste and hyphenation problems
with accented characters!

Günter



Re: Wiki page for MWEs for LyX

2013-02-09 Thread Kornel Benko
Am Freitag, 8. Februar 2013 um 20:44:50, schrieb Scott Kostyshak 

> I would like to make a page on the wiki regarding making MWEs for LyX.
> I am checking in here because I would like to make sure that none of
> my personal opinions makes it into the page. I would also appreciate
> any comments.
> 
> My motivation for creating this page and for asking users to provide
> MWEs is that I think a lot of time is lost because of the lack of
> MWEs. Also, I think that some questions go unanswered because of the
> user not sending an MWE. By encouraging users to post MWEs, I think
> that time will be better spent, more questions will be answered, and
> it's easier (for developers or users) to turn these types of emails
> into useful bug reports.
> 
> I do not want users to have to read a lot before understanding what an
> MWE is so I try to give brief advice and then after that give a more
> complete treatment of MWEs in a LyX context.
> 
> <>
> 
> title: How to create a Minimum Working Example (MWE) for LyX
> 
> #In a nutshell
> 
> An MWE is a .lyx file that is as small as possible while still showing
> the behavior that you are asking about. It should include as few
> dependencies as possible -- remove any unnecessary pictures and
> external files. It should be possible for someone to download your
> .lyx file and without modification see the same behavior that you are
> seeing.
> 
> Below is more information on how and why to create MWEs.
> 
> 
> 
> #Why create an MWE?
> - MWEs make it easier for people to see the problem you are talking
> about and thus easier for them to propose solutions.
> 
> - If 5 people download your .lyx file trying to help and spend 5
> minutes removing the graphics you included and cleaning the LaTeX
> preamble that is not necessary, then that's 25 minutes of wasted time
> instead of the 5 minutes that you could spend doing that. By sending
> an MWE, you can make it as easy as possible for someone to help you.
> 
> - It takes time and effort. How is this a good thing? If you show that
> you are willing to spend time to solve your own problem, this makes it
> more likely that someone else will want to spend his/her time to help
> you with your problem.
> 
> 
> 
> #How to create an MWE?
> - Remove as much as possible from your .lyx file while still making
> sure it shows the behavior you are reporting.
>  -- The preamble should not have anything except what's needed to
> reproduce the bug (further, it's helpful if you specify that without
> something in the preamble the problem in question goes away).
>  -- Document settings should not have anything special unless it's
> needed to reproduce the bug. For example, if you can reproduce the
> behavior by using the document class "Article (Standard Class)"
> instead of a less common document class, please do so.
> 
> - If the example requires external files, make sure they're included
> in your email or trac ticket.
> 
> - Use relative paths if you need to include external files. Further,
> relative paths should work when all files are put/uncompressed to the
> same folder. That is, "../../Dropbox/MyLyXstuff/picture.jpg" is
> relative but bad; "./picture.jpg" is good.
> 
> - Test your MWE. Just before you send it, copy the MWE files to a
> different folder. See if things compile fine. Make sure that the
> output still shows the problem you're seeing.
> 
> 
> 
> #In addition to the MWE
> It is useful if you attach more files in addition to the MWE, such as
> your pdf output (or your log from your attempt to produce a PDF
> output). Sometimes it's not obvious if the output shows the problem or
> not (e.g. if it requires a foreign language that the person trying to
> help does not know how to read).
> 
> 
> 
> #FAQ
> I cannot create an MWE. Whenever I remove something, my problem goes
> away. What should I do?
> - Technically, this is still a MWE, just a large one! If you do not
> want to post a personal .lyx file, state in your email if you would be
> willing to send this file privately.
> - Even if you cannot create an MWE or you cannot send it, the fact
> that you cannot create an MWE is useful information. It not only gives
> information about the possible bug that you are seeing but it also
> shows that you made an effort.
> 
> <>
> 
> Any thoughts?
> 
> Best,
> 
> Scott

I like it.

Kornel

signature.asc
Description: This is a digitally signed message part.


I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
manually, I get the following log:
http://paste.debian.net/232860/

I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
with TeXLive 2012. Could this be a problem with my beamer package? I
have not updated any of my packages since installing TeXLive 2012. In
my beamer.cls file I see "2010/06/21".

Any ideas?

Thanks,

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
> I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
> with TeXLive 2012. Could this be a problem with my beamer package? I
> have not updated any of my packages since installing TeXLive 2012. In
> my beamer.cls file I see "2010/06/21".

Looks like it. I do not get this problem (regularly updated TL 2012, currently 
2013/01/04 3.26), and the document is not very complex.

Can you strip down the problem to a particular frame?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Julien Rioux

On 09/02/2013 5:43 AM, Scott Kostyshak wrote:

I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
manually, I get the following log:
http://paste.debian.net/232860/

I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
with TeXLive 2012. Could this be a problem with my beamer package? I
have not updated any of my packages since installing TeXLive 2012. In
my beamer.cls file I see "2010/06/21".

Any ideas?

Thanks,

Scott



I think we have the same problem: 
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg176483.html


--
Julien


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 6:24 AM, Julien Rioux  wrote:
> On 09/02/2013 5:43 AM, Scott Kostyshak wrote:
>>
>> I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
>> stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
>> manually, I get the following log:
>> http://paste.debian.net/232860/
>>
>> I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
>> with TeXLive 2012. Could this be a problem with my beamer package? I
>> have not updated any of my packages since installing TeXLive 2012. In
>> my beamer.cls file I see "2010/06/21".
>>
>> Any ideas?
>>
>> Thanks,
>>
>> Scott
>>
>
> I think we have the same problem:
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg176483.html

Yes, I think you're right. I thought that running pdflatex with
'-interaction errorstopmode' would just cause pdflatex to exit with an
error but that didn't help. LyX still waits for pdflatex which is
waiting for the user.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Julien Rioux

On 09/02/2013 6:28 AM, Jürgen Spitzmüller wrote:

Julien Rioux wrote:

I think we have the same problem:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg176483.html


Wasn't yours one with beamer-article? Scott's problem occurs with the
presentation.

Jürgen



I cannot get either one to compile.

--
Julien


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 6:10 AM, Jürgen Spitzmüller  wrote:
> Scott Kostyshak wrote:
>> I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
>> with TeXLive 2012. Could this be a problem with my beamer package? I
>> have not updated any of my packages since installing TeXLive 2012. In
>> my beamer.cls file I see "2010/06/21".
>
> Looks like it. I do not get this problem (regularly updated TL 2012, currently
> 2013/01/04 3.26), and the document is not very complex.
>
> Can you strip down the problem to a particular frame?

Yes, if I remove "General overlay/action possibilities" it compiles fine.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Kornel Benko
Am Samstag, 9. Februar 2013 um 05:43:19, schrieb Scott Kostyshak 

> I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
> stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
> manually, I get the following log:
> http://paste.debian.net/232860/
> 
> I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
> with TeXLive 2012. Could this be a problem with my beamer package? I
> have not updated any of my packages since installing TeXLive 2012. In
> my beamer.cls file I see "2010/06/21".
> 
> Any ideas?
> 
> Thanks,
> 
> Scott

I tried to view with lualatex and also with pdflatex. Both worked OK (TeXLive 
2012).

Also no problems at export to PDF(luaTeX) and PDF(pdflatex).

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 6:44 AM, Kornel Benko  wrote:
> Am Samstag, 9. Februar 2013 um 05:43:19, schrieb Scott Kostyshak
> 
>
>> I can export beamerlyxexample1.lyx fine but exporting beamer.lyx
>
>> stalls. If I export to LaTeX (pdflatex) and then run pdflatex on it
>
>> manually, I get the following log:
>
>> http://paste.debian.net/232860/
>
>>
>
>> I can reproduce the above on two Ubuntu 12.04 64-bit computers, both
>
>> with TeXLive 2012. Could this be a problem with my beamer package? I
>
>> have not updated any of my packages since installing TeXLive 2012. In
>
>> my beamer.cls file I see "2010/06/21".
>
>>
>
>> Any ideas?
>
>>
>
>> Thanks,
>
>>
>
>> Scott
>
>
>
> I tried to view with lualatex and also with pdflatex. Both worked OK
> (TeXLive 2012).
>
>
>
> Also no problems at export to PDF(luaTeX) and PDF(pdflatex).
>

What date is in your beamer.cls file?

Scott


Re: Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Kornel Benko
Am Samstag, 9. Februar 2013 um 06:46:35, schrieb Scott Kostyshak 

> >
> >
> > I tried to view with lualatex and also with pdflatex. Both worked OK
> > (TeXLive 2012).
> >
> >
> >
> > Also no problems at export to PDF(luaTeX) and PDF(pdflatex).
> >
> 
> What date is in your beamer.cls file?
> 
> Scott

I have 2 of them. The one, last accessed today
.../texmf-dist/tex/latex/beamer/beamer.cls
has this line
"\ProvidesClassRCS $Header: 
/Users/joseph/Documents/LaTeX/beamer/base/beamer.cls,v e81e0c94bcc6 2013/01/04 
20:02:32 joseph $"

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
> Yes, if I remove "General overlay/action possibilities" it compiles fine.

Can you pinpoint the problem even further on that frame?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote:
> > Yes, if I remove "General overlay/action possibilities" it compiles fine.
> 
> Can you pinpoint the problem even further on that frame?

Let me ask differently: Do you mean you remove the text quoted above or the 
whole frame with this title?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 7:50 AM, Jürgen Spitzmüller  wrote:
> Jürgen Spitzmüller wrote:
>> > Yes, if I remove "General overlay/action possibilities" it compiles fine.
>>
>> Can you pinpoint the problem even further on that frame?
>
> Let me ask differently: Do you mean you remove the text quoted above or the
> whole frame with this title?

I meant the whole frame, but now I've narrowed it down to the
"\alert{<\ldots{}>}". That is, the "<...>" following "embraced by".
The second one does not seem to play a role.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
> I meant the whole frame, but now I've narrowed it down to the
> "\alert{<\ldots{}>}". That is, the "<...>" following "embraced by".
> The second one does not seem to play a role.

Does it help if you put a {} in ERT just in front of the first "<" (but inside 
the alert inset)?

Jürgen


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 8:06 AM, Jürgen Spitzmüller  wrote:
> Scott Kostyshak wrote:
>> I meant the whole frame, but now I've narrowed it down to the
>> "\alert{<\ldots{}>}". That is, the "<...>" following "embraced by".
>> The second one does not seem to play a role.
>
> Does it help if you put a {} in ERT just in front of the first "<" (but inside
> the alert inset)?

Yes, after doing that, export with pdflatex works fine.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Jürgen Spitzmüller
Scott Kostyshak wrote:
> > Does it help if you put a {} in ERT just in front of the first "<" (but
> > inside the alert inset)?
> 
> Yes, after doing that, export with pdflatex works fine.

Can you re-try with most recent trunk?

Jürgen


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
> I wonder if this would improve chances of being accepted for Google
> Summer of Code.
> 
> If there's any task that you can delegate to me, I'd be happy to help.

You mean you would like to apply for GSoC?
Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 5:43 PM, Pavel Sanda  wrote:
> Scott Kostyshak wrote:
>> I wonder if this would improve chances of being accepted for Google
>> Summer of Code.
>>
>> If there's any task that you can delegate to me, I'd be happy to help.
>
> You mean you would like to apply for GSoC?

I meant that I'd be happy to help if there were something I was able
to do for the development manual.

I hadn't thought about it, but I would consider applying for GSoC,
depending on the time commitment expected. I don't know if I could
allocate the number of hours they ask for. But I don't remember what
the requirement was so maybe I'm wrong.

I think there was one student interested last year but the problem was
that LyX wasn't accepted. Is that right?

Scott


Re: Wiki page for MWEs for LyX

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
> I would like to make a page on the wiki regarding making MWEs for LyX.

It may be good idea to put it in Trac FAQ or around?
Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
> I think there was one student interested last year but the problem was
> that LyX wasn't accepted. Is that right?

No, I think the main problem was that we were not able to gain enough momentum
to proceed with the formalities and clear goals, so no application happened.
If you would like to apply it's perhaps time to start organizining things...

Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 7:34 PM, Pavel Sanda  wrote:
> Scott Kostyshak wrote:
>> I think there was one student interested last year but the problem was
>> that LyX wasn't accepted. Is that right?
>
> No, I think the main problem was that we were not able to gain enough momentum
> to proceed with the formalities and clear goals, so no application happened.
> If you would like to apply it's perhaps time to start organizining things...

OK I will look into the requirements and decide soon. I probably won't
do it because although I would like to spend a lot of time on LyX I
don't want to commit to a schedule of spending a lot of time between
fixed dates. I'll see though.

I will also look back in the emails to find the student that was
interested in applying last year.

Scott


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 7:48 PM, Scott Kostyshak  wrote:
> On Sat, Feb 9, 2013 at 7:34 PM, Pavel Sanda  wrote:
>> Scott Kostyshak wrote:
>>> I think there was one student interested last year but the problem was
>>> that LyX wasn't accepted. Is that right?
>>
>> No, I think the main problem was that we were not able to gain enough 
>> momentum
>> to proceed with the formalities and clear goals, so no application happened.
>> If you would like to apply it's perhaps time to start organizining things...
>
> OK I will look into the requirements and decide soon. I probably won't
> do it because although I would like to spend a lot of time on LyX I
> don't want to commit to a schedule of spending a lot of time between
> fixed dates. I'll see though.

Research is always my primary (non-family) focus and so I cannot do
GSoC because of the following:

"you should expect your project to be your primary focus this summer"
http://www.google-melange.com/document/show/gsoc_program/google/gsoc2012/faqs#time

> I will also look back in the emails to find the student that was
> interested in applying last year.

Zahari Dimitrov (zaharid  gmail.com) was interested in doing GSoC last year:
http://article.gmane.org/gmane.editors.lyx.devel/140522/match=

He has submitted a patch for LyX that was (after a year) applied:
http://article.gmane.org/gmane.editors.lyx.devel/140174/match=

Should we see if he's interested this year?

Scott


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Pavel Sanda
Scott Kostyshak wrote:
> Should we see if he's interested this year?

Are you prepared to take the mentoring role?
Pavel


Re: [LyX master] tex2lyx tests: 1.) Remove empty layout 'Plain' 2.) Adapt to changed look of layout 'Verbatim'

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 8:59 PM, Pavel Sanda  wrote:
> Scott Kostyshak wrote:
>> Should we see if he's interested this year?
>
> Are you prepared to take the mentoring role?

Prepared in terms of time and eagerness? Yes.
Prepared in terms of ability? This depends on the specific project.
For most projects I do not think I know enough. If there can be more
than one mentor, then that might be a good idea.

Scott


Re: I cannot export examples/beamer.lyx with pdflatex

2013-02-09 Thread Scott Kostyshak
On Sat, Feb 9, 2013 at 9:57 AM, Jürgen Spitzmüller  wrote:
> Scott Kostyshak wrote:
>> > Does it help if you put a {} in ERT just in front of the first "<" (but
>> > inside the alert inset)?
>>
>> Yes, after doing that, export with pdflatex works fine.
>
> Can you re-try with most recent trunk?

It exports well. However, beamer-article.lyx does not export. I get
"! LaTeX Error: Something's wrong--perhaps a missing \item."
and LyX attributes the error to the frame "Frame What are overlays?"

Scott


Re: [LyX master] Implement revision info for git

2013-02-09 Thread Pavel Sanda
Georg Baum wrote:
> commit 22b7ad2b0a6c228f234bcf7f5a0b164fca17e122
> Author: Georg Baum 
> Date:   Thu Feb 7 22:07:22 2013 +0100
> 
> Implement revision info for git
>
> +bool GIT::getTreeRevisionInfo()
> +{
> + FileName tmpf = FileName::tempName("lyxvcout");
> + if (tmpf.empty()) {
> + LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
> + return false;
> + }
> +
> + doVCCommand("git log -n 1 --pretty=format:%H . > " + 
> quoteName(tmpf.toFilesystemEncoding()),
> + FileName(owner_->filePath()));

The "." is intentional? I would expect that we wanted the whole tree revision 
hash.
We used to document this in other backends...

Pavel

Eh.. did I say thank you? :)


Re: [LyX master] Implement very basic git support

2013-02-09 Thread Pavel Sanda
Georg Baum wrote:
> commit 2f9ef2b98a6170d4c890ce3325ddc3ad9105bbad
> Author: Georg Baum 
> Date:   Wed Feb 6 22:07:31 2013 +0100
> 
> Implement very basic git support
> 
> Only the local index is considered, no remote repo. Also getting the 
> revision
> (aka commit hash) is missing. How push and pull could be integrated with 
> the
> LyX VCS interface needs to be discussed, but the implemented 
> functionality was
> quite straight forward.
> 
> +void GIT::scanMaster()
> +{
> + // vcstatus code other than UNVERSIONED is somewhat superflous,
> + // until we want to implement read-only toggle for git.
> + FileName f = findFile(owner_->fileName());

I see more scanMasters added findFile. That means we ask findFile to check
whether we are under VCS and if yes we create new VCS object which call 
scanMaster in contructor which in turn call findFile again. Is this duplicity
needed?

Pavel

> + if (f.empty())
> + vcstatus = UNVERSIONED;
> + else
> + vcstatus = NOLOCKING;
> +}
> +
> +


Re: [PATCH] Improve decimal alignment in tables

2013-02-09 Thread Pavel Sanda
Martin Vermeer wrote:
> I have a vague recollection of having been asked this bug question before, 
> and giving a similar response / patch proposal, which was never committed 
> ;-/

It's now in. P


Re: Wiki page for MWEs for LyX

2013-02-09 Thread Guenter Milde
On 2013-02-09, Pavel Sanda wrote:
> Scott Kostyshak wrote:
>> I would like to make a page on the wiki regarding making MWEs for LyX.

> It may be good idea to put it in Trac FAQ or around?

In my view, this should become part of the "official" LyX documentation,
linked from the "list netiquette" http://www.lyx.org/MailingLists#toc7
and the Trac FAQ (and, maybe other places).

Günter



Re: Computer Modern Roman fonts and copying text from PDF files

2013-02-09 Thread Guenter Milde
On 2013-02-03, Gökçen Eraslan wrote:
> Hello all,

> I have a question regarding the fonts used in PDF files that are
> produced by LyX. When I write a simple document in LyX and produce a PDF
> file I cannot properly copy text from PDF file using PDF readers such as
> Evince or Okular. When I try to copy and paste to somewhere, I encounter
> garbage characters like:

> ♣♦♣♣❧❡r t❡st ♣❛❣❡

> instead of

> poppler test page

> I filed a bug[1] to Poppler since I suspected poppler, however now I'm
> confused after I read FAQ page[2] and tested a PDF file produced from a
> tex file by pdflatex and saw that copying is OK.

> Here are my questions:

> 1- Is it normal not to be able to copy text from PDF files? Can you all
> reproduce this? Is it because CMR fonts used by LyX are bitmap fonts?

* While copy/past problems with accented characters are common with CM
  fonts (actually with all fonts using the OT1 font encoding), LyX
  defaults to font encoding T1 which does not have this problems.

* I am not aware of copy/past problems for simple ASCII characters
  (except that the \LaTeX command that LyX inserts for every occurence of
  "LaTeX" ends up on many lines as

A
L TEX

  or similar.

> 2- On the FAQ page[2], it is adviced to use a font other than the
> default CMR (such as Latin Modern or Almost European) to get rid of
> pixelation. 

Does your problem go away with Latin Modern?

> Then, why is bitmap CMR still the default?

This is a long going discussion, see bug http://www.lyx.org/trac/ticket/7334

> 3- When I compile a tex file to PDF using pdflatex, I see that (a subset
> of) Type 1 CMR fonts are embedded and there is no pixelation. Also,
> copying is working. However, regardless of explicitly selecting CMR from
> Document->Settings->Fonts, when I produce a PDF file using LyX and look
> at PDF properties (in Evince), I see Embedded "No Name", type 3 font.
> Why is there a difference like that? If CMR Type 1 font is installed
> then why doesn't LyX use that font just like pdflatex?

With the default settings (T1 font encoding), latex does not use CM fonts
but "lookalikes": EC (bitmap) or (if installed) CM-Super (autotraced).

If you really want the original CM, change the font encoding setting to
OT1. Be warned that there will be copy/paste and hyphenation problems
with accented characters!

Günter