Re: module for footnotes as both footnotes and endnotes

2016-06-16 Thread Richard Heck

On 06/16/2016 10:03 AM, Lucas wrote:

Okay, thanks Richard,

The Endnote module is there, but if I add it after commenting out my 
previously manually added preamble lines:


\usepackage{endnotes}

\let\footnote=\endnote

I get an error about "Undefined control sequence" because of some TeX 
containing "\theendnotes"  which I had used to place them.  Without 
that, I don't see them as endnotes, but just footnotes.  Is there 
another, expected, way to insert the endnote placeholder when using 
the Endnote module?




It seems like you should be using the Foot to End module. The endnotes 
module adds a special endnote inset, which can be used in addition to 
footnotes. (It can be found under Insert> Custom Insets.) The Foot to 
End module basically just adds the two commands you mentioned.


Richard




Thanks,


  Luke


On Thu, Jun 16, 2016 at 3:38 AM, Richard Heck > wrote:


On 06/16/2016 08:33 AM, Lucas wrote:

This wiki page suggests there will be ("As of LyX 1.6") a module
that would enable both footnotes as endnotes and displayed as
usual footnotes, but I can't seem to find it:
https://wiki.lyx.org/Tips/EndNotes :
"In the 1.6 series, endnotes will be supported by two sorts of
layout modules . One of them,
/foottoend/, just implements this trick. Another provides direct
support for endnotes, in addition to footnotes."


It should be listed under Document> Settings> Modules, as Endnote.
If it's not there, what modules do you see listed?

Richard




--
Protect your digital freedom and privacy, eliminate DRM, learn more at 
http://www.defectivebydesign.org/what_is_drm

On a related note, also see https://www.fsf.org/campaigns/surveillance




Re: Refresh child document preview

2016-06-16 Thread Kiuhnm

On 16/06/2016 21:55, Andrew Parsloe wrote:

On 17/06/2016 3:09 a.m., Guillaume Munch wrote:

Le 16/06/2016 15:21, Kiuhnm a écrit :

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see
the image inline. The problem is that if I change the child document,
the preview is not updated. Restarting LyX (2.2.0) or reinserting the
child document solves the problem, but that's very tedious. Is there a
more convenient way?



For now, change zoom? (e.g. Ctrl+Mouse wheel)

I've recently discovered this trick, but prefer to do it in a more
systematic way. I've created a command sequence shortcut:

command-sequence buffer-zoom-in; buffer-zoom-out

and associated it with a shortcut key (Tools > Preferences > Editing >
Shortcuts). In fact I've used Alt+Z for no particular reason. This
leaves your screen font at exactly the same size as before but gets all
the previews refreshed.

Andrew


This is perfect! Thank you.

Kiuhnm



Re: Beamer Class: Centering 2 Minipages

2016-06-16 Thread Rich Shepard

On Thu, 16 Jun 2016, Paul A. Rubin wrote:


Any reason you need minipages as opposed to columns?


Paul,

  No. I considered columns, but years ago I learned to use minipages in
beamer so I followed that practice.


To make this slide, I would start with a Frame environment, then under
that create a "Columns Center Aligned" environment and nest it under the
Frame. From there, I'd create a "Column" environment, setting its width
and nesting it under the "Columns Center Aligned" environment. Next, add
content and nest it under the "Column". Now repeat with a second "Column"
and more content.

One annoying feature to note: if you go back and add something under the
first column, it de-nests the second column. Not fatal, but you need to keep
an eye on it.


  I'll take this approach for a test drive.

Thanks,

Rich


Re: Refresh child document preview

2016-06-16 Thread Guillaume Munch

Le 16/06/2016 20:55, Andrew Parsloe a écrit :

On 17/06/2016 3:09 a.m., Guillaume Munch wrote:

Le 16/06/2016 15:21, Kiuhnm a écrit :

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see
the image inline. The problem is that if I change the child document,
the preview is not updated. Restarting LyX (2.2.0) or reinserting the
child document solves the problem, but that's very tedious. Is there a
more convenient way?



For now, change zoom? (e.g. Ctrl+Mouse wheel)

I've recently discovered this trick, but prefer to do it in a more
systematic way. I've created a command sequence shortcut:

command-sequence buffer-zoom-in; buffer-zoom-out

and associated it with a shortcut key (Tools > Preferences > Editing >
Shortcuts). In fact I've used Alt+Z for no particular reason. This
leaves your screen font at exactly the same size as before but gets all
the previews refreshed.



This is great!




Re: Refresh child document preview

2016-06-16 Thread Andrew Parsloe

On 17/06/2016 3:09 a.m., Guillaume Munch wrote:

Le 16/06/2016 15:21, Kiuhnm a écrit :

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see
the image inline. The problem is that if I change the child document,
the preview is not updated. Restarting LyX (2.2.0) or reinserting the
child document solves the problem, but that's very tedious. Is there a
more convenient way?



For now, change zoom? (e.g. Ctrl+Mouse wheel)
I've recently discovered this trick, but prefer to do it in a more 
systematic way. I've created a command sequence shortcut:


command-sequence buffer-zoom-in; buffer-zoom-out

and associated it with a shortcut key (Tools > Preferences > Editing > 
Shortcuts). In fact I've used Alt+Z for no particular reason. This 
leaves your screen font at exactly the same size as before but gets all 
the previews refreshed.


Andrew

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



Re: Beamer Class: Centering 2 Minipages

2016-06-16 Thread Paul A . Rubin
Rich Shepard  appl-ecosys.com> writes:

> 
>Again, the environment is LyX-2.2.0 on Slackware-14.1
> 
>The current presentation has several slides with two minipages: the left
> one with text and the right one with a figure (see attached). I spend a lot
> of time trying to get both centered on the slide without success. There must
> be something I'm doing incorrectly despite reading the built-in beamer
> manual.
> 
>For the attached figure, in the minipage settings dialogs I have the
> vertical alignment for the left side Content set to Middle and the Box set
> to Bottom. For the right side, the vertical alignment is Top for both
> Content and Box.
> 
>Any time I change any value the alignment changes for the worst. A pointer
> on how to align text minipage and figure minipage so the contents of each
> are vertially aligned in the center of each will be much appreciated.
> 
> Rich
> 
> Attachment (minibox-page.pdf): application/pdf, 20 KiB

I'm going to follow the advice a former student gave to me: if you can't
answer the question, argue the premise.

Any reason you need minipages as opposed to columns? To make this slide, I
would start with a Frame environment, then under that create a "Columns
Center Aligned" environment and nest it under the Frame. From there, I'd
create a "Column" environment, setting its width and nesting it under the
"Columns Center Aligned" environment. Next, add content and nest it under
the "Column". Now repeat with a second "Column" and more content.

One annoying feature to note: if you go back and add something under the
first column, it de-nests the second column. Not fatal, but you need to keep
an eye on it.

Paul



Re: Beamer Class: Cannot Create New Frame

2016-06-16 Thread Paul A . Rubin
Anthony Campbell  acampbell.uk> writes:


> I can confirm that I had a similar problem when trying to edit a file
> made some time ago. In the end I gave up and remade it from scratch.
> 
> Anthony
> 

Did you by any chance file a bug report on it? If not, and you remember the
details, I think the developers would appreciate it. Methinks things not in
the issue tracker tend not to get fixed.

Paul



Re: Beamer Class: Centering 2 Minipages

2016-06-16 Thread Rich Shepard

On Wed, 15 Jun 2016, Rich Shepard wrote:


 The current presentation has several slides with two minipages: the left
one with text and the right one with a figure (see attached). I spend a
lot of time trying to get both centered on the slide without success.
There must be something I'm doing incorrectly despite reading the built-in
beamer manual.


  Let me ask the devs two more specific questions:

  1.  When there are two minipages on a beamer class slide, what are the
actions of the vertical position choices for contents and box?

  2.  How do the vertical positioning choices for one minipage affect the
other's?

  When I search in the beamer presentation help doc within lyx for the term
'minipage' nothing is found. Understanding the behavior of these minipages
is likely to be useful to others as well as myself.

TIA,

Rich



Re: Refresh child document preview

2016-06-16 Thread Guillaume Munch

Le 16/06/2016 15:21, Kiuhnm a écrit :

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see
the image inline. The problem is that if I change the child document,
the preview is not updated. Restarting LyX (2.2.0) or reinserting the
child document solves the problem, but that's very tedious. Is there a
more convenient way?



For now, change zoom? (e.g. Ctrl+Mouse wheel)




Re: Refresh child document preview

2016-06-16 Thread Michael Berger



On 06/16/2016 04:21 PM, Kiuhnm wrote:

Hello,

I put a child document (TikZ file) inside a "preview box" and I can 
see the image inline. The problem is that if I change the child 
document, the preview is not updated. Restarting LyX (2.2.0) or 
reinserting the child document solves the problem, but that's very 
tedious. Is there a more convenient way?


Kiuhnm


Is there a reason for using a preview box ?
Could you not simply use Include?
Michael



Refresh child document preview

2016-06-16 Thread Kiuhnm

Hello,

I put a child document (TikZ file) inside a "preview box" and I can see 
the image inline. The problem is that if I change the child document, 
the preview is not updated. Restarting LyX (2.2.0) or reinserting the 
child document solves the problem, but that's very tedious. Is there a 
more convenient way?


Kiuhnm



Re: Croatian diacritics not working in references after upgrading to 2.2

2016-06-16 Thread PhilipPirrip

On 06/16/2016 04:38 AM, Nikola Ivan Leder wrote:

So, apologies to LyX powers that be, I guess I was to blame here,
probably some encoding change in bib file after upgrading other software
that I didn't notice ...   shouldn't use those characters in key fields
anyhow...


No worries, Nikola, događa se svakom i neprestano! ;)
There are layers of software dating 40 years back that don't always work 
together.

Glad you found the error.




Re: module for footnotes as both footnotes and endnotes

2016-06-16 Thread Lucas
Okay, thanks Richard,

The Endnote module is there, but if I add it after commenting out my
previously manually added preamble lines:

\usepackage{endnotes}

\let\footnote=\endnote

I get an error about "Undefined control sequence" because of some TeX
containing "\theendnotes"  which I had used to place them.  Without that, I
don't see them as endnotes, but just footnotes.  Is there another,
expected, way to insert the endnote placeholder when using the Endnote
module?


Thanks,


  Luke

On Thu, Jun 16, 2016 at 3:38 AM, Richard Heck  wrote:

> On 06/16/2016 08:33 AM, Lucas wrote:
>
> This wiki page suggests there will be ("As of LyX 1.6") a module that
> would enable both footnotes as endnotes and displayed as usual footnotes,
> but I can't seem to find it:  https://wiki.lyx.org/Tips/EndNotes :
> "In the 1.6 series, endnotes will be supported by two sorts of layout
> modules . One of them, *foottoend*,
> just implements this trick. Another provides direct support for endnotes,
> in addition to footnotes."
>
>
> It should be listed under Document> Settings> Modules, as Endnote. If it's
> not there, what modules do you see listed?
>
> Richard
>
>


-- 
Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
On a related note, also see https://www.fsf.org/campaigns/surveillance


Re: Exporting to ODF or MS Office ignores any bibliography styles

2016-06-16 Thread Nikola Ivan Leder

> Gordon have you had a chance to test LyX 2.2.0 + newest pandoc +
> exporting to ODF? If not, don't do it just for me. I only ask out of
> curiosity whether those results are much worse that copy/pasting the
> html.
> 
> Scott
> 


Interestingly enough...  references don't show up AT ALL in my document 
with pandoc export to ODT...



Re: module for footnotes as both footnotes and endnotes

2016-06-16 Thread Richard Heck

On 06/16/2016 08:33 AM, Lucas wrote:
This wiki page suggests there will be ("As of LyX 1.6") a module that 
would enable both footnotes as endnotes and displayed as usual 
footnotes, but I can't seem to find it: 
https://wiki.lyx.org/Tips/EndNotes :
"In the 1.6 series, endnotes will be supported by two sorts of layout 
modules . One of them, /foottoend/, 
just implements this trick. Another provides direct support for 
endnotes, in addition to footnotes."


It should be listed under Document> Settings> Modules, as Endnote. If 
it's not there, what modules do you see listed?


Richard



Re: Croatian diacritics not working in references after upgrading to 2.2

2016-06-16 Thread Nikola Ivan Leder
PhilipPirrip  net.hr> writes:

> 
> On 06/15/2016 08:46 AM, Nikola Ivan Leder wrote:
> > Hi,
> > The subject pretty much sums it up. As
> > suggested in previous thread I've upgraded
> > to lyx 2.2.
> > The new version would not produce a result
> > when exporting to PDF because of unknown
> > characters. I've tracked this to Croatian
> > diacritics from the references bib file.
> 
> Nikola,
> You shouldn't, in general,have any non-ASCII characters in your bib 
> files,it's because of bibtex limitations. You could try with bibtex8 
> (Document settings > Bibliography > Processor), or biblatex (with some 
> additional work, http://wiki.lyx.org/BibTeX/Biblatex).
> It could be though that your bib file encoding and your lyx document 
> encoding don't match: what's in your Document settings > Language > 
> Encoding?
> 
> To help you further, we'll need a minimal LyX file together with a bib 
> database showing the error.
> 
> 


Okay, let me just say that I'm a doctor and not a programmer (just an IT 
enthusiast) so I may be off on some of my answers here...   what I 
noticed that the čć and similar are converted to gibberish in bib file 
key and lyx could not read it...  it may indeed be problem due to bib 
encoding or jabref new version...  don't think that lyx is really the 
problem here.

Now that I've manually removed the croatian diacritics from the 
Bibtexkey I get a load of new errors complaining of undefined fields 
like so:
\newblock Available from: \url
 {http://stacks.iop.org/0031-
9155/48/i=16/a=...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.



This is due to DOI and URL fields in bib file, because if I erase them 
no more errors. I can however ignore this error (warning?) and get a 
perfect result.  

So, apologies to LyX powers that be, I guess I was to blame here, 
probably some encoding change in bib file after upgrading other software 
that I didn't notice ...   shouldn't use those characters in key fields 
anyhow... :)

Re: Beamer Class: Cannot Create New Frame

2016-06-16 Thread Anthony Campbell
On 15 Jun 2016, Rich Shepard wrote:
> On Wed, 15 Jun 2016, Paul A. Rubin wrote:
> 
> > With the mouse next to the figure, check whether the environment drop down
> > list says "Frame". If so, change it to Standard and increase depth to make
> > it a child of the frame. (This will also allow you to change the
> > justification of the image. I like to center mine.)
> 
> Paul,
> 
>   I've done this. With the Standard environment the increased depth icon (to
> center the figure) only adds a Frame environment to the left of the figure.
> 
>   I have found some work-arounds so I'm able to add frames and continue with
> the presentation (a 45-minute one a week from today). This presentation is
> built by modifying and lengthening one I prepared about 3 years ago with an
> earlier LyX version. I notice a number of differences in appearance between
> original frames (e.g,, a double line indicating end-of-frame vs a single
> line now) and wonder if the version differences are what's caused these
> glitches.
> 
I can confirm that I had a similar problem when trying to edit a file
made some time ago. In the end I gave up and remade it from scratch.

Anthony

-- 
Anthony Campbellhttp://www.acampbell.uk


module for footnotes as both footnotes and endnotes

2016-06-16 Thread Lucas
This wiki page suggests there will be ("As of LyX 1.6") a module that would
enable both footnotes as endnotes and displayed as usual footnotes, but I
can't seem to find it:  https://wiki.lyx.org/Tips/EndNotes :
"In the 1.6 series, endnotes will be supported by two sorts of layout
modules . One of them, *foottoend*, just
implements this trick. Another provides direct support for endnotes, in
addition to footnotes."

I'm using LyX 2.1.2 on Debian GNU/Linux.

There is a workaround that keeps me changing the preamble:  I get an error
upon opening a document and trying to generate a PDF: "LaTeX Error: File
'file.ent' not found."  Then If I uncomment a line in the preamble saying,
"\let\footnote=\endnote", and regenerate the PDF, it compiles and displays
(but the footnotes only exist as endnotes).  Then, if I re-comment out that
preamble line, and regenerate the PDF, the footnotes are in both places
without error.  And it continues to work until I close and reopen the
document (when presumably file.ent is removed).

Is there a module that I'm just not seeing, or another simple solution?


Thanks,

  Luke


Re: LyX 2.2.0-1 on FC23: some math shortcuts not working.

2016-06-16 Thread PhilipPirrip

On 06/11/2016 11:41 AM, Rudi Gaelzer wrote:

For instance: "ALT+M F" did not entered the \frac command; instead it just
will open the dialog window for math spaces.  "ALT+M (", "ALT+M [" and
"ALT+M {", instead of creating the respective math delimiters would simply do
nothing.  Also, exponent generation with the caret "^" works sporadically.


All three work for me: Fedora 24, Dell XPS hiDPI, LyX 2.2, Gnome@xorg, 
US keyboard.