Examples of BibMark


Examples of writer2latex.office.BibMark

    public void handleBibliographyMark(Element node, LaTeXDocumentPortion ldp, Context oc) {
        if (config.useBibtex()) {
            if (bibDoc==null) { bibDoc = new BibTeXDocument(palette.getOutFileName()); }
            String sIdentifier = node.getAttribute(XMLString.TEXT_IDENTIFIER);
            if (!bibDoc.containsKey(sIdentifier)) {
                bibDoc.put(new BibMark(node));
            }
            ldp.append("\\cite{")
               .append(bibDoc.getExportName(sIdentifier))
               .append("}");
        }
View Full Code Here

Examples of writer2latex.office.BibMark

        osw.write("%% This file was converted to BibTeX by Writer2BibTeX ver. "+Application.getVersion()+".\n");
        osw.write("%% See http://www.hj-gym.dk/~hj/writer2latex for more info.\n");
        osw.write("\n");
        Enumeration enumeration = entries.elements();
        while (enumeration.hasMoreElements()) {
            BibMark entry = (BibMark) enumeration.nextElement();
            osw.write("@");
            osw.write(entry.getEntryType().toUpperCase());
            osw.write("{");
            osw.write(exportNames.getExportName(entry.getIdentifier()));
            osw.write(",\n");
            for (int i=0; i<BibMark.FIELD_COUNT; i++) {
                String sValue = entry.getField(i);
                if (sValue!=null) {
                    osw.write("    ");
                    osw.write(getFieldName(i).toUpperCase());
                    osw.write(" = {");
                    for (int j=0; j<sValue.length(); j++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.