X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyx_sty.C;h=01945fd18118112f78cee59ba6e366f4c1a8d2ae;hb=37d42d45f3f4a5d3e916a080af50b37ae4a9d118;hp=8b188e296652546dc3956baa2524d1ec58f82185;hpb=8283e978f8d621041c432b9b88a476bfd567385c;p=lyx.git diff --git a/src/lyx_sty.C b/src/lyx_sty.C index 8b188e2966..01945fd181 100644 --- a/src/lyx_sty.C +++ b/src/lyx_sty.C @@ -1,26 +1,24 @@ -/* This file is part of - * ====================================================== +/** + * \file lyx_sty.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Processor + * \author Lars Gullik Bjønnes * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2001 The LyX Team. - * - * ====================================================== */ + * Full author contact details are available in file CREDITS. + */ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include "lyx_sty.h" +using std::string; + + //\NeedsTeXFormat{LaTeX2e} //\ProvidesPackage{lyx}[1996/01/11 LLE v0.2 (LyX LaTeX Extensions)] //\message{LyX LaTeX Extensions (LLE v0.2) of 11-Jan-1996.} -// include this always string const lyx_def = "\\providecommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\@}"; @@ -32,13 +30,11 @@ string const lyxline_def = string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}"; string const lyxarrow_def = - "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}"; + "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}"; // for quotes without babel. This does not give perfect results, but // anybody serious about non-english quotes should use babel (JMarc). - - string const quotedblbase_def = "\\ProvideTextCommandDefault{\\quotedblbase}{%\n" " \\raisebox{-1.4ex}[1ex][.5ex]{\\textquotedblright}%\n" @@ -75,12 +71,14 @@ string const guilsinglright_def = " {\\usefont{U}{lasy}{m}{n}\\char'51}%\n" "}"; -string const paragraphindent_def = - "\\newenvironment{LyXParagraphIndent}[1]%\n" +string const paragraphleftindent_def = + "\\newenvironment{LyXParagraphLeftIndent}[1]%\n" "{\n" " \\begin{list}{}{%\n" " \\setlength\\topsep{0pt}%\n" " \\addtolength{\\leftmargin}{#1}\n" +// ho hum, yet more things commented out with no hint as to why they +// weren't just removed // "%% \\addtolength{\\leftmargin}{#1\\textwidth}\n" // "%% \\setlength{\\textwidth}{#2\\textwidth}\n" // "%% \\setlength\\listparindent\\parindent%\n" @@ -109,14 +107,9 @@ string const floatingfootnote_def = " \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n" "\\def\\SF@gobble@twobracket[#1]#2{}\n"; -string const minipageindent_def = - "%% This length is the backup for minipages of the \\parindent\n" - "\\newlength{\\LyXMinipageIndent}\n" - "\\setlength{\\LyXMinipageIndent}{\\parindent}\n"; - string const boldsymbol_def = "%% Bold symbol macro for standard LaTeX users\n" - "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n"; + "\\providecommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n"; string const binom_def = "%% Binom macro for standard LaTeX users\n" @@ -125,3 +118,18 @@ string const binom_def = string const mathcircumflex_def = "%% For printing a cirumflex inside a formula\n" "\\newcommand{\\mathcircumflex}[0]{\\mbox{\\^{}}}\n"; + +string const tabularnewline_def = + "%% Because html converters don't know tabularnewline\n" + "\\providecommand{\\tabularnewline}{\\\\}\n"; + +string const lyxgreyedout_def = + "%% The greyedout annotation environment\n" + "\\newenvironment{lyxgreyedout}{\\color[gray]{0.8}}{}\n"; + +// We want to omit the file extension for includegraphics, but this does not +// work when the filename contains other dots. +// Idea from http://www.tex.ac.uk/cgi-bin/texfaq2html?label=unkgrfextn +string const lyxdot_def = + "%% A simple dot to overcome graphicx limitations\n" + "\\newcommand{\\lyxdot}{.}\n";