Page LayoutGraphics for Excercise Sheet

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
shardik
Posts: 2
Joined: Mon Jun 10, 2013 9:30 pm

Graphics for Excercise Sheet

Post by shardik »

Dear All,

I am quite new to LaTeX and brand new in the forum, please let me know of any faux pas I commit.

I am putting together an (high school math) exercise sheet for my students. Up to now, I have been creating the graphics in GeoGebra, printing them on paper, cutting out with scissors, taping them onto the exercise sheet on the right hand side of the text (at least the text is created using LaTeX!) and then photocopying the sheet for the students. :oops: :oops: :oops:

This method is quite a lot of work if I have to change some of the text.

How can I do this completely in LaTeX? I don't want this format.

text
graphics
text

As I would lose so much paper space to the right of the graphics and I don't want the text wrapped around the graphics.

How do you do this? Maybe even with examples?


Thankful for any help,
shardik

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Graphics for Excercise Sheet

Post by Johannes_B »

I'm not quite sure what you exactly want.

Graphics can be included using the graphicx-package. If you want text on the left and a picture on the right you you might want to take a look at minipages.

The exsheets-package by Clemens can help you typeset the exercise sheets including Question numbering, and summation of total of points.

Since you are new to the forum, i would kinddly inform you about Minimal Working Examples. Those are very helpful for specific questions, because they are showing the isolated topic.

EDIT: Thorsten is right, you can also draw pictures inside LaTeX with tikz (please see the link below)

EDIT: Link to MWE did not work
Last edited by Johannes_B on Mon Jun 10, 2013 10:01 pm, edited 2 times in total.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphics for Excercise Sheet

Post by localghost »

At the moment I can't really spot the actual problem. Don't you know how to add graphics to documents in general or are you looking for a special method to add GeoGebra graphics. Since GeoGebra supports several export mechanisms, there would be different approaches.
  • Inclusion of external graphics files (format EPS, JPG, PNG or PDF) by the graphicx package.
  • Figures drawn inside LaTeX by TikZ/PGF, PSTricks or Asymptote after export to corresponding code by GeoGebra.
If all these hints don't help, please prepare a self-contained and minimal example to give an adequate problem description.
shardik wrote:[…] As I would lose so much paper space to the right of the graphics and I don't want the text wrapped around the graphics.[…]
Somehow I don't understand this. If you don't want blank space beside the graphics, scale it to make it fit the text width.


Best regards and welcome to the board
Thorsten
shardik
Posts: 2
Joined: Mon Jun 10, 2013 9:30 pm

Re: Graphics for Excercise Sheet

Post by shardik »

Thank you for your replies. I have attached an example of an excercise sheet (in German). The graphics in numbers 13 and 14 were created individually in geogebra, using snip it transfered to Word, scaled and alligned there, then via \includegraphics to the latex file. It works there as the graphic uses the whole width of the page.

The graphic in excercise 11, however, wouldn't work. (I did that one with my cut&paste method). I want to make the graphic large enough that it is readable, but don't want to place it under the text, as this would cause so much unused space right of the graphic, and I want to keep exercise sheets limited to one page, if possible. If I wrap the text around the graphic it is too cluttered. How do other math people insert their graphics into an excercise sheet?

I hope I have made my problem clearer...
Best regards,
shardik
Attachments
Example graphic problem.pdf
(372.67 KiB) Downloaded 382 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Graphics for Excercise Sheet

Post by Johannes_B »

Please provide your code for your first question in the example in the form of a minimal working example (see the link above), we can then adapt it. All those images can be easily drawn with TikZ/PGF.
Try clicking on Open in WriteLaTeX to see the output for a simple triangle.

Code: Select all

\documentclass{scrartcl}
\usepackage{tikz}
\begin{document}
  \begin{tikzpicture}
    \draw (0,0) -- (2,3) -- (0,5) -- cycle;
  \end{tikzpicture}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphics for Excercise Sheet

Post by localghost »

shardik wrote:[…] I want to make the graphic large enough that it is readable, but don't want to place it under the text, as this would cause so much unused space right of the graphic, and I want to keep exercise sheets limited to one page, if possible. If I wrap the text around the graphic it is too cluttered. […]
Somehow these two demands contradict. You don't want white space beside the graphics but you also don't want to wrap it with text. So the only solution I can think of is to put figures into the margin, provided that the margin is wide enough. But this would narrow the text width so that your wish to keep all on one page is in jeopardy.

In the sample document you attached I can easily read the running text as well as the text in the figures. Hence I don't understand why you don't want to wrap figures. The figure in exercise 11 is a good example for wrapping.

As already requested, you should provide a complete example along with exact descriptions of how you want to arrange text and graphics.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Graphics for Excercise Sheet

Post by Johannes_B »

I had some spare time so I made up a small example using the exsheets-package by Clemens.

Code: Select all

\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tikz}
\usepackage{exsheets}
\usepackage{enumitem}
\usepackage{siunitx}

\begin{document}
\begin{question}{3}
  \begin{minipage}{0.55\linewidth}
  Berechne die fehlenden Größen im rechtwinkligen Dreieck
  \begin{enumerate}[label=\alph*)]
\item $u=12$, $v=15$
\item $\epsilon=\SI{37}{\degree}$, $w=4$
  \end{enumerate}
\end{minipage}\hfill
\begin{minipage}{0.35\linewidth}
  \centering
  \begin{tikzpicture}
    \draw (0,0) -- (1.5,0) -- (1.5,3.5) -- cycle;
    \draw (1.5,0.4) arc (90:180:4mm);
  \end{tikzpicture}
\end{minipage}
\end{question}

\begin{question}{4}
Berechne die Höhe eines Turms
\end{question}

Insgesamt mögliche Punkte: \totalpoints*
\end{document}

Please note, that doing your work will not be the standard, i just had some time and was interested to use the exsheets-package.
For your information, a german forum is available at http://www.golatex.de
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply