Log in

No account? Create an account

Previous Entry | Next Entry

LaTeX versus *Office

From time to time I need to write about 15 pages long reports, including a titlepage, bibliography and all that stuff. When I was a stundent I used LaTeX, what else...? Ok, now I am to use a OfficeSuite because I am the only guy how even knows about TeX (we share the files). Ok, so lets write in OpenOffice. I love KOffice but the font-kerning problem and the table problems (both will be fixed in KOffice 2!) make it impossible for me to use KWord, sorry :(
Well, beside the fact that OpenOffice takes ages to load, has many translation issues and all that it is a pretty good product. Until today I was pretty content. Today, I needed to include linenumbering in a report. But of course, only in the "content" part of it, not on the titlepage. I read the manual, I clicked every button I found, I googled, I tried if you can create a page-template with linenumbers disabled, I searched a wiki, I gave up. Is it possible to tell OO2 to number lines only from page 2 on? Perhaps even "only pages 2 to 14" so that the bibliography wouldn't have line numbers?
Of course, I could create three different documents, but that would break other scripts like pagenumbering and internal references and would create another problem: I need to create a PDF from the report and I don't know if you can create *one* PDF from three ODT-files...

In KDE-related news: Currently I don't have time for KDE, but that will change next week. I plan to update the ChangeLog next week, as in the past two weeks I didn't note down a single bugfix. So please, if you changed anything in KDE 3.5.3 which is not in the ChangeLog: Please tell me or update the ChangeLog yourself.


( 24 comments — Leave a comment )
May. 16th, 2006 02:19 pm (UTC)
Well, if you can't make it work and the people you share the document with use OpenOffice too, I would suggest you to teach them the basics of LaTeX. I mean, unless you have to include images, graphics, diagrams or other things that are complex to do in LaTeX, you could teach them some commands. You would finally correct mistakes made and have them see the output to try to convince them. It may not be the perfect choice, or perhaps they find it fits well.
May. 16th, 2006 11:39 pm (UTC)
Re: LaTeX
Please read my long explantion a few comments down. We have to include images (and no, people don't know about eps, ps and so on, they use jpg for *everything*) and a lot tables and what in LaTeX would be called minipages. That is not trivial. Beside, they simple wouldn't accept using a non-wordprocessor and I don't have the time to teach them.
May. 16th, 2006 11:48 pm (UTC)
Re: LaTeX
Yep, but if you "compile" your .tex directly into PDF (use the pdflatex command), you can use jpg or png without any problème ;)

May. 16th, 2006 02:20 pm (UTC)
Tricky title
> LaTeX versuch *Office

This is mean. I knew there was a "ch" in there, but the "X" in LaTeX was written correctly. I had to read it at least 4 times until I saw it's in the following word.

Damn Chi, why can't they just pronounce it like it's written?
May. 16th, 2006 11:44 pm (UTC)
Re: Tricky title
oh, the "versuch" typo is fixed, of course it was "versus" :)
May. 17th, 2006 03:28 am (UTC)
Re: Tricky title
Of course it's "versus". I'm just having a hard time pronouncing LaTeX correctly, and that title was confusing me. But then, I might not be the only one being confused by that ;-)
May. 16th, 2006 02:24 pm (UTC)
Activate the line numbering from the "tools" menu. Then, select the text from the first page, right-click, choose "paragraph", goto the "numbering" tab and deactivate "include this paragraph in line numbering".

Hope this works for you,
May. 16th, 2006 02:35 pm (UTC)
"include this paragraph in line numbering"

Mmmm... He refers to page numbering.
May. 16th, 2006 06:27 pm (UTC)
He says line numbering several times.
At least that's how I read it. Using the "Include this paragraph in line numbering" works.
May. 16th, 2006 11:31 pm (UTC)
Yes that works. Indeed, I did not try to treat a whole page as one paragraph... Very strange concept IMHO. Thank!
May. 16th, 2006 11:59 pm (UTC)
No, you don't need to take a whole page as one paragraph.

The concept is, that the decision wether a line should be numbered or not depends on the content of the text. And for different contents you use different paragraph styles.

If you look at the predefined paragraph styles in OOo you can see that some are included in line numbering (as e.g. "text body" and all the styles that are based on it), some are excluded (as e.g. toc styles).

The best way to achieve in OOo what you want is to use different paragraph styles for different types of content.

So you can use a paragraph style "bibliography" (there is already a predefinded one, which is called in German "Literaturverzeichnis 1") for which line numbering is turned off.

IMHO it's not a "strange concept" at all, but rather a quite clear one.
May. 16th, 2006 02:38 pm (UTC)
HowTo control initial page numbering
May. 16th, 2006 11:37 pm (UTC)
Re: HowTo control initial page numbering
I was talking about line-numbering :)
May. 16th, 2006 02:42 pm (UTC)
I don't know for table of content, but I know for head page. Basically, you added the page number in a footer or header. All you need is to disable the footer/header for the head page (the first page, the title page). To do that, move your cursror to the first page, use F11 to show the Stylist, and on top of that panel there is a lot of icons. Find the icon for "Page Styles" and click it. Now, click the style named "First Page" and the first page will not have any header/footer. Last time I tried, only one page was able to be of style "head page". But I haven't tryed a lot... So perhapse you can make your table of content page an head page too.
May. 16th, 2006 06:29 pm (UTC)
Re: Sebien
Or a really evil, not very correct way to do it would be to include the entire first page in the header or footer with a "blank" page.

Hopefully there is a better workaround.
May. 16th, 2006 08:21 pm (UTC)
Multiple ODTs -> one PDF (in the end)
One way you could perhaps use different documents and then have only one PDF is by using "pdfjoin".
You would separately export three documents to PDF files from OO.o. Then you would join the three PDF files into one by using pdfjoin. I have not tried it on the PDFs exported from OO.o, but pdfjoin proved useful to me, on other PDFs.

On my Debian install (unstable):

$ whatis pdfjoin
pdfjoin (1) - concatenate the multiple PDF files into a single file
$ dlocate `which pdfjoin`
pdfjam: /usr/bin/pdfjoin

Good luck!
May. 17th, 2006 12:33 am (UTC)
Re: Multiple ODTs -> one PDF (in the end)
Not only pdfjoin is a solution. Try pdftk or the pdfpages packages for LaTeX. :)

With pdftk as well as with pdfpages you can rearrange, split, join pdfs ... nearly everything one can think of.
May. 17th, 2006 03:40 am (UTC)
Re: Multiple ODTs -> one PDF (in the end)
KPDFTool could be another solution (didn't try it, though)
May. 16th, 2006 09:30 pm (UTC)
Use LyX: it generate pdfs and it's "grafical-enough" to be used also from people who don't understand LaTeX
May. 16th, 2006 11:36 pm (UTC)
Re: LyX
First of all, I am in no position to teach my "bosses" who read those papers what to use.
I already convinced several of them to use OO2 instead of MS-Office, which is a huge win for me, as I don't need to fight with converting .doc-files. The oo2-doc-importfilter is ok, but the more tables and "advanced" features like linenumbering you use the worse it gets...
LaTeX and LyX are are both not made for the guy next door. Also, we have to use quite some tables, and even though I love LaTeX, tables suck in LaTeX. They are very hard to read and thus to change in the code and the are not flexible at all. Esp. when it comes to multipage-tables, minipages in tables and all that stuff.
May. 19th, 2006 07:52 am (UTC)
Re: LyX
LyX? Ok... it's cool,it's light but there's something better!
If you like Emacs and love Latex, just use texmacs (of course isn't 100% pure latex... it's more 50% latex 50% word (maybe less...))
May. 16th, 2006 10:10 pm (UTC)
I have had this exact problem, and solved it, though it took about 30 minutes of experimenting.
OpenOffice has something called "Page Styles". Headers and footers are associated with the Page Styles. You'll need two different ones, one with page numbering and one without (Simply using "Default" for the one without page numbers is the simplest). First you set the document to use the page style without page numbers (e.g. Default). Then you insert a page break (Insert - Manual Break in the menues) before the content begins. In the dialog you have the option to use another page style, and now you select the one with page numbers. Then before the bibliography you insert another page break, selecting the page style without page numbers (e.g. Default).

This is all very logical, *if* you remember that headers and footers belong to a page style, and you can swich page style with manual page breaks...
May. 17th, 2006 01:01 am (UTC)
Can generate OpenOffice.org documents - just use it.
May. 17th, 2006 02:57 am (UTC)
Re: kdissert
What does your comment have to do with my problem (which is btw fixed)? I use KDissert but not for writing reports, of course.
( 24 comments — Leave a comment )


Taken in Portugal

Latest Month

July 2009

Page Summary

Powered by LiveJournal.com
Designed by Tiffany Chow