pdfminorversion

2015-09-24 Thread Julio Rojas
Dear all,

I have read that in order to avoid the dreaded error 131 that Adobe Reader
shows when opening some files generated with pdfLaTeX, the
\pdfminorversion=4 flag should be added before loading Beamer. How can I do
this in Lyx?

Thanks in advance. Regards,
-
Julio Rojas
jcredbe...@gmail.com


Re: pdfminorversion

2015-09-24 Thread Scott Kostyshak
On Thu, Sep 24, 2015 at 11:11:49AM -0300, Julio Rojas wrote:
> Dear all,
> 
> I have read that in order to avoid the dreaded error 131 that Adobe Reader
> shows when opening some files generated with pdfLaTeX, the
> \pdfminorversion=4 flag should be added before loading Beamer. How can I do
> this in Lyx?
> 
> Thanks in advance. Regards,
> -
> Julio Rojas
> jcredbe...@gmail.com

Hi Julio,

I have not heard about this problem. Can you give us some references?
Can you reproduce it yourself? If so, I would be very curious if you
could reproduce it with SumatraPDF. I am not suggesting you switch, I'm
just wondering if other PDF readaers suffer from the problem.
I'm also curious if there is a bug report. Does Adobe recognize there is
a problem and intend to fix it? If you find a bug report, please give
the URL.

If no one else answer with a fix for setting \pdfminorversion=4, I will
look into it.

Best,

Scott


Trouble with Cross-Reference

2015-09-24 Thread Sarah

Hi,

I'm working through the LyX Tutorial and I've encountered a problem in 
Section 3.4.2: Your first cross-reference. I have followed the steps 
outlined in this section:


 * Applied the label "sec:About-This-Document" at the end of the title
   line for Section 2 of my document (as directed in Section 3.4.1 in
   the tutorial)
 * Typed the suggested text, "If you want to know more about this
   document, then see Section, which can be found on page." within
   Section 2 of my document
 * Placed the cursor after the word "Section"
 * Used the Cross Reference toolbar button
 * Selected " on page " from the "Format" drop-down
   menu in the Cross-reference dialog
 * Selected the label "sec:About-This-Document"


The reference label "Ref+Text: sec:About-This-Document" then appears 
after the word "Section" in my text. However, when I view the .pdf file, 
no page information is published. The sentence reads: "If you want to 
know more about this document, then see Section 2, which can be found on 
page." Information is published for the Section but not for the page.


Please let me know if you see an error in my steps. This particular 
format is not completely necessary for my needs, and I can fix the 
problem manually by including another cross-reference at the end of the 
word "page" and using the "" format in the Cross-reference dialog, 
but I'd like to know whether I am creating the problem or the format 
contains a bug.


Thanks.

--
Sarah Davis



Re: Trouble with Cross-Reference

2015-09-24 Thread Sarah
So sorry, I forgot to include in my original message that I'm working on 
a Mac machine. OS X 10.9.5


On 9/24/15 11:27 AM, Sarah wrote:

Hi,

I'm working through the LyX Tutorial and I've encountered a problem in 
Section 3.4.2: Your first cross-reference. I have followed the steps 
outlined in this section:


  * Applied the label "sec:About-This-Document" at the end of the
title line for Section 2 of my document (as directed in Section
3.4.1 in the tutorial)
  * Typed the suggested text, "If you want to know more about this
document, then see Section, which can be found on page." within
Section 2 of my document
  * Placed the cursor after the word "Section"
  * Used the Cross Reference toolbar button
  * Selected " on page " from the "Format" drop-down
menu in the Cross-reference dialog
  * Selected the label "sec:About-This-Document"


The reference label "Ref+Text: sec:About-This-Document" then appears 
after the word "Section" in my text. However, when I view the .pdf 
file, no page information is published. The sentence reads: "If you 
want to know more about this document, then see Section 2, which can 
be found on page." Information is published for the Section but not 
for the page.


Please let me know if you see an error in my steps. This particular 
format is not completely necessary for my needs, and I can fix the 
problem manually by including another cross-reference at the end of 
the word "page" and using the "" format in the Cross-reference 
dialog, but I'd like to know whether I am creating the problem or the 
format contains a bug.


Thanks.
--
Sarah Davis




Re: Trouble with Cross-Reference

2015-09-24 Thread Stephan Witt
Am 24.09.2015 um 20:10 schrieb Sarah :

> So sorry, I forgot to include in my original message that I'm working on a 
> Mac machine. OS X 10.9.5

Hi Sarah,

it would be nice to see the document you've created so far. 
I'm not sure if I'm able to help - but others will be interested
in the example with your problem too.

Perhaps the tutorial is not the best here. If I insert a cross-
reference like you described it I get the text 

"If you want to know more about this document, then see Section 
*2 on the previous page*, which can be found on page."

in Preview. The phrase between the stars is the generated text
of the reference. Obviously the rest of the sentence is nonsense.

Regards,
Stephan

> 
> On 9/24/15 11:27 AM, Sarah wrote:
>> Hi,
>> 
>> I'm working through the LyX Tutorial and I've encountered a problem in 
>> Section 3.4.2: Your first cross-reference. I have followed the steps 
>> outlined in this section:
>>  • Applied the label "sec:About-This-Document" at the end of the title 
>> line for Section 2 of my document (as directed in Section 3.4.1 in the 
>> tutorial)
>>  • Typed the suggested text, "If you want to know more about this 
>> document, then see Section, which can be found on page." within Section 2 of 
>> my document
>>  • Placed the cursor after the word "Section"
>>  • Used the Cross Reference toolbar button
>>  • Selected " on page " from the "Format" drop-down 
>> menu in the Cross-reference dialog
>>  • Selected the label "sec:About-This-Document"
>> 
>> The reference label "Ref+Text: sec:About-This-Document" then appears after 
>> the word "Section" in my text. However, when I view the .pdf file, no page 
>> information is published. The sentence reads: "If you want to know more 
>> about this document, then see Section 2, which can be found on page." 
>> Information is published for the Section but not for the page.
>> 
>> Please let me know if you see an error in my steps. This particular format 
>> is not completely necessary for my needs, and I can fix the problem manually 
>> by including another cross-reference at the end of the word "page" and using 
>> the "" format in the Cross-reference dialog, but I'd like to know 
>> whether I am creating the problem or the format contains a bug.
>> 
>> Thanks.
>>  
>> -- 
>> Sarah Davis
>> 
> 



Re: Trouble with Cross-Reference

2015-09-24 Thread Sarah

Hi,

I've uploaded file that I've created while following the tutorial. 
Hopefully this will make my issue more clear to you all.


-Sarah

On 9/24/15 1:10 PM, Sarah wrote:
So sorry, I forgot to include in my original message that I'm working 
on a Mac machine. OS X 10.9.5


On 9/24/15 11:27 AM, Sarah wrote:

Hi,

I'm working through the LyX Tutorial and I've encountered a problem 
in Section 3.4.2: Your first cross-reference. I have followed the 
steps outlined in this section:


  * Applied the label "sec:About-This-Document" at the end of the
title line for Section 2 of my document (as directed in Section
3.4.1 in the tutorial)
  * Typed the suggested text, "If you want to know more about this
document, then see Section, which can be found on page." within
Section 2 of my document
  * Placed the cursor after the word "Section"
  * Used the Cross Reference toolbar button
  * Selected " on page " from the "Format" drop-down
menu in the Cross-reference dialog
  * Selected the label "sec:About-This-Document"


The reference label "Ref+Text: sec:About-This-Document" then appears 
after the word "Section" in my text. However, when I view the .pdf 
file, no page information is published. The sentence reads: "If you 
want to know more about this document, then see Section 2, which can 
be found on page." Information is published for the Section but not 
for the page.


Please let me know if you see an error in my steps. This particular 
format is not completely necessary for my needs, and I can fix the 
problem manually by including another cross-reference at the end of 
the word "page" and using the "" format in the Cross-reference 
dialog, but I'd like to know whether I am creating the problem or the 
format contains a bug.


Thanks.
--
Sarah Davis




#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\use_default_options true
\begin_modules
theorems-ams
eqs-within-sections
figs-within-sections
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Title
A First Attempt at LyX
\end_layout

\begin_layout Author
Sarah Davis
\end_layout

\begin_layout Date
September 22, 2015
\end_layout

\begin_layout Abstract
This article is a representative document of a personal first look into
 writing in LyX
\begin_inset Foot
status open

\begin_layout Plain Layout
LyX is a typesetting word processor.
\end_layout

\end_inset

.
 The sections and subsections listed below represent work completed while
 practicing skills necessary to use LyX successfully.
 This skillset should prove useful while working in a technical lab, especially
 for such details as Standard Operating Procedures and Laboratory Reports.
 As a team member with a knack for organization I will use my newly acquired
 skillset to create templates for my coworkers.
 These templates will aid in the creation of consistent and aesthetically
 pleasing official documentation.
\end_layout

\begin_layout Standard
\begin_inset CommandInset toc
LatexCommand tableofcontents

\end_inset


\end_layout

\begin_layout Section
Introduction
\end_layout

\begin_layout Standard
This is an introduction to my first LyX document.
\end_layout

\begin_layout Section
About This Document
\begin_inset CommandInset label
LatexCommand label
name "sec:About-This-Document"

\end_inset


\end_layout

\begin_layout Standard
Sections and subsections are described below.
 
\begin_inset Newline newline
\end_inset

If you want to know more about this document, then see Section
\begin_inset CommandInset ref
LatexCommand vref
reference "sec:About-This-Document"

\end_inset

, which can be found on page.
\end_layout

\begin_layout Subsection

Re: Trouble with Cross-Reference

2015-09-24 Thread Richard Heck

On 09/24/2015 04:26 PM, Sarah wrote:

Hi,

I've uploaded file that I've created while following the tutorial. 
Hopefully this will make my issue more clear to you all.


Yes, thanks, that is helpful.

So your file looks like:

   If you want to know more about this document, then see Section
   [Ref+Text:sec:About-This-Document], which can be found on page.

This is exactly what the tutorial says to do, but it is obviously 
ungrammatical. The "which can be found on page" part seems to be a 
leftover from a previous version. I've removed it for the next release. 
(Thanks!)


What happens with the "Ref+Text" type of cross-reference is that, if 
that section began on a different page from the one the cross-reference 
is on, then you will get something like "Section 2 on page 5" in the 
output. If, as in your case, it is on the same page, you just get 
"Section 2". This is a very cool aspect of how LaTeX works. It can 
figure out for you whether you need to put a page number. It will even 
do things like "Section 2 on the preceding page". Add some random text 
before the cross-reference to force it to the next page, and you can see 
for yourself.


If you actually did want it to read "which can be found on page 5", or 
whatever, then you could make the first cross-reference just have the 
format "" and then add another cross-reference after the word 
"page". The label would be the same, but the format would be "". 
Alternatively, you could remove the words "on page" and use the format 
"On page ". Then you get as output "on page 5" or "on the 
preceding page" or even "on the current page", depending. Try it.


Richard

LyX Document


-Sarah

On 9/24/15 1:10 PM, Sarah wrote:
So sorry, I forgot to include in my original message that I'm working 
on a Mac machine. OS X 10.9.5


On 9/24/15 11:27 AM, Sarah wrote:

Hi,

I'm working through the LyX Tutorial and I've encountered a problem 
in Section 3.4.2: Your first cross-reference. I have followed the 
steps outlined in this section:


  * Applied the label "sec:About-This-Document" at the end of the
title line for Section 2 of my document (as directed in Section
3.4.1 in the tutorial)
  * Typed the suggested text, "If you want to know more about this
document, then see Section, which can be found on page." within
Section 2 of my document
  * Placed the cursor after the word "Section"
  * Used the Cross Reference toolbar button
  * Selected " on page " from the "Format"
drop-down menu in the Cross-reference dialog
  * Selected the label "sec:About-This-Document"


The reference label "Ref+Text: sec:About-This-Document" then appears 
after the word "Section" in my text. However, when I view the .pdf 
file, no page information is published. The sentence reads: "If you 
want to know more about this document, then see Section 2, which can 
be found on page." Information is published for the Section but not 
for the page.


Please let me know if you see an error in my steps. This particular 
format is not completely necessary for my needs, and I can fix the 
problem manually by including another cross-reference at the end of 
the word "page" and using the "" format in the Cross-reference 
dialog, but I'd like to know whether I am creating the problem or 
the format contains a bug.


Thanks.
--
Sarah Davis








Re: pdfminorversion

2015-09-24 Thread Julio Rojas
Hi Scott,

Here you can find some references:
http://tex.stackexchange.com/questions/64448/how-to-overcome-acrobat-reader-error-131-with-a-pdflatex-doc
https://helpx.adobe.com/x-productkb/multi/error-problem-reading-document-131.html

Last reference is from Adobe itself, but the solution is somewhat cryptic
as I am using Reader DC and couldn't find those menus.

It seems that the compressed PDF will sometimes trigger this error in Adobe
Reader. I used pdftk to uncompress my file and it could be opened by
Reader. I also removed a couple of PDFs (created the same way as the
remaining in the document) and even compressed it could be opened by Reader.

I use Sumatra, thus, I didn't know of this problem until I shared some
slides with my students who used Adobe Reader. One of them used Chrome's
PDF plug-in to open it, then printed it as PDF and the problem was removed.
In Ubuntu, Ocular could open it without a hassle. I don't know if Apple's
Preview could do it.

I hope this info is enough to track the error.

Regards, Julio.

-
Julio Rojas
jcredbe...@gmail.com

On Thu, Sep 24, 2015 at 1:11 PM, Scott Kostyshak  wrote:

> On Thu, Sep 24, 2015 at 11:11:49AM -0300, Julio Rojas wrote:
> > Dear all,
> >
> > I have read that in order to avoid the dreaded error 131 that Adobe
> Reader
> > shows when opening some files generated with pdfLaTeX, the
> > \pdfminorversion=4 flag should be added before loading Beamer. How can I
> do
> > this in Lyx?
> >
> > Thanks in advance. Regards,
> > -
> > Julio Rojas
> > jcredbe...@gmail.com
>
> Hi Julio,
>
> I have not heard about this problem. Can you give us some references?
> Can you reproduce it yourself? If so, I would be very curious if you
> could reproduce it with SumatraPDF. I am not suggesting you switch, I'm
> just wondering if other PDF readaers suffer from the problem.
> I'm also curious if there is a bug report. Does Adobe recognize there is
> a problem and intend to fix it? If you find a bug report, please give
> the URL.
>
> If no one else answer with a fix for setting \pdfminorversion=4, I will
> look into it.
>
> Best,
>
> Scott
>


Re: pdfminorversion

2015-09-24 Thread Scott Kostyshak
On Thu, Sep 24, 2015 at 05:19:53PM -0300, Julio Rojas wrote:
> Hi Scott,
> 
> Here you can find some references:
> http://tex.stackexchange.com/questions/64448/how-to-overcome-acrobat-reader-error-131-with-a-pdflatex-doc
> https://helpx.adobe.com/x-productkb/multi/error-problem-reading-document-131.html
> 
> Last reference is from Adobe itself, but the solution is somewhat cryptic
> as I am using Reader DC and couldn't find those menus.
> 
> It seems that the compressed PDF will sometimes trigger this error in Adobe
> Reader. I used pdftk to uncompress my file and it could be opened by
> Reader. I also removed a couple of PDFs (created the same way as the
> remaining in the document) and even compressed it could be opened by Reader.
> 
> I use Sumatra, thus, I didn't know of this problem until I shared some
> slides with my students who used Adobe Reader. One of them used Chrome's
> PDF plug-in to open it, then printed it as PDF and the problem was removed.
> In Ubuntu, Ocular could open it without a hassle. I don't know if Apple's
> Preview could do it.
> 
> I hope this info is enough to track the error.
> 
> Regards, Julio.
> 
> -
> Julio Rojas
> jcredbe...@gmail.com

Thanks for the details and the references, Julio. This is great
information to have in case someone else experiences the problem. I took
a look at how to set /pdfminorversion=4. It seems this could be helpful:
http://tex.stackexchange.com/questions/78248/how-to-force-pdfminorversion-globally
Maybe you are hesitant to set it globally?

Scott

> On Thu, Sep 24, 2015 at 1:11 PM, Scott Kostyshak  wrote:
> 
> > On Thu, Sep 24, 2015 at 11:11:49AM -0300, Julio Rojas wrote:
> > > Dear all,
> > >
> > > I have read that in order to avoid the dreaded error 131 that Adobe
> > Reader
> > > shows when opening some files generated with pdfLaTeX, the
> > > \pdfminorversion=4 flag should be added before loading Beamer. How can I
> > do
> > > this in Lyx?
> > >
> > > Thanks in advance. Regards,
> > > -
> > > Julio Rojas
> > > jcredbe...@gmail.com
> >
> > Hi Julio,
> >
> > I have not heard about this problem. Can you give us some references?
> > Can you reproduce it yourself? If so, I would be very curious if you
> > could reproduce it with SumatraPDF. I am not suggesting you switch, I'm
> > just wondering if other PDF readaers suffer from the problem.
> > I'm also curious if there is a bug report. Does Adobe recognize there is
> > a problem and intend to fix it? If you find a bug report, please give
> > the URL.
> >
> > If no one else answer with a fix for setting \pdfminorversion=4, I will
> > look into it.
> >
> > Best,
> >
> > Scott
> >


Convert my thesis .tex file into .lyx

2015-09-24 Thread Nader Mahmoudi
Dear Sir/Madam,

I am writing my M.Sc. thesis in latex template provide by my university
(You may find the template folder here
).
As Lyx provides more user-friend space to write the science, I would like
to convert to .lyx file. However, because the document class is not
available on Lyx, it could not do so. I tried to import from
File/Import/latex(plain), but the error occurred while running. As I am
very new in Lyx, I could not understand the information given here
. Please let me know there is
any simple way to do so.

Best regards,
Nader Mahmoudi


Re: Trouble with Cross-Reference

2015-09-24 Thread John Kane
 added some lipsum text to force another page and it functioned correctly
---it gave me " Section 2 on the preceding page" as it should.

Sarah,
Handy trick if you need some junk filler text when testing something add
\usepackage{lipsum} to the latex preamble Document > Settings > Latex
Preamble
and you can stick a command like \lipsum[1-4] in ERT (know called Tex Code
Insert > Tex Code or ctl-L ) to insert 4 paragraphs of the famous "Lorem
ipsum dolor... " text.

On 24 September 2015 at 18:07, Richard Heck  wrote:

> On 09/24/2015 04:26 PM, Sarah wrote:
>
> Hi,
>
> I've uploaded file that I've created while following the tutorial.
> Hopefully this will make my issue more clear to you all.
>
>
> Yes, thanks, that is helpful.
>
> So your file looks like:
>
> If you want to know more about this document, then see Section 
> [Ref+Text:sec:About-This-Document],
> which can be found on page.
>
> This is exactly what the tutorial says to do, but it is obviously
> ungrammatical. The "which can be found on page" part seems to be a leftover
> from a previous version. I've removed it for the next release. (Thanks!)
>
> What happens with the "Ref+Text" type of cross-reference is that, if that
> section began on a different page from the one the cross-reference is on,
> then you will get something like "Section 2 on page 5" in the output. If,
> as in your case, it is on the same page, you just get "Section 2". This is
> a very cool aspect of how LaTeX works. It can figure out for you whether
> you need to put a page number. It will even do things like "Section 2 on
> the preceding page". Add some random text before the cross-reference to
> force it to the next page, and you can see for yourself.
>
> If you actually did want it to read "which can be found on page 5", or
> whatever, then you could make the first cross-reference just have the
> format "" and then add another cross-reference after the word
> "page". The label would be the same, but the format would be "".
> Alternatively, you could remove the words "on page" and use the format "On
> page ". Then you get as output "on page 5" or "on the preceding page"
> or even "on the current page", depending. Try it.
>
> Richard
>
>
> -Sarah
>
> On 9/24/15 1:10 PM, Sarah wrote:
>
> So sorry, I forgot to include in my original message that I'm working on a
> Mac machine. OS X 10.9.5
>
> On 9/24/15 11:27 AM, Sarah wrote:
>
> Hi,
>
> I'm working through the LyX Tutorial and I've encountered a problem in
> Section 3.4.2: Your first cross-reference. I have followed the steps
> outlined in this section:
>
>- Applied the label "sec:About-This-Document" at the end of the title
>line for Section 2 of my document (as directed in Section 3.4.1 in the
>tutorial)
>- Typed the suggested text, "If you want to know more about this
>document, then see Section, which can be found on page." within Section 2
>of my document
>- Placed the cursor after the word "Section"
>- Used the Cross Reference toolbar button
>- Selected " on page " from the "Format" drop-down
>menu in the Cross-reference dialog
>- Selected the label "sec:About-This-Document"
>
>
> The reference label "Ref+Text: sec:About-This-Document" then appears after
> the word "Section" in my text. However, when I view the .pdf file, no page
> information is published. The sentence reads: "If you want to know more
> about this document, then see Section 2, which can be found on page."
> Information is published for the Section but not for the page.
>
> Please let me know if you see an error in my steps. This particular format
> is not completely necessary for my needs, and I can fix the problem
> manually by including another cross-reference at the end of the word "page"
> and using the "" format in the Cross-reference dialog, but I'd like
> to know whether I am creating the problem or the format contains a bug.
>
> Thanks.
>
> --
> Sarah Davis
>
>
>
>
>


-- 
John Kane
Kingston ON Canada