RE: Hyperref color links

2014-10-02 Thread Alberto Escrig Vidal
It Works!

Thanks so much Scott



Re: Hyperref color links

2014-10-02 Thread Scott Kostyshak
On Mon, Sep 29, 2014 at 2:18 AM, Alberto Escrig Vidal
 wrote:
> When this option is selected, LyX automatically adds:
>
>
>
> \usepackage{color}
>
>
>
> before babel is loaded.
>
>
>
> If a multilingual Italian/Spanish document is involved (Spanish being the
> main language), this causes the document to fail to compile (with an updated
> MiKTeX distribution), such as the following minimal example:
>
>
>
> \documentclass[italian,spanish]{book}
>
>
>
> \usepackage{color}
>
> \usepackage{babel}
>
> \usepackage[colorlinks=true]{hyperref}
>
>
>
> \begin{document}
>
> foo
>
> \end{document}
>
>
>
> The problem is easily solved in LaTeX by loading color after babel is
> loaded. In LyX there is also a workaround: providing colorlinks=true as an
> additional hyperref option, which is not very elegant, because the LaTeX
> translate will look like:
>
>
>
> \usepackage[colorlinks=false,colorlinks=true]{hyperref}
>
>
>
> Is it possible to influence LyX to load color after babel being loaded?

Hi Alberto,

I don't know much about this, but you might be able to do something like

Provides color

in local layout.

See Help > Customization for more information.

Please let the list know if you try it and it works.

Best,

Scott


Re: Center All Graphics

2014-10-02 Thread Scott Kostyshak
On Thu, Oct 2, 2014 at 9:21 PM, Chris Rackauckas  
wrote:
> Hi Scott,
>   Where would I find the Koma-Script Book layout (is it named differently?)

Hi Chris,

Searching (case-insensitively) for "koma" tells me it's in the file
scrbook.layout.

> and more importantly, how would I center all graphics?

I don't know.

Best,

Scott


Re: Center All Graphics

2014-10-02 Thread Chris Rackauckas
Hi Scott,
  Where would I find the Koma-Script Book layout (is it named differently?)
and more importantly, how would I center all graphics?

_
Chris Rackauckas
University of California, Irvine
Department of Mathematics
www.chrisrackauckas.com

On Thu, Oct 2, 2014 at 3:00 PM, Scott Kostyshak  wrote:

> On Thu, Oct 2, 2014 at 4:40 PM, James Sutherland
>  wrote:
> > Better yet, why doesn't LyX center graphics (at least in floats) by
> default?
> > It centers captions by default, so why not graphics? This inconsistency
> has
> > long annoyed me...
> >
> > James
>
> Hi James,
>
> I don't think LyX centers captions or specifically doesn't center
> graphics. From what I understand, LyX respects the class defaults,
> which in my opinion is what it should do. If you are writing an
> article for a journal whose document class has figures aligned to the
> left, they probably would not appreciate it if LyX changed that, or
> any other stylistic element. It would lead to an inconsistent journal
> edition.
>
> Best,
>
> Scott
>


Re: xfig drawing in LyX 2.1.0 does not work

2014-10-02 Thread Jens Nellesen
> FIG conversion to EPS and PDF uses different software. One of them might be 
> set up
> wrongly. First, try Tools->Reconfigure, and restart lyx.
> If that did not help, Tools->Preferences, select "File Handling"
> You will find a list of converters between various file formats. You should 
> find
> FIG->EPS (which works for you) and FIG->PDFTEX which doesn't. Check that the 
> software
> mentioned is installed, and is available in the PATH.
> In my case, the converter is
> python -tt $$s/scripts/fig2pdftex.py $$i $$o
> So "python" must exist in the path somewhere. (Try typing python on the 
> command line.
> If it fails with unknown command, then you know why it doesn't work for LyX.) 
> Install
> the software. If it is installed, either fix the PATH setting, or give the 
> full path
> to the converter instead of just the filename. (I.e. 
> C:\programs\something\python )

I checked all settings  in Tools->Preferences->File Handling in a native Win7 
LyX installation (version 2.1.2)
but I could not find any mistake.

These are the converter commands:
for FIG->EPS: fig2dev -L eps $$i $$o
for FIG->PDFTEX: python -tt $$s/scripts/fig2pdftex.py $$i $$o

As stated before, the preview in LyX works perfectly.
If I hit the shortcut key CTRL+T for PS preview I realize a command beginning 
with "python -tt ..." in the status bar and immediately the ghostview is 
launched to display the temporarily produced PS file.
In LyX the path prefix starts with 
"$LyXDir\bin;$LyXDir\Python;$LyXDir\Python\Lib; ...  ".

However, if I try to generate the PDF file I always get the pdfTeX error "... 
.pdftex_t' not found."

As stated before, in a fedora-vbox I do not experience this problem (with LyX 
2.1.1).

Thanks for help in advance.

Jens

Re: Finding cause of error preventing preview

2014-10-02 Thread Rich Shepard

On Thu, 2 Oct 2014, Rich Shepard wrote:


 Near the top of my document I have a citation imported from JabRef. When I
try to compile the document as a dvi preview an error is generated and a
block of text a few lines below that citation is highlighted:

\newblock {\em Ecology}, 94(12):26780--
 2687.
You need to provide a definition with \DeclareInputText or \DeclareInputMath 
before using this key.




  If it matters, the bibliography environment is the same in this document
as it is in another document which does compile.

Rich


Re: Finding cause of error preventing preview

2014-10-02 Thread Rich Shepard

On Thu, 2 Oct 2014, Rich Shepard wrote:


 When I click the button to copy the error log to the clipboard, where do I
find it?


  Got it: opened a new doc and pasted with ^y.

  The error is apparently a JabRef -> LyX issue:

"Package natbib Warning: Citation `Sanchez2013' on page 6 undefined on input
line 76."

  Any ideas?

Rich


Re: Finding cause of error preventing preview

2014-10-02 Thread Rich Shepard

On Thu, 2 Oct 2014, Rich Shepard wrote:


\newblock {\em Ecology}, 94(12):26780--


  I removed the final 0 from the above reference in JabRef but the LyX
document still won't compile.

  When I click the button to copy the error log to the clipboard, where do I
find it?

Rich


Finding cause of error preventing preview

2014-10-02 Thread Rich Shepard

  Near the top of my document I have a citation imported from JabRef. When I
try to compile the document as a dvi preview an error is generated and a
block of text a few lines below that citation is highlighted:

 \newblock {\em Ecology}, 94(12):26780--
  2687.
You need to provide a definition with \DeclareInputText 
or \DeclareInputMath before using this key.



  The citation above the blocked text is not from Ecology and I cannot find
that reference in the JabRef database.

  Please provide suggestions how I can find the source of this error.

TIA,

Rich




Re: Center All Graphics

2014-10-02 Thread Scott Kostyshak
On Thu, Oct 2, 2014 at 4:40 PM, James Sutherland
 wrote:
> Better yet, why doesn't LyX center graphics (at least in floats) by default?
> It centers captions by default, so why not graphics? This inconsistency has
> long annoyed me...
>
> James

Hi James,

I don't think LyX centers captions or specifically doesn't center
graphics. From what I understand, LyX respects the class defaults,
which in my opinion is what it should do. If you are writing an
article for a journal whose document class has figures aligned to the
left, they probably would not appreciate it if LyX changed that, or
any other stylistic element. It would lead to an inconsistent journal
edition.

Best,

Scott


Re: Center All Graphics

2014-10-02 Thread Chris Rackauckas
Centering the graphics in floats automatically is easy: Just add
\usepackage{floatrow}
to the preamble. I just made a module that does this and it's a quick fix
to everything. However, for this lab notebook I am making, I want to
quickly add graphics and not worry about having to center them or put them
into floats (and all of the formatting jazz that goes with it).

_
Chris Rackauckas
University of California, Irvine
Department of Mathematics
www.chrisrackauckas.com

On Thu, Oct 2, 2014 at 1:40 PM, James Sutherland <
james.sutherl...@chemeng.utah.edu> wrote:

> Better yet, why doesn't LyX center graphics (at least in floats) by
> default?  It centers captions by default, so why not graphics? This
> inconsistency has long annoyed me...
>
> James
> 
>
>
> On Thu, Oct 2, 2014 at 2:19 PM, Chris Rackauckas 
> wrote:
>
>> Hello,
>>   I am trying to create a modification that will center all graphics
>> automatically. How would I go about doing this? I tried
>> adding \usepackage{floatrow} to the LaTeX preamble but this only centers
>> graphics put into floats. Any ideas?
>> _
>> Chris Rackauckas
>> University of California, Irvine
>> Department of Mathematics
>> www.chrisrackauckas.com
>>
>
>


Re: Center All Graphics

2014-10-02 Thread James Sutherland
Better yet, why doesn't LyX center graphics (at least in floats) by
default?  It centers captions by default, so why not graphics? This
inconsistency has long annoyed me...

​James
​


On Thu, Oct 2, 2014 at 2:19 PM, Chris Rackauckas 
wrote:

> Hello,
>   I am trying to create a modification that will center all graphics
> automatically. How would I go about doing this? I tried
> adding \usepackage{floatrow} to the LaTeX preamble but this only centers
> graphics put into floats. Any ideas?
> _
> Chris Rackauckas
> University of California, Irvine
> Department of Mathematics
> www.chrisrackauckas.com
>


Center All Graphics

2014-10-02 Thread Chris Rackauckas
Hello,
  I am trying to create a modification that will center all graphics
automatically. How would I go about doing this? I tried
adding \usepackage{floatrow} to the LaTeX preamble but this only centers
graphics put into floats. Any ideas?
_
Chris Rackauckas
University of California, Irvine
Department of Mathematics
www.chrisrackauckas.com


Re: lyx on the "cloud"

2014-10-02 Thread Benedict Holland
I use dropbox for something similar. That also means that your .lyx folder
should also be on there and any changes you make to the default
configuration are synced.

~Ben

On Wed, Oct 1, 2014 at 8:12 AM, Helge Hafting  wrote:

>
> Den 25. sep. 2014 12:06, skrev Renato Pontefice:
>
>   Hi,
>  I would use Lyx everywhere. Instead of Libre/Open Office. But To do that,
> I need a service, that let me use it everywhere. i.e., if I write a Lyx doc
> on my pc, the I go to an office, that do no has Lyx (but for sure, it has a
> internet connection), I would/coul use it, without my pc.
>
>  Is there a cloud service that do that?
>
> Not to my knowledge, but you may install LyX on a USB stick and run it
> from there.  USB sticks are cheap and easier to bring than a laptop.
>
> Helge Hafting
>
>
>