]> git.lyx.org Git - features.git/commitdiff
Very minor changes (sorry kayvan!)
authorAmir Karger <karger@lyx.org>
Wed, 29 Mar 2000 23:02:36 +0000 (23:02 +0000)
committerAmir Karger <karger@lyx.org>
Wed, 29 Mar 2000 23:02:36 +0000 (23:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@634 a592a061-630c-0410-9148-cb99ea01b6c8

lib/reLyX/BUGS
lib/reLyX/BasicLyX.pm
lib/reLyX/CHANGES
lib/reLyX/CleanTeX.pm
lib/reLyX/MakePreamble.pm
lib/reLyX/RelyxFigure.pm
lib/reLyX/noweb2lyx.in
lib/reLyX/reLyX.man
lib/reLyX/reLyXmain.pl
lib/reLyX/syntax.default
lib/reLyX/test.lyx

index bf193ba61e1c454dd378f12c91de07caf92de761..ff3335ce9cee0e1db31390cff914792f1050b548 100644 (file)
@@ -42,11 +42,6 @@ Even if it complains, it may get the sizes right.
 and extra set of (red) braces, but those braces won't show up in the dvi file
 or printed output.
 
-- CleanTeX adds {} around arguments if they're not there already. It breaks
-on a_b_c or a_\foo{bar}. Unfortunately, examples like that are pretty hard
-to parse, so all we can do is ask you to write clearer LaTeX (or contribute
-your coding skills to the reLyX project!). Sorry.
-
 - reLyX translates {\bf foo} to \textbf{foo}. However, it also does that in
 math mode. Write \mathbf{foo} explicitly in the LyX file instead.
 
@@ -54,8 +49,10 @@ math mode. Write \mathbf{foo} explicitly in the LyX file instead.
 a reference to "Dr." in the LyX file, with an extra "foo}" printed as
 regular text
 
-- \end in a \newcommand, for example, will really confuse reLyX. Put the
-\newcommand in the preamble to avoid this problem.
+- \end or \begin in a \newcommand, for example, will really confuse reLyX, 
+because they're not being used for their regular purpose of starting or
+ending an environment. Put the \newcommand in the preamble to avoid this
+problem.
 
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Changes in translation caused by features not (yet) in LyX:
index 728a0bc1424a47745bfce043233b625d7489200f..c33fe20446245e4adfe78042bd10269c6327a65c 100644 (file)
@@ -164,6 +164,7 @@ my %TextTokenTransTable = (
     '\textgreater'     => ">",
     '\textless'        => "<",
     '\textbar'         => "|",
+    '\textasciitilde'  => "~",
 );
 
 # LyX translations of some plain LaTeX text (TeX parser won't recognize it
@@ -576,7 +577,7 @@ sub basic_lyx {
            # This is to handle cases where _ is used, say, in a filename.
            # When _ is used in math mode, it'll be copied by the math mode
            # copying subs. Here we handle cases where it's used in non-math.
-           # Examples are filenames for & citation labels.
+           # Examples are filenames for \include & citation labels.
            # (It's illegal to use it in regular LaTeX text.)
            if ($name eq "_") {
               print OUTFILE $eaten->exact_print;
@@ -909,13 +910,17 @@ sub basic_lyx {
 
            # Environments lyx translates to floats
            } elsif (exists $FloatEnvTransTable{$env}) {
+               # this really only matters if it's at the very
+               # beginning of the doc.
+               &CheckForNewParagraph;
+
                $tok = $fileobject->eatOptionalArgument;
                if ($tok && defined ($dummy = $tok->print) && $dummy) {
                    print "\nIgnoring float placement '$dummy'" if $debug_on;
                }
                my $command = $FloatEnvTransTable{$env};
 
-               # Open the footnote
+               # Open the table/figure
                print OUTFILE "$command";
 
            # table
index c8d197e1455dbe491ff58baa3c9248e8c11a02a8..8cd669753af12a18bcc17563d167410859ae6e33 100644 (file)
@@ -1,3 +1,7 @@
+From 2.9.1.1 to 2.9.2.2
+- very minor bug fixes (win32 first line of doc, \epsfxsize command)
+- implement \textasciitilde
+
 From 2.9.1.1 to 2.9.2.1
 - noweb documents, with -n option (Kayvan Aghaiepour Sylvan)
 
index 307a6bb83d61032b3175c738c1f58a0d422ef4c5..001af0cf70dc077f8d3fa1062e88c52c810d6afc 100644 (file)
@@ -170,6 +170,8 @@ sub clean_tex {
 
           # Tokens taking arguments, like '^'
           # ADD '{' if there isn't one before the argument!
+          # TODO can we check whether the command is \label, \include
+          # and not add the braces in that case?
           if (/^BegArgsToken$/) {
               $printstr = $outstr;
 
index 7a5d6b045455aaf19d5248e307ca03c8c4f97ae9..dafd0ba87c5a2896283a58cced0ccca4557b341d 100644 (file)
@@ -136,6 +136,7 @@ sub translate_preamble {
     # whoami is needed on Win32, because getlong/getpwuid aren't implemented
     # I'd rather use internal Perl functions when possible, though
     $nm = (eval {getlogin || getpwuid($<)}) || `whoami`;
+    chomp($nm); # whomai returns "foo\n"
     $dt = localtime;
     $LyX_Preamble .= "\#This file was created by <$nm> $dt\n";
     $LyX_Preamble .= "\#LyX 1.0 (C) 1995-1999 Matthias Ettrich " .
index 0ca8354d3bd41d35aad624544ffe3f8cfef475ad..52b0f0af47981383ff9da67527f02e8c7c68ee1e 100644 (file)
@@ -48,7 +48,7 @@ sub parse_epsfsize {
        my @dummy = &convert_length($EpsfXsize) || return 0;
     } elsif ($command eq '\\epsfysize') {
         $EpsfYsize = $length;
-       my @dummy = &convert_length($EpsfXsize) || return 0;
+       my @dummy = &convert_length($EpsfYsize) || return 0;
     }
 
     return 1;
index 9e9081f7e1545669f38ac0a150f61f6c8e05449c..61586d84f1c36bb17f8e45eb6bede33b6f77290d 100644 (file)
@@ -8,7 +8,7 @@
 #   Edmar Wienskoski Jr. <edmar-w-jr@technologist.com>
 #   Amir Karger <karger@post.harvard.edu>
 #
-# $Id: noweb2lyx.in,v 1.1 1999/09/27 18:44:34 larsbj Exp $
+# $Id: noweb2lyx.in,v 1.2 2000/03/29 23:02:36 karger Exp $
 #
 # NOTE: This file was automatically generated from noweb2lyx.lyx using noweb.
 #
index 884465ec37722a4a2ce392b18f643f6d861eea89..d4940c8c974f4e0a15055be2a8262d75a7a3d312 100644 (file)
@@ -1,9 +1,9 @@
 .rn '' }`
-''' $RCSfile: reLyX.man,v $$Revision: 1.1 $$Date: 1999/09/27 18:44:34 $
+''' $RCSfile: reLyX.man,v $$Revision: 1.2 $$Date: 2000/03/29 23:02:36 $
 '''
 ''' $Log: reLyX.man,v $
-''' Revision 1.1  1999/09/27 18:44:34  larsbj
-''' Initial revision
+''' Revision 1.2  2000/03/29 23:02:36  karger
+''' Very minor changes (sorry kayvan!)
 '''
 '''
 .de Sh
@@ -96,7 +96,7 @@
 .nr % 0
 .rr F
 .\}
-.TH RELYX 1 "Version 2.9.2.1" "2/May/99" "User Contributed Perl Documentation"
+.TH RELYX 1 "Version 2.9.2.2 2.9.2.2" "11/Aug/99" "User Contributed Perl Documentation"
 .UC
 .if n .hy 0
 .if n .na
@@ -296,7 +296,7 @@ untranslatable will be highlighted in red (TeX mode). In theory, LyX will be
 able to read in the file, and to create printed documents from it, because all
 that untranslated red stuff will be passed directly back to LaTeX, which LyX 
 uses as a backend. Unfortunately, reality doesn't always reflect theory. If
-\fBreLyX\fR crashes, or LyX cannot read the generated LyX file, see the \f(CWBUGS\fR entry elsewhere in this documentor the \fI\s-1BUGS\s0\fR file.
+\fBreLyX\fR crashes, or LyX cannot read the generated LyX file, see the \f(CWBUGS\fR entry elsewhere in this document or the \fI\s-1BUGS\s0\fR file.
 .Ip "\(bu" 4
 Change things that are highlighted in red (TeX mode) by hand in LyX.
 .Sp
index f2ff40b1134bcc9cf26f53575ced707cd89a672c..bceed0ad2cda16f7882c8be04c3afc8d25b05e08 100644 (file)
@@ -8,7 +8,7 @@
 #
 # This code usually gets called by the reLyX wrapper executable
 #
-# $Id: reLyXmain.pl,v 1.1 1999/09/27 18:44:35 larsbj Exp $
+# $Id: reLyXmain.pl,v 1.2 2000/03/29 23:02:36 karger Exp $
 #
 
 require 5.002; # Perl 5.001 doesn't work. Perl 4 REALLY doesn't work.
@@ -63,7 +63,7 @@ BEGIN{$Success = 0}
 #
 
 # Print welcome message including version info
-my $version_info = '$Date: 1999/09/27 18:44:35 $'; # RCS puts checkin date here
+my $version_info = '$Date: 2000/03/29 23:02:36 $'; # RCS puts checkin date here
 $version_info =~ s&.*?(\d+/\d+/\d+).*&$1&; # take out just the date info
 warn "reLyX, the LaTeX to LyX translator. Revision date $version_info\n\n";
 
index a9baa62ca477433b4bb8010caa63674b506faed9..ea072745832ff561064798d6bec73b62c8b540ef 100644 (file)
@@ -366,6 +366,7 @@ $$
 \dblfigrule
 \dblfloatpagefraction
 \dbltopfraction
+\def{}{}
 \definecolor{}{}{,,}
 \discretionary{}{}{}
 \encl{}
index f58fd3eac7a6008461d7387406e0e52fb3f2026a..54236ebf01cbc6fc59c6459872fc6b50fc27aefd 100644 (file)
@@ -1,4 +1,4 @@
-#This file was created by <karger> Wed May 12 10:56:40 1999
+#This file was created by <karger> Sun Mar  5 12:54:24 2000
 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
 \lyxformat 2.15
 \textclass article