beamer flex frame options

2017-03-06 Thread Neal Becker
I'm trying beamer(flex insets) document option.  I like it, but I don't see
any way to set frame options.  Any hints?


LyX 2.2 cannot read a document from LyX 2.1?

2017-03-06 Thread Matěj Cepl
Yes, this is not a minimal example, but I am hesitant to touch this
document from LyX 2.1 so that I wouldn’t accidentally fixed it. When
trying to open it with lyx-2.2.2-1.fc25.x86_64 I get this:

matej@mitmanek: marketa$ lyx Ph.D.project-Brno1.lyx
Error: Document format failure

/tmp/lyx_tmpdir.CLmZrzV11492/Buffer_convertLyXFormatk11492.lyx is not a
readable LyX document.
matej@mitmanek: marketa$

Any ideas, what's wrong?

Best,

Matěj

-- 
https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8

“I have read St. Paul’s epistle on charity,” he said, “and, after
long reflection, I am persuaded that there exists a greater thing
than charity—a thing of more value to the human family. Like
charity, it rejoiceth not in iniquity, but it does not bear all
things or believe all things, or endure all things; and, unlike
charity, it seeketh its own … Do you know what thing I mean,
Smallwood? I will tell you. It is Justice.”
  -- Uncle Abner in “The House of the Dead Man”
 by Melville Davisson Post
0_2DS96JRI 0_9RRJI5RJ 0_S69C7NHU 0_ZI9N3WDD 0_ZU58CZ5J

@book{kolektivpracovnikrulingeas.r.o.gramatika,
	title = {Gramatika sou{\v c}asn{\'e} {\v c}e{\v s}tiny {\textbar} {Lingea} s.r.o.},
	url = {https://www.lingea.cz/ceska-gramatika.html},
	urldate = {2017-03-03},
	author = {kolektiv pracovn{\'i}k{\r u} Lingea s.r.o.},
	file = {Gramatika sou{\v c}asn{\'e} {\v c}e{\v s}tiny | Lingea s.r.o.:/home/marketa/.mozilla/firefox/1oo173o1.test/zotero/storage/U66I7NWT/ceska-gramatika.html:text/html}
}
@misc{infinitiv,
	title = {{INFINITIV} {\textbar} {Nov{\'y}} encyklopedick{\'y} slovn{\'i}k {\v c}e{\v s}tiny},
	shorttitle = {{NES{\v C}}/{Infinitiv}},
	url = {https://www.czechency.org/slovnik/INFINITIV},
	urldate = {2017-03-03},
	journal = {Nov{\'y} encyklopedick{\'y} slovn{\'i}k {\v c}e{\v s}tiny/Infinitiv},
	file = {INFINITIV | Nov{\'y} encyklopedick{\'y} slovn{\'i}k {\v c}e{\v s}tiny:/home/marketa/.mozilla/firefox/1oo173o1.test/zotero/storage/9ZIQ9DFG/INFINITIV.html:text/html}
}
@book{pravdova2014akademicka,
	address = {Praha},
	edition = {Lingvistika},
	title = {Akademick{\'a} p{\v r}{\'i}ru{\v c}ka {\v c}esk{\'e}ho jazyka},
	isbn = {978-80-200-2327-8},
	url = {http://academia.cz/img/knihy/obalky1/lrg/akademicka-prirucka-ceskeho-jazyka.jpg},
	abstract = {Internetovou jazykovou p{\v r}{\'i}ru{\v c}ku kolektivu autor{\r u} {\'U}stavu pro jazyk {\v c}esk{\'y} AV {\v C}R vyu{\v z}ilo b{\v e}hem prvn{\'i}ch t{\v r}{\'i} let od jej{\'i}ho zp{\v r}{\'i}stupn{\v e}n{\'i} v{\'i}ce ne{\v z} milion u{\v z}ivatel{\r u}. Jej{\'i} v{\'y}kladov{\'a} {\v c}{\'a}st nyn{\'i} vych{\'a}z{\'i} poprv{\'e} kni{\v z}n{\v e}. Najdete zde obecn{\'a} pou{\v c}en{\'i} o {\v c}esk{\'e}m jazyce, zejm{\'e}na o pravopisu, tvaroslov{\'i} a n{\v e}kter{\'y}ch syntaktick{\'y}ch jevech. Ve v{\'y}kladech se uv{\'a}d{\v e}j{\'i} i rozpory v {\'u}daj{\'i}ch, kter{\'e} jednotliv{\'e} jazykov{\'e} p{\v r}{\'i}ru{\v c}ky p{\v r}in{\'a}{\v s}ej{\'i}, nebo rozd{\'i}ly mezi kodifikac{\'i} a spisovn{\'y}m {\'u}zem, a to s hodnot{\'i}c{\'i}m koment{\'a}{\v r}em a doporu{\v c}en{\'y}m {\v r}e{\v s}en{\'i}m. Kniha je ur{\v c}ena jak {\v s}irok{\'e} ve{\v r}ejnosti, tak profesion{\'a}ln{\'i}m u{\v z}ivatel{\r u}m, zvl{\'a}{\v s}t{\v e} u{\v c}itel{\r u}m a student{\r u}m.},
	language = {{\v c}esky},
	urldate = {2017-03-03},
	publisher = {Academia},
	editor = {Pravdov{\'a}, Mark{\'e}ta and Svobodov{\'a}, Ivana},
	year = {2014},
	file = {Snapshot:/home/marketa/.mozilla/firefox/1oo173o1.test/zotero/storage/66V892C8/akademicka-prirucka-ceskeho-jazyka.html:text/html}
}
@book{vcechova1996vcev,
	address = {Praha},
	title = {{\v C}e{\v s}tina - {\v r}e{\v c} a jazyk},
	isbn = {978-80-85866-12-4},
	language = {Czech},
	publisher = {ISV nakladatelstv{\'i}},
	author = {{\v C}echov{\'a}, Marie and Hlavsa, Zden{\v e}k and Dokulil, Milo{\v s} and Hru{\v s}kov{\'a}, Zde{\v n}ka and Hrb{\'a}{\v c}ek, Josef},
	year = {1996},
	note = {OCLC: 440808461}
}
@misc{novyencyklopedicky,
	title = {Nov{\'y} encyklopedick{\'y} slovn{\'i}k {\v c}e{\v s}tiny},
	url = {https://www.czechency.org/slovnik/},
	urldate = {2017-03-03},
	file = {Nov{\'y} encyklopedick{\'y} slovn{\'i}k {\v c}e{\v s}tiny:/home/marketa/.mozilla/firefox/1oo173o1.test/zotero/storage/KCZ28RJ3/slovnik.html:text/html}
}

Ph.D.project-Brno1.lyx
Description: application/lyx


signature.asc
Description: OpenPGP digital signature


Re: LyX 2.2 cannot read a document from LyX 2.1?

2017-03-06 Thread Kornel Benko
Am Montag, 6. März 2017 um 13:13:58, schrieb Matěj Cepl 
> Yes, this is not a minimal example, but I am hesitant to touch this
> document from LyX 2.1 so that I wouldn’t accidentally fixed it. When
> trying to open it with lyx-2.2.2-1.fc25.x86_64 I get this:
>
> matej@mitmanek: marketa$ lyx Ph.D.project-Brno1.lyx
> Error: Document format failure
> 
> /tmp/lyx_tmpdir.CLmZrzV11492/Buffer_convertLyXFormatk11492.lyx is not a
> readable LyX document.
> matej@mitmanek: marketa$
>
> Any ideas, what's wrong?
>
> Best,
>
> Matěj
>

The document language is English. But there are 4 entries in the document
stating '\lang english'.

Removing this 4 lines, the document is readable.

OTOH, reading directly with lyx2.1, there is no problem.

For me it looks like lyx-deficiency.

Kornel

Ph.D.project-Brno1.lyx
Description: application/lyx


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


Re: beamer flex frame options

2017-03-06 Thread Guillaume Munch

Le 06/03/2017 à 14:16, Neal Becker a écrit :

I'm trying beamer(flex insets) document option.  I like it, but I don't
see any way to set frame options.  Any hints?


Insert > Frame options ?



Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Guillaume Munch wrote:

> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>> I'm trying beamer(flex insets) document option.  I like it, but I don't
>> see any way to set frame options.  Any hints?
> 
> Insert > Frame options ?

AFAICT, if you choose beamer(flex inserts) for document, then there is no 
menu item "(Insert > Frame options)".  This only appears if you choose 
"beamer" for document.



Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Neal Becker wrote:

> Guillaume Munch wrote:
> 
>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>>> I'm trying beamer(flex insets) document option.  I like it, but I don't
>>> see any way to set frame options.  Any hints?
>> 
>> Insert > Frame options ?
> 
> AFAICT, if you choose beamer(flex inserts) for document, then there is no
> menu item "(Insert > Frame options)".  This only appears if you choose
> "beamer" for document.

Sorry I should be clear, I'm using beamer-flex from:
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg102752.html



Re: beamer flex frame options

2017-03-06 Thread Richard Heck
On 03/06/2017 10:12 AM, Neal Becker wrote:
> Neal Becker wrote:
>
>> Guillaume Munch wrote:
>>
>>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
 I'm trying beamer(flex insets) document option.  I like it, but I don't
 see any way to set frame options.  Any hints?
>>> Insert > Frame options ?
>> AFAICT, if you choose beamer(flex inserts) for document, then there is no
>> menu item "(Insert > Frame options)".  This only appears if you choose
>> "beamer" for document.

You need to use the flex insets with the beamer document class.
(Unfortunately, there is no way at present to enforce this requirement.)

Richard



Finding the cause of a failed lyx->pdf conversion

2017-03-06 Thread Alexandru Băluț
I'm converting a LYX file to PDF from the command line and the conversion
apparently fails, the exit code of the process is 1:
$ lyx -e pdf2 docs/myfile.lyx -dbg latex

The process reports failure even though it did actually create a PDF file
which seems to be complete and usable. Is it safe to ignore the exit code
in case it managed to create the PDF?

When I do the export to PDF from the UI, I get the errors below. Why do
they appear twice?
LaTeX Error: \begin{document} ended by \end{thenomenclature}.
Extra \endgroup.
LaTeX Error: \begin{document} ended by \end{thenomenclature}.
Extra \endgroup.

The same errors appear like this when starting the conversion in the
console:
LaTeX.cpp (658): Log line: [3] (./myfile.nls
LaTeX.cpp (658): Log line:
LaTeX.cpp (658): Log line: ! LaTeX Error: \begin{document} ended by
\end{thenomenclature}.
LaTeX.cpp (848): line: 8
Desc: LaTeX Error: \begin{document} ended by \end{thenomenclature}.
Text:  \end{thenomenclature}

Your command was ignored.
Type  Ito replace it with another command,
orto continue without it.

LaTeX.cpp (658): Log line: ! Extra \endgroup.
LaTeX.cpp (848): line: 8
Desc: Extra \endgroup.
Text:  \end{thenomenclature}

Things are pretty mixed up, but I think the worst is over.

LaTeX.cpp (658): Log line: ) [4]

Since the usage of the nomenclature elements in the document is pretty
straight-forward, meaning I have no idea how to change or fix the document
to fix this error, I tried to manually remove parts of the lyx document to
get to a minimal example.lyx which has this problem, to report a bug.

I kept removing stuff and I got to a point where I have a section 2.2.3
containing some simple text and if I remove its text leaving the section
empty (only the title), exporting to PDF succeeds with no errors, whereas
before it failed. I don't see how I could minimize the lyx file to be able
to report the bug. Any suggestions?

Side question: Removing paragraphs led to broken refs: "BROKEN: Ref: ...".
To me these seem important, one would not want the final document to
contain them, but maybe I'm missing something. Why are these errors ignored
when exporting to PDF? Is there a way to validate a lyx file from the
command line, and in such a way that these errors are not ignored? I
searched for "compile lyx file" but did not find much.

Thanks,
Alex


Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Richard Heck wrote:

> On 03/06/2017 10:12 AM, Neal Becker wrote:
>> Neal Becker wrote:
>>
>>> Guillaume Munch wrote:
>>>
 Le 06/03/2017 à 14:16, Neal Becker a écrit :
> I'm trying beamer(flex insets) document option.  I like it, but I
> don't
> see any way to set frame options.  Any hints?
 Insert > Frame options ?
>>> AFAICT, if you choose beamer(flex inserts) for document, then there is
>>> no
>>> menu item "(Insert > Frame options)".  This only appears if you choose
>>> "beamer" for document.
> 
> You need to use the flex insets with the beamer document class.
> (Unfortunately, there is no way at present to enforce this requirement.)
> 
> Richard

So if I use beamer-flex.inc from Guillaume Munch , then if I try 
to insert a frame using insert > custom insets > Frame, there is no way to 
then set frame options.  This can only be done using the lyx standard way of 
inserting a frame: choosing Frame from environment dropdown list, which will 
then activate the "Insert > Frame options" option.  Do I understand 
correctly?



Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Guillaume Munch wrote:

> Le 06/03/2017 à 19:49, Neal Becker a écrit :
>> Richard Heck wrote:
>>
>>> On 03/06/2017 10:12 AM, Neal Becker wrote:
 Neal Becker wrote:

> Guillaume Munch wrote:
>
>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
>>> I'm trying beamer(flex insets) document option.  I like it, but I
>>> don't
>>> see any way to set frame options.  Any hints?
>> Insert > Frame options ?
> AFAICT, if you choose beamer(flex inserts) for document, then there is
> no
> menu item "(Insert > Frame options)".  This only appears if you choose
> "beamer" for document.
>>>
>>> You need to use the flex insets with the beamer document class.
>>> (Unfortunately, there is no way at present to enforce this requirement.)
>>>
>>> Richard
>>
>> So if I use beamer-flex.inc from Guillaume Munch , then if I
>> try to insert a frame using insert > custom insets > Frame, there is no
>> way to
>> then set frame options.  This can only be done using the lyx standard way
>> of inserting a frame: choosing Frame from environment dropdown list,
>> which will
>> then activate the "Insert > Frame options" option.  Do I understand
>> correctly?
> 
> Strange. Here it works correctly if I use only beamer-flex.layout. The
> version of beamer-flex.inc you point to correctly defines Argument 3 :
> "Frame Options". Has the behaviour changed between 2.2 and 2.3?

Lyx-2.2.2 here.



Re: beamer flex frame options

2017-03-06 Thread Guillaume Munch

Le 06/03/2017 à 19:49, Neal Becker a écrit :

Richard Heck wrote:


On 03/06/2017 10:12 AM, Neal Becker wrote:

Neal Becker wrote:


Guillaume Munch wrote:


Le 06/03/2017 à 14:16, Neal Becker a écrit :

I'm trying beamer(flex insets) document option.  I like it, but I
don't
see any way to set frame options.  Any hints?

Insert > Frame options ?

AFAICT, if you choose beamer(flex inserts) for document, then there is
no
menu item "(Insert > Frame options)".  This only appears if you choose
"beamer" for document.


You need to use the flex insets with the beamer document class.
(Unfortunately, there is no way at present to enforce this requirement.)

Richard


So if I use beamer-flex.inc from Guillaume Munch , then if I try
to insert a frame using insert > custom insets > Frame, there is no way to
then set frame options.  This can only be done using the lyx standard way of
inserting a frame: choosing Frame from environment dropdown list, which will
then activate the "Insert > Frame options" option.  Do I understand
correctly?


Strange. Here it works correctly if I use only beamer-flex.layout. The
version of beamer-flex.inc you point to correctly defines Argument 3 :
"Frame Options". Has the behaviour changed between 2.2 and 2.3?




Re: beamer flex frame options

2017-03-06 Thread Neal Becker
Neal Becker wrote:

> Guillaume Munch wrote:
> 
>> Le 06/03/2017 à 19:49, Neal Becker a écrit :
>>> Richard Heck wrote:
>>>
 On 03/06/2017 10:12 AM, Neal Becker wrote:
> Neal Becker wrote:
>
>> Guillaume Munch wrote:
>>
>>> Le 06/03/2017 à 14:16, Neal Becker a écrit :
 I'm trying beamer(flex insets) document option.  I like it, but I
 don't
 see any way to set frame options.  Any hints?
>>> Insert > Frame options ?
>> AFAICT, if you choose beamer(flex inserts) for document, then there
>> is no
>> menu item "(Insert > Frame options)".  This only appears if you
>> choose "beamer" for document.

 You need to use the flex insets with the beamer document class.
 (Unfortunately, there is no way at present to enforce this
 requirement.)

 Richard
>>>
>>> So if I use beamer-flex.inc from Guillaume Munch , then if I
>>> try to insert a frame using insert > custom insets > Frame, there is no
>>> way to
>>> then set frame options.  This can only be done using the lyx standard
>>> way of inserting a frame: choosing Frame from environment dropdown list,
>>> which will
>>> then activate the "Insert > Frame options" option.  Do I understand
>>> correctly?
>> 
>> Strange. Here it works correctly if I use only beamer-flex.layout. The
>> version of beamer-flex.inc you point to correctly defines Argument 3 :
>> "Frame Options". Has the behaviour changed between 2.2 and 2.3?
> 
> Lyx-2.2.2 here.

OK, I figured it out.  You need to move the cursor to just after the frame 
title, then the 'frame options' option will appear in the Insert menu.



LyX 2.2 cannot read a document from LyX 2.1?

2017-03-06 Thread Enrico Forestieri
Matěj Cepl wrote:
> Yes, this is not a minimal example, but I am hesitant to touch this
> document from LyX 2.1 so that I wouldn’t accidentally fixed it. When
> trying to open it with lyx-2.2.2-1.fc25.x86_64 I get this:
>
> matej@mitmanek: marketa$ lyx Ph.D.project-Brno1.lyx
> Error: Document format failure
> 
> /tmp/lyx_tmpdir.CLmZrzV11492/Buffer_convertLyXFormatk11492.lyx is not a
> readable LyX document.
> matej@mitmanek: marketa$
>
> Any ideas, what's wrong?

Your .lyx file starts with a byte order mark U+FEFF and lyx2lyx doesn't
expect it.
Use a binary editor to get rid of it. Alternatively, load it with lyx
2.2 and wait
for the failure. Then edit the problematic converted file (it would be
/tmp/lyx_tmpdir.CLmZrzV11492/Buffer_convertLyXFormatk11492.lyx
in your previous attempt) with a text editor, delete the *second* line and
save it with a new name. You should now be able to load it with lyx 2.2.


Re: Finding the cause of a failed lyx->pdf conversion

2017-03-06 Thread Scott Kostyshak
On Mon, Mar 06, 2017 at 03:59:53PM +, Alexandru Băluț wrote:
> I'm converting a LYX file to PDF from the command line and the conversion
> apparently fails, the exit code of the process is 1:
> $ lyx -e pdf2 docs/myfile.lyx -dbg latex
> 
> The process reports failure even though it did actually create a PDF file
> which seems to be complete and usable. Is it safe to ignore the exit code
> in case it managed to create the PDF?

No you should never ignore the exit code from any command. A non-zero
exit code means an error.

> When I do the export to PDF from the UI, I get the errors below. Why do
> they appear twice?
> LaTeX Error: \begin{document} ended by \end{thenomenclature}.
> Extra \endgroup.
> LaTeX Error: \begin{document} ended by \end{thenomenclature}.
> Extra \endgroup.

I think the general advice is only to pay attention to the first LaTeX
error.

> I kept removing stuff and I got to a point where I have a section 2.2.3
> containing some simple text and if I remove its text leaving the section
> empty (only the title), exporting to PDF succeeds with no errors, whereas
> before it failed. I don't see how I could minimize the lyx file to be able
> to report the bug.

I don't understand. Why not? If there is a word in section 2.2.3 and LyX
exports with error with it and with no error without it, then the MWE
would include the word and in your description you would state "when I
remove the word abc, the error goes away". For more information, see:

https://wiki.lyx.org/FAQ/MinimalExample

> Side question: Removing paragraphs led to broken refs: "BROKEN: Ref: ...".
> To me these seem important, one would not want the final document to
> contain them, but maybe I'm missing something. Why are these errors ignored
> when exporting to PDF? Is there a way to validate a lyx file from the
> command line, and in such a way that these errors are not ignored? I
> searched for "compile lyx file" but did not find much.

I think there is a LaTeX package. Alternatively, in LyX in the outline
you can view labels and references. just filter for "BROKEN" and you
will see the current ones that are broken.

Scott


signature.asc
Description: PGP signature