LaTeX forum ⇒ Graphics, Figures & Tablesfloatrow | Setup for Captions in Margins beside Figures

Information and discussion about graphics, figures & tables in LaTeX documents.
abclatex
Posts: 17
Joined: Wed Nov 28, 2012 10:09 pm

floatrow | Setup for Captions in Margins beside Figures

Postby abclatex » Sat Dec 08, 2012 1:20 am

Hi guys,

I want to use captions beside figures (at margin) by floatrow. But the following codes only work in the even page (image 2) and not in the odd page (image 1). How to fix this problem?

codes:
  1. \documentclass[10pt,a4paper]{book}
  2.  
  3. % page layout
  4. \usepackage[%
  5. left=2cm,
  6. right=7cm,
  7. top=2cm,
  8. bottom=2cm,
  9. textheight=25cm,
  10. textwidth=11cm,
  11. marginparsep=1cm,
  12. marginparwidth=5cm
  13. ]{geometry}
  14.  
  15. % Language settings
  16. \usepackage[german,french]{babel}
  17.  
  18. % figures and the like:
  19. \usepackage{graphicx}
  20. \graphicspath{{fig/}}
  21. \usepackage{caption}
  22. \captionsetup[figure]{name={Figure.}}
  23. \captionsetup{font={scriptsize,singlespacing},justification=RaggedRight,skip=2pt}
  24. \usepackage{ifoddpage}
  25. %or: \usepackage[strict]{changepage}
  26. \usepackage{blindtext}
  27.  
  28. \usepackage{floatrow}
  29. \floatsetup[widefigure]{margins=hangleft,capposition=beside,capbesideposition={top,left},floatwidth=\textwidth}
  30.  
  31. \begin{document}
  32.  
  33. \begin{figure*}
  34. \includegraphics[width=11cm]{1.3.jpg}
  35. \caption{Today, four necktie knots are in widespread use. They are the four-in-hand knot, the half-Windsor knot, the Windsor knot and the Pratt knot. The first three are classic necktie knots that have been used for a long time. The Pratt knot is a more recent necktie knot that was introduced to the public in 1989.}\label{fig:example}
  36. \end{figure*}
  37.  
  38.  
  39. Today, four necktie knots are in widespread use. They are the four-in-hand knot, the half-Windsor knot, the Windsor knot and the Pratt knot. The first three are classic necktie knots that have been used for a long time. The Pratt knot is a more recent necktie knot that was introduced to the public in 1989.
  40.  
  41. Below shows a comparison table of the four necktie knots, together with the bow tie. It helps you find the answer to the first question that may come up in your mind -- Which necktie knots do I need? Click the links on the left to see the instructions on tying a certain knot.
  42.  
  43. \clearpage
  44. \begin{figure*}
  45. \includegraphics[width=11cm]{1.3.jpg}
  46. \caption{Today, four necktie knots are in widespread use. They are the four-in-hand knot, the half-Windsor knot, the Windsor knot and the Pratt knot. The first three are classic necktie knots that have been used for a long time. The Pratt knot is a more recent necktie knot that was introduced to the public in 1989.}\label{fig:example}
  47. \end{figure*}
  48.  
  49. Today, four necktie knots are in widespread use. They are the four-in-hand knot, the half-Windsor knot, the Windsor knot and the Pratt knot. The first three are classic necktie knots that have been used for a long time. The Pratt knot is a more recent necktie knot that was introduced to the public in 1989.
  50.  
  51. Below shows a comparison table of the four necktie knots, together with the bow tie. It helps you find the answer to the first question that may come up in your mind -- Which necktie knots do I need? Click the links on the left to see the instructions on tying a certain knot.
  52.  
  53. \end{document}


image 1:
image 1.JPG
image 1.JPG (22.96 KiB) Viewed 2166 times


image 2:
image 2.JPG
image 2.JPG (25.44 KiB) Viewed 2166 times


I try to revise such codes as
  1. \usepackage{floatrow}
  2. \floatsetup[widefigure]{margins=hangleft,capposition=beside,capbesideposition={top,left},floatwidth=\textwidth}

and not succeed right now.

If you have any advice, please let me know.

Thanks!

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

abclatex
Posts: 17
Joined: Wed Nov 28, 2012 10:09 pm

Postby abclatex » Wed Dec 12, 2012 12:33 am

Still unsolved.

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


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests