Re: Title and Abstract dissappeared

2014-12-02 Thread Andrew Crampton
The problem has been corrected!  Apparently you now have to declare the 
beginning and end of the frontmatter \begin{frontmatter}{} etc.  I have no idea 
why this is now the case as it always worked fine before without.  Thanks 
everyone for the timely help!
Drew
> On Dec 1, 2014, at 10:40 PM, Stephan Witt  wrote:
> 
> Am 01.12.2014 um 16:24 schrieb Andrew Crampton :
> 
>> Hello Lyx Users
>> I updated lyx to 2.1.2.2 before I updated to yosemite and have updated all 
>> of my LaTeX files, i.e. I have MacTeX 2014 installed and have run TeX Live 
>> Utility for updates.  I also reconfigured Lyx and have reset my computer 
>> numerous times.  I attempted to make an elsevier document fresh and have the 
>> same issue; the title and abstract page does not appear.  I exported this to 
>> a .tex file and the same problem is still present.  Other document classes 
>> still work fine, so I think it may be a problem with elsarticle and the most 
>> recent versions of OS X and Lyx.
>> Drew
> 
> Ok, thanks for the info. Are you able to provide a small example to reproduce 
> your problem, please?
> Ideally both files, the LyX- and the TeX-file.
> 
> Stephan
> 
>>> On Dec 1, 2014, at 7:45 AM, Stephan Witt  wrote:
>>> 
>>> Am 01.12.2014 um 00:00 schrieb Richard Heck :
>>> 
 
 On Nov 30, 2014, at 10:39 PM, Richard Heck  wrote:
 
 On 11/30/2014 03:57 PM, Andrew Crampton wrote:
> Dear lyx users,
> I recently upgraded to lyx version 2.1.2.2 and attempted to compile a lyx 
> file I made with an older version.  The pdf file is fine except that the 
> first page is missing.  This is where the abstract, title, authors etc. 
> are located.  I do a little TeX as well and could not find anything wrong 
> with the source code.  As it worked on an older version of lyx I am 
> assuming that something in the update is the issue.  I am running OS X 
> Yosemite.
 
 Try exporting the TeX file and compiling manually. Does the problem 
 persist?
 
 Richard
 
 
 On 11/30/2014 04:56 PM, Andrew Crampton wrote:
> Hi Richard,
> I exported it as a LaTeX file and compiled it in TeX Shop 3.18.  The pdf 
> again was missing the first page.  
 
 Hi, Drew,
 
> I copied the header code:
> 
> %% LyX 2.1.2.2 created this file.  For more info, see http://www.lyx.org/.
> %% Do not edit unless you really know what you are doing.
> \documentclass[10pt,a4paper,american]{elsarticle}
> \renewcommand{\ttdefault}{cmtt}
> \usepackage[T1]{fontenc}
> \usepackage[latin9]{inputenc}
> \pagestyle{headings}
> \usepackage{float}
> \usepackage{amstext}
> \usepackage{graphicx}
> 
> \makeatletter
> 
> %% LyX specific LaTeX commands.
> \special{papersize=\the\paperwidth,\the\paperheight}
> 
> 
> %% User specified LaTeX commands.
> %\usepackage{cite}
> 
> \@ifundefined{showcaptionsetup}{}{%
> \PassOptionsToPackage{caption=false}{subfig}}
> \usepackage{subfig}
> \AtBeginDocument{
> \def\labelitemi{\(\triangleright\)}
> }
> 
> \makeatother
> 
> \usepackage{babel}
> \begin{document}
> 
> 
> Maybe it is something with the document class and the new lyx version?  
 
 My first suggestion would be to create a simple elsarticle test file, 
 outside of LyX, compile it 
 manually, and see if that works. If not, then the problem is with your 
 LaTeX installation and
 not with LyX. I believe I saw a similar sort of problem once when 
 upgrading my OS, though
 that was on Linux.
 
> On an unrelated matter I tried opening up some older lyx files as well 
> and none of them work.  All have problems with .eps to .pdf conversion.  
> This might be another problem but I though I should let you know.  
>>> 
>>> Hi Andrew,
>>> 
>>> to understand what happens tell us how you did the upgrade. Did you do the 
>>> upgrade
>>> to Yosemite and to LyX 2.1.2.2 at the same time? There are reports from 
>>> other users
>>> with TeX compilation problems solved by an update of there MacPorts 
>>> utilities. Are
>>> you using MacPorts too? What's the status of your LaTeX installation? Is it 
>>> updated
>>> too or not? Remember to reconfigure LyX after changing the system 
>>> environment.
>>> 
>>> Stephan
>> 
> 



Re: Title and Abstract dissappeared

2014-12-02 Thread Stephan Witt
Am 02.12.2014 um 13:42 schrieb Andrew Crampton :

> The problem has been corrected!  Apparently you now have to declare the 
> beginning and end of the frontmatter \begin{frontmatter}{} etc.  I have no 
> idea why this is now the case as it always worked fine before without.  
> Thanks everyone for the timely help!
> Drew

Ok, thank you for the feedback and your patience.

It seems like this is a very good example for finding the solution
for the problem while trying to create a MWE :)
See http://wiki.lyx.org/FAQ/MinimalExample

So it's not Yosemite related this time.

The "offending" change is described here:
http://www.lyx.org/trac/ticket/7977

I don't think this change was announced anywhere but OTOH there was
so much work done for the 2.1.0 release - three years - sorry for this.

Stephan

>> On Dec 1, 2014, at 10:40 PM, Stephan Witt  wrote:
>> 
>> Am 01.12.2014 um 16:24 schrieb Andrew Crampton :
>> 
>>> Hello Lyx Users
>>> I updated lyx to 2.1.2.2 before I updated to yosemite and have updated all 
>>> of my LaTeX files, i.e. I have MacTeX 2014 installed and have run TeX Live 
>>> Utility for updates.  I also reconfigured Lyx and have reset my computer 
>>> numerous times.  I attempted to make an elsevier document fresh and have 
>>> the same issue; the title and abstract page does not appear.  I exported 
>>> this to a .tex file and the same problem is still present.  Other document 
>>> classes still work fine, so I think it may be a problem with elsarticle and 
>>> the most recent versions of OS X and Lyx.
>>> Drew
>> 
>> Ok, thanks for the info. Are you able to provide a small example to 
>> reproduce your problem, please?
>> Ideally both files, the LyX- and the TeX-file.
>> 
>> Stephan
>> 
 On Dec 1, 2014, at 7:45 AM, Stephan Witt  wrote:
 
 Am 01.12.2014 um 00:00 schrieb Richard Heck :
 
> 
> On Nov 30, 2014, at 10:39 PM, Richard Heck  wrote:
> 
> On 11/30/2014 03:57 PM, Andrew Crampton wrote:
>> Dear lyx users,
>> I recently upgraded to lyx version 2.1.2.2 and attempted to compile a 
>> lyx file I made with an older version.  The pdf file is fine except that 
>> the first page is missing.  This is where the abstract, title, authors 
>> etc. are located.  I do a little TeX as well and could not find anything 
>> wrong with the source code.  As it worked on an older version of lyx I 
>> am assuming that something in the update is the issue.  I am running OS 
>> X Yosemite.
> 
> Try exporting the TeX file and compiling manually. Does the problem 
> persist?
> 
> Richard
> 
> 
> On 11/30/2014 04:56 PM, Andrew Crampton wrote:
>> Hi Richard,
>> I exported it as a LaTeX file and compiled it in TeX Shop 3.18.  The pdf 
>> again was missing the first page.  
> 
> Hi, Drew,
> 
>> I copied the header code:
>> 
>> %% LyX 2.1.2.2 created this file.  For more info, see 
>> http://www.lyx.org/.
>> %% Do not edit unless you really know what you are doing.
>> \documentclass[10pt,a4paper,american]{elsarticle}
>> \renewcommand{\ttdefault}{cmtt}
>> \usepackage[T1]{fontenc}
>> \usepackage[latin9]{inputenc}
>> \pagestyle{headings}
>> \usepackage{float}
>> \usepackage{amstext}
>> \usepackage{graphicx}
>> 
>> \makeatletter
>> 
>> %% LyX specific LaTeX commands.
>> \special{papersize=\the\paperwidth,\the\paperheight}
>> 
>> 
>> %% User specified LaTeX commands.
>> %\usepackage{cite}
>> 
>> \@ifundefined{showcaptionsetup}{}{%
>> \PassOptionsToPackage{caption=false}{subfig}}
>> \usepackage{subfig}
>> \AtBeginDocument{
>> \def\labelitemi{\(\triangleright\)}
>> }
>> 
>> \makeatother
>> 
>> \usepackage{babel}
>> \begin{document}
>> 
>> 
>> Maybe it is something with the document class and the new lyx version?  
> 
> My first suggestion would be to create a simple elsarticle test file, 
> outside of LyX, compile it 
> manually, and see if that works. If not, then the problem is with your 
> LaTeX installation and
> not with LyX. I believe I saw a similar sort of problem once when 
> upgrading my OS, though
> that was on Linux.
> 
>> On an unrelated matter I tried opening up some older lyx files as well 
>> and none of them work.  All have problems with .eps to .pdf conversion.  
>> This might be another problem but I though I should let you know.  
 
 Hi Andrew,
 
 to understand what happens tell us how you did the upgrade. Did you do the 
 upgrade
 to Yosemite and to LyX 2.1.2.2 at the same time? There are reports from 
 other users
 with TeX compilation problems solved by an update of there MacPorts 
 utilities. Are
 you using MacPorts too? What's the status of your LaTeX installation? Is 
 it updated
 too or no

greek math importing wikipedia via Pandoc

2014-12-02 Thread Jesús López
Hello,

I'm writing a script to import math wikipedia articles in Lyx using
wget, pandoc and tex2lyx and all is OK except that I want to use
pdflatex, inputenc package and a custom table mapping the original
unicode greek letters, via DeclareUnicodeCharacter, to for instance,
\ensuremath{\Gamma}, but Lyx insist in exporting greek letters via its
own autogenerated preamble and commands using the cbgreek font that
produce a somewhat inhomogeneous output mixing cbgreek and math mode
greek. Can one disable this automatic translation lyx does for
pdflatex output?

Kind regards,
Jesus Lopez


Re: Newbie question: which pdf reader to use with Windows 8.1?

2014-12-02 Thread STF
On 2 December 2014 at 08:56, aparsloe  wrote:

>
> On 2/12/2014 6:36 p.m., Liviu Andronic wrote:
>
>> On Tue, Dec 2, 2014 at 5:20 AM, Ashok  wrote:
>>
>>> I currently have Acrobat Pro 11. It's very unwieldy. The first time I
>>> view
>>> a document, it's fine, but then it gets stuck. Even exiting Acrobat
>>> doesn't help. I have to exit Lyx and get back!
>>>
>>>  I like sticking to Evince when forced to use Windows: it's slim,
>> quick, and makes sense for viewing PDF files. It also auto-loads
>> updated files gracefully, unlike Acrobat.
>>
>> https://wiki.gnome.org/Apps/Evince/Downloads
>>
>> Liviu
>>
>>
>>  Is there a simpler alternative? And how to tell Lyx not to use Acrobat
>>> pro? (I have Acrobat Pro "associated" as the default pdf viewer on my
>>> Windows system; that's how I would like to continue for non-Lyx uses.)
>>>
>>> TIA.
>>>
>>>  I'm on Windows 7. Until earlier this year I used Adobe Reader, but over
> the years it has got more and more ponderous and LyX interacts with it
> somewhat clunkily. I've since installed Sumatra. It's much smaller and more
> responsive and I'm pleased with how it interacts with LyX. But for things
> like printing a pdf Adobe Reader has additional options (e.g. printing in
> reverse order) so I keep it on disk.
>
> If you want Adobe Pro to be your default Windows pdf viewer and yet have
> Sumatra (or Evince or whatever) as your LyX pdf viewer, you need to go to
> Tools > Preferences > File Handling > File Formats and under the format PDF
> (pdflatex) go down to the Viewer: slot (where it may show pdfview) and
> choose Custom and in the right-hand slot enter e.g. SumatraPDF, then click
> Apply. Now in the larger window on the left select Paths. Second slot from
> the bottom on the right is PATH prefix. At the end of whatever is already
> there add (e.g.)
>
> ;C:\Program Files (x86)\SumatraPDF
>
> (note the semicolon) or whatever the path is to the directory holding the
> .exe file of your chosen LyX pdf viewer. Now click Save.
>
> Andrew
>

I also left Adobe Reader/Acrobat.  Not only because they have become
bloatware, but also because they have become badware and arrogantware.

Here's the long story:

I had several PDF files which could not be opened inside Adobe Reader
(saying that the PDF files are corrupted -- which is totally incorrect).  I
wrote to Adobe forum asking what to do.  Guess what.  Someone (probably
working for Adobe) replied (and argued) to me that Adobe Reader is
compliant to ISO something, blah blah blah.  So proud, so arrogant!

But you know what.  When I tried to open the same files inside Google
drive's integrated PDF viewer, Microsoft's One Drive integrated viewer,
Win8 native PDF viewer, and A LOT A LOT other PDF readers, NONE of them has
this "corrupted file" problem.

I've got enough of Adobe's attitude.  So I left it.  I'm also using
SumatraPDF which is working fine for me.


Re: Newbie question: which pdf reader to use with Windows 8.1?

2014-12-02 Thread Juha Meriluoto
On 2.12.2014 21:32, STF wrote:
> 
> 
> On 2 December 2014 at 08:56, aparsloe  > wrote:
> 
> 
> On 2/12/2014 6:36 p.m., Liviu Andronic wrote:
> 
> On Tue, Dec 2, 2014 at 5:20 AM, Ashok  > wrote:
> 
> I currently have Acrobat Pro 11. It's very unwieldy. The
> first time I view
> a document, it's fine, but then it gets stuck. Even exiting
> Acrobat
> doesn't help. I have to exit Lyx and get back!
> 
> I like sticking to Evince when forced to use Windows: it's slim,
> quick, and makes sense for viewing PDF files. It also auto-loads
> updated files gracefully, unlike Acrobat.
> 
> https://wiki.gnome.org/Apps/__Evince/Downloads
> 
> 
> Liviu
> 
> 
> Is there a simpler alternative? And how to tell Lyx not to
> use Acrobat
> pro? (I have Acrobat Pro "associated" as the default pdf
> viewer on my
> Windows system; that's how I would like to continue for
> non-Lyx uses.)
> 
> TIA.
> 
> I'm on Windows 7. Until earlier this year I used Adobe Reader, but
> over the years it has got more and more ponderous and LyX interacts
> with it somewhat clunkily. I've since installed Sumatra. It's much
> smaller and more responsive and I'm pleased with how it interacts
> with LyX. But for things like printing a pdf Adobe Reader has
> additional options (e.g. printing in reverse order) so I keep it on
> disk.
> 
> If you want Adobe Pro to be your default Windows pdf viewer and yet
> have Sumatra (or Evince or whatever) as your LyX pdf viewer, you
> need to go to Tools > Preferences > File Handling > File Formats and
> under the format PDF (pdflatex) go down to the Viewer: slot (where
> it may show pdfview) and choose Custom and in the right-hand slot
> enter e.g. SumatraPDF, then click Apply. Now in the larger window on
> the left select Paths. Second slot from the bottom on the right is
> PATH prefix. At the end of whatever is already there add (e.g.)
> 
> ;C:\Program Files (x86)\SumatraPDF
> 
> (note the semicolon) or whatever the path is to the directory
> holding the .exe file of your chosen LyX pdf viewer. Now click Save.
> 
> Andrew
> 
> 
> I also left Adobe Reader/Acrobat.  Not only because they have become
> bloatware, but also because they have become badware and arrogantware.
> 
> Here's the long story:
> 
> I had several PDF files which could not be opened inside Adobe Reader
> (saying that the PDF files are corrupted -- which is totally
> incorrect).  I wrote to Adobe forum asking what to do.  Guess what. 
> Someone (probably working for Adobe) replied (and argued) to me that
> Adobe Reader is compliant to ISO something, blah blah blah.  So proud,
> so arrogant!
> 
> But you know what.  When I tried to open the same files inside Google
> drive's integrated PDF viewer, Microsoft's One Drive integrated viewer,
> Win8 native PDF viewer, and A LOT A LOT other PDF readers, NONE of them
> has this "corrupted file" problem.
> 
> I've got enough of Adobe's attitude.  So I left it.  I'm also using
> SumatraPDF which is working fine for me.
> 

SumatraPDF get my vote, too.  It's a no-nonsense, lightweight program...
quite rare these days when looks seem to be more important than
functionality.

 - JMe



---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com