How to embed GeoGebra

You can also use GeoGebra. Embed the widget using the syntax \geogebra{ID}{width}{height}, where ID is the widget ID and width and height are the dimensions (in pixels) you want the embedded widget to have.

GeoGebra and Grades

Optional Arguments

Examples

The above embedding is generated via the code:

                                                                  

                                                                  
            \begin{center}
            \geogebra{XC3FXUdJ}{800}{600}
            \end{center}
        

Best Practices / Advice

GeoGebra applets created from the (current) GeoGebra website do not always resize well for smaller screens. These issues do not appear to be a problem for applets uploaded from GeoGebra Classic.

Due to the way GeoGebra creates the default applet size, you should not copy the code directly from the calculator page. To ensure the applet will work on a smaller screen, we want to check the size of the applet inside GeoGebra.

The first part of this process depends on the source of the applet.

  • If creating your own applet either:

    • From one of the GeoGebra calculator suites

      (a)
      Create the desired applet
      (b)
      Save the applet (either using the menu or by sharing)
      (c)
      Go to your profile page, and find the activity that contains the new applet
      (d)
      Select Edit Activity
    • Creating a new activity

      (a)
      Go to your profile page, and select Create then Activity
      (b)
      Insert GeoGebra, then select Create Applet
      (c)
      Create the desired applet
  • If using an existing applet/activity made by someone else:

    (a)
    On the GeoGebra page, the easiest way to check if the applet is too wide is to see if it is wider than the box with the author information. It is a good idea to check inside the applet as well
    (b)
    To edit the size, click on the three dots in the box with the author, then copy activity

Next, we want to check and edit the applet size.

(a)
Hover over the (initially invisible) box containing the GeoGebra applet. When it appear, click on it to edit the applet.
(b)
Under the embedded applet, you should see the dimensions, listed as width times height. You may also see the warning: “You chose very large applet dimensions which makes your applet difficult to use for users with small screens. Please consider optimizing your applet for smaller screen dimensions.”
(c)
If the applet is too big, the easiest way to resize is in the Advanced Settings. The warning goes away once the width is less than or equal to 800 and height is less than or equal to 600

Potential Pitfalls and Problems

2024-06-24 13:20:37