LaTeX forum ⇒ LyXbeamer | Two Columns with Pictures uncovered Item by Item

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
User avatar
apos
Posts: 3
Joined: Sun Jan 22, 2012 4:28 pm
Location: Wiesbaden, Germany
Contact:

beamer | Two Columns with Pictures uncovered Item by Item

Postby apos » Sun Jan 22, 2012 4:48 pm

Hi there,

I am here under Ubuntu 11.10 with LyX 2.x and beamer class (options:
"t").

I am trying to create a frame with the following content:

* itemized text on the left side
* corresponding picture on the right
* realized with two column layout

And here's the problem: the pictures on the right should be NOT visible
until its their turn in the "item"-environment!

I tried to realize it like this:

  1. Frame Begin
  2.  
  3. Lyx -> Column environment
  4.  
  5. Lyx -> Column: 6 cm
  6. * <1->first text left
  7. * <3->second text left
  8.  
  9. Lyx -> Column: 4 cm
  10. * <2->[first picture]
  11. * <4->[second picture]
  12.  
  13. Frame End


Auswahl_002.png
LyX Frame
Auswahl_002.png (40.84 KiB) Viewed 5655 times


The pictures are inserted "plain", whith the "insert graphics" command.
But the pictures are shown and visible all the time ... !

Auswahl_003.png
PDF with picture alredy showing
Auswahl_003.png (52.89 KiB) Viewed 5655 times


Dealing with this problem for several days now, I found a - pur tex -
solution at
http://www.informatik.uni-freiburg.de/~ ... -3_en.html
(there the beamer class example 5).

Its pretty much what I like (beside the overwrite), but it won't work in
LyX with the method above. OK, I could write plain TeX-code, but - hey -
we like to work with the LyX environment ;)

So there are my questions according to beamer, LyX and this problem

1. How to "itemize" pictures correctly?
2. How toggle the visibility of pictures in LyX within a column
environment (more generally)
3. How to avoid an item environment in (get rid of the icons) LyX AND use <1>, <1->, ...
(like in the example mentioned above)
4. Is there a Documentation for LyX / Beamer (I only can find one
for "foiles")

People, you will help me a lot, within a few days there is an important
presentation ;)

I posted this question also at lyx-users mailing list. I am showing up a solution here and there, a soon as I know how to solve the problem.

Greets
Axel

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Jan 22, 2012 5:07 pm

Hi Axel,

welcome to the board!

With LyX it's often hard to explain a problem and to describe a possbible solution, because it may involve clicking somewhere in a GUI that changes, and code is hidden. With LaTeX, it's often just exchanging code: posting the problem code, getting back the fixed code.

apos wrote:within a few days there is an important
presentation


If it's really important, perhaps produce also LaTeX presentation, to avoid LyX-only problems, to have a higher chance to achieve the desired layout in time.

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
apos
Posts: 3
Joined: Sun Jan 22, 2012 4:28 pm
Location: Wiesbaden, Germany
Contact:

Postby apos » Sun Jan 22, 2012 5:58 pm

Thanks Stefan for your reply,

welcome everybody. I am working with LyX since its early beginnings, and that's really for a long time. But to the beamer class I am relatively new.

For my problem: I found the solution for one of my problems, only one question is left (see at the end of the post). Your posting made me look again in the preamble, commenting things out step by step and beginning from scratch.

The mean person was this option :mrgreen:
  1. \setbeamercovered{transparent}

Commenting it out, and everything went like expected. Mean mean mean ... I mean, really mean ;)

For anyone of you, who likes to have the LyX-code for the - now working - sample posted in the first thread, here it is (be aware this is LyX 2.0!):

  1. #LyX 2.0 created this file. For more info see http://www.lyx.org/
  2. \lyxformat 413
  3. \begin_document
  4. \begin_header
  5. \textclass beamer
  6. \begin_preamble
  7. \usetheme{Marburg} % nice, outline on right
  8. \beamerdefaultoverlayspecification{<+->}
  9. \end_preamble
  10. \options t
  11. \use_default_options true
  12. \maintain_unincluded_children false
  13. \language ngerman
  14. \language_package default
  15. \inputencoding auto
  16. \fontencoding global
  17. \font_roman default
  18. \font_sans default
  19. \font_typewriter default
  20. \font_default_family default
  21. \use_non_tex_fonts false
  22. \font_sc false
  23. \font_osf false
  24. \font_sf_scale 100
  25. \font_tt_scale 100
  26.  
  27. \graphics default
  28. \default_output_format default
  29. \output_sync 0
  30. \bibtex_command default
  31. \index_command default
  32. \paperfontsize default
  33. \spacing single
  34. \use_hyperref false
  35. \pdf_bookmarks true
  36. \pdf_bookmarksnumbered true
  37. \pdf_bookmarksopen true
  38. \pdf_bookmarksopenlevel 1
  39. \pdf_breaklinks false
  40. \pdf_pdfborder true
  41. \pdf_colorlinks true
  42. \pdf_backref false
  43. \pdf_pdfusetitle true
  44. \papersize a4paper
  45. \use_geometry true
  46. \use_amsmath 1
  47. \use_esint 0
  48. \use_mhchem 1
  49. \use_mathdots 1
  50. \cite_engine natbib_authoryear
  51. \use_bibtopic false
  52. \use_indices false
  53. \paperorientation portrait
  54. \suppress_date false
  55. \use_refstyle 0
  56. \index Stichwortverzeichnis
  57. \shortcut idx
  58. \color #008000
  59. \end_index
  60. \leftmargin 6cm
  61. \topmargin 1.5cm
  62. \rightmargin 2cm
  63. \bottommargin 2.5cm
  64. \headheight 1cm
  65. \headsep 1cm
  66. \footskip 1cm
  67. \secnumdepth 2
  68. \tocdepth 2
  69. \paragraph_separation indent
  70. \paragraph_indentation default
  71. \quotes_language german
  72. \papercolumns 1
  73. \papersides 1
  74. \paperpagestyle default
  75. \tracking_changes false
  76. \output_changes false
  77. \html_math_output 0
  78. \html_css_as_file 0
  79. \html_be_strict false
  80. \end_header
  81.  
  82. \begin_body
  83.  
  84. \begin_layout BeginFrame
  85. test1
  86. \end_layout
  87.  
  88. \begin_layout ColumnsTopAligned
  89.  
  90. \end_layout
  91.  
  92. \begin_deeper
  93. \begin_layout Column
  94. 6cm
  95. \end_layout
  96.  
  97. \begin_layout Itemize
  98. <1->first text
  99. \end_layout
  100.  
  101. \begin_layout Itemize
  102. <3->second text
  103. \end_layout
  104.  
  105. \begin_layout Standard
  106. \begin_inset space \hspace{}
  107. \length 6cm
  108. \end_inset
  109.  
  110.  
  111. \end_layout
  112.  
  113. \begin_layout Column
  114. 4cm
  115. \end_layout
  116.  
  117. \begin_layout Itemize
  118. \begin_inset ERT
  119. status open
  120.  
  121. \begin_layout Plain Layout
  122.  
  123. <2->
  124. \end_layout
  125.  
  126. \end_inset
  127.  
  128.  
  129. \begin_inset Graphics
  130. filename pics/Java.jpg
  131. lyxscale 20
  132. height 1.5cm
  133.  
  134. \end_inset
  135.  
  136.  
  137. \end_layout
  138.  
  139. \begin_layout Itemize
  140. \begin_inset ERT
  141. status open
  142.  
  143. \begin_layout Plain Layout
  144.  
  145. <4->
  146. \end_layout
  147.  
  148. \end_inset
  149.  
  150.  
  151. \begin_inset Graphics
  152. filename pics/SpringSourceVM-logo.png
  153. lyxscale 20
  154. height 1.5cm
  155.  
  156. \end_inset
  157.  
  158.  
  159. \end_layout
  160.  
  161. \end_deeper
  162. \begin_layout EndFrame
  163.  
  164. \end_layout
  165.  
  166. \begin_layout BeginFrame
  167. test2
  168. \end_layout
  169.  
  170. \begin_layout ColumnsTopAligned
  171.  
  172. \end_layout
  173.  
  174. \begin_deeper
  175. \begin_layout Column
  176. 4cm
  177. \end_layout
  178.  
  179. \begin_layout Itemize
  180. <1-> Lorem ipsum dolor sit amet, consectetur adipisicing elit
  181. \end_layout
  182.  
  183. \begin_layout Itemize
  184. <3-> Lorem ipsum dolor sit amet, consectetur adipisicing elit
  185. \end_layout
  186.  
  187. \begin_layout Itemize
  188. <5-> Lorem ipsum dolor sit amet, consectetur adipisicing elit
  189. \end_layout
  190.  
  191. \begin_layout Standard
  192. \begin_inset space \hspace{}
  193. \length 4cm
  194. \end_inset
  195.  
  196.  
  197. \end_layout
  198.  
  199. \begin_layout Column
  200. 4cm
  201. \end_layout
  202.  
  203. \begin_layout Standard
  204. \begin_inset ERT
  205. status open
  206.  
  207. \begin_layout Plain Layout
  208.  
  209.  
  210. \backslash
  211. begin{overprint}
  212. \end_layout
  213.  
  214. \begin_layout Plain Layout
  215.  
  216.  
  217. \backslash
  218. includegraphics<2>{pics/go-next.pdf}
  219. \end_layout
  220.  
  221. \begin_layout Plain Layout
  222.  
  223.  
  224. \backslash
  225. includegraphics<4>{pics/go-next.pdf}
  226. \end_layout
  227.  
  228. \begin_layout Plain Layout
  229.  
  230.  
  231. \backslash
  232. includegraphics<6>{pics/go-next.pdf}
  233. \end_layout
  234.  
  235. \begin_layout Plain Layout
  236.  
  237.  
  238. \backslash
  239. end{overprint}
  240. \end_layout
  241.  
  242. \end_inset
  243.  
  244.  
  245. \end_layout
  246.  
  247. \end_deeper
  248. \begin_layout EndFrame
  249.  
  250. \end_layout
  251.  
  252. \end_body
  253. \end_document


The only remaining problem now is:
  • avoiding an itemize-environment AND use <1->,<2->, ...
  • using the overprint environment in LyX

Concrete: how to do the following in LyX:

  1. \begin{overprint}
  2. \includegraphics<2>{PIC1}
  3. \includegraphics<4>{PIC2}
  4. \includegraphics<6>{PIC3}
  5. \end{overprint}


I think, sometimes I will write a handbook for the beamer class ;) This is a really really missing peace.

Thanks
Axel

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7804
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Jan 22, 2012 6:23 pm

Hi Axel,

thanks for posting the solution!

It' nice to read that you are an experienced LyX user. It would be great if you would like to look at LyX questions here, from time to time, as LyX experts are rare.

When I look into the LyX subforum, I see many still open questions. So it would be great to have a helping hand there.

Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
apos
Posts: 3
Joined: Sun Jan 22, 2012 4:28 pm
Location: Wiesbaden, Germany
Contact:

Postby apos » Sun Jan 22, 2012 6:36 pm

You're welcome, I am sure you will see me in this forum.

This forum is a good place to post, I don't remember that I recovered it's precence in former times. I don't really like the mailing lists due to their limitations when it comes to the presentation of a problem (visually). Although there is a good blog interface for gmane (lyx-users mailing list), but nevertheless, it will remain "email" format. But that's another discussion (please don't comment here ... :mrgreen: ).

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 3 guests