diff --git a/src/main/java/writer2latex/xhtml/TextConverter.java b/src/main/java/writer2latex/xhtml/TextConverter.java
index cfc1f66..6365978 100644
--- a/src/main/java/writer2latex/xhtml/TextConverter.java
+++ b/src/main/java/writer2latex/xhtml/TextConverter.java
@@ -1854,12 +1854,16 @@ public class TextConverter extends ConverterHelper {
}
private Node addHeader(Node node) {
-
+ Node headerNode = null;
inHeader = true;
MasterPage masterPage = ofr.getFullMasterPage(currentMasterPage);
if (currentMasterPage != null) {
-
- Node headerNode = masterPage.getHeader();
+ if (pageNum % 2 == 0) {
+ headerNode = masterPage.getHeaderLeft();
+ }
+ if (headerNode == null) {
+ headerNode = masterPage.getHeader();
+ }
if (headerNode != null) {
//Create header element
Element headerElement = converter.createElement("header");
@@ -1874,12 +1878,16 @@ public class TextConverter extends ConverterHelper {
}
private Node addFooter(Node node) {
-
+ Node footerNode = null;
inFooter = true;
MasterPage masterPage = ofr.getFullMasterPage(currentMasterPage);
if (currentMasterPage != null) {
-
- Node footerNode = masterPage.getFooter();
+ if (pageNum % 2 == 0) {
+ footerNode = masterPage.getFooterLeft();
+ }
+ if (footerNode == null) {
+ footerNode = masterPage.getFooter();
+ }
if (footerNode != null) {
//Create footer element
Element footerElement = converter.createElement("footer");