mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Very minor changes (sorry kayvan!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@634 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e693ad9a4a
commit
d63b6a3073
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 " .
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
||||
|
@ -366,6 +366,7 @@ $$
|
||||
\dblfigrule
|
||||
\dblfloatpagefraction
|
||||
\dbltopfraction
|
||||
\def{}{}
|
||||
\definecolor{}{}{,,}
|
||||
\discretionary{}{}{}
|
||||
\encl{}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user