Theses, Books, Title pagesHow to remove the square box shown at the end of example in Legrand Orange Book

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
JasonLiam
Posts: 3
Joined: Thu Mar 13, 2025 5:08 pm

How to remove the square box shown at the end of example in Legrand Orange Book

Post by JasonLiam »

I am using the template called "Legrand Orange Book" and noticed that there are two square boxes shown(one before and one after the example) as shown in the attached screenshot. I want to remove the square box shown after the example. That is, I want that only the square box before the example should be shown. How can I disable/remove the square box shown after the example.

For reference, I have attached the screenshot showing the problem and the expected result.

Regards,

Image

Here is the screenshot link: https://imgur.com/a/1VZxgdL

After going through the source code, I came across blacksquare which was a QED symbol redefined. But I don't know how can I remove the square box after the example. Which file should I edit. Btw the source code is available at https://www.latextemplates.com/template ... range-book

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Re: How to remove the square box shown at the end of example in Legrand Orange Book

Post by Bartman »

As a registered user, you have the permission to upload your image to the forum server. There's no need to use another provider to store your data.

If your request applies to all example environments, you can copy the relevant source code from the class file, paste it into the preamble and modify it as follows:

Code: Select all

Code, edit and compile here:
\renewenvironment{example}{\begin{exampleT}}
{%\hfill{\tiny\ensuremath{\blacksquare}}
\end{exampleT}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
JasonLiam
Posts: 3
Joined: Thu Mar 13, 2025 5:08 pm

Re: How to remove the square box shown at the end of example in Legrand Orange Book

Post by JasonLiam »

@Bartman

This worked thanks. Btw the code snippet you provided is also already present in the original class file. So what exactly happened when we pasted the same snippet from that original class file to my main.tex. I mean I know that pasting that snippet into my main.tex file overrode the original code but since the snippet is exactly the same as is present in the original class file, so how did it removed the black square. I don't see anything in the provided snippet that says something like "remove" or something that is different from the snippet present in the class file.

Thanks for the solution. Is there a way to accept your post as the correct one here. I mean maybe there is a way to mark your post as the solution. New to this forum.
Post Reply