mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
fix two bugs where "ugly" latex source is output instead of "nice" one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@27210 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c2f61f98a7
commit
d63a0fa68b
@ -1810,7 +1810,7 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin,
|
||||
writeDocBookSource(os, fileName(), runparams, false);
|
||||
else
|
||||
// latex or literate
|
||||
writeLaTeXSource(os, filePath(), runparams, true, true);
|
||||
writeLaTeXSource(os, string(), runparams, true, true);
|
||||
} else {
|
||||
runparams.par_begin = par_begin;
|
||||
runparams.par_end = par_end;
|
||||
|
@ -197,7 +197,7 @@ bool Exporter::Export(Buffer * buffer, string const & format,
|
||||
buffer->makeDocBookFile(FileName(filename), runparams);
|
||||
}
|
||||
// LaTeX backend
|
||||
else if (backend_format == format) {
|
||||
else if (!put_in_tempdir) {
|
||||
runparams.nice = true;
|
||||
if (!buffer->makeLaTeXFile(FileName(filename), string(), runparams))
|
||||
return false;
|
||||
|
@ -135,6 +135,9 @@ What's new
|
||||
|
||||
- Fix LaTeX errors in Latvian and Lithuanian documents (bug 5323, bug 5324).
|
||||
|
||||
- When exporting a literate document as LaTeX, make sure that the code
|
||||
needed for running LaTeX is not output.
|
||||
|
||||
- If "Do not use amsmath" is selected in the document settings, really do
|
||||
not use it (bug 5350).
|
||||
|
||||
@ -176,6 +179,9 @@ What's new
|
||||
|
||||
- Fix the behaviour of the ErrorList dialog.
|
||||
|
||||
- When viewing full LaTeX source, make sure that the code needed for
|
||||
running LaTeX is not added.
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user