Re: changing font family of greyed-out text?

2009-05-14 Thread Andrew Sullivan
On Thu, May 14, 2009 at 07:49:53AM +, Guenter Milde wrote:
 You already have the TODOS in a branch, fine. So you do not need the
 special turnable into invisible notes feature of greyed-out notes and
 are free to use any markup in your branch, true?.

Exactly.  (That's part of my problem -- I'm not that bright, and I
didn't exactly know how to mark up things only in that branch.  Is it
possible?  I tried changing the default font family on that branch,
but it changed the whole document.)
 
 For smaller remarks I'd recommend margin notes.
 Otherwise, some convention like emphasized quotes or paragraphs in
 small caps are markup variants that can be achieved with just some
 keystrokes/clicks.
 
 You might even set up a custom keybinding for your markup choice.

Hmm, this is a good idea.  Thanks!

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: changing font family of greyed-out text?

2009-05-14 Thread Dominik Waßenhoven
Andrew Sullivan wrote:

 I know how to change the colour of greyed-out notes, but I'd like to
 be able to change the font family for them all.  Even if I change the
 colour to blue, when people print it the blue shows up as grey, and it
 doesn't stand out enough from the rest of the page.  
 [...]
 Since there didn't seem to be a fast, cheap, and easy way to define
 the body text properties for things in one branch and not another, I
 thought I'd use the greyed-out notes and just put them all in one
 branch.  This works, but the notes are still not distictive enough in
 printed copies.  Since I'm working with some people who often mark up
 on paper, I need something that will be obvious when printed.

I use the following for greyed-out notes (put it in your preamble):
8---8
\usepackage{framed}
\usepackage{etoolbox}
\usepackage{marginnote}
\newbool{lyx:iffootnote}
\boolfalse{lyx:iffootnote}
\let\origfootnote=\footnote 
\def\footnote#1{\origfootnote{\bgroup\booltrue{lyx:iffootnote}#1\egroup}}
\makeatletter
\...@ifundefined{lyxgreyedout}{}{%
  \renewenvironment{lyxgreyedout}%
{\ifbool{lyx:iffootnote}
  {\marginnote{%
 \Large%
 $\leftarrow$}
   \bgroup\space$\rightarrow$\itshape}%
  {\framed}}
{\ifbool{lyx:iffootnote}
  {\egroup$\leftarrow$}%
  {\endframed}}}
\makeatother
8---8

This way, you have a box when greyed-out is used in the text, and you
have a sign in the margin as well as signs in the text if greyed-out is
used in footnotes.

Of course you can customize the font (emphasize, sans serif, whatever)
just for the notes.

Regards,
Dominik.-



Re: changing font family of greyed-out text?

2009-05-14 Thread rgheck

Dominik Waßenhoven wrote:

I use the following for greyed-out notes (put it in your preamble):

  
This is a nice idea, but note that you could do also this in such a way 
that you have BOTH the original greyed out note available, if you want 
it, and this version. All you have to do is create a custom inset on the 
model of the one I posted before. Then you can put that in a module and 
use it across documents without having to cut and paste preamble code.


Richard


8---8
\usepackage{framed}
\usepackage{etoolbox}
\usepackage{marginnote}
\newbool{lyx:iffootnote}
\boolfalse{lyx:iffootnote}
\let\origfootnote=\footnote 
\def\footnote#1{\origfootnote{\bgroup\booltrue{lyx:iffootnote}#1\egroup}}

\makeatletter
\...@ifundefined{lyxgreyedout}{}{%
  \renewenvironment{lyxgreyedout}%
{\ifbool{lyx:iffootnote}
  {\marginnote{%
 \Large%
 $\leftarrow$}
   \bgroup\space$\rightarrow$\itshape}%
  {\framed}}
{\ifbool{lyx:iffootnote}
  {\egroup$\leftarrow$}%
  {\endframed}}}
\makeatother
8---8

This way, you have a box when greyed-out is used in the text, and you
have a sign in the margin as well as signs in the text if greyed-out is
used in footnotes.

Of course you can customize the font (emphasize, sans serif, whatever)
just for the notes.

Regards,
Dominik.-
  




Re: changing font family of greyed-out text?

2009-05-14 Thread Dominik Waßenhoven
rgheck wrote:

 This is a nice idea, but note that you could do also this in such a way 
 that you have BOTH the original greyed out note available, if you want 
 it, and this version. All you have to do is create a custom inset on the 
 model of the one I posted before. 

Sorry, I missed that one. Is it also possible to alter an existing inset
via a module, so that I can redefine the greyed out note? (I am not at
all familiar with modules.)


Regards,
Dominik.-



Re: changing font family of greyed-out text?

2009-05-14 Thread rgheck

Dominik Waßenhoven wrote:

rgheck wrote:

  
This is a nice idea, but note that you could do also this in such a way 
that you have BOTH the original greyed out note available, if you want 
it, and this version. All you have to do is create a custom inset on the 
model of the one I posted before. 



Sorry, I missed that one. 

  

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg73924.html


Is it also possible to alter an existing inset
via a module, so that I can redefine the greyed out note? (I am not at
all familiar with modules.)

  
Yes. Anything you can do with layout you can do with a module. Modules 
are just bits of layout that can be included in various documents via 
DocumentSettingsModules. So you can redefined the greyed out note 
(which is defined in stdinsets.inc) or define a new inset and keep the 
old one.


Richard



Re: changing font family of greyed-out text?

2009-05-14 Thread Andrew Sullivan
On Thu, May 14, 2009 at 07:49:53AM +, Guenter Milde wrote:
 You already have the TODOS in a branch, fine. So you do not need the
 special turnable into invisible notes feature of greyed-out notes and
 are free to use any markup in your branch, true?.

Exactly.  (That's part of my problem -- I'm not that bright, and I
didn't exactly know how to mark up things only in that branch.  Is it
possible?  I tried changing the default font family on that branch,
but it changed the whole document.)
 
 For smaller remarks I'd recommend margin notes.
 Otherwise, some convention like emphasized quotes or paragraphs in
 small caps are markup variants that can be achieved with just some
 keystrokes/clicks.
 
 You might even set up a custom keybinding for your markup choice.

Hmm, this is a good idea.  Thanks!

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: changing font family of greyed-out text?

2009-05-14 Thread Dominik Waßenhoven
Andrew Sullivan wrote:

 I know how to change the colour of greyed-out notes, but I'd like to
 be able to change the font family for them all.  Even if I change the
 colour to blue, when people print it the blue shows up as grey, and it
 doesn't stand out enough from the rest of the page.  
 [...]
 Since there didn't seem to be a fast, cheap, and easy way to define
 the body text properties for things in one branch and not another, I
 thought I'd use the greyed-out notes and just put them all in one
 branch.  This works, but the notes are still not distictive enough in
 printed copies.  Since I'm working with some people who often mark up
 on paper, I need something that will be obvious when printed.

I use the following for greyed-out notes (put it in your preamble):
8---8
\usepackage{framed}
\usepackage{etoolbox}
\usepackage{marginnote}
\newbool{lyx:iffootnote}
\boolfalse{lyx:iffootnote}
\let\origfootnote=\footnote 
\def\footnote#1{\origfootnote{\bgroup\booltrue{lyx:iffootnote}#1\egroup}}
\makeatletter
\...@ifundefined{lyxgreyedout}{}{%
  \renewenvironment{lyxgreyedout}%
{\ifbool{lyx:iffootnote}
  {\marginnote{%
 \Large%
 $\leftarrow$}
   \bgroup\space$\rightarrow$\itshape}%
  {\framed}}
{\ifbool{lyx:iffootnote}
  {\egroup$\leftarrow$}%
  {\endframed}}}
\makeatother
8---8

This way, you have a box when greyed-out is used in the text, and you
have a sign in the margin as well as signs in the text if greyed-out is
used in footnotes.

Of course you can customize the font (emphasize, sans serif, whatever)
just for the notes.

Regards,
Dominik.-



Re: changing font family of greyed-out text?

2009-05-14 Thread rgheck

Dominik Waßenhoven wrote:

I use the following for greyed-out notes (put it in your preamble):

  
This is a nice idea, but note that you could do also this in such a way 
that you have BOTH the original greyed out note available, if you want 
it, and this version. All you have to do is create a custom inset on the 
model of the one I posted before. Then you can put that in a module and 
use it across documents without having to cut and paste preamble code.


Richard


8---8
\usepackage{framed}
\usepackage{etoolbox}
\usepackage{marginnote}
\newbool{lyx:iffootnote}
\boolfalse{lyx:iffootnote}
\let\origfootnote=\footnote 
\def\footnote#1{\origfootnote{\bgroup\booltrue{lyx:iffootnote}#1\egroup}}

\makeatletter
\...@ifundefined{lyxgreyedout}{}{%
  \renewenvironment{lyxgreyedout}%
{\ifbool{lyx:iffootnote}
  {\marginnote{%
 \Large%
 $\leftarrow$}
   \bgroup\space$\rightarrow$\itshape}%
  {\framed}}
{\ifbool{lyx:iffootnote}
  {\egroup$\leftarrow$}%
  {\endframed}}}
\makeatother
8---8

This way, you have a box when greyed-out is used in the text, and you
have a sign in the margin as well as signs in the text if greyed-out is
used in footnotes.

Of course you can customize the font (emphasize, sans serif, whatever)
just for the notes.

Regards,
Dominik.-
  




Re: changing font family of greyed-out text?

2009-05-14 Thread Dominik Waßenhoven
rgheck wrote:

 This is a nice idea, but note that you could do also this in such a way 
 that you have BOTH the original greyed out note available, if you want 
 it, and this version. All you have to do is create a custom inset on the 
 model of the one I posted before. 

Sorry, I missed that one. Is it also possible to alter an existing inset
via a module, so that I can redefine the greyed out note? (I am not at
all familiar with modules.)


Regards,
Dominik.-



Re: changing font family of greyed-out text?

2009-05-14 Thread rgheck

Dominik Waßenhoven wrote:

rgheck wrote:

  
This is a nice idea, but note that you could do also this in such a way 
that you have BOTH the original greyed out note available, if you want 
it, and this version. All you have to do is create a custom inset on the 
model of the one I posted before. 



Sorry, I missed that one. 

  

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg73924.html


Is it also possible to alter an existing inset
via a module, so that I can redefine the greyed out note? (I am not at
all familiar with modules.)

  
Yes. Anything you can do with layout you can do with a module. Modules 
are just bits of layout that can be included in various documents via 
DocumentSettingsModules. So you can redefined the greyed out note 
(which is defined in stdinsets.inc) or define a new inset and keep the 
old one.


Richard



Re: changing font family of greyed-out text?

2009-05-14 Thread Andrew Sullivan
On Thu, May 14, 2009 at 07:49:53AM +, Guenter Milde wrote:
> You already have the "TODOS" in a branch, fine. So you do not need the
> special "turnable into invisible notes" feature of greyed-out notes and
> are free to use any markup in your branch, true?.

Exactly.  (That's part of my problem -- I'm not that bright, and I
didn't exactly know how to mark up things only in that branch.  Is it
possible?  I tried changing the default font family on that branch,
but it changed the whole document.)
 
> For smaller remarks I'd recommend margin notes.
> Otherwise, some convention like "emphasized quotes" or "paragraphs in
> small caps" are markup variants that can be achieved with just some
> keystrokes/clicks.
> 
> You might even set up a custom keybinding for your markup choice.

Hmm, this is a good idea.  Thanks!

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: changing font family of greyed-out text?

2009-05-14 Thread Dominik Waßenhoven
Andrew Sullivan wrote:

> I know how to change the colour of greyed-out notes, but I'd like to
> be able to change the font family for them all.  Even if I change the
> colour to blue, when people print it the blue shows up as grey, and it
> doesn't stand out enough from the rest of the page.  
> [...]
> Since there didn't seem to be a fast, cheap, and easy way to define
> the body text properties for things in one branch and not another, I
> thought I'd use the greyed-out notes and just put them all in one
> branch.  This works, but the notes are still not distictive enough in
> printed copies.  Since I'm working with some people who often mark up
> on paper, I need something that will be obvious when printed.

I use the following for greyed-out notes (put it in your preamble):
8<--->8
\usepackage{framed}
\usepackage{etoolbox}
\usepackage{marginnote}
\newbool{lyx:iffootnote}
\boolfalse{lyx:iffootnote}
\let\origfootnote=\footnote 
\def\footnote#1{\origfootnote{\bgroup\booltrue{lyx:iffootnote}#1\egroup}}
\makeatletter
\...@ifundefined{lyxgreyedout}{}{%
  \renewenvironment{lyxgreyedout}%
{\ifbool{lyx:iffootnote}
  {\marginnote{%
 \Large%
 $\leftarrow$}
   \bgroup\space$\rightarrow$\itshape}%
  {\framed}}
{\ifbool{lyx:iffootnote}
  {\egroup$\leftarrow$}%
  {\endframed}}}
\makeatother
8<--->8

This way, you have a box when greyed-out is used in the text, and you
have a sign in the margin as well as signs in the text if greyed-out is
used in footnotes.

Of course you can customize the font (emphasize, sans serif, whatever)
just for the notes.

Regards,
Dominik.-



Re: changing font family of greyed-out text?

2009-05-14 Thread rgheck

Dominik Waßenhoven wrote:

I use the following for greyed-out notes (put it in your preamble):

  
This is a nice idea, but note that you could do also this in such a way 
that you have BOTH the original greyed out note available, if you want 
it, and this version. All you have to do is create a custom inset on the 
model of the one I posted before. Then you can put that in a module and 
use it across documents without having to cut and paste preamble code.


Richard


8<--->8
\usepackage{framed}
\usepackage{etoolbox}
\usepackage{marginnote}
\newbool{lyx:iffootnote}
\boolfalse{lyx:iffootnote}
\let\origfootnote=\footnote 
\def\footnote#1{\origfootnote{\bgroup\booltrue{lyx:iffootnote}#1\egroup}}

\makeatletter
\...@ifundefined{lyxgreyedout}{}{%
  \renewenvironment{lyxgreyedout}%
{\ifbool{lyx:iffootnote}
  {\marginnote{%
 \Large%
 $\leftarrow$}
   \bgroup\space$\rightarrow$\itshape}%
  {\framed}}
{\ifbool{lyx:iffootnote}
  {\egroup$\leftarrow$}%
  {\endframed}}}
\makeatother
8<--->8

This way, you have a box when greyed-out is used in the text, and you
have a sign in the margin as well as signs in the text if greyed-out is
used in footnotes.

Of course you can customize the font (emphasize, sans serif, whatever)
just for the notes.

Regards,
Dominik.-
  




Re: changing font family of greyed-out text?

2009-05-14 Thread Dominik Waßenhoven
rgheck wrote:

> This is a nice idea, but note that you could do also this in such a way 
> that you have BOTH the original greyed out note available, if you want 
> it, and this version. All you have to do is create a custom inset on the 
> model of the one I posted before. 

Sorry, I missed that one. Is it also possible to alter an existing inset
via a module, so that I can redefine the greyed out note? (I am not at
all familiar with modules.)


Regards,
Dominik.-



Re: changing font family of greyed-out text?

2009-05-14 Thread rgheck

Dominik Waßenhoven wrote:

rgheck wrote:

  
This is a nice idea, but note that you could do also this in such a way 
that you have BOTH the original greyed out note available, if you want 
it, and this version. All you have to do is create a custom inset on the 
model of the one I posted before. 



Sorry, I missed that one. 

  

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg73924.html


Is it also possible to alter an existing inset
via a module, so that I can redefine the greyed out note? (I am not at
all familiar with modules.)

  
Yes. Anything you can do with layout you can do with a module. Modules 
are just bits of layout that can be included in various documents via 
Document>Settings>Modules. So you can redefined the greyed out note 
(which is defined in stdinsets.inc) or define a new inset and keep the 
old one.


Richard



Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread rgheck

Andrew Sullivan wrote:

Hi,

I know how to change the colour of greyed-out notes, but I'd like to
be able to change the font family for them all.  Even if I change the
colour to blue, when people print it the blue shows up as grey, and it
doesn't stand out enough from the rest of the page.  


Actually, rather than ask for a specific solution (interesting as this
one is to me), maybe I'll describe what I'm trying to do.  I'm
attempting to use the greyed-out text to highlight things that need
addressing in a document.  So open questions go into greyed-out notes
that are also, as it happens, in a branch of the document.  This way I
can always get a clean copy or a copy with these open questions in.

Since there didn't seem to be a fast, cheap, and easy way to define
the body text properties for things in one branch and not another, I
thought I'd use the greyed-out notes and just put them all in one
branch.  This works, but the notes are still not distictive enough in
printed copies.  Since I'm working with some people who often mark up
on paper, I need something that will be obvious when printed.

Clue sticks much appreciated.  If I've overlooked something obvious
that I should have read, please feel free to raspberry me.  Thanks.

  
I'm guessing that you are just redefining the font color, etc, for 
display in LyX, rather than redefining the LaTeX. The two are separate.


LyX inserts this into the preamble for greyed-out notes:

%% The greyedout annotation environment

\newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

So what you need to do is put something like this into your preamble:

\renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
Untested, but it should work.


A better way to go is to define a custom flex inset in a module. Then 
you can use it in lots of different documents. Something like this:


#\DeclareLyXModule{bluenote}
#DescriptionBegin
#Adds a blue note inset.
#DescriptionEnd

Format 11

InsetLayout Custom:Bluenote
LyXType custom
LatexName bluenote
LatexType environment
Decoration classic
Font
Color blue
EndFont
MultiPar true
LabelString Important

Preamble
# Of course, you can do anything you like here.

\newenvironment{bluenote}{\textcolor{blue}\bgroup}{\egroup}

EndPreamble
End


Save this as bluenote.module in your layout directory, reconfigure, and 
choose it in DocumentSettingsModules. You'll then find it under 
InsertCustom Insets. If you want to bind a key to it, bind it to:

flex-insert Custom:bluenote

And now you have a blue note inset for easy use in any document.

Richard



Re: Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread Andrew Sullivan
On Wed, May 13, 2009 at 05:37:35PM -0400, rgheck wrote:
   
 I'm guessing that you are just redefining the font color, etc, for  
 display in LyX, rather than redefining the LaTeX. The two are separate.

Oh, sorry I wasn't clear.  I want exactly the opposite.  The people
I'm collaborating with don't have or use LyX, and don't want to.  So
I'm producing documents that they read and comment on, but don't
change.  It's a little awkward, but it's better than using Word and
having it reformat everything mysteriously from time to time.
 LyX inserts this into the preamble for greyed-out notes:

 %% The greyedout annotation environment

 \newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

 So what you need to do is put something like this into your preamble:

 \renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
 Untested, but it should work.

That does work (it's what I've been doing).  What I _actually_ want to
do, however, is also change the font family of the output.  That is,
I'm normally using a serif body type (Almost European), so I want
these comments as sans serif in the output I produce.  This is because
changing the colour doesn't help you visually very much if you print
it on a monochrome printer, unless the greyed out notes are very light
(in which case they're hard to read).

Clearly, what I need to know is how to change the font family for just
one environment.  The necessary pages of The Fine Manual have so far
eluded me.

Thanks for your help!

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


changing font family of greyed-out text?

2009-05-13 Thread Andrew Sullivan
Hi,

I know how to change the colour of greyed-out notes, but I'd like to
be able to change the font family for them all.  Even if I change the
colour to blue, when people print it the blue shows up as grey, and it
doesn't stand out enough from the rest of the page.  

Actually, rather than ask for a specific solution (interesting as this
one is to me), maybe I'll describe what I'm trying to do.  I'm
attempting to use the greyed-out text to highlight things that need
addressing in a document.  So open questions go into greyed-out notes
that are also, as it happens, in a branch of the document.  This way I
can always get a clean copy or a copy with these open questions in.

Since there didn't seem to be a fast, cheap, and easy way to define
the body text properties for things in one branch and not another, I
thought I'd use the greyed-out notes and just put them all in one
branch.  This works, but the notes are still not distictive enough in
printed copies.  Since I'm working with some people who often mark up
on paper, I need something that will be obvious when printed.

Clue sticks much appreciated.  If I've overlooked something obvious
that I should have read, please feel free to raspberry me.  Thanks.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread rgheck

Andrew Sullivan wrote:

On Wed, May 13, 2009 at 05:37:35PM -0400, rgheck wrote:
  
  
  
I'm guessing that you are just redefining the font color, etc, for  
display in LyX, rather than redefining the LaTeX. The two are separate.



Oh, sorry I wasn't clear.  I want exactly the opposite.  The people
I'm collaborating with don't have or use LyX, and don't want to.  So
I'm producing documents that they read and comment on, but don't
change.  It's a little awkward, but it's better than using Word and
having it reformat everything mysteriously from time to time.
  

LyX inserts this into the preamble for greyed-out notes:

%% The greyedout annotation environment

\newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

So what you need to do is put something like this into your preamble:

\renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
Untested, but it should work.



That does work (it's what I've been doing).  What I _actually_ want to
do, however, is also change the font family of the output.  That is,
I'm normally using a serif body type (Almost European), so I want
these comments as sans serif in the output I produce.  This is because
changing the colour doesn't help you visually very much if you print
it on a monochrome printer, unless the greyed out notes are very light
(in which case they're hard to read).

Clearly, what I need to know is how to change the font family for just
one environment.  The necessary pages of The Fine Manual have so far
eluded me.

  

What font family do you want? Try here:
http://www.emerson.emory.edu/services/latex/latex_168.html#SEC168
You can put whatever font commands you want in place of \textcolor{blue}.

rh



Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread rgheck

Andrew Sullivan wrote:

Hi,

I know how to change the colour of greyed-out notes, but I'd like to
be able to change the font family for them all.  Even if I change the
colour to blue, when people print it the blue shows up as grey, and it
doesn't stand out enough from the rest of the page.  


Actually, rather than ask for a specific solution (interesting as this
one is to me), maybe I'll describe what I'm trying to do.  I'm
attempting to use the greyed-out text to highlight things that need
addressing in a document.  So open questions go into greyed-out notes
that are also, as it happens, in a branch of the document.  This way I
can always get a clean copy or a copy with these open questions in.

Since there didn't seem to be a fast, cheap, and easy way to define
the body text properties for things in one branch and not another, I
thought I'd use the greyed-out notes and just put them all in one
branch.  This works, but the notes are still not distictive enough in
printed copies.  Since I'm working with some people who often mark up
on paper, I need something that will be obvious when printed.

Clue sticks much appreciated.  If I've overlooked something obvious
that I should have read, please feel free to raspberry me.  Thanks.

  
I'm guessing that you are just redefining the font color, etc, for 
display in LyX, rather than redefining the LaTeX. The two are separate.


LyX inserts this into the preamble for greyed-out notes:

%% The greyedout annotation environment

\newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

So what you need to do is put something like this into your preamble:

\renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
Untested, but it should work.


A better way to go is to define a custom flex inset in a module. Then 
you can use it in lots of different documents. Something like this:


#\DeclareLyXModule{bluenote}
#DescriptionBegin
#Adds a blue note inset.
#DescriptionEnd

Format 11

InsetLayout Custom:Bluenote
LyXType custom
LatexName bluenote
LatexType environment
Decoration classic
Font
Color blue
EndFont
MultiPar true
LabelString Important

Preamble
# Of course, you can do anything you like here.

\newenvironment{bluenote}{\textcolor{blue}\bgroup}{\egroup}

EndPreamble
End


Save this as bluenote.module in your layout directory, reconfigure, and 
choose it in DocumentSettingsModules. You'll then find it under 
InsertCustom Insets. If you want to bind a key to it, bind it to:

flex-insert Custom:bluenote

And now you have a blue note inset for easy use in any document.

Richard



Re: Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread Andrew Sullivan
On Wed, May 13, 2009 at 05:37:35PM -0400, rgheck wrote:
   
 I'm guessing that you are just redefining the font color, etc, for  
 display in LyX, rather than redefining the LaTeX. The two are separate.

Oh, sorry I wasn't clear.  I want exactly the opposite.  The people
I'm collaborating with don't have or use LyX, and don't want to.  So
I'm producing documents that they read and comment on, but don't
change.  It's a little awkward, but it's better than using Word and
having it reformat everything mysteriously from time to time.
 LyX inserts this into the preamble for greyed-out notes:

 %% The greyedout annotation environment

 \newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

 So what you need to do is put something like this into your preamble:

 \renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
 Untested, but it should work.

That does work (it's what I've been doing).  What I _actually_ want to
do, however, is also change the font family of the output.  That is,
I'm normally using a serif body type (Almost European), so I want
these comments as sans serif in the output I produce.  This is because
changing the colour doesn't help you visually very much if you print
it on a monochrome printer, unless the greyed out notes are very light
(in which case they're hard to read).

Clearly, what I need to know is how to change the font family for just
one environment.  The necessary pages of The Fine Manual have so far
eluded me.

Thanks for your help!

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


changing font family of greyed-out text?

2009-05-13 Thread Andrew Sullivan
Hi,

I know how to change the colour of greyed-out notes, but I'd like to
be able to change the font family for them all.  Even if I change the
colour to blue, when people print it the blue shows up as grey, and it
doesn't stand out enough from the rest of the page.  

Actually, rather than ask for a specific solution (interesting as this
one is to me), maybe I'll describe what I'm trying to do.  I'm
attempting to use the greyed-out text to highlight things that need
addressing in a document.  So open questions go into greyed-out notes
that are also, as it happens, in a branch of the document.  This way I
can always get a clean copy or a copy with these open questions in.

Since there didn't seem to be a fast, cheap, and easy way to define
the body text properties for things in one branch and not another, I
thought I'd use the greyed-out notes and just put them all in one
branch.  This works, but the notes are still not distictive enough in
printed copies.  Since I'm working with some people who often mark up
on paper, I need something that will be obvious when printed.

Clue sticks much appreciated.  If I've overlooked something obvious
that I should have read, please feel free to raspberry me.  Thanks.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread rgheck

Andrew Sullivan wrote:

On Wed, May 13, 2009 at 05:37:35PM -0400, rgheck wrote:
  
  
  
I'm guessing that you are just redefining the font color, etc, for  
display in LyX, rather than redefining the LaTeX. The two are separate.



Oh, sorry I wasn't clear.  I want exactly the opposite.  The people
I'm collaborating with don't have or use LyX, and don't want to.  So
I'm producing documents that they read and comment on, but don't
change.  It's a little awkward, but it's better than using Word and
having it reformat everything mysteriously from time to time.
  

LyX inserts this into the preamble for greyed-out notes:

%% The greyedout annotation environment

\newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

So what you need to do is put something like this into your preamble:

\renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
Untested, but it should work.



That does work (it's what I've been doing).  What I _actually_ want to
do, however, is also change the font family of the output.  That is,
I'm normally using a serif body type (Almost European), so I want
these comments as sans serif in the output I produce.  This is because
changing the colour doesn't help you visually very much if you print
it on a monochrome printer, unless the greyed out notes are very light
(in which case they're hard to read).

Clearly, what I need to know is how to change the font family for just
one environment.  The necessary pages of The Fine Manual have so far
eluded me.

  

What font family do you want? Try here:
http://www.emerson.emory.edu/services/latex/latex_168.html#SEC168
You can put whatever font commands you want in place of \textcolor{blue}.

rh



Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread rgheck

Andrew Sullivan wrote:

Hi,

I know how to change the colour of greyed-out notes, but I'd like to
be able to change the font family for them all.  Even if I change the
colour to blue, when people print it the blue shows up as grey, and it
doesn't stand out enough from the rest of the page.  


Actually, rather than ask for a specific solution (interesting as this
one is to me), maybe I'll describe what I'm trying to do.  I'm
attempting to use the greyed-out text to highlight things that need
addressing in a document.  So open questions go into greyed-out notes
that are also, as it happens, in a branch of the document.  This way I
can always get a "clean" copy or a copy with these open questions in.

Since there didn't seem to be a fast, cheap, and easy way to define
the body text properties for things in one branch and not another, I
thought I'd use the greyed-out notes and just put them all in one
branch.  This works, but the notes are still not distictive enough in
printed copies.  Since I'm working with some people who often mark up
on paper, I need something that will be obvious when printed.

Clue sticks much appreciated.  If I've overlooked something obvious
that I should have read, please feel free to raspberry me.  Thanks.

  
I'm guessing that you are just redefining the font color, etc, for 
display in LyX, rather than redefining the LaTeX. The two are separate.


LyX inserts this into the preamble for greyed-out notes:

%% The greyedout annotation environment

\newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

So what you need to do is put something like this into your preamble:

\renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
Untested, but it should work.


A better way to go is to define a custom flex inset in a module. Then 
you can use it in lots of different documents. Something like this:


#\DeclareLyXModule{bluenote}
#DescriptionBegin
#Adds a blue note inset.
#DescriptionEnd

Format 11

InsetLayout Custom:Bluenote
LyXType custom
LatexName bluenote
LatexType environment
Decoration classic
Font
Color blue
EndFont
MultiPar true
LabelString Important

Preamble
# Of course, you can do anything you like here.

\newenvironment{bluenote}{\textcolor{blue}\bgroup}{\egroup}

EndPreamble
End


Save this as bluenote.module in your layout directory, reconfigure, and 
choose it in Document>Settings>Modules. You'll then find it under 
Insert>Custom Insets. If you want to bind a key to it, bind it to:

flex-insert "Custom:bluenote"

And now you have a blue note inset for easy use in any document.

Richard



Re: Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread Andrew Sullivan
On Wed, May 13, 2009 at 05:37:35PM -0400, rgheck wrote:
>>   
> I'm guessing that you are just redefining the font color, etc, for  
> display in LyX, rather than redefining the LaTeX. The two are separate.

Oh, sorry I wasn't clear.  I want exactly the opposite.  The people
I'm collaborating with don't have or use LyX, and don't want to.  So
I'm producing documents that they read and comment on, but don't
change.  It's a little awkward, but it's better than using Word and
having it reformat everything mysteriously from time to time.
> LyX inserts this into the preamble for greyed-out notes:
>
> %% The greyedout annotation environment
>
> \newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}
>
> So what you need to do is put something like this into your preamble:
>
> \renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
> Untested, but it should work.

That does work (it's what I've been doing).  What I _actually_ want to
do, however, is also change the font family of the output.  That is,
I'm normally using a serif body type (Almost European), so I want
these comments as sans serif in the output I produce.  This is because
changing the colour doesn't help you visually very much if you print
it on a monochrome printer, unless the greyed out notes are very light
(in which case they're hard to read).

Clearly, what I need to know is how to change the font family for just
one environment.  The necessary pages of The Fine Manual have so far
eluded me.

Thanks for your help!

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


changing font family of greyed-out text?

2009-05-13 Thread Andrew Sullivan
Hi,

I know how to change the colour of greyed-out notes, but I'd like to
be able to change the font family for them all.  Even if I change the
colour to blue, when people print it the blue shows up as grey, and it
doesn't stand out enough from the rest of the page.  

Actually, rather than ask for a specific solution (interesting as this
one is to me), maybe I'll describe what I'm trying to do.  I'm
attempting to use the greyed-out text to highlight things that need
addressing in a document.  So open questions go into greyed-out notes
that are also, as it happens, in a branch of the document.  This way I
can always get a "clean" copy or a copy with these open questions in.

Since there didn't seem to be a fast, cheap, and easy way to define
the body text properties for things in one branch and not another, I
thought I'd use the greyed-out notes and just put them all in one
branch.  This works, but the notes are still not distictive enough in
printed copies.  Since I'm working with some people who often mark up
on paper, I need something that will be obvious when printed.

Clue sticks much appreciated.  If I've overlooked something obvious
that I should have read, please feel free to raspberry me.  Thanks.

A

-- 
Andrew Sullivan
a...@shinkuro.com
Shinkuro, Inc.


Re: Module Example [Was: changing font family of greyed-out text?]

2009-05-13 Thread rgheck

Andrew Sullivan wrote:

On Wed, May 13, 2009 at 05:37:35PM -0400, rgheck wrote:
  
  
  
I'm guessing that you are just redefining the font color, etc, for  
display in LyX, rather than redefining the LaTeX. The two are separate.



Oh, sorry I wasn't clear.  I want exactly the opposite.  The people
I'm collaborating with don't have or use LyX, and don't want to.  So
I'm producing documents that they read and comment on, but don't
change.  It's a little awkward, but it's better than using Word and
having it reformat everything mysteriously from time to time.
  

LyX inserts this into the preamble for greyed-out notes:

%% The greyedout annotation environment

\newenvironment{lyxgreyedout}{\textcolor[gray]{0.8}\bgroup}{\egroup}

So what you need to do is put something like this into your preamble:

\renewenvironment{lyxgreyedout}{\textcolor{blue}\bgroup}{\egroup}
Untested, but it should work.



That does work (it's what I've been doing).  What I _actually_ want to
do, however, is also change the font family of the output.  That is,
I'm normally using a serif body type (Almost European), so I want
these comments as sans serif in the output I produce.  This is because
changing the colour doesn't help you visually very much if you print
it on a monochrome printer, unless the greyed out notes are very light
(in which case they're hard to read).

Clearly, what I need to know is how to change the font family for just
one environment.  The necessary pages of The Fine Manual have so far
eluded me.

  

What font family do you want? Try here:
http://www.emerson.emory.edu/services/latex/latex_168.html#SEC168
You can put whatever font commands you want in place of \textcolor{blue}.

rh