Re: Define some more logical charstyles

2007-08-28 Thread Richard Heck

Martin Vermeer wrote:

Attached. I'll put this in if people feel that this is the right direction.
  

Very much so, but you already know how I feel about this.

Note that character styles still are not enabled by default. It has been my
long standing wish that at least Noun and Emph would replace the similar
named 'font-like' styles.

(What to do with underbar? Underlining is generally discouraged, that's
what emph is for. number seems to be a RtL thing...)

- Martin

  



Index: stdcharstyles.inc
===
--- stdcharstyles.inc   (revision 19807)
+++ stdcharstyles.inc   (working copy)
@@ -1,5 +1,5 @@
 # Textclass definition file for LaTeX.
-# Author : Martin vermeer <[EMAIL PROTECTED]>
+# Author : Martin vermeer <[EMAIL PROTECTED]>
 # Character Styles definition
 
 Format 5

@@ -28,6 +28,34 @@
 End
 
 
+InsetLayout CharStyle:Strong

+   LyxType   charstyle
+   LabelString   strong
+   LatexType command
+   LatexName strong
+   Font
+ Series  Bold
+   EndFont
+   Preamble
+   \newcommand{\strong}[1]{\textbf{#1}}
+   EndPreamble
+End
+
+
+InsetLayout CharStyle:Code
+   LyxType   charstyle
+   LabelString   code
+   LatexType command
+   LatexName code
+   Font
+ Family  Typewriter
+   EndFont
+   Preamble
+   \newcommand{\code}[1]{\texttt{#1}}
+   EndPreamble
+End
+
+
 # Error fallback:
 InsetLayout CharStyle
LyxType   end
  



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Define some more logical charstyles

2007-08-28 Thread Martin Vermeer
Attached. I'll put this in if people feel that this is the right direction.

Note that character styles still are not enabled by default. It has been my
long standing wish that at least Noun and Emph would replace the similar
named 'font-like' styles.

(What to do with underbar? Underlining is generally discouraged, that's
what emph is for. number seems to be a RtL thing...)

- Martin

Index: stdcharstyles.inc
===
--- stdcharstyles.inc	(revision 19807)
+++ stdcharstyles.inc	(working copy)
@@ -1,5 +1,5 @@
 # Textclass definition file for LaTeX.
-# Author : Martin vermeer <[EMAIL PROTECTED]>
+# Author : Martin vermeer <[EMAIL PROTECTED]>
 # Character Styles definition
 
 Format 5
@@ -28,6 +28,34 @@
 End
 
 
+InsetLayout CharStyle:Strong
+	LyxType   charstyle
+	LabelString   strong
+	LatexType command
+	LatexName strong
+	Font
+	  Series  Bold
+	EndFont
+	Preamble
+	\newcommand{\strong}[1]{\textbf{#1}}
+	EndPreamble
+End
+
+
+InsetLayout CharStyle:Code
+	LyxType   charstyle
+	LabelString   code
+	LatexType command
+	LatexName code
+	Font
+	  Family  Typewriter
+	EndFont
+	Preamble
+	\newcommand{\code}[1]{\texttt{#1}}
+	EndPreamble
+End
+
+
 # Error fallback:
 InsetLayout CharStyle
 	LyxType   end