mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
tex2lyx/preamble.cpp: handle also onecolumn and oneside as discussed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24811 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
77740fc1f0
commit
fdea53d34b
@ -597,12 +597,22 @@ void parse_preamble(Parser & p, ostream & os,
|
|||||||
opts.erase(it);
|
opts.erase(it);
|
||||||
}
|
}
|
||||||
// paper sides
|
// paper sides
|
||||||
|
if ((it = find(opts.begin(), opts.end(), "oneside"))
|
||||||
|
!= opts.end()) {
|
||||||
|
h_papersides = "1";
|
||||||
|
opts.erase(it);
|
||||||
|
}
|
||||||
if ((it = find(opts.begin(), opts.end(), "twoside"))
|
if ((it = find(opts.begin(), opts.end(), "twoside"))
|
||||||
!= opts.end()) {
|
!= opts.end()) {
|
||||||
h_papersides = "2";
|
h_papersides = "2";
|
||||||
opts.erase(it);
|
opts.erase(it);
|
||||||
}
|
}
|
||||||
// paper columns
|
// paper columns
|
||||||
|
if ((it = find(opts.begin(), opts.end(), "onecolumn"))
|
||||||
|
!= opts.end()) {
|
||||||
|
h_papercolumns = "1";
|
||||||
|
opts.erase(it);
|
||||||
|
}
|
||||||
if ((it = find(opts.begin(), opts.end(), "twocolumn"))
|
if ((it = find(opts.begin(), opts.end(), "twocolumn"))
|
||||||
!= opts.end()) {
|
!= opts.end()) {
|
||||||
h_papercolumns = "2";
|
h_papercolumns = "2";
|
||||||
|
Loading…
Reference in New Issue
Block a user