diff --git a/source/distro/changelog.txt b/source/distro/changelog.txt
index acbf321..f85a85b 100644
--- a/source/distro/changelog.txt
+++ b/source/distro/changelog.txt
@@ -2,6 +2,25 @@ Changelog for Writer2LaTeX version 1.0 -> 1.2
---------- version 1.1.3 ----------
+[w2l] Added help content for custom format
+
+[all] Filter: Fixed bug with filenames containing spaces and other special characters
+
+[w2x] EPUB bugfix: URL encode links to document parts in the .ncx and .opf files
+
+[w2x] EPUB export no longer generates a title page reference if there is no title page
+
+[w2x] Added (temporary) option zen_hack to support a special requirement from the ePub Zen Garden styles
+ (own style for number prefix. This should be replaced by a style map scheme later..)
+
+[w2x] Ignore linked images in EPUB export (EPUB files cannot reference external resources)
+
+[w2x] Added support for break-after and break-before
+
+[w2l] Features that were postponed to w2l 1.4 has been hidden from the UI
+
+[w4l] TeX import has been hidden from the UI (postponed to w2l 1.4)
+
[w2l] Now exports apostrophe, single and double quotes using ' and ` characters (this creates nicer looking LaTeX files and
fixes a problem with hyphenation of words containing apostrophes)
diff --git a/source/distro/doc/user-manual.odt b/source/distro/doc/user-manual.odt
index 4ac9d12..fd46f6a 100644
Binary files a/source/distro/doc/user-manual.odt and b/source/distro/doc/user-manual.odt differ
diff --git a/source/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java b/source/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java
index de7459f..74fcb70 100644
--- a/source/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java
+++ b/source/java/org/openoffice/da/comp/w2lcommon/filter/ExportFilterBase.java
@@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
- * Copyright: 2002-2009 by Henrik Just
+ * Copyright: 2002-2010 by Henrik Just
*
* All Rights Reserved.
*
- * Version 1.2 (2009-09-06)
+ * Version 1.2 (2010-05-17)
*
*/
@@ -54,6 +54,7 @@ import writer2latex.api.Converter;
import writer2latex.api.ConverterFactory;
import writer2latex.api.ConverterResult;
import writer2latex.api.OutputFile;
+import writer2latex.util.Misc;
import java.util.Iterator;
//import java.util.Enumeration;
@@ -367,7 +368,7 @@ public abstract class ExportFilterBase implements
ConverterResult dataOut = null;
//try {
- dataOut = converter.convert(xis,sName);
+ dataOut = converter.convert(xis,Misc.makeFileName(sName));
//}
//catch (IOException e) {
// Fail silently
@@ -402,7 +403,7 @@ public abstract class ExportFilterBase implements
// Additional documents are written directly using ucb
// Get the file name and the (optional) directory name
- String sFullFileName = docOut.getFileName();
+ String sFullFileName = Misc.makeHref(docOut.getFileName());
String sDirName = "";
String sFileName = sFullFileName;
int nSlash = sFileName.indexOf("/");
diff --git a/source/java/org/openoffice/da/comp/writer4latex/ConfigurationDialog.java b/source/java/org/openoffice/da/comp/writer4latex/ConfigurationDialog.java
index b68f528..f6b9d33 100644
--- a/source/java/org/openoffice/da/comp/writer4latex/ConfigurationDialog.java
+++ b/source/java/org/openoffice/da/comp/writer4latex/ConfigurationDialog.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-04-12)
+ * Version 1.2 (2010-05-13)
*
*/
@@ -40,12 +40,8 @@ import com.sun.star.awt.XDialog;
import com.sun.star.awt.XDialogProvider2;
import com.sun.star.awt.XWindow;
import com.sun.star.beans.XPropertySet;
-import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.lang.XServiceInfo;
-import com.sun.star.ui.dialogs.ExecutableDialogResults;
-import com.sun.star.ui.dialogs.XExecutableDialog;
-import com.sun.star.ui.dialogs.XFilePicker;
import com.sun.star.uno.AnyConverter;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XComponentContext;
@@ -320,7 +316,7 @@ public final class ConfigurationDialog
configureMikTeX(sMikTeXPath, ExternalApps.DVIPS, "dvips", "%s", info, true);
configureMikTeX(sMikTeXPath, ExternalApps.BIBTEX, "bibtex", "%s", info, true);
configureMikTeX(sMikTeXPath, ExternalApps.MAKEINDEX, "makeindex", "%s", info, true);
- configureMikTeX(sMikTeXPath, ExternalApps.MK4HT, "mk4ht", "%c %s", info, true);
+ //configureMikTeX(sMikTeXPath, ExternalApps.MK4HT, "mk4ht", "%c %s", info, true);
configureMikTeX(sMikTeXPath, ExternalApps.DVIVIEWER, "yap", "--single-instance %s", info, true);
// MikTeX 2.8 provides texworks for pdf viewing
bFoundTexworks = configureMikTeX(sMikTeXPath, ExternalApps.PDFVIEWER, "texworks", "%s", info, true);
@@ -334,7 +330,7 @@ public final class ConfigurationDialog
externalApps.setApplication(ExternalApps.DVIPS, "dvips", "%s");
externalApps.setApplication(ExternalApps.BIBTEX, "bibtex", "%s");
externalApps.setApplication(ExternalApps.MAKEINDEX, "makeindex", "%s");
- externalApps.setApplication(ExternalApps.MK4HT, "mk4ht", "%c %s");
+ //externalApps.setApplication(ExternalApps.MK4HT, "mk4ht", "%c %s");
externalApps.setApplication(ExternalApps.DVIVIEWER, "yap", "--single-instance %s");
}
info.append("\n");
@@ -368,7 +364,7 @@ public final class ConfigurationDialog
configureApp(ExternalApps.DVIPS, "dvips", "%s",info);
configureApp(ExternalApps.BIBTEX, "bibtex", "%s",info);
configureApp(ExternalApps.MAKEINDEX, "makeindex", "%s",info);
- configureApp(ExternalApps.MK4HT, "mk4ht", "%c %s",info);
+ //configureApp(ExternalApps.MK4HT, "mk4ht", "%c %s",info);
// We have several possible viewers
String[] sDviViewers = {"evince", "okular", "xdvi"};
configureApp(ExternalApps.DVIVIEWER, sDviViewers, "%s",info);
@@ -398,10 +394,10 @@ public final class ConfigurationDialog
case 3: return ExternalApps.DVIPS;
case 4: return ExternalApps.BIBTEX;
case 5: return ExternalApps.MAKEINDEX;
- case 6: return ExternalApps.MK4HT;
- case 7: return ExternalApps.DVIVIEWER;
- case 8: return ExternalApps.PDFVIEWER;
- case 9: return ExternalApps.POSTSCRIPTVIEWER;
+ //case 6: return ExternalApps.MK4HT;
+ case 6: return ExternalApps.DVIVIEWER;
+ case 7: return ExternalApps.PDFVIEWER;
+ case 8: return ExternalApps.POSTSCRIPTVIEWER;
}
return "???";
}
diff --git a/source/java/writer2latex/api/ConverterFactory.java b/source/java/writer2latex/api/ConverterFactory.java
index 79139cb..d2bf79e 100644
--- a/source/java/writer2latex/api/ConverterFactory.java
+++ b/source/java/writer2latex/api/ConverterFactory.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-05-11)
+ * Version 1.2 (2010-05-17)
*
*/
@@ -33,7 +33,7 @@ public class ConverterFactory {
// Version information
private static final String VERSION = "1.1.3";
- private static final String DATE = "2010-05-11";
+ private static final String DATE = "2010-05-17";
/** Return the Writer2LaTeX version in the form
* (major version).(minor version).(patch level)
diff --git a/source/java/writer2latex/epub/NCXWriter.java b/source/java/writer2latex/epub/NCXWriter.java
index d1c6a19..f13634e 100644
--- a/source/java/writer2latex/epub/NCXWriter.java
+++ b/source/java/writer2latex/epub/NCXWriter.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * version 1.2 (2010-03-30)
+ * version 1.2 (2010-05-13)
*
*/
@@ -39,6 +39,7 @@ import org.w3c.dom.Element;
import writer2latex.api.ContentEntry;
import writer2latex.api.ConverterResult;
+import writer2latex.util.Misc;
import writer2latex.xmerge.NewDOMDocument;
/** This class creates the required NXC file for an EPUB document
@@ -141,7 +142,7 @@ public class NCXWriter extends NewDOMDocument {
Element navPointContent = contentDOM.createElement("content");
String sHref = entry.getFile().getFileName();
if (entry.getTarget()!=null) { sHref+="#"+entry.getTarget(); }
- navPointContent.setAttribute("src", sHref);
+ navPointContent.setAttribute("src", Misc.makeHref(sHref));
navPoint.appendChild(navPointContent);
nDepth = Math.max(nDepth, nCurrentLevel);
diff --git a/source/java/writer2latex/epub/OPFWriter.java b/source/java/writer2latex/epub/OPFWriter.java
index 8210409..0ed0ba6 100644
--- a/source/java/writer2latex/epub/OPFWriter.java
+++ b/source/java/writer2latex/epub/OPFWriter.java
@@ -20,14 +20,13 @@
*
* All Rights Reserved.
*
- * version 1.2 (2010-03-29)
+ * version 1.2 (2010-05-13)
*
*/
package writer2latex.epub;
import java.util.Iterator;
-import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
@@ -41,6 +40,7 @@ import org.w3c.dom.Element;
import writer2latex.api.ContentEntry;
import writer2latex.api.ConverterResult;
import writer2latex.api.OutputFile;
+import writer2latex.util.Misc;
import writer2latex.xmerge.NewDOMDocument;
/** This class writes an OPF-file for an EPUB document (see http://www.idpf.org/2007/opf/OPF_2.0_final_spec.html).
@@ -105,7 +105,7 @@ public class OPFWriter extends NewDOMDocument {
OutputFile file = iterator.next();
Element item = contentDOM.createElement("item");
manifest.appendChild(item);
- item.setAttribute("href",file.getFileName());
+ item.setAttribute("href",Misc.makeHref(file.getFileName()));
item.setAttribute("media-type", file.getMIMEType());
if (file.isMasterDocument()) {
String sId = "text"+(++nMasterCount);
@@ -147,7 +147,7 @@ public class OPFWriter extends NewDOMDocument {
reference.setAttribute("title", entry.getTitle());
String sHref = entry.getFile().getFileName();
if (entry.getTarget()!=null) { sHref+="#"+entry.getTarget(); }
- reference.setAttribute("href", sHref);
+ reference.setAttribute("href", Misc.makeHref(sHref));
guide.appendChild(reference);
}
}
diff --git a/source/java/writer2latex/office/ListCounter.java b/source/java/writer2latex/office/ListCounter.java
index be4b06d..6c18452 100644
--- a/source/java/writer2latex/office/ListCounter.java
+++ b/source/java/writer2latex/office/ListCounter.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-05-04)
+ * Version 1.2 (2010-05-13)
*
*/
@@ -99,15 +99,25 @@ public class ListCounter {
}
public String getLabel() {
+ return getPrefix()+getLabelAndSuffix();
+ }
+
+ public String getPrefix() {
if (style.isNumber(nLevel)) {
+ String sPrefix = style.getLevelProperty(nLevel,XMLString.STYLE_NUM_PREFIX);
+ return sPrefix!=null ? sPrefix : "";
+ }
+ return "";
+ }
+
+ public String getLabelAndSuffix() {
+ if (style.isNumber(nLevel)) {
+ String sLabel="";
if (sNumFormat[nLevel]==null) return "";
int nLevels = Misc.getPosInteger(style.getLevelProperty(nLevel,
XMLString.TEXT_DISPLAY_LEVELS),1);
- String sPrefix = style.getLevelProperty(nLevel,XMLString.STYLE_NUM_PREFIX);
String sSuffix = style.getLevelProperty(nLevel,XMLString.STYLE_NUM_SUFFIX);
String sSpace = "nothing".equals(style.getLevelStyleProperty(nLevel, XMLString.TEXT_LABEL_FOLLOWED_BY)) ? "" : " ";
- String sLabel="";
- if (sPrefix!=null) { sLabel+=sPrefix; }
for (int j=nLevel-nLevels+1; jRead an InputStream into a bytearray
* @param is the InputStream to read
diff --git a/source/java/writer2latex/xhtml/Converter.java b/source/java/writer2latex/xhtml/Converter.java
index 394a2d7..5fb6c5c 100644
--- a/source/java/writer2latex/xhtml/Converter.java
+++ b/source/java/writer2latex/xhtml/Converter.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-05-09)
+ * Version 1.2 (2010-05-17)
*
*/
@@ -227,10 +227,12 @@ public class Converter extends ConverterBase {
converterResult.addContentEntry(new ContentEntryImpl("Text", 1, outFiles.get(0), null));
}
else {
- // The title page is the first page
- converterResult.setTitlePageFile(new ContentEntryImpl("Title page", 1, outFiles.get(0), null));
- // The text page is the one containing the first heading
ContentEntry firstHeading = converterResult.getContent().get(0);
+ // The title page is the first page, unless the first page starts with a heading
+ if (outFiles.get(0)!=firstHeading.getFile() || firstHeading.getTarget()!=null) {
+ converterResult.setTitlePageFile(new ContentEntryImpl("Title page", 1, outFiles.get(0), null));
+ }
+ // The text page is the one containing the first heading
converterResult.setTextFile(new ContentEntryImpl("Text", 1, firstHeading.getFile(), firstHeading.getTarget()));
}
@@ -397,7 +399,6 @@ public class Converter extends ConverterBase {
if (nIndex>=0 && nIndex<=nOutFileIndex) {
Element a = dom.createElement("a");
a.setAttribute("href",Misc.makeHref(getOutFileName(nIndex,true)));
- a.setAttribute("href",getOutFileName(nIndex,true));
a.appendChild(dom.createTextNode(s));
//node.appendChild(dom.createTextNode("["));
node.appendChild(a);
diff --git a/source/java/writer2latex/xhtml/DrawConverter.java b/source/java/writer2latex/xhtml/DrawConverter.java
index fbfb0f7..d09932e 100644
--- a/source/java/writer2latex/xhtml/DrawConverter.java
+++ b/source/java/writer2latex/xhtml/DrawConverter.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-03-03)
+ * Version 1.2 (2010-05-13)
*
*/
@@ -376,12 +376,14 @@ public class DrawConverter extends ConverterHelper {
if (sHref!=null && sHref.length()>0 && !ofr.isInPackage(sHref)) {
// Linked image is not yet handled by ImageLoader. This is a temp.
// solution (will go away when ImageLoader is finished)
- sFileName = sHref;
- // In OpenDocument *package* format ../ means "leave the package"
- if (ofr.isOpenDocument() && ofr.isPackageFormat() && sFileName.startsWith("../")) {
- sFileName=sFileName.substring(3);
- }
- //String sExt = sHref.substring(sHref.lastIndexOf(".")).toLowerCase();
+ if (!converter.isOPS()) { // Cannot have linked images in EPUB, ignore the image
+ sFileName = sHref;
+ // In OpenDocument *package* format ../ means "leave the package"
+ if (ofr.isOpenDocument() && ofr.isPackageFormat() && sFileName.startsWith("../")) {
+ sFileName=sFileName.substring(3);
+ }
+ //String sExt = sHref.substring(sHref.lastIndexOf(".")).toLowerCase();
+ }
}
else { // embedded or base64 encoded image
BinaryGraphicsDocument bgd = converter.getImageLoader().getImage(onode);
diff --git a/source/java/writer2latex/xhtml/ParStyleConverter.java b/source/java/writer2latex/xhtml/ParStyleConverter.java
index 2e5d5c2..e5ca4d0 100644
--- a/source/java/writer2latex/xhtml/ParStyleConverter.java
+++ b/source/java/writer2latex/xhtml/ParStyleConverter.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-05-09)
+ * Version 1.2 (2010-05-13)
*
*/
@@ -80,6 +80,7 @@ public class ParStyleConverter extends StyleWithPropertiesConverterHelper {
* @param bInherit true if properties should be inherited from parent style(s)
*/
public void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit) {
+ cssPageBreak(style,props,bInherit);
getFrameSc().cssMargins(style,props,bInherit);
getFrameSc().cssBorder(style,props,bInherit);
getFrameSc().cssPadding(style,props,bInherit);
@@ -104,6 +105,15 @@ public class ParStyleConverter extends StyleWithPropertiesConverterHelper {
if (style==null || !style.isAutomatic()) { return sStyleName; }
return style.getParentName();
}
+
+ public void cssPageBreak(StyleWithProperties style, CSVList props, boolean bInherit) {
+ if ("page".equals(style.getProperty(XMLString.FO_BREAK_BEFORE, bInherit))) {
+ props.addValue("page-break-before", "always");
+ }
+ else if ("page".equals(style.getProperty(XMLString.FO_BREAK_AFTER, bInherit))) {
+ props.addValue("page-break-after", "always");
+ }
+ }
public void cssPar(StyleWithProperties style, CSVList props, boolean bInherit){
String s;
diff --git a/source/java/writer2latex/xhtml/TableStyleConverter.java b/source/java/writer2latex/xhtml/TableStyleConverter.java
index fc68ad8..3ff3825 100644
--- a/source/java/writer2latex/xhtml/TableStyleConverter.java
+++ b/source/java/writer2latex/xhtml/TableStyleConverter.java
@@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
- * Copyright: 2002-2008 by Henrik Just
+ * Copyright: 2002-2010 by Henrik Just
*
* All Rights Reserved.
*
- * Version 1.0 (2008-09-08)
+ * Version 1.2 (2010-05-13)
*
*/
@@ -74,6 +74,8 @@ public class TableStyleConverter extends StyleWithPropertiesConverterHelper {
* @param bInherit true if properties should be inherited from parent style(s)
*/
public void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit) {
+ // Page break
+ getParSc().cssPageBreak(style, props, bInherit);
// Apply background
getFrameSc().cssBackground(style,props,bInherit);
// Table-specific properties
diff --git a/source/java/writer2latex/xhtml/TextConverter.java b/source/java/writer2latex/xhtml/TextConverter.java
index 41f8583..9af6de9 100644
--- a/source/java/writer2latex/xhtml/TextConverter.java
+++ b/source/java/writer2latex/xhtml/TextConverter.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-05-09)
+ * Version 1.2 (2010-05-13)
*
*/
@@ -470,9 +470,10 @@ public class TextConverter extends ConverterHelper {
if (nDontSplitLevel>1) { // we cannot split due to a nested structure
return node;
}
- if (bAfterHeading && nLevel-nLastSplitLevel<=nRepeatLevels) {
+ if (!converter.isOPS() && bAfterHeading && nLevel-nLastSplitLevel<=nRepeatLevels) {
// we cannot split because we are right after a heading and the
- // maximum number of parent headings on the page is not reached
+ // maximum number of parent headings on the page is not reached
+ // TODO: Something wrong here....nLastSplitLevel is never set???
return node;
}
if (nSplit>=nLevel && converter.outFileHasContent()) {
@@ -562,7 +563,14 @@ public class TextConverter extends ConverterHelper {
ListCounter counter = getListCounter(listStyle);
if (bRestart) { counter.restart(nListLevel,nStartValue); }
String sLabel = counter.step(nListLevel).getLabel();
- insertListLabel(listStyle,nListLevel,"SectionNumber",sLabel,heading);
+ if (config.zenHack() && nLevel==2) {
+ // Hack for ePub Zen Garden: Special style for the prefix at level 2
+ // TODO: Replace by some proper style map construct...
+ insertListLabel(listStyle,nListLevel,"SectionNumber",counter.getPrefix(),counter.getLabelAndSuffix(),heading);
+ }
+ else {
+ insertListLabel(listStyle,nListLevel,"SectionNumber",null,sLabel,heading);
+ }
// Add to toc
if (!bInToc) {
@@ -642,7 +650,7 @@ public class TextConverter extends ConverterHelper {
if (!bIsEmpty) {
par = createTextBackground(par, sStyleName);
if (config.listFormatting()==XhtmlConfig.HARD_LABELS) {
- insertListLabel(currentListStyle, nCurrentListLevel, "ItemNumber", sCurrentListLabel, par);
+ insertListLabel(currentListStyle, nCurrentListLevel, "ItemNumber", null, sCurrentListLabel, par);
}
sCurrentListLabel = null;
traverseInlineText(onode,par);
@@ -694,8 +702,14 @@ public class TextConverter extends ConverterHelper {
}
// Helper: Insert a list label formatted with a list style
- private void insertListLabel(ListStyle style, int nLevel, String sDefaultStyle, String sLabel, Element hnode) {
+ private void insertListLabel(ListStyle style, int nLevel, String sDefaultStyle, String sPrefix, String sLabel, Element hnode) {
if (sLabel!=null && sLabel.length()>0) {
+ if (sPrefix!=null) {
+ Element prefix = converter.createElement("span");
+ prefix.setAttribute("class", "chapter-name");
+ hnode.appendChild(prefix);
+ prefix.appendChild( converter.createTextNode(sPrefix));
+ }
StyleInfo info = new StyleInfo();
if (style!=null) {
String sTextStyleName = style.getLevelProperty(nLevel,XMLString.TEXT_STYLE_NAME);
diff --git a/source/java/writer2latex/xhtml/XhtmlConfig.java b/source/java/writer2latex/xhtml/XhtmlConfig.java
index a8cf0c1..656e4ad 100644
--- a/source/java/writer2latex/xhtml/XhtmlConfig.java
+++ b/source/java/writer2latex/xhtml/XhtmlConfig.java
@@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
- * Version 1.2 (2010-05-09)
+ * Version 1.2 (2010-05-13)
*
*/
@@ -41,7 +41,7 @@ import writer2latex.util.Misc;
public class XhtmlConfig extends writer2latex.base.ConfigBase {
// Implement configuration methods
- protected int getOptionCount() { return 42; }
+ protected int getOptionCount() { return 43; }
protected String getDefaultConfigPath() { return "/writer2latex/xhtml/config/"; }
// Override setOption: To be backwards compatible, we must accept options
@@ -119,6 +119,7 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
private static final int UPLINK = 39;
private static final int DIRECTORY_ICON = 40;
private static final int DOCUMENT_ICON = 41;
+ private static final int ZEN_HACK = 42; // temporary hack for ePub Zen Garden styles
protected ComplexOption xheading = addComplexOption("heading-map");
protected ComplexOption xpar = addComplexOption("paragraph-map");
@@ -197,6 +198,7 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
options[UPLINK] = new Option("uplink","");
options[DIRECTORY_ICON] = new Option("directory_icon","");
options[DOCUMENT_ICON] = new Option("document_icon","");
+ options[ZEN_HACK] = new BooleanOption("zen_hack", "false");
}
protected void readInner(Element elm) {
@@ -309,6 +311,7 @@ public class XhtmlConfig extends writer2latex.base.ConfigBase {
public String getXhtmlUplink() { return options[UPLINK].getString(); }
public String getXhtmlDirectoryIcon() { return options[DIRECTORY_ICON].getString(); }
public String getXhtmlDocumentIcon() { return options[DOCUMENT_ICON].getString(); }
+ public boolean zenHack() { return ((BooleanOption) options[ZEN_HACK]).getValue(); }
public XhtmlStyleMap getXParStyleMap() { return getStyleMap(xpar); }
public XhtmlStyleMap getXHeadingStyleMap() { return getStyleMap(xheading); }
diff --git a/source/oxt/writer2latex/W2LDialogs2/Characters.xdl b/source/oxt/writer2latex/W2LDialogs2/Characters.xdl
index 68d14f1..b2d910c 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Characters.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Characters.xdl
@@ -2,14 +2,14 @@
-
-
-
+
+
+
-
+
-
+
@@ -19,13 +19,13 @@
-
+
-
+
-
+
diff --git a/source/oxt/writer2latex/W2LDialogs2/Documentclass.xdl b/source/oxt/writer2latex/W2LDialogs2/Documentclass.xdl
index 92258d9..2cecf00 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Documentclass.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Documentclass.xdl
@@ -2,14 +2,14 @@
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/W2LDialogs2/Figures.xdl b/source/oxt/writer2latex/W2LDialogs2/Figures.xdl
index b97de87..c3e9bb6 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Figures.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Figures.xdl
@@ -3,16 +3,16 @@
-
-
+
+
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/W2LDialogs2/Fonts.xdl b/source/oxt/writer2latex/W2LDialogs2/Fonts.xdl
index 3a8bc8e..70ca460 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Fonts.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Fonts.xdl
@@ -2,14 +2,14 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/W2LDialogs2/Headings.xdl b/source/oxt/writer2latex/W2LDialogs2/Headings.xdl
index e365355..28bc1b8 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Headings.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Headings.xdl
@@ -4,7 +4,7 @@
-
+
@@ -21,7 +21,7 @@
-
+
@@ -37,7 +37,7 @@
-
+
@@ -49,7 +49,7 @@
-
+
@@ -61,10 +61,10 @@
-
+
-
-
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/W2LDialogs2/Pages.xdl b/source/oxt/writer2latex/W2LDialogs2/Pages.xdl
index 9a87bf1..775874b 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Pages.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Pages.xdl
@@ -3,18 +3,18 @@
-
+
-
+
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/W2LDialogs2/Styles.xdl b/source/oxt/writer2latex/W2LDialogs2/Styles.xdl
index 1f9cdcb..a58401a 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Styles.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Styles.xdl
@@ -3,7 +3,7 @@
-
+
@@ -13,38 +13,42 @@
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
+
-
+
+
+
+
+
-
+
-
-
+
+
@@ -53,9 +57,5 @@
-
-
-
-
\ No newline at end of file
diff --git a/source/oxt/writer2latex/W2LDialogs2/Tables.xdl b/source/oxt/writer2latex/W2LDialogs2/Tables.xdl
index 26c4fb5..0e537cd 100644
--- a/source/oxt/writer2latex/W2LDialogs2/Tables.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/Tables.xdl
@@ -2,27 +2,27 @@
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
-
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl b/source/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl
index 5035da7..b84d5d2 100644
--- a/source/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl
+++ b/source/oxt/writer2latex/W2LDialogs2/TextAndMath.xdl
@@ -3,35 +3,35 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/help.tree b/source/oxt/writer2latex/help/en/help.tree
index 80c552c..5d05166 100644
--- a/source/oxt/writer2latex/help/en/help.tree
+++ b/source/oxt/writer2latex/help/en/help.tree
@@ -2,5 +2,17 @@
LaTeX Export
+
+ Introduction
+ Documentclass
+ Headings
+ Styles
+ Characters
+ Fonts
+ Pages
+ Tables
+ Figures
+ Text and math
+
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp
new file mode 100644
index 0000000..ff74264
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp
@@ -0,0 +1,74 @@
+
+
+
+
+ Characters
+ org.openoffice.da.writer2latex.oxt/Configuration/Characters.xhp
+
+
+
+ Characters
+ Define how to convert character formatting
+
+
+ Choose Tools - Options - Writer2LaTeX - Characters
+
+
+ Character formatting packages
+
+
+ Use hyperref.sty (support for hyperlinks)
+ Check this if you want to export hyperlinks using the LaTeX package
+ hyperref.sty. As a side effect this package will create links for cross references etc.
+
+
+ Use color.sty (color support)
+ Check this if you want color support (text color only) using the
+ LaTeX package color.sty.
+
+
+ Use ulem.sty (underline and strike out text)
+ Check this to support underlined and striked out text using the LaTeX
+ package ulem.sty. Note that this does not work well for longer passages of text. Writer2LaTeX will never export
+ underline and strike out for entire paragraphs.
+
+
+ Formatting attributes
+ For some formatting attributes you can directly control the generated LaTeX
+ code.
+
+ Formatting attribute
+ Select the formatting attribute:
+
+
+ Bold: Boldface text
+
+
+ Italics: Italics text
+
+
+ Small caps: Text formatted as small caps.
+
+
+ Superscript: Text formatted as superscript.
+
+
+ Subscript: Text formatted as subscript.
+
+
+
+
+ Apply custom LaTeX code
+ Check this if you want to define custom LaTeX code for the currently selected
+ attribute. Otherwise Writer2LaTeX will use default code, e.g. \textbf for boldface text.
+
+
+ LaTeX code before
+ Enter the LaTeX code to add before the text, e.g. \emph{
+
+
+ LaTeX code after
+ Enter the LaTeX code to add after the text, e.g. }
+
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp
new file mode 100644
index 0000000..768373d
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp
@@ -0,0 +1,39 @@
+
+
+
+
+ Documentclass
+ org.openoffice.da.writer2latex.oxt/Configuration/Documentclass.xhp
+
+
+
+ Documentclass
+ Define the documentclass for the LaTeX document
+
+
+ Choose Tools - Options - Writer2LaTeX - Documentclass
+
+
+
+ Do not include preamble
+ If you check this option, Writer2LaTeX will not create the a LaTeX preamble,
+ nor include \begin{document} and \end{document}. This is useful if the document is to be included in another LaTeX document.
+ Note that in this case you will have to make sure that all packages/definitions needed are available in the master
+ LaTeX document.
+
+
+ Documentclass
+ Type the name of the LaTeX documentclass to use (e.g.
+ article, book).
+
+
+ Global options
+ Type a list of global options to add to the documentclass, e.g. landscape
+ to get \documentclass[landscape]{article}.
+
+
+ Custom preamble
+ The text you type here will be copied verbatim into the LaTeX preamble.
+ For example \usepackage{palatino} to typeset your document using the postscript font Palatino.
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp
new file mode 100644
index 0000000..299dd4c
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp
@@ -0,0 +1,54 @@
+
+
+
+
+ Styles
+ org.openoffice.da.writer2latex.oxt/Configuration/Figures.xhp
+
+
+
+ Figures
+
+ Define how to convert figures
+
+
+ Choose Tools - Options - Writer2LaTeX - Figures
+
+
+ General
+
+
+ Use caption.sty to format captions (also for tables)
+ Check this to take advantage of the LaTeX package caption.sty.
+ Currently Writer2LaTeX only uses the support for non-floating captions from this package.
+ This applies to all captions (figure and table captions).
+
+
+ Center figures
+ If you check this, all graphics and text boxes will be centered.
+ Otherwise standard formatting is applied (this normally means that they will appear flush left).
+
+
+ Figure sequence names
+ This option can be set to a sequence name in the source document.
+ OpenDocument has a very weak sense of figure captions: A figure caption is a paragraph containing a sequence number.
+ If you use %PRODUCTNAME's defaults, Writer2LaTeX can guess which sequence name to use.
+ If it fails, you can type the name here. Normally it should be left empty.
+
+ Graphics
+
+
+ Do not export graphics
+ Check this to ignore all graphics in the export.
+
+
+ Omit file extension
+ Check this to export file names for images without file extension.
+ You will thus get eg. \includegraphics{myimage} rather than \includegraphics{myimage.png}.
+
+
+ Graphic options
+ Type any options that should be applied to all images
+ (ie. all \includegraphics commands). For example width=\linewidth.
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp
new file mode 100644
index 0000000..f334be6
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp
@@ -0,0 +1,51 @@
+
+
+
+
+ Fonts
+ org.openoffice.da.writer2latex.oxt/Configuration/Fonts.xhp
+
+
+
+ Fonts
+ Define the font packages to use in the exported LaTeX document
+
+
+ Choose Tools - Options - Writer2LaTeX - Fonts
+
+
+ Font packages (not used for XeTeX)
+ These options have no effect if the backend is XeTeX, which handles
+ fonts quite differently from "classic" LaTeX.
+
+
+ Use pifont.sty (dingbats)
+ Check this to use of symbol font Zapf Dingbats using the LaTeX package
+ pifont.sty.
+
+
+ Use tipa.sty and tipax.sty (phonetic symbols)
+ Check this to use phonetic symbols using the LaTeX packages
+ tipa.sty and tipx.sty.
+
+
+ Use eurosym.sty (euro currency symbol)
+ Check this to use the eurosym font using the LaTeX package
+ eurosym.sty. This package provides a slightly better euro symbol than standard LaTeX.
+
+
+ Use wasysym.sty (various symbols)
+ Check this to use the wasy symbol font using the LaTeX package
+ wasysym.sty.
+
+
+ Use ifsym.sty (geometric shapes)
+ Check this to use the ifsym symbol font using the LaTeX package
+ ifsym.sty.
+
+
+ Use bbding.sty (metafont dingbats)
+ Check this to use the bbding symbol font (a clone of Zapf Dingbats)
+ using the LaTeX package bbding.sty.
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp
new file mode 100644
index 0000000..c1cc6ab
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp
@@ -0,0 +1,70 @@
+
+
+
+
+ Headings
+ org.openoffice.da.writer2latex.oxt/Configuration/Headings.xhp
+
+
+
+ Headings
+ Define the conversion of headings in the document
+
+
+ Choose Tools - Options - Writer2LaTeX - Headings
+
+
+ Headings
+
+
+ Heading levels to export
+ Choose the number of heading levels you want to export as LaTeX sectioning commands.
+ Other headings are exported as ordinary paragraphs.
+
+
+ Writer level
+ Choose a heading level to configure.
+
+
+ LaTeX level
+ Choose the heading level in LaTeX to use for the selected Writer level.
+ The standard document classes uses this level numbering
+
+
+ \part: Level -1
+
+
+ \chapter: Level 0
+
+
+ \section: Level 1
+
+
+ \subsection: Level 2
+
+
+ \subsubsection: Level 3
+
+
+ \paragraph: Level 4
+
+
+ \supparagraph: Level 5
+
+
+
+
+ LaTeX heading name
+ Enter the name of the section command in LaTeX, e.g. section to
+ produce a \section, or select a standard section command from the list.
+
+ Indexes and tables
+
+
+ Do not include indexes
+ If you check this option, Writer2LaTeX will not export indexes
+ (e.g. table of contents, bibliopgrahy). This option is intended for the case that the document is to be part
+ of a larger LaTeX document, which may contain global indexes.
+
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp
new file mode 100644
index 0000000..9ec20ea
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp
@@ -0,0 +1,24 @@
+
+
+
+
+ Custom format
+ org.openoffice.da.writer2latex.oxt/Configuration/Introduction.xhp
+
+
+
+ Custom format
+ Define a custom format for the LaTeX export
+
+
+ Choose Tools - Options - Writer2LaTeX
+
+
+
+ Writer2LaTeX comes with a number of predefined LaTeX formats.
+ A format defines the kind of LaTeX document to generate (the document class to use and the packages to load).
+ It also defines a set of rules defining how content and formatting should be exported to LaTeX. Advanced users can define
+ their own format on these pages. This requires some knowledge of LaTeX.
+ To use the custom format, choose Custom in the export dialog.
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp
new file mode 100644
index 0000000..69ac25b
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp
@@ -0,0 +1,52 @@
+
+
+
+
+ Pages
+ org.openoffice.da.writer2latex.oxt/Configuration/Pages.xhp
+
+
+
+ Pages
+ Define how to convert page formatting
+
+
+ Choose Tools - Options - Writer2LaTeX - Pages
+
+
+ Page geometry (page size and margins)
+
+
+ Export page geometry
+ Check this if you want to export the page geometry. Otherwise the default
+ page geometry of the documentclass will be used.
+
+
+ Use geometry.sty
+ Check this to use package geometry.sty to export the geometry of the page.
+ Otherwise the geometry will be exported using low level LaTeX commands.
+
+
+ Export header and footer
+ Check this if you want to export the contents of the header and the footer.
+
+
+ Use fancyhdr.sty
+ Check this to use the package fancyhdr.sty to export the header and footer of the page.
+ Otherwise the header and footer will be exported using low level LaTeX page style commands.
+
+ Page numbers
+
+
+ Use lastpage.sty
+ Check this option to use the package lastpage.sty to represent the page count.
+ Otherwise the page count is not exported (e.g. content like "page 3 of 7" cannot be exported).
+
+ Endnotes
+
+
+ Use endnotes.sty
+ Check this to use the package endnotes.sty to format the endnotes in the
+ LaTeX document. Otherwise endnotes will be converted to footnotes.
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp
new file mode 100644
index 0000000..515fc5a
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp
@@ -0,0 +1,137 @@
+
+
+
+
+ Styles
+ org.openoffice.da.writer2latex.oxt/Configuration/Styles.xhp
+
+
+
+ Styles
+ On this page you can define mappings from styles in %PRODUCTNAME Writer
+ to your own LaTeX styles.
+
+
+ Choose Tools - Options - Writer2LaTeX - Styles
+
+
+
+ Style family
+ Select a style family:
+
+
+ Character: Define LaTeX code for character styles
+
+
+ Paragraph: Define LaTeX code for paragraph styles
+
+
+ Paragraph block: Define LaTeX code for a block of paragraphs
+ starting with a specific paragraph style.
+
+
+ List: Define LaTeX code for list styles
+ (e.g. enumerate or itemize).
+
+
+ List item: Define LaTeX code for individual list items.
+
+
+
+
+ Style name
+ Select an %PRODUCTNAME Writer style name from the list.
+
+
+ New...
+ Click this button to add a new style to the list. Select a style in the list
+ or type a style name.
+
+
+ Delete...
+ Click this button to delete the current style name from the list.
+
+
+ LaTeX code before
+ Enter the LaTeX code to add before this particular style, e.g.
+ \begin{center} or \textbf{.
+
+
+ LaTeX code after
+ Enter the LaTeX code to add after this particular style, e.g.
+ \end{center} or }.
+
+
+ Next style(s)
+ This is only used for paragraph blocks: Paragraphs formatted with a style from
+ this list are included in the block.
+
+
+ Add...
+ Click this button to add another style to the list of next styles.
+
+
+ Remove...
+ Click this button to remove the current style from the list of next styles.
+
+
+ Verbatim content
+ Check this if you want to export the content as verbatim LaTeX. This implies that
+ characters not available in the inputencoding are converted to question marks and that other content is discarded,
+ eg. footnotes.
+
+
+ Line break inside
+ Check this if you want to add line breaks inside the LaTeX construction surrounding
+ this element. You will probably want this for a construction like \begin{center}...\end{center} but not for
+ a construction like \textbf{...}.
+
+
+ Load default mappings
+ Writer2LaTeX comes with a set of default style mappings corresponding to
+ some of the predefined styles in %PRODUCTNAME Writer. Click this button to add these mappings to the current set. You will get
+ a warning if this will overwrite one or more existing mappings.
+
+
+ Other styles
+ Select how you want to export paragraphs and text with a style for which no style
+ mapping has been defined. This enables you to ensure that only content with accepted styles is exported.
+
+
+ Ignore: The content is ignored silently.
+
+
+ Convert: The content is converted as normal.
+
+
+
+
+ Other formatting
+ Select how you want to export formatting for styles that does not have
+ a style mapping.
+
+
+ Ignore all: Ignore all character, paragraph,
+ heading, list and footnote formatting contained in the document.
+
+
+ Ignore most: Convert basic character
+ formatting.
+
+
+ Convert basic: Convert basic character formatting,
+ paragraph justification and all numberings (lists, headings, footnotes).
+
+
+ Convert most: Convert all supported formatting, except
+ that paragraph formatting and font size is only converted if it is set by a style. To be able to preserve
+ formatting, an environment is created for all paragraph styles, custom lists are used for listings, headings are
+ reformatted using the \@startsection command etc.
+
+
+ Convert all: Convert all supported formatting.
+
+
+
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp
new file mode 100644
index 0000000..c507d61
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp
@@ -0,0 +1,71 @@
+
+
+
+
+ Tables
+ org.openoffice.da.writer2latex.oxt/Configuration/Tables.xhp
+
+
+
+ Tables
+
+ Define how to convert tables
+
+
+ Choose Tools - Options - Writer2LaTeX - Tables
+
+
+
+ Do not export tables
+ Check this option to ignore all tables in the export.
+
+
+ Use colortbl.sty (background color in cells)
+ Check this if you want to apply background color to tables using the
+ package colortbl.sty. This option has no effect unless you also check Use color.sty on the page
+ Characters.
+
+
+ Use tabulary.sty (automatic column width)
+ Check this if tabulary.sty should be used to export tables.
+ This package determines column widths automatically which can be useful for tables with a lot of text in each cell.
+
+
+ Use supertabular.sty (multipage tables)
+ Check this to use the package supertabular.sty to export tables which may break
+ across pages.
+
+
+ Use longtable.sty (multipage tables)
+ Check this to use the package longtable.sty to export tables which may break
+ across pages.
+
+
+ Style for first head
+ This option is used to produce advanced tables, that are not supported in
+ %PRODUCTNAME Writer. Enter the name of a paragraph style. If the first paragraph of the first cell in a row is formatted
+ with this paragraph style, the row in question will be used for the first head in a multipage table.
+
+
+ Style for head
+ Likewise this option specifies a paragraph style that identifies a
+ repeating head in a multipage table (like a normal table head in %PRODUCTNAME Writer).
+
+
+ Style for foot
+ This option specifies a paragraph style that identifies a repeating foot in a
+ multipage table.
+
+
+ Style for last foot
+ This option specifies a paragraph style that identifies the last foot in a
+ multipage table.
+
+
+ Table sequence name
+ This option can be set to a sequence name in the source document.
+ OpenDocument has a very weak sense of table captions: A table caption is a paragraph containing a sequence number.
+ If you use %PRODUCTNAME's defaults, Writer2LaTeX can guess which sequence name to use.
+ If it fails, you can type the name here. Normally it should be left empty.
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp
new file mode 100644
index 0000000..ae5dfe6
--- /dev/null
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp
@@ -0,0 +1,82 @@
+
+
+
+
+ Text and math
+ org.openoffice.da.writer2latex.oxt/Configuration/Textandmath.xhp
+
+
+
+ Text and math
+ Define how to convert text strings and math content.
+
+
+ Choose Tools - Options - Writer2LaTeX - Text and math
+
+
+ Math packages
+
+
+ Use ooomath.sty (custom package supporting %PRODUCTNAME equations)
+ Check this to use the LaTeX package ooomath.sty. This package defines a number of
+ LaTeX macros used to convert formulas from %PRODUCTNAME to LaTeX. If this package is not used, the necessary definitions will
+ be included in the LaTeX preamble, which may become quite long. Hence using ooomath.sty is recommended for documents with
+ formulas. The package is part of the complete
+ Writer2LaTeX distribution.
+
+ Math symbols
+ In %PRODUCTNAME Math you can add user-defined symbols. Writer2LaTeX already
+ understands the predefined symbols such as %alpha. If you define your own symbols, you can define corresponding LaTeX
+ code here.
+
+
+ Name
+ Select the name of the user-defined symbol.
+
+
+ New...
+ Click this button to add a new symbol to the list. Select a symbol from the list
+ or type the name.
+
+
+ Delete...
+ Click this button to delete the current symbol from the list.
+
+
+ LaTeX code
+ Enter the LaTeX code corresponding to this symbol, e.g.
+ \Downarrow.
+
+ Text replace
+ Often LaTeX requires special care to typeset certain constructions. For example
+ according to German typographical rules, an abbreviation like z.B. should be typeset with a small space before the B, which in
+ LaTeX code will be z.\,B. Another example is French quotations marks (« Je parle français ») which should be
+ converted to the LaTeX macros \fg and \og. A final example is translation of the text LaTeX to
+ \LaTeX to properly typeset the LaTeX logo.
+
+
+ Input
+ Select a text string from the list
+
+
+ New...
+ Click this button to add a new text string to the list. Enter the original text as it appears
+ in the %PRODUCTNAME Writer document, or paste text from the clipboard.
+
+
+ Delete...
+ Click this button to the delete the current text string. Writer2LaTeX has
+ a few predefined strings that cannot be deleted.
+
+
+ LaTeX code
+ Enter the LaTeX code to export for this text string.
+
+ Tab stops
+
+
+ LaTeX code
+ Normally tab stops are converted to spaces, but in this field you can enter any
+ LaTeX code, that should be used instead. For example \quad{} or \hspace{2em}.
+
+
\ No newline at end of file
diff --git a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp
index 92087f0..cf0ba98 100644
--- a/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp
+++ b/source/oxt/writer2latex/help/en/org.openoffice.da.writer2latex.oxt/export.xhp
@@ -51,7 +51,8 @@
Custom is a user defined format. To configure the custom format,
- choose Tools - Options - Writer2LaTeX.
+ choose Tools - Options - Writer2LaTeX.
diff --git a/source/oxt/writer4latex/W4LDialogs/Configuration.xdl b/source/oxt/writer4latex/W4LDialogs/Configuration.xdl
index bc5c289..bcfbe2e 100644
--- a/source/oxt/writer4latex/W4LDialogs/Configuration.xdl
+++ b/source/oxt/writer4latex/W4LDialogs/Configuration.xdl
@@ -16,7 +16,7 @@
-
+
diff --git a/source/oxt/writer4latex/help/en/help.tree b/source/oxt/writer4latex/help/en/help.tree
index 77a10db..772d65a 100644
--- a/source/oxt/writer4latex/help/en/help.tree
+++ b/source/oxt/writer4latex/help/en/help.tree
@@ -6,6 +6,6 @@
Menu referenceGuidelinesUsing the templates
- Importing TeX files
+
diff --git a/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/import.xhp b/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/import.xhp
index fc4eaaf..14d1202 100644
--- a/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/import.xhp
+++ b/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/import.xhp
@@ -7,7 +7,7 @@
- Importing TeX files
- Coming soon to an extension near you!
+
\ No newline at end of file
diff --git a/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/introduction.xhp b/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/introduction.xhp
index 5a24fb0..c95d6bf 100644
--- a/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/introduction.xhp
+++ b/source/oxt/writer4latex/help/en/org.openoffice.da.writer4latex.oxt/introduction.xhp
@@ -40,7 +40,7 @@
- LaTeX import
+
Before you startBefore you can use Writer4LaTeX, you need to
@@ -64,7 +64,7 @@
http://extensions.services.openoffice.org/project/writer2latex.
- Writer4LaTeX needs a working LaTeX distribution including TeX4ht.
+ Writer4LaTeX needs a working LaTeX distribution.
MikTeX is recommended and can be downloaded from
http://www.miktex.org.
@@ -84,14 +84,14 @@
http://extensions.services.openoffice.org/project/writer2latex.
- Writer4LaTeX needs a working LaTeX distribution which includes TeX4ht.
+ Writer4LaTeX needs a working LaTeX distribution.
TeX live
is recommended and is available for most UNIX-like systems. The installation depends on your system.
If you are using Debian or Ubuntu you can for example install the required packages by typing these commands from a terminal window:sudo apt-get install texlive
sudo apt-get install texlive-latex-extra
sudo apt-get install texlive-xetex
- sudo apt-get install tex4ht
+ Finally you should install viewers for DVI, PDF and PostScript files.