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
slartibartfasz
Veteran
Veteran


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

PostPosted: Fri Jun 04, 2004 7:21 am    Post subject: Reply with quote

You could use the option 'texcl' or one of the possible escape sequences to typeset LaTeX code inside a listing. Also try to explicitly set 'extendedchars' as an option.

Details about the options can be found in /usr/share/texmf/doc/latex/listings/listings.dvi

Welcome to LaTeX :D
_________________
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
data
n00b
n00b


Joined: 15 Jan 2004
Posts: 17
Location: France

PostPosted: Fri Jun 04, 2004 5:46 pm    Post subject: Reply with quote

Great it worked, thanks.

I just added this line towards the beginning of my document.
Code:
\lstset{extendedchars=true}

Now all the accents appear normally.
Back to top
View user's profile Send private message
mvikred
n00b
n00b


Joined: 26 Mar 2004
Posts: 33

PostPosted: Mon Jun 07, 2004 12:18 pm    Post subject: Reply with quote

Code:
The LOG file does not exist or you do not have read permission. Maybe you forgot to create the LOG file?


thts the error i get , every time i try to run .... i followed all the steps in the guide for latex , but i still end up getting this result

plzzz help

mvikred
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


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

PostPosted: Mon Jun 07, 2004 12:38 pm    Post subject: Reply with quote

Can you give us some more details? What command did you issue, what did you try already...
_________________
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
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Mon Jun 07, 2004 7:25 pm    Post subject: Reply with quote

Try running latex from an xterm or shell.

IIRC, Kile prints this error when it tried to open a log that doesn't exist. Usually the log doesn't exist because latex didn't make one. Perhaps you didn't save your file and/or didn't save it with an appropriate extension.
Back to top
View user's profile Send private message
mvikred
n00b
n00b


Joined: 26 Mar 2004
Posts: 33

PostPosted: Tue Jun 08, 2004 8:07 am    Post subject: Reply with quote

slartibartfasz wrote:
Can you give us some more details? What command did you issue, what did you try already...


i used F2 command , tht is latex command , and the output shud be a dvi file , instaed i get this msg

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


Joined: 26 Mar 2004
Posts: 33

PostPosted: Tue Jun 08, 2004 8:13 am    Post subject: Reply with quote

karnesky wrote:
Try running latex from an xterm or shell.

IIRC, Kile prints this error when it tried to open a log that doesn't exist. Usually the log doesn't exist because latex didn't make one. Perhaps you didn't save your file and/or didn't save it with an appropriate extension.


mvikred@Tamarlane mvikred $ ls
Desktop DjSuketu-BinTereSanam.mp3 Kihim Beach Pics-June 1st MyDownloads Output.avi int.tex int.tex~ temp wordlist
mvikred@Tamarlane mvikred $ latex
This is TeX, Version 3.14159 (Web2C 7.3.1)
**
Please type the name of your input file.
**int.tex
(Fatal format file error; I'm stymied)
mvikred@Tamarlane mvikred $

this is what i get when i do what u say , and i did save the file with .tex extension from kile also :(

mvikred
Back to top
View user's profile Send private message
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Tue Jun 08, 2004 2:18 pm    Post subject: Reply with quote

See if http://www.tex.ac.uk/cgi-bin/texfaq2html?label=formatstymy helps
Back to top
View user's profile Send private message
mvikred
n00b
n00b


Joined: 26 Mar 2004
Posts: 33

PostPosted: Tue Jun 08, 2004 6:01 pm    Post subject: Reply with quote

karnesky wrote:
See if http://www.tex.ac.uk/cgi-bin/texfaq2html?label=formatstymy helps


thanx man this worked

mvikred
Back to top
View user's profile Send private message
arand
Apprentice
Apprentice


Joined: 22 Apr 2003
Posts: 215

PostPosted: Tue Jul 06, 2004 4:02 pm    Post subject: Reply with quote

A little note for the front page of this thread.

dvipdfm now depends on tetex <2 and is blocked by tetex 2*. What this means is if you do a emerge -uD world it will downgrade you to tetex1*. Currently tetex 2* will install its own dvipdfm. I have not tried it out personally to see how it works.

I would recommend at least for the time being removing
Code:
emerge dvipdfm
from the first post.
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


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

PostPosted: Tue Jul 06, 2004 6:45 pm    Post subject: Reply with quote

Thanks, arand, i didnt notice that - the version of dvipdfm works fine for me. I'll remove the line.
_________________
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
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Mon Aug 09, 2004 12:32 am    Post subject: vim-latexsuite Reply with quote

latex-suite for vim is quite nice.

But I'm having a problem with the Alt Key Macros. I can't seem to use any of the macros in vim on the console or in rxvt.

In gvim, alt-[l,c,b] but alt-i inserts an 'é'

Anyone have any ideas regarding the use of these? Thanks!

EDIT: It appears alt-m has been replaced with alt-b.
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 09, 2004 6:38 am    Post subject: Reply with quote

vim and gvim read different rc files (/etc/vim) maybe thats the reason.
_________________
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
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Mon Aug 09, 2004 1:54 pm    Post subject: Reply with quote

Thanks for the reply. I don't think that is the problem.

gvim reads both .vimrc and .gvimrc. vim just reads the former. I have absolutely nothing in ~/.gvimrc and nothing relevant in /etc/vim/gvimrc.

As a work-around, I've put this into my tex.vim file:
Code:
imap <C-b> <Plug>Tex_MathBF
imap <C-c> <Plug>Tex_MathCal
imap <C-l> <Plug>Tex_LeftRight
imap <C-i> <Plug>Tex_InsertItem
imap <C-k> <Plug>IMAP_JumpBack
Back to top
View user's profile Send private message
discostu
Guru
Guru


Joined: 01 Nov 2002
Posts: 333

PostPosted: Sun Aug 29, 2004 8:34 pm    Post subject: latex document with fancyhdr and fullpage Reply with quote

I'm using latex for my English class and we're required to have our name, date, and assignment number in the upper right hand corner. To keep my assignment to 1 page, I'm using the fullpage package. I'm also using the fancyhdr package to do the header. However, because the header is 3 lines, it overlaps the body. When I add \headheight it kind of fixes it, but it seems to move everything down the page and it doesn't look good. What's the best way to fix this?

Thanks,
Stu
_________________
"Disco Stu doesn't advertise."
Back to top
View user's profile Send private message
arand
Apprentice
Apprentice


Joined: 22 Apr 2003
Posts: 215

PostPosted: Sun Aug 29, 2004 10:39 pm    Post subject: Re: latex document with fancyhdr and fullpage Reply with quote

discostu wrote:
\ldots However, because the header is 3 lines, it overlaps the body. When I add \headheight it kind of fixes it, but it seems to move everything down the page and it doesn't look good. What's the best way to fix this?

Thanks,
Stu


A quick fix might be to subtract the same amount from \textheight.

Another soution might be to remove the full page package but I am not sure on that fact.

Hope this is helpful.
Back to top
View user's profile Send private message
dpl
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 137
Location: Canada

PostPosted: Tue Oct 05, 2004 8:34 pm    Post subject: Reply with quote

After a professor of mine suggested I learn LaTeX, I did a quick search on the forums for LaTeX and how to use it, and found this. This is friggin' fantastic!
Thanks a ton to slartibartfasz and all others who pitched in. If it were not for these easy to use and follow instructions, I'd still be lost.
- dpl
_________________
puto risi vidi
Back to top
View user's profile Send private message
Pseud
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 273
Location: Bangalore, India

PostPosted: Sun Oct 17, 2004 1:32 am    Post subject: Reply with quote

I get this error after I sync'd today:
Code:

# emerge -pvt tetex

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

Calculating dependencies ...done!
[blocks B     ] app-text/tetex (from pkg app-text/ptex-3.1.3)
[blocks B     ] app-text/tetex (from pkg app-text/xdvik-22.40y-r2)
[ebuild  N    ] app-text/xdvik-22.40y-r2  -cjk +libwww 2,203 kB
[ebuild  N    ]  app-text/ptex-3.1.3  +X -debug +doc 1,966 kB
[ebuild   R   ] app-text/tetex-2.0.2-r3  +X -debug +doc 0 kB


Why the blocking?
_________________
eschew obfuscation
Back to top
View user's profile Send private message
tfh
n00b
n00b


Joined: 03 Aug 2004
Posts: 59
Location: AFAD

PostPosted: Sat Oct 23, 2004 12:41 am    Post subject: Reply with quote

Same type of issue here with another latex package :



Code:

[blocks B     ] dev-tex/eurosym (from pkg app-text/tetex-2.0.2-r3)
[blocks B     ] >=app-text/tetex-2 (from pkg dev-tex/eurosym-1.4)



Maybe those packages got included in tetex ? I don't know the solution either .
_________________
tfh
GPG Key:0x960AAEF2
Key Fingerprint: 6763 E0E0 29AC A928 2612 4B14 15FE 6A45 960A AEF2
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Sat Oct 23, 2004 2:14 pm    Post subject: Reply with quote

From the emerge man page:
[blocks B ] app-text/dos2unix (from pkg app-text/hd2u-0.8.0)
Dos2unix is Blocking hd2u from being emerged. Blockers are
defined when two packages will clobber each others files, or
otherwise cause some form of breakage in your system. How-
ever, blockers usually do not need to be simultaneously
emerged because they usually provide the same functionality.

You will have to unmerge tetex to be able to emerge the others
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Sat Apr 09, 2005 12:32 pm    Post subject: Reply with quote

Is there no easy and automatic way of updating the packages like Miktex for Windows? I don't want to download 20 packages by hand and include them.
Back to top
View user's profile Send private message
karnesky
Apprentice
Apprentice


Joined: 18 Mar 2004
Posts: 218

PostPosted: Sat Apr 09, 2005 2:18 pm    Post subject: Reply with quote

twam wrote:
Is there no easy and automatic way of updating the packages like Miktex for Windows? I don't want to download 20 packages by hand and include them.
I suggest getting the packages you use into portage. However, the main tetex site runs a rsync server.
_________________
Donate to F/OSS
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


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

PostPosted: Sun Apr 10, 2005 6:56 pm    Post subject: Reply with quote

twam wrote:
Is there no easy and automatic way of updating the packages like Miktex for Windows? I don't want to download 20 packages by hand and include them.


There is en eclass for tex packages - just take a look at one of the existing ebuilds - most of them consist of three steps:

inherit eclass
download
run tex and install

If the packages you want to install follow the standards, all you need to do is to save such a basic ebuild under the proper name in /usr/local/portage/dev-tex and emerge it. If it works and you want to be nice you can then submit the ebuild to bugs.gentoo.org for inclusion, next time the package is upgraded someone (not necessarily you) will adjust the ebuild and everyone will be update automatically. Gentoo rocks :D
_________________
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
erebus
n00b
n00b


Joined: 17 May 2002
Posts: 49
Location: United Kingdom

PostPosted: Thu Jun 09, 2005 3:52 pm    Post subject: Truetype fonts Reply with quote

Is there any chance someone could extend this guide to include making truetype fonts available to latex/pdflatex? I can't seem to get it work.

I'm following the guide here and trying to install the genium font;

http://ipe.compgeom.org/pdftex_1.html

But for some reason can't get pdflatex to detect my gentium.map file.
Back to top
View user's profile Send private message
Flandry
n00b
n00b


Joined: 27 Feb 2004
Posts: 52
Location: Boston, MA

PostPosted: Thu Jul 07, 2005 6:21 pm    Post subject: Are small caps not available by default? Reply with quote

I've tried putting some small caps into my thesis with \textsc (also tried \sc), but apparently small caps aren't in the default install because i get this warning:
Code:
Font shape `OT1/cmr/bx/sc' undefined(Font) using `OT1/cmr/bx/n' instead on input line 1. Font shape `OT1/cmr/bx/sc' undefined(Font) using `OT1/cmr/bx/n' instead
./methods.tex:0: Some font shapes were not available, defaults substituted.


Is that unusual? How can i get the small caps font shapes installed?
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 4 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