Skip to main content
All CollectionsAuthor Help
I'm writing Exercises in a course on Leanpub and I'm seeing multiple "Try the exercises" links in a row.
I'm writing Exercises in a course on Leanpub and I'm seeing multiple "Try the exercises" links in a row.

Keywords: course, courses, exercise, exercises, multiple, links

Leanpub Support avatar
Written by Leanpub Support
Updated over a year ago

When you're writing a Leanpub course, you can create "Exercises".

"Exercises" are sets of questions that people can complete, but that do no contribute to their grade, or completion of the course; that's what "Quizzes" are for.

You create an Exercise like this:

{exercise, id: exercise1}

? How many letters are in the word Markua?
a) 5
B) 6
c) 7?

{/exercise}

In the online course, people will see a "Try the exercises" link where you place an Exercise. (Again, in Markua, an "Exercise" is actually a *set* of exercises questions; the student will think of those questions as "the exercises".

Because of the way the "Try the exercises" links are displayed, you DON'T want to write single questions in each Exercise, and do multiple Exercises one after the other.

So, don't do it like this:

{exercise, id: exercise1}

? How many letters are in the word Markua?
a) 5
B) 6
c) 7?

{/exercise}

{exercise, id: exercise2}

? How many unique letters are in the word Markua?
A) 5
b) 6
c) 7?

{/exercise}

This is how those Exercises would appear in the online course:

Instead, combine the questions into one Exercise, like this:

{exercise, id: exercise1}

? How many letters are in the word Markua?
a) 5
B) 6
c) 7?

? How many unique letters are in the word Markua?
A) 5
b) 6
c) 7?

{/exercise}

OK, that's it!

There is a thread on this topic in the Authors Forum here.


If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!

If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!

Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book

Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!

Subscribe to our YouTube channel here: https://www.youtube.com/leanpub

Please subscribe to our YouTube channel here: https://www.youtube.com/leanpub

You can also follow Leanpub in lots of other places!

Did this answer your question?