NYELVÉSZ

Nyelvészeti vitafórum
It is currently 2024. March 19, Tuesday, 9:48

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: LaTeX (beamer), pdf, hang
PostPosted: 2008. April 14, Monday, 4:26 
Offline

Joined: 2007. September 9, Sunday, 18:13
Posts: 2367
Sziasztok!

Ágyazott már be valaki beamerrel készített prezentációba hangot? Én próbálkoztam vele, a következőt találtam (http://itb.biologie.hu-berlin.de/~benda/software/latex/):

Quote:
If you want to play an audio file from within a PDF presentation that you create using LaTeX, do the following:

1. Include the hyperref package in the header:

\usepackage[ps2pdf=true,pdfpagemode=FullScreen]{hyperref}

The "pdfpagemode=FullScreen" options makes acrobat reader to open the document in full screen mode. Check the documentation of the hyperref package for other options!
2. At the place where you want to have a link to the sound file (here: sound.wav) place the following command:

\href{run:sound.wav}{click to play the sound!}

The text "click to play the sound!" is displayed, and if you click on it (like on a link in your web browser) the sound file is played. Note, that you can use whatever you want as a text, including pictures!
3. Make shure that your mailcap files (either in /etc/mailcap or ~/.mailcap) contain the following line:

audio/*; /usr/bin/play %s

This tells acrobat reader to use the program "play" for opening sound files. "play" is a simple command line player that comes with the powerful "sox" package.


Nálam már ott elbukott, hogy a hyperref összeakad valamivel. Ezen segített, hogy az opciókat elhagytam.

Most szépen lefut, és a sox telepítése után tényleg le is játssza a hangot acrobat readerben, de xpdf-ben nem.

(Eredetileg kérdezni akartam, de közben fokozatosan rájöttem a megoldásra -- hátha jó lesz velekinek valamire... :-))

_________________
A hozzászólás tartalma magánvélemény, semmilyen közösségnek vagy intézménynek, legfőképpen pedig a hozzászóló munkahelyének hivatalos álláspontját nem tükrözi. (BIJE)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron

Figyelem!
A faliújságon megjelentek nem képviselik többek közt a következő szervezetek hivatalos véleményét:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group