Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

[HOWTO] LaTeX Quickstart Guide

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
130 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
Author
Message
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Fri Jun 04, 2004 7:21 am

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.
Top
data
n00b
n00b
User avatar
Posts: 17
Joined: Thu Jan 15, 2004 11:28 pm
Location: France

  • Quote

Post by data » Fri Jun 04, 2004 5:46 pm

Great it worked, thanks.

I just added this line towards the beginning of my document.

Code: Select all

\lstset{extendedchars=true}
Now all the accents appear normally.
Top
mvikred
n00b
n00b
User avatar
Posts: 33
Joined: Fri Mar 26, 2004 8:46 pm

  • Quote

Post by mvikred » Mon Jun 07, 2004 12:18 pm

Code: Select all

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
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Mon Jun 07, 2004 12:38 pm

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.
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Mon Jun 07, 2004 7:25 pm

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.
Top
mvikred
n00b
n00b
User avatar
Posts: 33
Joined: Fri Mar 26, 2004 8:46 pm

  • Quote

Post by mvikred » Tue Jun 08, 2004 8:07 am

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
Top
mvikred
n00b
n00b
User avatar
Posts: 33
Joined: Fri Mar 26, 2004 8:46 pm

  • Quote

Post by mvikred » Tue Jun 08, 2004 8:13 am

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
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Tue Jun 08, 2004 2:18 pm

See if http://www.tex.ac.uk/cgi-bin/texfaq2htm ... ormatstymy helps
Top
mvikred
n00b
n00b
User avatar
Posts: 33
Joined: Fri Mar 26, 2004 8:46 pm

  • Quote

Post by mvikred » Tue Jun 08, 2004 6:01 pm

karnesky wrote:See if http://www.tex.ac.uk/cgi-bin/texfaq2htm ... ormatstymy helps
thanx man this worked

mvikred
Top
arand
Apprentice
Apprentice
Posts: 215
Joined: Tue Apr 22, 2003 9:03 pm

  • Quote

Post by arand » Tue Jul 06, 2004 4:02 pm

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: Select all

emerge dvipdfm
from the first post.
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Tue Jul 06, 2004 6:45 pm

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.
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

vim-latexsuite

  • Quote

Post by karnesky » Mon Aug 09, 2004 12:32 am

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.
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Mon Aug 09, 2004 6:38 am

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.
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Mon Aug 09, 2004 1:54 pm

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: Select all

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
Top
discostu
Guru
Guru
User avatar
Posts: 333
Joined: Fri Nov 01, 2002 6:00 am

latex document with fancyhdr and fullpage

  • Quote

Post by discostu » Sun Aug 29, 2004 8:34 pm

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."
Top
arand
Apprentice
Apprentice
Posts: 215
Joined: Tue Apr 22, 2003 9:03 pm

Re: latex document with fancyhdr and fullpage

  • Quote

Post by arand » Sun Aug 29, 2004 10:39 pm

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.
Top
dpl
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Tue Apr 22, 2003 3:46 am
Location: Canada

  • Quote

Post by dpl » Tue Oct 05, 2004 8:34 pm

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
Top
Pseud
Apprentice
Apprentice
Posts: 273
Joined: Fri Mar 19, 2004 9:58 pm
Location: Bangalore, India

  • Quote

Post by Pseud » Sun Oct 17, 2004 1:32 am

I get this error after I sync'd today:

Code: Select all

# 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
Top
tfh
n00b
n00b
User avatar
Posts: 59
Joined: Tue Aug 03, 2004 10:29 pm
Location: AFAD

  • Quote

Post by tfh » Sat Oct 23, 2004 12:41 am

Same type of issue here with another latex package :


Code: Select all

[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
Top
BlackEdder
Advocate
Advocate
User avatar
Posts: 2588
Joined: Mon Apr 26, 2004 8:47 am
Location: Dutch enclave in Egham, UK
Contact:
Contact BlackEdder
Website

  • Quote

Post by BlackEdder » Sat Oct 23, 2004 2:14 pm

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
Top
twam
Apprentice
Apprentice
Posts: 189
Joined: Tue Feb 15, 2005 11:53 am
Location: Ammerbuch, Germany
Contact:
Contact twam
Website

  • Quote

Post by twam » Sat Apr 09, 2005 12:32 pm

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.
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Sat Apr 09, 2005 2:18 pm

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
Top
slartibartfasz
Veteran
Veteran
User avatar
Posts: 1462
Joined: Tue Oct 29, 2002 10:27 pm
Location: Vienna, Austria

  • Quote

Post by slartibartfasz » Sun Apr 10, 2005 6:56 pm

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.
Top
erebus
n00b
n00b
Posts: 49
Joined: Fri May 17, 2002 8:51 pm
Location: United Kingdom
Contact:
Contact erebus
Website

Truetype fonts

  • Quote

Post by erebus » Thu Jun 09, 2005 3:52 pm

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.
Top
Flandry
n00b
n00b
Posts: 52
Joined: Fri Feb 27, 2004 4:55 am
Location: Boston, MA

Are small caps not available by default?

  • Quote

Post by Flandry » Thu Jul 07, 2005 6:21 pm

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: Select all

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?
Top
Post Reply

130 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic