Re: Embedding arrows & stuff

2012-05-08 Thread Guenter Milde
On 2012-05-08, Tim Wescott wrote:

> I'm thinking that I should probably just write an equation, print the
> file to eps (if I can figure out how), edit it with Inkscape, then put
> that figure into the text.

There was a thread about "LyX as equation editor" here on the list some
time ago. The idea is simply to add export options (EPS, PDF (cropped), SVG)
in the Tools>Settings>Export dialogue. It is (AFAIK) described on
wiki.lyx.org.

Günter



Re: Straghtforward XML export?

2012-05-08 Thread Nico Williams
> [Actually, I'm noticing one problem with LyXHTML: it doesn't preserve
> vertical spacing in any way, not even as horizontal spacing!  I'm
> talking about Insert->Formatting->Vertical Space.  I suspect that
> there are other such things that aren't preserved.  For now I'll live.
>  Vertical space is useful for multi-paragraph list items, which are
> very common in RFCs and Internet-Drafts.  If need be I suspect I can
> write a patch and submit it.]

Found a solution to that: a nest list with no bulleting/numbering is
rendered as a single  with s for the nested list elements,
which works out perfectly.  No doubt the vspace loss will come up
elsewhere, but for now it's fine.


Re: Straghtforward XML export?

2012-05-08 Thread Nico Williams
On Tue, May 8, 2012 at 10:58 PM, Richard Heck  wrote:
> On 05/08/2012 07:30 PM, Nico Williams wrote:
>> LyXHTML looks very promising.  It certainly preserves everything I
>> have in my [admittedly small] test file.  If it preserves custom inset
>> names then I could probably use custom insets to provide the
>> additional metadata I need (I still haven't quite figured out how to
>> create custom insets, but give me time).  XSLT can do the rest.
>>
> It will do with custom insets whatever you ask it to do. If I remember
> correctly, it defaults to something like:
> 
> or an equivalent span, depending upon whether its a charstyle or a
> flex inset.

Excellent.  I've got an XSLT stylesheet in the works that does what I want.

I don't know how to create a custom inset that does.. nothing much
except have a custom inset name.  Specifically I need variants of the
Author inset to represent the metadata I need (author organization,
e-mail address, and postal address).  With that I'd be set.

> In principle, you can also tell the LyXHTML output to use some other
> tag than div or span. This is all customized in the layout files, as is
> explained in the bits on XHTML in the customization manual. So I'm
> guessing that you could get quite a long way towards XML simply in
> that sort of way.

The divs are fine.  I can address them just fine with XPath, so I'm
quite happy.  If the LyXHTML schema changes radically I'll just have
to re-write the XSLT stylesheet I'm writing now, but as long as no
metadata is lost I'll be fine.

Eventually I'll probably want to develop a layout and class for
actually dealing with RFCs directly in LyX.  The typesetting rules for
RFCs are... trivial in comparison to most other layouts.  But I
confess knowing nothing about LaTeX, so it will be sometime before I
get there.  For now I'm just happy -ecstatic even- to just consume
LyXHTML with XSLT.

[Actually, I'm noticing one problem with LyXHTML: it doesn't preserve
vertical spacing in any way, not even as horizontal spacing!  I'm
talking about Insert->Formatting->Vertical Space.  I suspect that
there are other such things that aren't preserved.  For now I'll live.
 Vertical space is useful for multi-paragraph list items, which are
very common in RFCs and Internet-Drafts.  If need be I suspect I can
write a patch and submit it.]

Thanks for your help.  Sorry to need so much handholding, I'm out of
my element here,

Nico
--


Re: Unsubscribe me from Lyx list

2012-05-08 Thread Gour
On Tue, 8 May 2012 18:02:07 -0500
"becko"  wrote:

> Dear Lyx list team:
> 
> I want to unsubscribe from the Lyx list. What do I have to do?

Check headers of your message- there is one named: List-Unsubscribe: ;)


Sincerely,
Gour

-- 
The senses are so strong and impetuous, O Arjuna, 
that they forcibly carry away the mind even of a man 
of discrimination who is endeavoring to control them.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


signature.asc
Description: PGP signature


Re: Straghtforward XML export?

2012-05-08 Thread Richard Heck

On 05/08/2012 07:30 PM, Nico Williams wrote:

On Tue, May 8, 2012 at 12:40 AM, Guenter Milde  wrote:

So how about XHTML as starting point for your XSLT transformations?

LyXHTML looks very promising.  It certainly preserves everything I
have in my [admittedly small] test file.  If it preserves custom inset
names then I could probably use custom insets to provide the
additional metadata I need (I still haven't quite figured out how to
create custom insets, but give me time).  XSLT can do the rest.


It will do with custom insets whatever you ask it to do. If I remember
correctly, it defaults to something like:

or an equivalent span, depending upon whether its a charstyle or a
flex inset.

In principle, you can also tell the LyXHTML output to use some other
tag than div or span. This is all customized in the layout files, as is
explained in the bits on XHTML in the customization manual. So I'm
guessing that you could get quite a long way towards XML simply in
that sort of way.

Richard



Otherwise, you could use the native XHTML formatter as a model for adding
"native XML" output.

Indeed, I think that would be a good last resort.

Ideally there'd be a terribly straightforward LyXML, but LyXHTML looks
manageable.


Another starting point would be the external "elyxer" tool: a Python
package that takes a LyX file and converts it to XHTML.
http://elyxer.nongnu.org/

That looks pretty good too.  That's a lot of realistic options.  Thanks again,

Nico
--




Re: aspect ratio in figures

2012-05-08 Thread Allen Barker

On 05/08/2012 06:09 PM, Paul A. Rubin wrote:

Allen Barker  gmail.com>  writes:



On 05/03/2012 05:44 PM, Paul A. Rubin wrote:



Is your version of ImageMagick current?


It is Version: ImageMagick 6.6.5-10 2011-11-03 Q16





Perhaps you should post a minimal example (short LyX document plus image file).


OK, I've included the Lyx file and the .png image.  The
image is just a screenshot from the ImageMagick "import"
command, cropped in Gimp to be perfectly square.

The PDF and PS output is definitely not square on my
system: it is vertically stretched.




minimalExample.lyx
Description: application/lyx
<>

Re: Error in getting output

2012-05-08 Thread Steve Litt
On Tue, 08 May 2012 18:57:26 -0400
Richard Heck  wrote:

> On 05/08/2012 06:53 PM, becko wrote:
> > Dear Lyx list team:
> >
> > I want to unsubscribe from the Lyx list. What do I have to do?
> >
> There is an unsubscribe address in the headers of emails you get from 
> the list.
> 
> Richard

Note that you probably have to temporarily set your email client to
"show all headers" to see that particular header.

SteveT




`

2012-05-08 Thread paul sutton
On 09/05/12 00:02, becko wrote:
> Dear Lyx list team:
>
> I want to unsubscribe from the Lyx list. What do I have to do?
>
> Thanks.
>  

A search on the website reveals this page

http://www.lyx.org/MailingLists#toc2

with

  * lyx-users-subscr...@lists.lyx.org
 to subscribe
  * lyx-users-unsubscr...@lists.lyx.org
 to unsubscribe
  * lyx-users-h...@lists.lyx.org 
for a help message

I would guess send an e-mail to either the 2nd one in the list or for
help send it to the 3rd.

Paul

-- 

--
http://www.zleap.net
http://www.ubuntu.com

skype : psutton111
http://www.linkedin.com/pub/paul-sutton/36/595/911



Re: Straghtforward XML export?

2012-05-08 Thread Nico Williams
On Tue, May 8, 2012 at 12:40 AM, Guenter Milde  wrote:
> So how about XHTML as starting point for your XSLT transformations?

LyXHTML looks very promising.  It certainly preserves everything I
have in my [admittedly small] test file.  If it preserves custom inset
names then I could probably use custom insets to provide the
additional metadata I need (I still haven't quite figured out how to
create custom insets, but give me time).  XSLT can do the rest.

> Otherwise, you could use the native XHTML formatter as a model for adding
> "native XML" output.

Indeed, I think that would be a good last resort.

Ideally there'd be a terribly straightforward LyXML, but LyXHTML looks
manageable.

> Another starting point would be the external "elyxer" tool: a Python
> package that takes a LyX file and converts it to XHTML.
> http://elyxer.nongnu.org/

That looks pretty good too.  That's a lot of realistic options.  Thanks again,

Nico
--


Re: LyXHTML Visual Appearance

2012-05-08 Thread Richard Heck

On 05/08/2012 03:57 AM, Gour wrote:

On Mon, 07 May 2012 15:17:50 -0400
Richard Heck  wrote:


Yes. But it's all very modular, as the rest of the code is, so it's
fairly easy to mess with different parts.

At the moment I'm trying to learn D...did C(++) long ago, but C++
evolved quite a bit since then, so I'm not sure how would I orient
myself with the code.

Otoh, do you maybe consider adding some Javascript code to the generated
output in order to get Search facility similar to the one available in
Sphinx?


This is probably doable with a LyX module. If you send me the JS code
you need, I can probably come up with one fairly quickly. This again is
a nice aspect of the modularity of the code and the way LyX's internal
converter re-uses existing LyX constructs.

Richard



Re: Error in getting output

2012-05-08 Thread Richard Heck

On 05/08/2012 06:53 PM, becko wrote:

Dear Lyx list team:

I want to unsubscribe from the Lyx list. What do I have to do?

There is an unsubscribe address in the headers of emails you get from 
the list.


Richard



Re: Macros and preview in child documents (reborn)

2012-05-08 Thread Richard Heck

On 05/08/2012 01:00 PM, Rudi Gaelzer wrote:

I would like to know if the topic discussed in this thread:
http://marc.info/?l=lyx-users&m=116195922003640&w=2
has evolved since 2006.

I have a lot of math macros defined on the preamble of a master document, which
has several childs.  When I process the document, the math macros are
correctly parsed on the output (pdf) of all child documents, but instant
preview does not display the correct layout for the macro.  Usualy, it will
only show a blank instead.

A workaround I've found is to define the macros not on the master's preamble,
but on its body, using LyX's function at Insert ->  Math ->  Macro.  That way,
the math expressions is correctly displayed on all child docs.

If you want to define the macros manually in the preamble, then put them
in a separate file, macros.tex, and include that file in the preamble of the
master *and also in the children*. I think that should do it.

But, as you note, if you use LyX's macro facility, all is handled properly.

Richard



Re: Embedding arrows & stuff

2012-05-08 Thread Paul A . Rubin
Tim Wescott  wescottdesign.com> writes:

> 
> I want to generate a page with Beamer that looks like the enclosed pdf.
> Any suggestions on how to achieve the "arrows pointing to parts of an
> equation" effect?
> 
> I'm thinking that I should probably just write an equation, print the
> file to eps (if I can figure out how), edit it with Inkscape, then put
> that figure into the text.
> 
> But if there's a stunningly easier way that doesn't involve spending the
> next year learning some new tool, I'm open to suggestions.
> 

Not "stunningly easier", but I would use the TiKZ package (by Til Tantau, the
author of Beamer). It's worth getting to know for its easy integration with
Beamer and its range.  

I'm pasting in an example below (one frame from a demo I did here).

Paul

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass beamer
\begin_preamble
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,positioning}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\begin_local_layout

\end_local_layout
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman lmodern
\font_sans lmss
\font_typewriter lmtt
\font_default_family rmdefault
\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 letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\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 BeginFrame
\begin_inset ERT
status collapsed

\begin_layout Plain Layout

[<+-| alert@+>]
\end_layout

\end_inset

Overlaying Graphics on Text
\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikzstyle{every picture}+=[remember picture]
\end_layout

\begin_layout Plain Layout


\backslash
everymath{
\backslash
displaystyle}
\end_layout

\begin_layout Plain Layout


\backslash
tikzstyle{na} = [baseline=-.5ex] 
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Coriolis acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na] 
\backslash
node[coordinate] (n1) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Formula 
\[
\vec{a}_{p}=\vec{a}_{o}+\frac{^{b}d^{2}}{dt^{2}}\vec{r}
+\tikz[baseline]{\node[fill=blue!20,anchor=base](t1)
{\ensuremath{2\vec{\omega}_{ib}\times\frac{^{b}d}{dt}\vec{r}}};}
+\tikz[baseline]{\node[fill=red!20,ellipse,anchor=base](t2)
{\ensuremath{\vec{\alpha}_{ib}\times\vec{r}}};}
+\tikz[baseline]{\node[fill=green!20,anchor=base](t3)
{\ensuremath{\vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})}};}
\]

\end_inset


\end_layout

\begin_layout Itemize
Transversal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n2) {};
\end_layout

\end_inset


\end_layout

\begin_layout Itemize
Centripetal acceleration 
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
tikz[na]
\backslash
node [coordinate] (n3) {};
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash
begin{tikzpicture}[overlay]
\end_layout

\begin_layout Plain Layout


\backslash
path[->]<1-> (n1) edge [bend left] (t1);
\end_layout

\begin_layout Plain Layout


\backslash
path[->]<2-> (n2) edge [bend right] (t2);
\end_layout

\begin_layout Plain Layout


\backslash
path[->]<3-> (n3) edge [out=0, in=-90] (t3);
\end_layout

\begin_layout Plain Layout


\backslash
end{tikzpicture}
\end_layout

\end_inset


\end_layout

\begin_layout EndFrame

\end_layout

\end_body
\end_document




Re: aspect ratio in figures

2012-05-08 Thread Paul A . Rubin
Allen Barker  gmail.com> writes:

> 
> On 05/03/2012 05:44 PM, Paul A. Rubin wrote:

> >Is your version of ImageMagick current?
> 
> It is Version: ImageMagick 6.6.5-10 2011-11-03 Q16
> 
> 


Perhaps you should post a minimal example (short LyX document plus image file).

Paul




Unsubscribe me from Lyx list

2012-05-08 Thread becko
Dear Lyx list team:

I want to unsubscribe from the Lyx list. What do I have to do?

Thanks. 



Re: Error in getting output

2012-05-08 Thread becko

Dear Lyx list team:

I want to unsubscribe from the Lyx list. What do I have to do?

Thanks. 


Re: Error in getting output

2012-05-08 Thread stefano franchi
On Tue, May 8, 2012 at 10:59 AM, Samar Amini  wrote:
> Hi,
>
> I have installel lyx.x86_64 with 'yum install' command on my fedora 16.
> The problem is that I can not get any kind of output, even print!
> it writes "There were some errors during the LaTex run", "You should try to
> fix them"
>

You should provide some more info, especially the content of the Latex
log (Document>Latex Log)
You may not have tex installed at all, even though Fedora should have
installed it as a prerequisite of lyx (i'm not a fedora user, so I may
be wrong. But that is usually the case with other linux distros).

Can you check in yum if a package with a name more or less like
texlive is installed?

Stefano

>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Macros and preview in child documents (reborn)

2012-05-08 Thread Rudi Gaelzer
I would like to know if the topic discussed in this thread:
http://marc.info/?l=lyx-users&m=116195922003640&w=2
has evolved since 2006.

I have a lot of math macros defined on the preamble of a master document, which 
has several childs.  When I process the document, the math macros are 
correctly parsed on the output (pdf) of all child documents, but instant 
preview does not display the correct layout for the macro.  Usualy, it will 
only show a blank instead.

A workaround I've found is to define the macros not on the master's preamble, 
but on its body, using LyX's function at Insert -> Math -> Macro.  That way, 
the math expressions is correctly displayed on all child docs.

Is there another way to do this?
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Error in getting output

2012-05-08 Thread Samar Amini

Hi,

I have installel lyx.x86_64 with 'yum install' command on my fedora 16.
The problem is that I can not get any kind of output, even print!
it writes "There were some errors during the LaTex run", "You should  
try to fix them"


Could you please help me to fix this problem?

Samar





color url ONLY

2012-05-08 Thread UD

Is there a way to color (and make clickable) only URLs, but not citations?
When I use the Document/Settings/PDF properties, both URLs and citations 
are colored and are clickable.

Thanks,
Ehud Kaplan




Re: Longtable captions

2012-05-08 Thread Rob Oakes
On 5/8/2012 8:45 AM, John Tapsell wrote:
>   At the moment adding captions to longtables requires manually adding lyx 
> code.
Hi John,

While the offer is much appreciated, in this case, it's unnecessary. You
*can* add captions to longtables. It's available from the Table
properties dialog.  Right click on the Table > Settings > Longtable (Tab).

>From there, you'll see an option for Caption at the bottom of the "Row"
settings. Just enable "Use long table" box, and then click on the
"Caption" box. It will add in a label for you to fill out.

Hope that helps.

Cheers,

Rob

PS, if you post other annoyances to the list, I'm sure that the
developers  would be happy to jump on them.


Re: Coloring

2012-05-08 Thread Merhebi, Bob
Oh ok; it was covered by the View/Update toolbar (have it next to it).

Thanks

On Tue 08 May 2012 01:55:56 PM EEST, Allen Barker wrote:
> On 05/08/2012 02:37 AM, Merhebi, Bob wrote:
>> Hello Allen&  Scott,
>>
>> Allen; I can't see any ab botton; I had to use Edit>  Text Style!
>
> It should be near the end of the "Extra" toolbar,
> when View > Toolbars > Extra is checked.
>
>> Thank you both for your replies. I appreciate it.
>>
>> On Tue 08 May 2012 07:51:14 AM EEST, Scott Kostyshak wrote:
>>> Allen Barker [allen.l.bar...@gmail.com]
>>> Sent: Tuesday, May 08, 2012 12:30 AM
>>>
 On Mon 07 May 2012 01:40:09 PM EEST, Merhebi, Bob wrote:
> Hello,
>
> I was wondering whether I could use coloring in equations? For
> example,
> when using Mathematica or python (in IDE), brackets&   the like get
> colored; I've seen a pdf document recently which involved such
> coloring;
> is that possible in LyX?
>>>
 You can select any text in a math inset and change the color
 via the "Text Style" dialog (the "ab" button).  I don't
 know of any way highlight formulas automatically.
>>>
 For highlighting program listings the listings insets do a
 nice job, and can use colors.
>>>
>>> You can create colored boxes and put equations in those, as
>>> explained in help>  Math>  Section 9.3 Colored Boxes
>>>
>>> Scott
>>
>> --
>> Sincerely Yours,
>> -Merhebi, Bob
>>
>> Thunderbird Signature
>>
>>
>
>

--
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature



Re: Coloring

2012-05-08 Thread Allen Barker

On 05/08/2012 02:37 AM, Merhebi, Bob wrote:

Hello Allen&  Scott,

Allen; I can't see any ab botton; I had to use Edit>  Text Style!


It should be near the end of the "Extra" toolbar,
when View > Toolbars > Extra is checked.


Thank you both for your replies. I appreciate it.

On Tue 08 May 2012 07:51:14 AM EEST, Scott Kostyshak wrote:

Allen Barker [allen.l.bar...@gmail.com]
Sent: Tuesday, May 08, 2012 12:30 AM


On Mon 07 May 2012 01:40:09 PM EEST, Merhebi, Bob wrote:

Hello,

I was wondering whether I could use coloring in equations? For example,
when using Mathematica or python (in IDE), brackets&   the like get
colored; I've seen a pdf document recently which involved such coloring;
is that possible in LyX?



You can select any text in a math inset and change the color
via the "Text Style" dialog (the "ab" button).  I don't
know of any way highlight formulas automatically.



For highlighting program listings the listings insets do a
nice job, and can use colors.


You can create colored boxes and put equations in those, as explained in help>  
Math>  Section 9.3 Colored Boxes

Scott


--
Sincerely Yours,
-Merhebi, Bob

Thunderbird Signature







Re: Getting lyx 2.0.3 for Ubuntu

2012-05-08 Thread Liviu Andronic
On Tue, May 8, 2012 at 9:10 AM, Guenter Milde  wrote:
>> https://launchpad.net/~lyx-devel/+archive/release
>
> Did someone test whether this works with Debian, too?
>
I wouldn't do that. To the best of my knowledge Ubuntu distros are not
binary compatible with Debian distros. If you want 2.0.3 on Debian, I
would suggest that you take it from Testing or Unstable [1].

Liviu

[1] http://packages.debian.org/search?keywords=lyx


Re: LyXHTML Visual Appearance

2012-05-08 Thread Gour
On Mon, 07 May 2012 15:17:50 -0400
Richard Heck  wrote:

> Yes. But it's all very modular, as the rest of the code is, so it's
> fairly easy to mess with different parts.

At the moment I'm trying to learn D...did C(++) long ago, but C++
evolved quite a bit since then, so I'm not sure how would I orient
myself with the code.

Otoh, do you maybe consider adding some Javascript code to the generated
output in order to get Search facility similar to the one available in
Sphinx?


Sincerely,
Gour

-- 
What is night for all beings is the time of awakening 
for the self-controlled; and the time of awakening for 
all beings is night for the introspective sage.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

-- 
In this endeavor there is no loss or diminution, 
and a little advancement on this path can protect 
one from the most dangerous type of fear.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


signature.asc
Description: PGP signature


Re: Getting lyx 2.0.3 for Ubuntu

2012-05-08 Thread Guenter Milde
On 2012-04-30, Scott Kostyshak wrote:

> [-- Type: text/plain, Encoding: quoted-printable --]

> From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of kaplae01 
> [ehud.kap...@gmail.com]

>>Could someone please reminds me where to get the latest Lyx (2.0.3) for 
>>ubuntu?
>>Their repositories are shamefully out of date (they offer 2.0.2).  I know it 
>>exists somewhere,
>>but cannot find it.  I tried to get it from getdeb but failed.

> Liviu maintains a stable PPA here:
> https://launchpad.net/~lyx-devel/+archive/release

Did someone test whether this works with Debian, too?

Günter