Document Classesbeamer | Disable leftclick and rightclick navigation

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
koleygr
Posts: 21
Joined: Fri Jul 01, 2011 11:18 pm

beamer | Disable leftclick and rightclick navigation

Post by koleygr »

Hi,
I am trying to make electronic-lessons using xelatex with beamer class.
I have already made some and i using hyperlinks and beamerbuttons.
I also using the alt command to "disable" the possibility of the user
to clicking in the page if there is not a link or a button. I want the
user to click only on buttons or links. So using alt command i creating
some slides back and forward (same with my initialy slide)...
The problem is the complexity of my tex files and the size of my pdf files
(I need at least 5 click protection... and this means at least 20 more
pages-slides for every page of my document)

I wonder if there is a way to disable the back and forward options
of my pdf file by clicking
via xelatex (or latex... i suppose it will be the same).
If i manage this... i dont need alt commant and protection slides.

As my .tex file is big, here you can download the pdf:
https://sites.google.com/site/opensourc ... ects=0&d=1

(It "works" in full screen)


And here you can see my tex file:

Code: Select all

\documentclass[6pt]{beamer}
\usetheme{Warsaw}
\usepackage{ragged2e}
\let\raggedright=\RaggedRight
\usepackage{beamerthemesplit}
\usepackage{verbatim}
\usepackage{xltxtra}
\usepackage{bm}
\setmainfont{DejaVuSans}
\usepackage{polyglossia}
\setmainlanguage[variant=mono]{greek}
\setotherlanguage{english}
\newfontfamily\greekfont{DejaVuSans}
\usepackage{color}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{parskip}
\setlength{\parskip}{\smallskipamount} 

\hypersetup{
pdfpagemode=FullScreen,
colorlinks=true,
linkcolor=red
}


\title{Test document - Δοκιμαστικό Έγγραφο}
\author{My Name (my email) - Το όνομά μου (το email μου)}
\date{}

\begin{document}

\section{Test document - Δοκιμαστικό Έγγραφο}

\begin{frame}[label=frame1] 
\begin{center}
 {\Large \color{blue}{Please select your language}\vspace{20pt} 
   
   \color{blue} {Παρακαλώ επιλέξτε γλώσσα}
  }
\end{center}
\vspace{60pt}

\begin{center}
{\tiny
\setbeamercolor{button}{bg=green,fg=red}
\alt<-5>
{\hyperlink{frame2<15>}
{\beamerbutton{English}}\hspace{35pt}\hyperlink{frame2a<15>}{\beamerbutton{Ελληνικά}}}
{\setbeamercolor{button}{bg=green,fg=black}\beamerbutton{English}\hspace{35pt}\beamerbutton{Ελληνικά}}
}
\end{center}
\vspace{88pt}

{\tiny 
Status:
\alt<-5>
{\, Activated}
{\, Inactivated...-> Press {\hyperlink{frame1}{\setbeamercolor{button}{bg=green,fg=red}\beamergotobutton{Here}}} to return to the Home Page}
\alt<1-10>{}{!!!}
\alt<-15>{}{}
}

\end{frame}


\subsection{Introduction - Εισαγωγή}

\begin{frame}[label=frame2]
\begin{center}
 {\Large \color{blue}{How to use} }
\end{center}
\vspace{10pt}

{\scriptsize
\selectlanguage{english}
This document is a PDF file that includes English and Greek. You have to open it in full screen and then
you can navigate in the document
by using the 
\alt<11-20>
{\hyperlink{frame3<15>}{links}}{links} 
(red text) or the buttons (red text in color boxes). If you click on the page (and not on a button or a link),
the document has a protection:

It doesnt seem to change the page... I have manage to do so, by using the $\backslash$alt commant.
This means that you can click several times without see any change. 

If you click more times, then the buttons and the links are not active any more.
Also a message apears in the bottom of the page, that asks you to click on a new
button (the only active button) to go back to the first page.
(You have some more clicks until the document go to the next avaluable page
and this is not the way of using this document)
}
\vspace{28pt}

\begin{center}
{\tiny
\alt<11-20>
{\setbeamercolor{button}{bg=green,fg=red}
\hyperlink{frame4<15>}{\beamerbutton{Next Page}}\hspace{35pt}\hyperlink{frame1}{\beamerbutton{Previus Page}}
}
{\setbeamercolor{button}{bg=green,fg=black}
\beamerbutton{Next}\hspace{35pt}\beamerbutton{Previus Page}}
}
\end{center}
\vspace{40pt}

{\tiny 
Status:
\alt<11-20>
{\, Activated}
{\, Inactivated... ->\setbeamercolor{button}{bg=green,fg=red} Press {\hyperlink{frame1}{\beamerbutton{Here}}} to return to the Home Page}
\alt<6-25>{}{!!!}
\alt<-30>{}{}
}

\end{frame}


\begin{frame}[label=frame2a]
\selectlanguage{greek} 
\begin{center}
 {\Large \color{blue}{Τρόπος Χρήσης} }
\end{center}
\vspace{10pt}

{\scriptsize
Αυτό είναι ένα PDF αρχείο που περιέχει Ελληνικά και Αγγλικά. Πρέπει να το ανοίξετε σε full screen και μετά
μπορείτε να περιηγηθείτε μεσα στο εγγραφο
χρησιμοποιώντας τους 
\alt<11-20>
{\hyperlink{frame3a<15>}{συνδέσμους}}{συνδέσμους} 
(κόκκινο κείμενο) ή τα κουμπιά (κόκκινο κείμενο μεσα σε χρωματιστά κουτιά). Αν κανετε click πάνω στη σελίδα (και όχι σε κουμπί ή σύνδεσμο)
το έγγραφο έχει προστασία:

Δε φαίνεται να αλλάζει σελίδα... Αυτό έχει επιτευχθεί με τη χρήση της εντολής $\backslash$alt.
Αυτό σημαινει πως μπορείτε να κάνετε μερικες φορες click χωρις να δειτε καμία αλλαγη.

Αν κάνετε click περισσότερες φορές, τοτε τα κουμπιά και οι σύνδεσμοι απενεργοποιούνται.
Επισης ένα μήνυμα εμφανίζεται στο κάτω μέρος της σελίδας, που σας ζητάει να κανετε click σε ένα καινούριο
κουμπί (το μόνο ενεργό) για να επιστρέψετε στην αρχική σελίδα.
(Έχετε μερικά ακόμα clicks μέχρι το αρχείο να περάσει στην επόμενη διαθέσημη σελίδα
και αυτός ο τρόπος δεν ειναι σωστή χρήση του αρχείου)


}
\vspace{18pt}

\begin{center}
{\tiny
\alt<11-20>
{\setbeamercolor{button}{bg=green,fg=red}
\hyperlink{frame4a<15>}{\beamerbutton{Επόμενο}}\hspace{35pt}\hyperlink{frame1}{\beamerbutton{Προηγούμενο}}
}
{\setbeamercolor{button}{bg=green,fg=black}
\beamerbutton{Επόμενο}\hspace{35pt}\beamerbutton{Προηγούμενο}}
}
\end{center}
\vspace{22pt}

{\tiny 
Κατάσταση:
\alt<11-20>
{\, Ενεργό}
{\, Ανενεργό... -> \setbeamercolor{button}{bg=green,fg=red} Πιέστε {\hyperlink{frame1}{\beamerbutton{ΕΔΩ}}} για επιστροφή στην Αρχική Σελίδα}
\alt<6-25>{}{!!!}
\alt<-30>{}{}
}

\end{frame}


\begin{frame}[label=frame3]
\selectlanguage{english} 
\begin{center}
 {\Large \color{blue}{How to use} }
\end{center}
\vspace{10pt}

{\scriptsize
This document is a PDF file that includes English and Greek. You have to open it in full screen and then
you can navigate in the document
by using the 
links
{\color{blue} <- Here was a link and by clicking on it you moved in the present page...

Now you can go back at the previus page by clicking on the button "Return" 
}


}
\vspace{95pt}

\begin{center}
{\tiny
\alt<11-20>
{\setbeamercolor{button}{bg=green,fg=red}\hyperlink{frame2<15>}{\beamerbutton{Return}}}
{\setbeamercolor{button}{bg=green,fg=black}\beamerbutton{Return}}
}
\end{center}
\vspace{40pt}

{\tiny 
Status:
\alt<11-20>
{\, Activated}
{\, Inactivated... ->\setbeamercolor{button}{bg=green,fg=red} Press {\hyperlink{frame1}{\beamerbutton{Here}}} to return to the Home Page}
\alt<6-25>{}{!!!}
\alt<-30>{}{}
}

\end{frame}


\begin{frame}[label=frame3a]
\selectlanguage{greek}
\begin{center}
 {\Large \color{blue}{Τρόπος Χρήσης} }
\end{center}
\vspace{10pt}

{\scriptsize
Αυτό είναι ένα PDF αρχείο που περιέχει Ελληνικά και Αγγλικά. Πρέπει να το ανοίξετε σε full screen και μετά
μπορείτε να περιηγηθείτε μεσα στο εγγραφο
χρησιμοποιώντας τους 
συνδέσμους
{\color{blue} <- Εδώ ήταν ένας σύνδεσμος και κάνοντάς click πάνω του μεταφερθήκατε στην παρούσα σελίδα...

Μπορείτε να επιστρέψετε στην προηγούμενη σελίδα κάνοντας click στο κουμπί "Επιστροφή". 
}
}
\vspace{95pt}

\begin{center}
{\tiny
\alt<11-20>
{\setbeamercolor{button}{bg=green,fg=red}\hyperlink{frame2a<15>}{\beamerbutton{Επιστροφή}}}
{\setbeamercolor{button}{bg=green,fg=black}\beamerbutton{Επιστροφή}}
}
\end{center}
\vspace{22pt}

{\tiny 
Κατάσταση:
\alt<11-20>
{\, Ενεργό}
{\, Ανενεργό... {\color{blue}-> Πιέστε {\hyperlink{frame1}{\colorbox{green}{ΕΔΩ}}} για να επιστρέψετε στην Αρχική Σελίδα}}
\alt<6-25>{}{!!!}
\alt<-30>{}{}
}

\end{frame}


\subsection{The problems - Τα προβλήματα}

\begin{frame}[label=frame4] 
\selectlanguage{english}
\begin{center}
 {\Large \color{blue}{We can see that we have the following problems:} }
\end{center}
\vspace{10pt}

{\tiny

\begin{itemize}
  \item The hyphenation doesn't work at all. I searched in google and i found that beamer class does not 
hyphenates more than ten words in the row (or in the slide... i m nat sure). 
I think it ιs a bug of latex . (But this is not so big problem for this kind of documents...). Anyway, 
if this a bug of i have to report it.

  \item I use ubuntu... and my default programm for viewing pdf files is the Evince... If you try to open
this pdf document... you will see that it seems to load all the time... It never stops loading.
Also the $\backslash$Acrobatmenu button doesnt work at all. 

I tried another viewer called Okular. Then
I realised that Okular works... The file closes but some times Okular
crushes. So if my code doesn't have a problem, i have to report bugs to ubuntu (for both viewers)

 \item I tried to open my pdf under windows... then $\backslash$Acrobatmenu works with Close, but
if i use Quit a message apears that says that it will close first and so it can't continue and
so Adobe Reader doesnt quit. So if my code is ok,  i guess i have to report bug to Adobe too.

\end{itemize}
}
\vspace{18pt}

\begin{center}
{\tiny
\alt<11-20>
{\setbeamercolor{button}{bg=green,fg=red}\Acrobatmenu{Close}{\beamerbutton{Close}}\hspace{35pt}\hyperlink{frame2<15>}{\beamerbutton{Previus Page}}}
{\setbeamercolor{button}{bg=green,fg=black}\beamerbutton{Close}\hspace{35pt}\beamerbutton{Previus Page}}
}
\end{center}
\vspace{41pt}

{\tiny 
Status:
\alt<11-20>
{\, Activated}
{\, Inactivated... ->\setbeamercolor{button}{bg=green,fg=red} Press {\hyperlink{frame1}{\beamerbutton{Here}}} to return to the Home Page}
\alt<6-25>{}{!!!}
\alt<-30>{}{}
}

\end{frame}


\begin{frame}[label=frame4a] 
\selectlanguage{greek}
\begin{center}
 {\Large \color{blue}{Παρατηρούμε οτι έχουμε τα παρακάτω προβλήματα:} }
\end{center}
\vspace{10pt}

{\tiny

\begin{itemize}
  \item Ο συλλαβισμός δε δουλευει καθόλου. Βρήκα στο google οτι το beamer δεν συλλαβιζει πάνω από δέκα λεξεις
στη σειρά (ή στο slide... δεν ειμαι σίγουρος).
Πιστέυω πως είναι bug του latex . (Αλλά αυτό δεν ειναι και μεγάλο πρόβλημα σε τέτοιου είδους έγγραφα...).
Τέλος πάντων, αν είναι bug πρέπει να το αναφέρω.

  \item Χρησιμοποιώ ubuntu... και ο στάνταρ viewer μου είναι ο Evince... Αν προσπαθήσετε να ανοίξετε
αυτό το έγγραφο pdf... θα δείτε οτι φαίνεται να φορτώνει όλη την ώρα... Δε σταματάει να φορτώνει ποτέ.
Επίσης το $\backslash$Acrobatmenu κουμπί δε δουλέυει.

Δοκίμασα έναν άλλο viewer που λέγεται Okular. Τότε συνειδητοποίησα οτι ο Okular δουλέυει...
Το αρχείο κλείνει αλλα μερικές φορές ο Okular κρασάρει.
Έτσι αν ο κωδικάς μου δεν έχει πρόβλημα, πρέπει να αναφέρω bug στα ubuntu (και για τους δύο viewers)

 \item Δοκίμασα να ανοίξω το pdf μου και στα windows...Εκεί το $\backslash$Acrobatmenu δουλέυει με το Close,
αλλά αν χρησιμοποιήσω Quit εμφανίζεται ένα μήνυμα που λέει οτι πρώτα θα κλεισει το αρχείο και έτσι
ο Adobe Reader δεν κλείνει. Έτσι αν ο κώδικάς μου είναι εντάξει, πρέπει να αναφέρω bug και στην Adobe.
 
\end{itemize}

}
\vspace{18pt}

\begin{center}
{\tiny
\alt<11-20>
{\setbeamercolor{button}{bg=green,fg=red}\Acrobatmenu{Close}{\beamerbutton{Έξοδος}}\hspace{35pt}\hyperlink{frame2a<15>}{\beamerbutton{Προηγούμενη Σελίδα}}}
{\setbeamercolor{button}{bg=green,fg=black}\beamerbutton{Close}\hspace{35pt}\beamerbutton{Previus Page}}
}
\end{center}
\vspace{30pt}

{\tiny 
Κατάσταση:
\alt<11-20>
{\, Ενεργό}
{\, Ανενεργό... {\color{blue}-> Πιέστε {\hyperlink{frame1}{\colorbox{green}{ΕΔΩ}}} για να επιστρέψετε στην Αρχική Σελίδα}}
\alt<6-25>{}{!!!}
\alt<-30>{}{}
}

\end{frame}

\end{document}



It seems to be big, but in fact it has just 7 frames.
The 3 of them are exact translation in greek. So you dont have to check
the frames witch lasts at a {frame2a,frame3a and frame4a}.

My answers:
1) Is there a way to disable navigation by click on a frame?
2) Can you help me to make subtitles work as hyperrefs?
(I mean to start the subsection inside the 15th slide of the frame
or any other suggestion)
3) -Some more questions are included in the files-


PS: This file can be used as an improvised How-to for everyone
who want to use xelatex and beamer for creating presentation or
e-lessons

Thank you for your time
Kostis Leledakis
Using Kile 2.1.0 under Ubuntu software.
\XeLaTeX: XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

tommytex
Posts: 39
Joined: Wed Jan 23, 2013 10:04 pm

beamer | Disable leftclick and rightclick navigation

Post by tommytex »

hi koleygr,

i really like this presentation as i am a fan of the greek language!
see

http://stackoverflow.com/questions/3210 ... -in-beamer

google is your friend - sometimes ;-)
koleygr
Posts: 21
Joined: Fri Jul 01, 2011 11:18 pm

Re: beamer | Disable leftclick and rightclick navigation

Post by koleygr »

Thank you tommytex,
I apreciate your answer and i found some usefull stuff there, but
unfortunatelly this doesn't answers my first (and most importand)
question: I want to create a beamer pdf in witch you can not navigate
between slides with right or left clicking. You supposed to navigate only by clicking on the beamerbuttons.

I think this cant happen... but I asking because i m not sure.

Thank you anyway
Kostis
Using Kile 2.1.0 under Ubuntu software.
\XeLaTeX: XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
Post Reply