Re: Graphics Tools

2012-07-21 Thread Jürgen Spitzmüller
Paul A.  Rubin wrote:
  If I did use TiKZ, I'd prefer to put the drawing in a separate file.
 
 I do that for more complex diagrams, or ones I might hypothetically reuse 
 elsewhere. To embed them in LyX, I use either input file or include file
 (can't recall which). Works like a charm.

Input.

If you're on Linux, there's a nifty little tikz editor with instant preview 
and command completion:
http://kde-apps.org/content/show.php/ktikz?content=63188

Jürgen


Re: math macros via LaTex preamble

2012-07-21 Thread Allen Barker

On 07/20/2012 03:40 AM, Guenter Milde wrote:

Also, math-macros are document specific - defining a math-macro in one
document does not make it available in other ones. This is why my
documents include a file of commonly used math macros -- just like I
\input a file with commonly used preamble definitions in my LaTeX
documents.


Could you elaborate on the best way to include a file of
commonly-used math macros, in a way which is compatible
with Lyx?  I tend to use a lot of \DeclareMathOperator
commands in the preamble, for example.

I've avoided the Lyx macro stuff so far because it has
seemed to me to be *too* document specific.  I don't know
if it actually is, but I haven't found that information in
the preliminary searches I've conducted.

Any general comments on the best way to organize and
include preamble material in a way which is compatible
with Lyx would also be appreciated.




Re: Graphics Tools

2012-07-21 Thread Jürgen Spitzmüller
Paul A.  Rubin wrote:
  If I did use TiKZ, I'd prefer to put the drawing in a separate file.
 
 I do that for more complex diagrams, or ones I might hypothetically reuse 
 elsewhere. To embed them in LyX, I use either input file or include file
 (can't recall which). Works like a charm.

Input.

If you're on Linux, there's a nifty little tikz editor with instant preview 
and command completion:
http://kde-apps.org/content/show.php/ktikz?content=63188

Jürgen


Re: math macros via LaTex preamble

2012-07-21 Thread Allen Barker

On 07/20/2012 03:40 AM, Guenter Milde wrote:

Also, math-macros are document specific - defining a math-macro in one
document does not make it available in other ones. This is why my
documents include a file of commonly used math macros -- just like I
\input a file with commonly used preamble definitions in my LaTeX
documents.


Could you elaborate on the best way to include a file of
commonly-used math macros, in a way which is compatible
with Lyx?  I tend to use a lot of \DeclareMathOperator
commands in the preamble, for example.

I've avoided the Lyx macro stuff so far because it has
seemed to me to be *too* document specific.  I don't know
if it actually is, but I haven't found that information in
the preliminary searches I've conducted.

Any general comments on the best way to organize and
include preamble material in a way which is compatible
with Lyx would also be appreciated.




Re: Graphics Tools

2012-07-21 Thread Jürgen Spitzmüller
Paul A.  Rubin wrote:
> > If I did use TiKZ, I'd prefer to put the drawing in a separate file.
> 
> I do that for more complex diagrams, or ones I might hypothetically reuse 
> elsewhere. To embed them in LyX, I use either "input file" or "include file"
> (can't recall which). Works like a charm.

Input.

If you're on Linux, there's a nifty little tikz editor with instant preview 
and command completion:
http://kde-apps.org/content/show.php/ktikz?content=63188

Jürgen


Re: math macros via LaTex preamble

2012-07-21 Thread Allen Barker

On 07/20/2012 03:40 AM, Guenter Milde wrote:

Also, math-macros are document specific - defining a math-macro in one
document does not make it available in other ones. This is why my
documents include a file of commonly used math macros -- just like I
\input a file with commonly used preamble definitions in my LaTeX
documents.


Could you elaborate on the best way to include a file of
commonly-used math macros, in a way which is compatible
with Lyx?  I tend to use a lot of \DeclareMathOperator
commands in the preamble, for example.

I've avoided the Lyx macro stuff so far because it has
seemed to me to be *too* document specific.  I don't know
if it actually is, but I haven't found that information in
the preliminary searches I've conducted.

Any general comments on the "best" way to organize and
include preamble material in a way which is compatible
with Lyx would also be appreciated.