Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] LaTeX Quickstart Guide
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Malice
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2003
Posts: 78

PostPosted: Fri Aug 15, 2003 2:19 am    Post subject: Reply with quote

Also...

Anyone have a semi-decent way of spell checking a latex file??

You can use the -t arg with Aspell
Code:
aspell -t -c latexfile.tex
to tell it to ignore the latex macros themselves, but most of my docs are full of Java source code (using the listings package) which is damn annoying to get through with Aspell. Also a lot of the preamble gets picked on by Aspell too.

A friend of mine has a script which strips out the nasty stuff (latex macros, source code, anything that he doesn't want spell checked) and then runs Aspell on that. The downside of his approach is that when he does find a spelling mistake, he has to manually fix it in his original un-stripped version of the document.

An approach that just occured to me as I was writing this is to put any source code (and anything else that you don't want spell-checked) in a different latex file, and include it into your main file when needed. That way you run Aspell on the main file and it doesn't see the source code - must start doing that. I already have the preamble in a different file.

Anyone have any other approaches that work well?
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Fri Aug 15, 2003 8:30 am    Post subject: Reply with quote

if u use vim - try the following packages, both ignore program languages but check comments in source code - sounds like what u are looking for :) :

http://www.vim.org/scripts/script.php?script_id=499
http://www.vim.org/scripts/script.php?script_id=195

and afaik it is possible to have 1 external file with source code and tell the listings package to include lines x-y while keeping the line numbering in tex consistent from one listing to the other...
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
arand
Apprentice
Apprentice


Joined: 22 Apr 2003
Posts: 215

PostPosted: Mon Aug 18, 2003 3:15 pm    Post subject: Reply with quote

In relation to the spelling question. I checked in kile with a simple document. Kile seems to at least ignore stuff like usepackage however it will not ignore the argument like graphicx.
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Mon Aug 18, 2003 3:50 pm    Post subject: Reply with quote

arand wrote:
In relation to the spelling question. I checked in kile with a simple document. Kile seems to at least ignore stuff like usepackage however it will not ignore the argument like graphicx.


yeah - it has basic support for the tex syntax - but i doubt that it can take the source code parts :(
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
softchill
n00b
n00b


Joined: 28 Jun 2003
Posts: 73
Location: Quebec, Canada

PostPosted: Sat Sep 13, 2003 8:57 pm    Post subject: Reply with quote

I'm looking for the package where pdflatex is... I thought it was in tetex, but it is'nt. Can anyone guide me ?
Back to top
View user's profile Send private message
arand
Apprentice
Apprentice


Joined: 22 Apr 2003
Posts: 215

PostPosted: Sat Sep 13, 2003 9:21 pm    Post subject: Reply with quote

I just Emerged kile on a new system and it automagically was installed along the way. I tried qpkg.
Code:
 qpkg -f /usr/bin/pdflatex

However it gave no output so I am not sure what package that you need to emerge.

Maybe someone else can help.
Back to top
View user's profile Send private message
softchill
n00b
n00b


Joined: 28 Jun 2003
Posts: 73
Location: Quebec, Canada

PostPosted: Sat Sep 13, 2003 9:29 pm    Post subject: Reply with quote

I pretended to emerge kile, and here's the output:
Code:
[softchill@aria softchill]$ emerge -p kile

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N   ] sys-apps/pciutils-2.1.10-r1 
[ebuild  N   ] sys-apps/usbutils-0.11-r1 
[ebuild  N   ] sys-apps/hotplug-20030501-r2 
[ebuild  N   ] net-print/cups-1.1.19-r1 
[ebuild  N   ] app-text/ghostscript-7.05.6-r3 
[ebuild  N   ] media-libs/libart_lgpl-2.3.12 
[ebuild  N   ] app-text/sgml-common-0.6.3-r3 
[ebuild  N   ] app-admin/fam-oss-2.6.9-r3 
[ebuild  N   ] dev-libs/libxslt-1.0.31 
[ebuild  N   ] kde-base/kdelibs-3.1.2-r1 
[ebuild  N   ] app-editors/kile-1.5


I dont think any of these would install pdflatex. And tetex is already installed.
Back to top
View user's profile Send private message
arand
Apprentice
Apprentice


Joined: 22 Apr 2003
Posts: 215

PostPosted: Sun Sep 14, 2003 5:12 am    Post subject: Reply with quote

Like I said I am not sure what package is needed for pdflatex. If you don't want to emerge all of those packages

I would suggest that you just compile everything and see if it works. If it doesn't then you can unmerge the apps you don't need. If you want to cut down a little on the apps installed try setting your use varibles to include -cups so that you don't have to compile cups.
Back to top
View user's profile Send private message
daen1543
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2003
Posts: 85
Location: Berkeley, CA, USA

PostPosted: Sun Sep 14, 2003 11:36 am    Post subject: Reply with quote

Pdflatex is just a symlink to pdftex, which is part of the tetex package. Hope this helps.
Code:
[04:34:39][daen@menace:~]$ ls -l `which pdflatex`
lrwxrwxrwx    1 root     root            6 Aug 14 13:19 /usr/bin/pdflatex -> pdftex
[04:35:00][daen@menace:~]$ qpkg -f `which pdftex`
app-text/tetex *
Back to top
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 738

PostPosted: Wed Sep 24, 2003 7:49 am    Post subject: Reply with quote

I use Jext for my LaTeX editor. It's a java-based text editor. In fact, I use it to do all of my coding. It has a plugin for MikTeX (for windows) that can be modified for Linux to generate dvi/pdf files and it has a built-in console. It's not GTK but you can at least make it _look_ like Gnome.

As far as spelling goes, it's a bit dodgy. I copy my code into OpenOffice.org and it does the spell checking; I have gotten (g)vim (using Aspell) to do it for me too, but it was too annoying using that program as a word processor so I stopped. My brother uses emacs and it can be setup to spell-check and colourize (hehe, two different countries' spelling rules in one word) your code, but I don't like emacs either (I'm picky aren't I?).

For use with pdflatex: As far as images go, I convert the picture to eps (using Gimp) then I convert again to PDF (using eps2pdf). Converting them to PDF makes them easy to manipulate in the LaTeX document (i.e. scaling, rotating etc.).

As far as a random (but important) LaTeX tip goes: \usepackage{fullpage} is your friend. Unless you're writing a book, you'll want to use this as it yields correct margin sizes for reports. Long/short: it will make your reports look oh-so-much better!

As far as touting LaTeX goes: it's great and I even did my resume in it (it looks awesome)!

I hope these tips can be of some use to you...

good luck!

dq
Back to top
View user's profile Send private message
StinkyLou
n00b
n00b


Joined: 13 Aug 2003
Posts: 11

PostPosted: Thu Oct 02, 2003 1:25 pm    Post subject: Reply with quote

slartibartfasz,

Thanks for an outstanding quick-start guide! I wish I'd had something so concise when I started learning LaTeX. :wink:

Malice,
Quote:
If anyone needs a hand sorting out a Latex/PPower4 presentation then let me know (PM). I have a Makefile that I use that has been evolving over the last couple of months, and does the job nicely.

PPower4 looks like a great package. Have you considered submitting an ebuild?


Cheers!
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Tue Oct 07, 2003 8:11 am    Post subject: Reply with quote

Does anyone have any information on using latex with truetype fonts, such as the standard microsoft fonts? I would like to be able to print to pdf and have something that looks good both on paper and on the screen.
Back to top
View user's profile Send private message
XeroByte
n00b
n00b


Joined: 13 Aug 2002
Posts: 21
Location: Belgium

PostPosted: Fri Oct 10, 2003 9:35 am    Post subject: Reply with quote

Thank you dude, needed a guide like that... haven't read the whole thing because I'll try it later, but bookmarked the link...

EDIt: when I run 'emerge dvipdfm' it wants to install an older package of tetex (1.x.x) tho I have installed the newer 2.x.x... Is that supposed to be or is that a mistake?
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Mon Oct 13, 2003 1:28 pm    Post subject: Reply with quote

XeroByte wrote:
when I run 'emerge dvipdfm' it wants to install an older package of tetex (1.x.x) tho I have installed the newer 2.x.x... Is that supposed to be or is that a mistake?


i guess so - try without downgrading tetex and if it works without proplems report on bugs.gentoo.org.

@StinkyLou:
there is an ebuild for prosper, which is quite similar to PPower4. the makefile mentioned by malice sorts tex source into a print and a screen version - if u want it, i'll see if i can find it again.

@bludger:
there is not really such a thing as microsoft truetype on latex - for changing the fonts read the section in the guide and take a look at the FAQ links. i'm pretty sure u find more about this topic than u wanted to know ;)

@all: thx :oops:
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 738

PostPosted: Fri Oct 17, 2003 4:42 pm    Post subject: Reply with quote

Another useful tip which I forgot to mention was getting a degree symbol:
Code:

\newcommand{\degree}{$\tt{^o}$ }


With this command one can type: 40\degree C and when processed, the \degree will be a little degree symbol.

I found this the easiest way of getting the symbol, it doesn't require using any outside packages etc...

dq
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1276
Location: Hamburg, Germany

PostPosted: Mon Oct 20, 2003 10:57 pm    Post subject: Reply with quote

For all interested in vim-latex, here is a ebuilds:
http://www.breakmygentoo.net/ebuilds/vim-latex-1.5_rc1.ebuild.tar.bz2

as you might wonder, it is not yet in portage ....
https://bugs.gentoo.org/show_bug.cgi?id=30285

Greetz, Björn
_________________
etc-proposals, your friendly config file updater!
Back to top
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 738

PostPosted: Mon Oct 20, 2003 11:57 pm    Post subject: Reply with quote

Could you tell us a little more about vim-latex? (or provide a link?) My first experience with LaTeX and vim was not too successful, but maybe I should try again.

Thx.

dq
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1276
Location: Hamburg, Germany

PostPosted: Tue Oct 21, 2003 5:46 am    Post subject: Reply with quote

Quote:
Could you tell us a little more about vim-latex? (or provide a link?) My first experience with LaTeX and vim was not too successful, but maybe I should try again.

http://vim-latex.sourceforge.net/
The helpfile will be installed by the ebuild and be available by typing
Code:
:help latex-suite

in vim
_________________
etc-proposals, your friendly config file updater!
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Sat Oct 25, 2003 12:33 pm    Post subject: Reply with quote

don quixada wrote:
Could you tell us a little more about vim-latex? (or provide a link?) My first experience with LaTeX and vim was not too successful, but maybe I should try again.


i've made very good experiences with vim-latex. its takes some time to get used to the new commands but its really convenient. especially the bracket jump and autofolding are very handy. the only thing i dont use is the 'compiler' (\ll) - i usually have 'latexmk -pvc --force' running to see the updated dvi whenever i write the buffer. btw for anyone interested, i hacked latexmk to support the nomencl package.

[EDIT] @björn - good idea with the ebuild :)
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
Birnenpfluecker
Guru
Guru


Joined: 01 Sep 2003
Posts: 315
Location: Lage, Germany

PostPosted: Thu Oct 30, 2003 2:31 pm    Post subject: Reply with quote

thx for that guide. I'm emerging and will test it. Found no proper guide how to start until I found this one. Good work.
Back to top
View user's profile Send private message
Birnenpfluecker
Guru
Guru


Joined: 01 Sep 2003
Posts: 315
Location: Lage, Germany

PostPosted: Thu Oct 30, 2003 7:59 pm    Post subject: Reply with quote

Ready with the compiling, but I have a problem. I'm a noob to linux and doesn't which program I need to read the *.dvi files....
So I can't read the manuals you posted. Sorry for the stupid question
Back to top
View user's profile Send private message
don quixada
l33t
l33t


Joined: 15 May 2003
Posts: 738

PostPosted: Fri Oct 31, 2003 7:36 am    Post subject: Reply with quote

Install `xdvik'. (`emerge -s' is your friend.)

dq
Back to top
View user's profile Send private message
Birnenpfluecker
Guru
Guru


Joined: 01 Sep 2003
Posts: 315
Location: Lage, Germany

PostPosted: Fri Oct 31, 2003 12:27 pm    Post subject: Reply with quote

thx for the fast answer
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1276
Location: Hamburg, Germany

PostPosted: Sat Nov 01, 2003 1:28 pm    Post subject: Reply with quote

vim-latex is now in portage:
Code:
bash-2.05b$ emerge -s latexsuite
Searching...   
[ Results for search key : latexsuite ]
[ Applications found : 1 ]
 
*  app-vim/latexsuite [ Masked ]
      Latest version available: 1.5_rc1
      Latest version installed: 1.5_rc1
      Size of downloaded files: 184 kB
      Homepage:    http://vim-latex.sourceforge.net/
      Description: vim plugin: Latex-Suite attempts to provide a comprehensive set of tools to view, edit and compile LaTeX documents in Vim.

_________________
etc-proposals, your friendly config file updater!
Back to top
View user's profile Send private message
Cloney
n00b
n00b


Joined: 10 Oct 2003
Posts: 65

PostPosted: Sun Nov 02, 2003 9:50 am    Post subject: Reply with quote

Just to say that (for ~x86 anyway) Kile 1.6 is in arch. Hopefully this will fix the broken Latex reference file, and provide some Quick Build options that don't immediately fire up a viewer.

I'm compiling at the moment, I'll let you know how it goes. Thanks for this thread by the way - Kile is fantastic, and has really eased my relationship with LaTeX. I thought I hated it, but it turned out I just hated eMacs :twisted:

EDIT: Right, got it up. The editor's changed to the kate editor, embedded, which is a bit more powerful (haven't fiddled with all the options yet). The LaTeX quick-reference works (woo!), but there's still no option for a Quick Build that doesn't open a viewer. (I think I'll file a Kile feature request).

What bugs me is when you're editing page n of an m page document, and doing a quick build always starts the viewer up on page 1, so you have to scroll through. What I really want is kghostview on file-watch mode to simply be brought to the front on a quickbuild.

UPDATE: Idiot that I am, I just discovered watch mode, which does exactly what I need. Was this in 1.5.2?

Cloney
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 2 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum