Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorjwbrown
    • CommentTimeNov 15th 2009 edited
     
    Hey guys,

    According to the Memoir manual (and I think latex in general) there are 7 sectional headings available: Book through sub-paragraph. Unfortunately, the latex exporter does not give you access to several of the heading levels. In particular, below "subsection" and above "part." Is there a way to modify the exporter to allow access to these heading levels? This seems like something easy to do...

    Thank You,

    Josh
    •  
      CommentAuthorsmolk
    • CommentTimeNov 16th 2009
     
    Not sure where you are looking for these headers, but I have defined them as paragraph styles: level 1 = section, level 2 = subsection, and another level = subsubsection. Works as intended. (I have my own chapter formatting style, so chapter is not included.)
    •  
      CommentAuthoraka
    • CommentTimeNov 17th 2009
     
    Hi All,

    This might be a good time and place to ask this question:

    Does anyone, as a matter of routine, find themselves deleting the Latex preamble as well as deleting the \begin and \end commands produced with the Ulysses Latex Exporter?

    This gives me at any rate chapters which I then \include{e.g.chapter} in a master Latex file using particular packages and fonts.
    It would streamline the production of drafts and edits if I didn't have to remove anything from files produced by the Ulysses Latex Exporter while still having embedded \chapter, \subsection, \cite, \epigraph, et cetera commands so nicely taken care of by the Exporter.
    I'm not sure if I am asking for tips to get around tweaking exported Latex files, or making a suggestion about adding functionality to the exporter. Modifying the \include{e.g.chapter} command might be one way, but is beyond my Latex programming skills. Often the revisions one makes to a draft are very small, sometimes just a matter of making the Latex syntax correct within a Ulysses document, and it would be very very nice to avoid having to also edit each file the Exporter produced each time so that it could be read with the \include{e.g.chapter} command.

    Perhaps my question is really this:
    How would one go about creating or obtaining a 'Blank' class template for the Exporter?

    Thanks and cheers.
    •  
      CommentAuthorsmolk
    • CommentTimeNov 17th 2009
     
    Not sure whether I can help you, but here goes:
    I used to do this, and work with a master-file, but no longer. If I want to export a single chapter, I select this chapter in the browser during export; otherwise, I select "All" and get everything all at once. Chapter titles are defined in each chapter's first file for which I don't use the LaTeX-environment but my own; each chapter starts with a chapter-title file that only contains title, number, and contents page info, i.e.

    \newpage\lhead[\thepage]{\textsc{\textit{The Terminology of Translation}}}\rhead[\textsc{\textit{Here We Go Again}}]{\thepage}{\thispagestyle{empty}\noindent \, \hfill {\huge 5}\\
    \noindent \, \hfill {\huge The Terminology of Translation}\bigskip\setcounter{chapter}{5} \setcounter{section}{0}\setcounter{footnote}{0}\medskip\addcontentsline{toc}{chapter}{\protect\numberline{5}The Terminology of Translation}

    To be honest, I may have changed some elements in the preamble, but hell I cannot remember! Given the use of %, I guess I did. My Preamble looks as follows:

    %
    % Ulysses LaTeX Export
    %

    \documentclass[@fontSize@@xSided@@paperSize@@openChapter@@additionalOptions@]{book}

    % @typearea@\usepackage[@language@]{babel}
    % \usepackage[@encoding@]{inputenc}
    % \usepackage{graphics}
    % @type1Fonts@@numbering@
    % \clubpenalty=10000
    % \widowpenalty=10000
    % \displaywidowpenalty=10000
    % @pageMargins@
    @maediaval@@opticalAlignment1@@userPreambleAdds@
    \begin{document}

    But then I routinely check under "Additional Options" the "Add to preamble" with "\usepackage{Ovadya}" in which Ovadya.sty is my own style file, containing paper size, packages, and all that jazz. The result is either a perfect chapter, or all chapters. I never work in the laTeX-files directly, which is good, because that would open up the possibility that changes do not find their way in the Ulysses-file. Little tweaks I add within Ulysses. But I readily admit that I only know as much LaTeX as it seems I need to know. I do find it an advantage that I do not change anything in a masterfile any longer. Straight exports provide a clean workflow.
    •  
      CommentAuthormichael
    • CommentTimeNov 17th 2009
     
    > According to the Memoir manual (and I think latex in general) there are 7 sectional headings
    > available: Book through sub-paragraph. Unfortunately, the latex exporter does not give you
    > access to several of the heading levels. In particular, below "subsection" and above "part." Is
    > there a way to modify the exporter to allow access to these heading levels? This seems like
    > something easy to do...

    You can just create your own template. In the Template section of the exporter settings click on the "New..." Button. The template editor will appear. In the preamble, replace "<#New Template#>" with "memoir". Add all you need to the other sections for your own "Memoir Template".
    •  
      CommentAuthormichael
    • CommentTimeNov 17th 2009 edited
     
    > How would one go about creating or obtaining a 'Blank' class template for the Exporter?

    Well, create a new template as I wrote in my previous post. Delete all inside the preamble section (or leave just a comment there). Alternatively, you can put your custom preamble into the preamble section and let the exporter create the master file and the files to be included.
    •  
      CommentAuthoraka
    • CommentTimeNov 25th 2009
     
    I just wanted to thank smolk and michael for sharing their workflow and suggestions...
    Creating a custom template by commenting everything out except for an @document@ line and unchecking the "text setup" boxes did in fact give me the generic latex files for numbered chapters that I was looking for and which still produced chapter headings within each file. In future projects I may very well place more reliance on the Latex Exporter to handle the entire workflow, but for now I'm still hooked aesthetically on typesetting a relatively small master file. Thanks very much for getting me to think about refinements and alternatives to my organization.