home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / lyx_sty.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  4KB  |  121 lines

  1. /*
  2.   This file is part of
  3.   ======================================================
  4.   
  5.   LyX, The Document Processor
  6.   
  7.   Copyright (C) 1995 Matthias Ettrich
  8.   Copyright (C) 1995-1998 The LyX Team.
  9.   ======================================================
  10.   */
  11.  
  12. #include <config.h>
  13.  
  14. #include "lyx_sty.h"
  15.  
  16. //\NeedsTeXFormat{LaTeX2e}
  17. //\ProvidesPackage{lyx}[1996/01/11 LLE v0.2 (LyX LaTeX Extensions)]
  18. //\message{LyX LaTeX Extensions (LLE v0.2) of 11-Jan-1996.} 
  19.  
  20. // include this always
  21. LString const lyx_def =
  22.     "\\newcommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\spacefactor1000}";
  23.     
  24. LString const lyxline_def =
  25.     "\\newcommand{\\lyxline}[1]{\n"
  26.     "  {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n"
  27.     "}";
  28.  
  29. LString const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
  30.  
  31. // for quotes without babel. This does not give perfect results, but
  32. // anybody serious about non-english quotes should use babel (JMarc).
  33.  
  34.  
  35.  
  36. LString const quotedblbase_def =
  37.     "\\ProvideTextCommandDefault{\\quotedblbase}{%\n"
  38.     "  \\raisebox{-1.4ex}[1ex][.5ex]{\\textquotedblright}%\n"
  39.     "  \\penalty10000\\hskip0em\relax%\n"
  40.     "}";
  41.  
  42. LString const quotesinglbase_def =
  43.     "\\ProvideTextCommandDefault{\\quotesinglbase}{%\n"
  44.     "  \\raisebox{-1.4ex}[1ex][.5ex]{\\textquoteright}%\n"
  45.     "  \\penalty10000\\hskip0em\relax%\n"
  46.     "}";
  47.  
  48. LString const guillemotleft_def =
  49.         "\\ProvideTextCommandDefault{\\guillemotleft}{%\n"
  50.         "  {\\usefont{U}{lasy}{m}{n}\\char\'50\\kern-.15em\\char\'50}%\n"
  51.         "\\penalty10000\\hskip0pt\\relax%\n"
  52.         "}";
  53.  
  54. LString const guillemotright_def =
  55.         "\\ProvideTextCommandDefault{\\guillemotright}{%\n"
  56.         "  \\penalty10000\\hskip0pt%\n"
  57.         "  {\\usefont{U}{lasy}{m}{n}\\char'51\\kern-.15em\\char'51}%\n"
  58.         "}";
  59.  
  60. LString const guilsinglleft_def =
  61.         "\\ProvideTextCommandDefault{\\guilsinglleft}{%\n"
  62.         "  {\\usefont{U}{lasy}{m}{n}\\char'50}%\n"
  63.         "  \\penalty10000\\hskip0pt\\relax%\n"
  64.         "}";
  65.  
  66. LString const guilsinglright_def =
  67.         "\\ProvideTextCommandDefault{\\guilsinglright}{%\n"
  68.         "  \\penalty10000\\hskip0pt%\n"
  69.         "  {\\usefont{U}{lasy}{m}{n}\\char'51}%\n"
  70.         "}";
  71.  
  72. LString const paragraphindent_def =
  73.     "\\newenvironment{LyXParagraphIndent}[1]%\n"
  74.     "{\n"
  75.     "  \\begin{list}{}{%\n"
  76.     "    \\setlength\\topsep{0pt}%\n"
  77.     "    \\addtolength{\\leftmargin}{#1}\n"
  78. //     "%%    \\addtolength{\\leftmargin}{#1\\textwidth}\n"
  79. //     "%%    \\setlength{\\textwidth}{#2\\textwidth}\n"
  80. //     "%%    \\setlength\\listparindent\\parindent%\n"
  81. //     "%%    \\setlength\\itemindent\\parindent%\n"
  82.     "    \\setlength\\parsep{0pt plus 1pt}%\n"
  83.     "  }\n"
  84.     "  \\item[]\n"
  85.     "}\n"
  86.     "{\\end{list}}\n";
  87.  
  88. LString const floatingfootnote_def =
  89.     "%% Special footnote code from the package 'stblftnt.sty'\n"
  90.     "%% Author: Robin Fairbairns -- Last revised Dec 13 1996\n"
  91.     "\\let\\SF@@footnote\\footnote\n"
  92.     "\\def\\footnote{\\ifx\\protect\\@typeset@protect\n"
  93.     "    \\expandafter\\SF@@footnote\n"
  94.     "  \\else\n"
  95.     "    \\expandafter\\SF@gobble@opt\n"
  96.     "  \\fi\n"
  97.     "}\n"
  98.     "\\expandafter\\def\\csname SF@gobble@opt \\endcsname{\\@ifnextchar[%]\n"
  99.     "  \\SF@gobble@twobracket\n"
  100.     "  \\@gobble\n"
  101.     "}\n"
  102.     "\\edef\\SF@gobble@opt{\\noexpand\\protect\n"
  103.     "  \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n"
  104.     "\\def\\SF@gobble@twobracket[#1]#2{}\n";
  105.  
  106. LString const minipageindent_def =
  107.     "%% This length is the backup for minipages of the \\parindent\n"
  108.     "\\newlength{\\LyXMinipageIndent}\n"
  109.     "\\setlength{\\LyXMinipageIndent}{\\parindent}\n";
  110.  
  111. LString const boldsymbol_def =
  112.     "%% Math mode macros for standard LaTeX users\n\n"
  113.     "\\newcommand{\\boldsymbol}[1]\n"
  114.     "{\\mbox{\\boldmath $#1$}}\n";
  115.  
  116. LString const binom_def =
  117.     "%% Binom\n"
  118.     "\\newcommand{\\binom}[2]\n"
  119.     "{{#1 \\choose #2}}\n";
  120.  
  121.