Not signed in (Sign In)

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

    Hello everybody,

    I need to insert some UNIX man pages in my text and I wish to preserve the look they have on a terminal.
    The best solution I found until now is the following (what it looks to me not trivial to solve is the different indenting of each part):

    1) defining a style for headings (NAME, SYNOPSIS, DESCRIPTION etc.);
    2) defining a style for the body (ex. the DESCRIPTION body);
    3) defining a style for options titles (ex. -c list);
    4) defining a style for options body (the description of what an option does).

    This sounds to me rather clumsy and unmanageable. Can anybody suggest a better way to obtain the same result?

    Thanks in advance
    • CommentTimeMar 3rd 2011
    I think there's currently no easier way than the one you describe, sorry.
    Thanks for your answer.
    I successfully exported my documents to PDF but, when I try to export to LaTeX, I cannot figure out how to obtain the same results.
    It looks I cannot define new styles there. Is it true?
    For example, how could I solve for LaTeX the "UNIX man page" problem I stated in my first question?
    I also need to insert in the text portions of bash scripts and I need for them special formatting options (courier font, gray background for the text etc.).
    Is there any solution to obtain all this when exporting in LaTeX?
    • CommentTimeMar 5th 2011
    Well, you can define how your styles should be converted into LaTeX commands by the exporter. So, first you have to find out, how you can tell LaTeX to create your desired output. If you know that, than you can define your own LaTeX template with the needed LaTeX commands.
    Well this is exactly what I am not able to do.
    I'll try to be more precise.
    When I export to PDF I see a correspondence between a "Description" and a "Style". Clicking on the "Style" definition I get a "Modify ..." command which allows me to manipulate style definitions to suit my needs. (I hope I am correctly translating the commands names from italian here since my version is localized)
    When I try to do the same thing for LaTex, I see a different correspondence between a "Description" and an "Action" and, what's worst, that cannot be customized. So if, for example, I wish to change a font's background for a style, I do not see a way to do it.
    In other words, I was able to construct a proper style for typing "bash code" for PDF but I cannot see anything like this for LaTeX.
    I beg you to be more explicit if you know the answer to my problem since my knowledge of LaTeX is very superficial.
    Thanks again
    • CommentTimeMar 5th 2011
    Ok, you have to know, that the LaTeX exporter doesn't define any fonts, colors, backgrounds, etc. This is all done by LaTeX. The LaTeX exporter only creates the input files for the LaTeX system. So, you have to learn LaTeX, if you want using LaTeX in such a special way.
    Maybe I am missing something here and I apologize in advance if such is the case.
    I am not mistaking, I have seen LaTeX documents with, say, code portions inserted in them with a special formatting.
    After all you say "you have to learn LaTeX, if you want using LaTeX in such a special way".
    So, correct me if I am wrong, I assume what you write means "at the moment Ulysses is not able to do this and this" and not "Ulysses will never be able to do this since with LaTeX it is impossible". Right?
    If it is so, may I venture to ask: do you know if and when it will be possible? (I understand we are not talking of an easy accomplishment here)
    Because, you see, should it be impossible for ever, one might wonder: why shouldn't I solve my problems using the "styles" feature of something like, say, or a another comparable word processor? After all, if all Ulysses allows is the production of word and pdf documents, it might look a bit of an overkill.
    • CommentTimeMar 6th 2011
    The difference with PDF and LaTeX is that LaTeX uses predefined styles. It's all fixed, based on the LaTeX template (Book, Essay, XYZCrazyOutput). Headlines, lists, quotations — they are defined within the template, and our exporter can only map your tags to these definitions, but won't let you define your own variations of these defnitions. That has to be done in the template itself.

    So in order to achieve what you are looking for, you must first find or create or modify a LaTeX template that suits your needs. Maybe ther'es a UNIX manpage template out there somewhere...

    As for the styles feature of OpenOffice vs Ulysses: You are absolutely right, of course. Ulysses was not build for formatting, but for writing, and as such its formatting options are somewhat limited. You won't be able to create a fashion magazine with it, either, I think. :)